:root {
            /* 修改为主视觉为浅粉色 */
            --primary-color: #ffb6c1; 
            --primary-hover: #ffa6b5; 
            /* 玻璃拟态背景改为浅粉白渐变 */
            --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 240, 245, 0.85));
            --glass-border: rgba(255, 228, 235, 0.7);
            --glass-shadow: 0 8px 32px 0 rgba(255, 182, 193, 0.25);
            /* 字体颜色调柔和，避免死黑 */
            --text-main: #6b5b60; 
            --text-sub: #a38f95;
        }

        html { touch-action: manipulation; scroll-behavior: smooth; }
        @font-face {
            font-family: 'Kazesawa-Regular';
            src: url('https://cdn.rrrosmontis.icu/ttf-1.ttf') format('truetype');
            font-weight: normal; font-style: normal; font-display: swap;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

        body::before {
            content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('https://cdn.rrrosmontis.icu/melody/pc.jpeg');
            background-size: cover; background-position: center; z-index: -1;
        }
        body { 
            padding-top: 80px; 
            min-height: 100vh; 
            font-family: 'Kazesawa-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Segoe UI Symbol', 'Arial', 'Helvetica', sans-serif;
            color: var(--text-main);
            overflow-x: hidden;
        }

        @media (max-width: 768px) {
            body::before { background-image: url('https://cdn.rrrosmontis.icu/melody/mobile.jpeg'); }
            body { padding-top: 60px; }
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translate(-50%, -50%) translateY(30px); }
            to { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
        }
        @keyframes popIn {
            0% { opacity: 0; transform: scale(0.95); }
            100% { opacity: 1; transform: scale(1); }
        }
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-5px); }
            100% { transform: translateY(0px); }
        }
        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-30px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* 顶栏修改为浅粉白渐变，增加柔和阴影 */
        .topbar {
            position: fixed; top: 0; left: 0; width: 100%; height: 70px;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 248, 0.95));
            box-shadow: 0 4px 20px rgba(255, 182, 193, 0.15);
            display: flex; align-items: center; justify-content: space-between;
            padding: 0 5%; z-index: 1000; gap: 20px;
            -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        }
        /* 标题增加浅粉色发光 */
        .brand-text {
            font-size: 1.8em; color: #ff8da3; font-weight: 600; letter-spacing: 1.5px;
            font-family: 'Kazesawa-Regular', sans-serif; 
            text-shadow: 0 0 8px rgba(255, 182, 193, 0.6), 0 0 15px rgba(255, 255, 255, 0.8);
        }
        .logo-container { display: flex; align-items: center; gap: 30px; margin-left: auto; }
        .right-logo { height: 45px; width: auto; transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); cursor: pointer; }
        .right-logo:hover { transform: rotate(360deg) scale(1.1); }

        .topbar-nav { display: flex; gap: 20px; order: -1; }
        /* 导航文字颜色及微发光 */
        .nav-item {
            font-size: 1.1em; color: #ff8da3; text-decoration: none;
            padding: 5px 0;
            text-shadow: 0 0 5px rgba(255, 182, 193, 0.4);
        }

        .mobile-nav-row { display: none; }
        @media (max-width: 768px) {
            .topbar { height: 60px; padding: 0 20px; justify-content: center; }
            .brand-text { font-size: 1.3em; text-align: center; width: 100%; }
            .logo-container { display: none !important; }  
            .mobile-nav-row {
                display: flex; position: fixed; top: 60px; left: 0; width: 100%;
                background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 248, 0.95));
                -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
                border-bottom: 1px solid rgba(255, 182, 193, 0.2);
                padding: 12px 0; justify-content: center; align-items: center;
                z-index: 998; box-shadow: 0 5px 15px rgba(255, 182, 193, 0.15);
                max-height: 50px;
            }
            .mobile-nav-row .nav-item { font-size: 0.95em; font-weight: 500; }
        }

        .glass-panel {
            background: var(--glass-bg);
            -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px); 
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            box-shadow: var(--glass-shadow);
            transition: all 0.4s ease;
        }

        .login-container {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 90%; max-width: 620px;
            padding: 40px;
            z-index: 500;
            animation: fadeInUp 0.8s ease-out;
        }

        /* 登录标题修改为粉色渐变和外发光 */
        .login-form h2 {
            text-align: center;
            margin-bottom: 30px;
            background: linear-gradient(135deg, #ff8da3, var(--primary-color));
            -webkit-background-clip: text;   
            background-clip: text;            
            -webkit-text-fill-color: transparent; 
            color: transparent;       
            font-size: 2em;
            letter-spacing: 1px;
            filter: drop-shadow(0 0 6px rgba(255, 182, 193, 0.5));
        }
        .input-group { position: relative; margin-bottom: 20px; }
        .input-field {
            display: block;
            margin: auto;
            width: 90%; padding: 16px 20px; 
            border: 2px solid transparent; border-radius: 16px;
            background: rgba(255, 255, 255, 0.8);
            font-size: 1.05em; color: var(--text-main);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            font-family: inherit;
        }
        .input-field::placeholder { color: #d1bfae; transition: color 0.3s; }
        .input-field:focus { 
            background: #fff; border-color: var(--primary-color); 
            box-shadow: 0 5px 20px rgba(255, 182, 193, 0.3); 
            transform: translateY(-2px);
            outline: none;
        }

        .email-input-wrapper {
            display: flex;
            align-items: center;
            margin: auto;
            width: 90%; 
            border: 2px solid transparent; border-radius: 16px;
            background: rgba(255, 255, 255, 0.8);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        .email-input-wrapper:focus-within {
            background: #fff; border-color: var(--primary-color); 
            box-shadow: 0 5px 20px rgba(255, 182, 193, 0.3); 
            transform: translateY(-2px);
        }
        .email-username {
            flex: 1;
            padding: 16px 10px 16px 20px;
            border: none;
            background: transparent;
            font-size: 1.05em; color: var(--text-main);
            font-family: inherit;
            outline: none;
            min-width: 0;
        }
        .email-username::placeholder { color: #d1bfae; transition: color 0.3s; }
        
        .custom-domain-select {
            position: relative;
            cursor: pointer;
            border-left: 1px solid rgba(255, 182, 193, 0.3);
            padding: 16px 30px 16px 15px;
            background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffa6b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
            background-size: 16px;
            font-size: 0.95em; color: var(--text-main);
            font-family: inherit;
            user-select: none;
            white-space: nowrap;
        }
        .custom-domain-select.open {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffa6b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
        }

        /* 注册页密码对：PC 左右分割，移动端上下分开 */
        .password-pair-wrapper {
            display: flex;
            align-items: center;
            flex-direction: row;
        }
        .password-pair-wrapper .password-confirm-input {
            border-left: 1px solid rgba(255, 182, 193, 0.3);
            padding: 16px 10px 16px 15px;
            flex: 1;
        }

        .domain-options {
            position: absolute;
            top: calc(100% + 5px);
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(255, 182, 193, 0.2);
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px) scale(0.95);
            transform-origin: top right;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            z-index: 1000;
            min-width: max-content;
        }
        .custom-domain-select.open .domain-options {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }
        .domain-option {
            padding: 14px 20px;
            transition: background 0.2s, color 0.2s;
            color: var(--text-main);
        }
        .domain-option:not(:last-child) {
            border-bottom: 1px solid rgba(255, 182, 193, 0.15);
        }
        .domain-option:hover {
            background: rgba(255, 182, 193, 0.15);
            color: #ff8da3;
        }

        /* 按钮渐变色修改 */
        .tool-btn {
            width: 100%; padding: 16px; 
            background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
            color: white; border: none; border-radius: 16px;
            font-size: 1.1em; font-weight: 600; letter-spacing: 1px;
            cursor: pointer; position: relative; overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
        }

        .login-btn {
            display: block;
            width: 100%; padding: 16px; 
            background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
            color: white; border: none; border-radius: 16px;
            font-size: 1.1em; font-weight: 600; letter-spacing: 1px;
            cursor: pointer; position: relative; overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
            margin: auto;
        }
        .login-btn:hover, .tool-btn.primary:hover { 
            transform: translateY(-3px) scale(1.02); 
            box-shadow: 0 8px 25px rgba(255, 182, 193, 0.6); 
        }
        .login-btn:active { transform: translateY(-1px); }

        .error-message { 
            text-align: center; 
            margin-top: 15px; 
            font-size: 0.9em; 
            height: 20px; 
            transition: opacity 0.3s; 
            opacity: 0;         
        }
        .error-message.default-hint {
            opacity: 0.8;
            color: #b59fa8;     
        }
        .error-message.show { 
            opacity: 1; 
            color: #ff768b; 
            animation: headShake 0.5s ease-in-out; 
        }
        @keyframes headShake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } 100% { transform: translateX(0); } }

        .form-hint {
            position: relative;
            text-align: center;
            margin-top: 15px;
            font-size: 0.9em;
            height: 20px;
            color: #b59fa8;
        }
        .form-hint .hint-normal,
        .form-hint .hint-error {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            transition: opacity 0.4s ease;
            will-change: opacity;
        }
        .form-hint .hint-error {
            opacity: 0;
            color: #ff768b;
        }
        .form-hint a {
            color: #b59fa8;
            text-decoration: none;
        }
        .form-hint a:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }

        .mail-container {
            display: none;
            max-width: 1300px; width: 95%;
            margin: 20px auto ; 
            padding: 30px;
            animation: popIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
            min-height: 600px;
        }

        .mail-toolbar {
            display: flex;
            gap: 15px;
            flex-wrap: wrap; 
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255, 182, 193, 0.2);
            align-items: center;
        }

        .tool-btn {
            width: auto;
            padding: 10px 24px;
            border-radius: 50px;
            background: white;
            color: var(--text-main);
            box-shadow: 0 4px 12px rgba(255, 182, 193, 0.15);
            font-size: 0.95em;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Segoe UI', 'Arial', 'Helvetica', 'Segoe UI Symbol', sans-serif;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .tool-btn:hover { background: #fff; transform: translateY(-3px); color: var(--primary-color); }
        .tool-btn.primary { background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); color: white; }

        .power-btn {
            background: #ffa6b5;
            border: none;
            cursor: pointer;
            position: relative;
            box-shadow: 0 4px 10px rgba(255, 166, 181, 0.3);
            transition: transform 0.2s ease, box-shadow 0.2s;
            flex-shrink: 0;
            display: inline-block;
            padding: 10px 24px 10px 40px;
            border-radius: 50px;
            color: white;
            font-size: 0.95em;
            font-weight: 600;
            line-height: 1.2;
            text-align: left;
            font-family: 'Segoe UI', 'Arial', 'Helvetica', sans-serif;
        }
        .power-btn:hover {
            transform: scale(1.05) translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 166, 181, 0.5);
        }
        .power-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 14px;
            transform: translateY(-45%);
            width: 16px; height: 16px;
            border: 2px solid white;
            border-radius: 50%;
            border-top-color: transparent;
            box-sizing: border-box;
        }
        .power-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 21px;
            transform: translateY(-90%);
            width: 2px; height: 8px;
            background: white;
            border-radius: 2px;
        }

        #userEmailDisplay {
            font-family: monospace; color: var(--text-sub); 
            background: rgba(255, 182, 193, 0.1); padding: 5px 12px; border-radius: 8px;
        }

        #replyBtn {
            transition: opacity 0.3s ease, transform 0.3s ease;
            opacity: 1;
            transform: translateX(0);
        }
        #replyBtn.hidden {
            opacity: 0;
            transform: translateX(20px);
            pointer-events: none;
        }

        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.15); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
            display: none; align-items: center; justify-content: center;
            z-index: 2000;
        }
        .modal-card {
            -webkit-backdrop-filter: blur(20px);
            background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
            border-radius: 32px; padding: 30px 35px;
            max-width: 400px; width: 85%;
            box-shadow: 0 25px 50px rgba(255,182,193,0.2);
            text-align: center;
            border: 1px solid rgba(255,228,235,0.8);
            animation: popIn 0.3s ease;
        }
        .modal-card p { font-size: 1.2rem; color: var(--text-main); margin-bottom: 10px; }
        .modal-card .small-muted {
            font-size: 0.9rem; color: var(--text-sub); margin-bottom: 25px;
            line-height: 1.5; word-break: break-word;
        }
        .modal-actions { display: flex; gap: 15px; justify-content: center; }
        .modal-btn {
            padding: 12px 30px; border: none; border-radius: 40px;
            font-size: 1rem; font-weight: 600; cursor: pointer;
            transition: all 0.2s;
        }
        .modal-btn.cancel { background: #fff0f5; color: var(--text-sub); }
        .modal-btn.confirm { background: #ffa6b5; color: white; box-shadow: 0 5px 15px rgba(255,166,181,0.3); }
        .modal-btn.cancel:hover { background: #ffe4eb; }
        .modal-btn.confirm:hover { background: #ff9eb0; transform: translateY(-2px); }

        .message-list { display: flex; flex-direction: column; gap: 12px; }
        .message-item {
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.8);
            border-radius: 16px;
            padding: 18px 24px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            opacity: 0;
            transform: translateX(-30px);
        }
  
        .message-item.existing-entry {
            opacity: 1;
            transform: translateX(0);
        }
   
        .message-item.new-entry {
            animation: slideIn 0.5s ease forwards;
        }
        .message-item:hover {
            background: rgba(255, 255, 255, 0.98);
            transform: scale(1.015) translateX(5px);
            box-shadow: 0 10px 30px rgba(255, 182, 193, 0.2);
            border-left: 5px solid var(--primary-color);
        }

        @media (max-width: 768px) {
            .message-item:hover {
                transform: none !important;
                background: rgba(255, 255, 255, 0.7) !important;
                border-left: 1px solid rgba(255, 255, 255, 0.8) !important;
                box-shadow: none !important;
            }
        }

        .msg-content { flex: 1; min-width: 0; }
        .msg-top-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
        .msg-subject { font-weight: 600; color: var(--text-main); font-size: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 2px rgba(255, 182, 193, 0.2); }
        .msg-from { font-size: 0.9em; color: var(--text-sub); }
        .msg-date { font-size: 0.85em; color: #c4b5bc; font-weight: 500; }

        .detail-view, .compose-form {
            background: #fff; border-radius: 20px; padding: 30px;
            box-shadow: 0 10px 40px rgba(255,182,193,0.15);
            animation: popIn 0.4s ease;
        }
        .back-btn { 
            display: inline-flex; align-items: center; gap: 5px;
            color: #ff8da3; cursor: pointer; margin-bottom: 20px; 
            font-weight: 600; padding: 8px 15px; border-radius: 20px;
            transition: background 0.2s;
        }
        .back-btn:hover { background: rgba(255, 182, 193, 0.15); }
        .detail-header h3 { font-size: 1.6em; margin: 10px 0; color: var(--text-main); word-break: break-word; }
        .detail-meta { display: flex; gap: 10px; color: var(--text-sub); font-size: 0.95em; padding-bottom: 20px; border-bottom: 1px dashed #f5e6ea; flex-wrap: wrap;}
        .detail-meta span {
            word-break: break-word;
            overflow-wrap: break-word;
        }
        .detail-body { 
            padding: 25px 0; line-height: 1.8; color: var(--text-main); font-size: 1.05em; 
            word-break: break-word; white-space: pre-wrap; 
            overflow-x: auto;
            max-width: 100%;
        }
        .detail-body img {
            max-width: 100%;
            height: auto;
        }
        .detail-body table {
            max-width: 100%;
            width: auto !important;
            float: none !important;
        }
        .detail-body * {
            max-width: 100%;
            box-sizing: border-box;
        }
        .compose-form input, .compose-form textarea {
            background: #fffafb; border: 1px solid #f5e6ea;
            transition: all 0.3s;
        }
        .compose-form textarea { min-height: 250px; border-radius: 12px; resize: vertical; }
        .compose-form input:focus, .compose-form textarea:focus {
            background: #fff; border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.2);
        }
        .compose-form .input-field {
            margin-bottom: 20px; 
        }
        .compose-toolbar {
            display: flex;
            gap: 12px;
            margin: 10px 0 20px 0;  
            padding: 8px 16px;
            border-top: 1px solid #f5e6ea;
            border-bottom: 1px solid #f5e6ea;
            background: rgba(255,255,255,0.8);
            border-radius: 40px;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-start;
        }
        .compose-toolbar .tool-btn {
            padding: 8px 16px;  
        }
        .attachment-info {
            font-size: 0.9em;
            color: var(--text-sub);
            margin-left: auto;
            padding-right: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .file-tag {
            background: #fff0f5;
            border-radius: 30px;
            padding: 4px 12px;
            font-size: 0.8rem;
            max-width: 180px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
        .tool-btn .icon.bold { font-weight: 700; }
        .tool-btn .icon.underline { text-decoration: underline; }
        .tool-btn .icon.italic { font-style: italic; }
        .tool-btn .icon.strike { text-decoration: line-through; }

        .mobile-attach-info {
            display: none;
            margin: 10px 0 20px 0;
            padding: 10px 16px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 30px;
            font-size: 0.9em;
            color: var(--text-sub);
            border: 1px solid rgba(255,182,193,0.2);
            word-break: break-word;
            overflow-wrap: break-word;
        }
        @media (max-width: 768px) {
            .mobile-attach-info {
                display: block;
            }
            .mobile-attach-info:empty {
                display: none;
            }
        }

        .loading-container { text-align: center; padding: 50px; color: var(--text-sub); }
        .spinner {
            width: 40px; height: 40px; margin: 0 auto 15px;
            border: 4px solid rgba(255, 182, 193, 0.3);
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .footer {
            position: fixed; bottom: 0; left: 0; width: 100%; 
            background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 248, 0.95));
            padding: 15px 0; text-align: center; font-size: 0.9em; color: var(--text-sub);
            border-top: 1px solid rgba(255, 182, 193, 0.2); z-index: 999;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            transition: transform 0.5s ease, opacity 0.5s ease;
        }
        .footer.hidden {
            transform: translateY(100%);
            opacity: 0;
            transition: transform 1s ease, opacity 1s ease;
        }

        .beian { text-decoration: none; color: var(--text-sub); transition: color 0.2s; }
        .beian:hover { color: var(--primary-color); text-decoration: underline; }
        .mobile-footer { display: none; }
        .divider {
            border: 0;
            border-top: 1px solid rgba(255, 182, 193, 0.3);
            width: 80%;
            margin: 15px auto;
        }
        .btn-max-width-limit {
            max-width: 200px;
            margin: auto;
        }
        .pc-only { display: block; }
        .mobile-only { display: none; }
        @media (max-width: 768px) {
            .desktop-footer { display: none; }
            .mobile-footer { display: flex; flex-direction: column; gap: 4px; align-items: center; }
            .copyright-large { font-size: 0.85em; color: var(--text-main); font-weight: 500; }
            .beian-small { font-size: 0.7em; color: #b59fa8; text-decoration: none; }
            .pc-only { display: none; }
            .mobile-only { display: block; }
        }

        @media (max-width: 768px) {
            .login-container { width: 88%; padding: 25px;}
            .mail-container { width: 92%; padding: 15px; margin-top: 70px; }
            .message-item { padding: 12px; gap: 10px; }
            #userEmailDisplay { display: none; }
            .msg-top-row { flex-direction: column; align-items: flex-start; gap: 4px; }
            .msg-date { font-size: 0.75em; color: #c4b5bc; }
            .msg-subject { white-space: normal; word-break: break-word; font-size: 1em; }
            .detail-header h3, .detail-body, .msg-from { word-break: break-word; overflow-wrap: break-word; }

            .mail-toolbar .tool-btn,
            .mail-toolbar .power-btn,
            .compose-toolbar .tool-btn {   
                width: 40px;
                height: 40px;
                padding: 0;
                border-radius: 50%;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 0;      
                gap: 0;
            }

            .mail-toolbar .tool-btn .icon,
            .compose-toolbar .tool-btn .icon {
                font-size: 20px;
                line-height: 1;
                display: inline-block;
            }
            .mail-toolbar .tool-btn .label,
            .compose-toolbar .tool-btn .label {
                display: none;
            }

            .power-btn {
                position: relative;
            }
            .tool-btn.primary .icon { color: white; } 
            .tool-btn:not(.primary):not(.power-btn) .icon { color: var(--text-main); }
            .power-btn { color: white; }
            .power-btn::before,
            .power-btn::after {
                left: 50%;
            }
            .power-btn::before {
                transform: translate(-50%, -45%);
            }
            .power-btn::after {
                transform: translate(-50%, -90%);
            }
            .mail-toolbar,
            .compose-toolbar {
                justify-content: center;
            }
            .compose-toolbar {
                gap: 8px;
            }
            .attachment-info {
                display: none;
            }

            .divider {
                width: 90%;
                display: none;
            }

            .login-container h2 {
                font-size: 30px;
            }

            .btn-max-width-limit {
                max-width: 150px;
            }

            .input-field, .email-input-wrapper {
                border: 2px solid #f5e6ea;
                width: 100%;
            }

            .password-pair-wrapper,
            .password-pair-wrapper:focus-within {
                flex-direction: column;
                background: transparent !important;
                border-color: transparent !important;
                box-shadow: none !important;
                transform: none !important;
                width: 100%;
            }
            .password-pair-wrapper input,
            .password-pair-wrapper input.password-confirm-input {
                width: 100%;
                margin: 0 auto 12px auto;
                padding: 16px 20px;
                border: 2px solid #f5e6ea;
                border-radius: 16px;
                background: rgba(255, 255, 255, 0.8);
                flex: none;
            }
            .password-pair-wrapper input:last-child {
                margin-bottom: 0;
            }
        }

        .load-more-container {
            position: relative;
            height: 40px;
            margin: 20px 0;
            overflow: visible;
        }
        .load-more-tip {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            text-align: center;
            padding: 15px 20px;
            color: #b59fa8;
            font-size: 14px;
            opacity: 0;
            transform: translateY(0);
            transition: opacity 0.3s ease, transform 0.3s ease;
            cursor: pointer;
        }
        .load-more-tip.default {
            opacity: 1;
        }
        .load-more-tip.hiding {
            opacity: 0;
            transform: translateY(-10px);
        }
        .load-more-tip.showing {
            opacity: 0;
            transform: translateY(10px);
        }
        .load-more-tip.showing.active {
            opacity: 1;
            transform: translateY(0);
        }
        .no-more {
            text-align: center;
            padding: 15px 20px;
            color: #d1bfae;
            font-size: 14px;
        }

        @media (max-width: 768px) {
            body {
                transition: padding-top 0.5s ease;
            }
            body.mobile-topbar-hidden {
                padding-top: 0;
            }
            .topbar {
                transition: transform 0.5s ease;
            }
            .topbar.mobile-hidden {
                transform: translateY(-100%);
            }
            .mobile-nav-row {
                transition: top 0.5s ease;
            }
            .mobile-nav-row.mobile-shifted {
                top: 0;
            }
            .mail-container {
                transition: margin-top 0.5s ease;
            }
            .mail-container.mobile-shifted {
                margin-top: 70px;
            }
            .back-btn:hover, .delete-btn:hover {
                background: transparent;
            }
        }

        .delete-btn {
            color: #ff768b;
            margin-left: 15px;
        }
        .delete-btn:hover {
            background: rgba(255, 118, 139, 0.1);
        }

        @media (max-width: 768px) {
            .back-btn:hover,
            .delete-btn:hover {
                background: transparent !important; 
                transition: none !important;     
            }

            .back-btn:hover {
                color: var(--primary-color) !important; 
            }
            .delete-btn:hover {
                color: #ff768b !important;            
            }

            .back-btn:active,
            .delete-btn:active {
                background: transparent !important;
            }
        }