:root {
    --bg-void: #F2ECE1;
    --bg-Nebula: #E8DFCE;
    --bg-card: rgba(250, 246, 238, 0.96);
    --bg-card-solid: #FAF6EE;
    --bg-input: #EAE2D3;
    --bg-elevated: #F3ECE0;
    --cyan-jade: #0369A1;
    --cyan-bright: #0284C7;
    --cyan-glow: rgba(3, 105, 161, 0.22);
    --gold-immortal: #B45309;
    --gold-bright: #D97706;
    --gold-amber: #F59E0B;
    --gold-glow: rgba(217, 119, 6, 0.24);
    --crimson-sin: #BE123C;
    --crimson-bright: #E11D48;
    --crimson-glow: rgba(190, 18, 60, 0.22);
    --purple-void: #6D28D9;
    --emerald-win: #0369A1;
    --text-main: #1C1917;
    --text-muted: #57534E;
    --border-subtle: rgba(146, 64, 14, 0.18);
    --border-cyan: rgba(3, 105, 161, 0.36);
    --border-gold: rgba(217, 119, 6, 0.42);
    --realm-bleed-1: rgba(217, 119, 6, 0.16);
    --realm-bleed-2: rgba(3, 105, 161, 0.12);
    --realm-border-glow: #D97706;
    --realm-sec-glow: #0284C7;
    --realm-title-grad: linear-gradient(112deg, #92400E 0%, #D97706 32%, #B45309 48%, #0369A1 72%, #92400E 100%);
    --realm-title-shadow: rgba(217, 119, 6, 0.28);
    --font-display: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
    --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 10px 28px -8px rgba(120, 53, 15, 0.12), 0 4px 12px -2px rgba(28, 25, 23, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-void) !important;
    background-image:
        radial-gradient(circle at 14% 12%, rgba(217, 119, 6, 0.11) 0%, transparent 45%),
        radial-gradient(circle at 86% 14%, rgba(3, 105, 161, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(180, 83, 9, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #F5EFE6 0%, #F2ECE1 52%, #ECE3D3 100%) !important;
    color: var(--text-main) !important;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#bg-canvas, #fx-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

#fx-canvas {
    z-index: 9998;
}

.hidden {
    display: none !important;
}

.w-full {
    width: 100%;
}

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }

.text-center { text-align: center; }
.text-cyan { color: var(--cyan-jade) !important; }
.text-gold { color: var(--gold-immortal) !important; }
.text-red { color: var(--crimson-sin) !important; }
.text-purple { color: var(--purple-void) !important; }
.text-emerald { color: var(--cyan-jade) !important; }
.mono-text { font-family: var(--font-mono); }

.cinzel-title {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #78350F 0%, #D97706 52%, #0369A1 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.tab-pane.active {
    animation: dimensionalTabEnter 0.2s ease-out forwards;
}

@keyframes dimensionalTabEnter {
    0% { opacity: 0.92; }
    100% { opacity: 1; }
}

.cyber-card {
    position: relative;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-top: 1.5px solid var(--border-gold) !important;
    border-radius: var(--radius-lg) !important;
    padding: 16px !important;
    box-shadow: var(--shadow-card) !important;
    color: var(--text-main) !important;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
    z-index: 1;
}

.cyber-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), var(--cyan-jade), var(--gold-bright), transparent);
    opacity: 0.82;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle) !important;
}

.card-header h3, .card-header h4 {
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--text-main) !important;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-shadow: none !important;
}

.card-sub {
    font-size: 0.8rem;
    color: var(--text-muted) !important;
    margin-top: 2px;
}

.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.86rem;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    white-space: nowrap;
}

.cyber-btn:active {
    transform: scale(0.97);
}

.cyber-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.7);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

.btn-cyan {
    background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%) !important;
    border: 1px solid rgba(2, 132, 199, 0.65) !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.22) !important;
}

.btn-cyan:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(3, 105, 161, 0.34) !important;
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    border: 1px solid #B45309 !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.24) !important;
}

.btn-gold:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.36) !important;
    transform: translateY(-1px);
}

.btn-red {
    background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%) !important;
    border: 1px solid #9F1239 !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.24) !important;
}

.btn-purple {
    background: linear-gradient(135deg, #6D28D9 0%, #5B21B6 100%) !important;
    border: 1px solid #4C1D95 !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.24) !important;
}

.btn-cyan-outline {
    background: rgba(3, 105, 161, 0.08) !important;
    color: #0369A1 !important;
    border: 1px solid rgba(3, 105, 161, 0.38) !important;
}

.btn-gold-outline {
    background: rgba(217, 119, 6, 0.1) !important;
    color: #B45309 !important;
    border: 1px solid rgba(217, 119, 6, 0.45) !important;
}

.btn-red-outline {
    background: rgba(190, 18, 60, 0.08) !important;
    color: #BE123C !important;
    border: 1px solid rgba(190, 18, 60, 0.38) !important;
}

.btn-purple-outline {
    background: rgba(109, 40, 217, 0.08) !important;
    color: #6D28D9 !important;
    border: 1px solid rgba(109, 40, 217, 0.38) !important;
}

.icon-btn {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-main) !important;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    border-color: var(--gold-bright) !important;
    color: var(--gold-immortal) !important;
    background: #F5EDE0 !important;
}

.cyber-input, .cyber-select, .cyber-textarea {
    width: 100%;
    background: var(--bg-input) !important;
    border: 1px solid rgba(146, 64, 14, 0.24) !important;
    color: var(--text-main) !important;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cyber-input::placeholder, .cyber-textarea::placeholder {
    color: #78716C !important;
}

.cyber-input:focus, .cyber-select:focus, .cyber-textarea:focus {
    background: #FAF6EE !important;
    border-color: var(--gold-bright) !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16) !important;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}

.field-group label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted) !important;
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.4px;
}

.badge-cyan {
    background: rgba(3, 105, 161, 0.1) !important;
    color: #0369A1 !important;
    border: 1px solid rgba(3, 105, 161, 0.35) !important;
}

.badge-gold {
    background: rgba(217, 119, 6, 0.12) !important;
    color: #B45309 !important;
    border: 1px solid rgba(217, 119, 6, 0.4) !important;
}

.badge-red {
    background: rgba(190, 18, 60, 0.1) !important;
    color: #BE123C !important;
    border: 1px solid rgba(190, 18, 60, 0.35) !important;
}

.cyber-progress {
    width: 100%;
    height: 11px;
    background: #DFD5C3 !important;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(146, 64, 14, 0.18) !important;
}

.cyber-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0369A1 0%, #D97706 65%, #F59E0B 100%) !important;
    border-radius: 999px;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-danger .cyber-progress-fill {
    background: linear-gradient(90deg, #D97706 0%, #E11D48 100%) !important;
}

.auth-gate {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 5000;
    background: radial-gradient(circle at center, #F7F2E7 0%, #E6DCCB 100%) !important;
}

.auth-card {
    max-width: 430px;
    width: 100%;
    text-align: center;
    padding: 28px 22px;
    border: 1.5px solid var(--border-gold) !important;
    background: var(--bg-card-solid) !important;
    box-shadow: 0 20px 48px rgba(120, 53, 15, 0.18) !important;
}

.formation-ring {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-outer, .ring-middle, .ring-inner {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed var(--gold-bright);
}

.ring-outer {
    width: 110px;
    height: 110px;
    animation: spinCW 18s linear infinite;
    opacity: 0.7;
}

.ring-middle {
    width: 84px;
    height: 84px;
    border-color: var(--cyan-jade);
    animation: spinCCW 12s linear infinite;
    opacity: 0.75;
}

.ring-inner {
    width: 60px;
    height: 60px;
    border-style: solid;
    border-color: rgba(217, 119, 6, 0.48);
}

.core-sigil {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-immortal);
    text-shadow: 0 2px 10px rgba(217, 119, 6, 0.25);
}

.auth-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 8px 0 18px;
}

.auth-trust-row {
    justify-content: center;
    margin: 8px 0 4px;
    font-size: 0.8rem;
}

.auth-status {
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--crimson-sin);
    min-height: 20px;
}

@keyframes spinCW { 100% { transform: rotate(360deg); } }
@keyframes spinCCW { 100% { transform: rotate(-360deg); } }

.future-mail-banner {
    max-width: 1280px;
    margin: 10px auto 0;
    background: linear-gradient(135deg, #FAF6EE 0%, #F3E5C8 100%) !important;
    border: 1.5px solid #D97706 !important;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.14);
    position: relative;
    z-index: 120;
}

.future-mail-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.future-mail-title-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    color: #92400E !important;
    font-size: 0.94rem;
}

.future-mail-banner-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(180, 83, 9, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.future-mail-item {
    background: #FAF6EE !important;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 4px solid #D97706 !important;
    font-size: 0.86rem;
    color: var(--text-main) !important;
}

.app-shell {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px 66px;
}

.top-header,
.top-header.imperial-top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, #FBF6EC 0%, #F1E5D1 100%) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 2px solid #C69C63 !important;
    padding: 8px 14px !important;
    margin: 0 -12px 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(92, 58, 22, 0.12), inset 0 -1px 0 rgba(255, 251, 240, 0.85) !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.menu-trigger-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    background: #EAE2D3 !important;
    border: 1.5px solid rgba(180, 83, 9, 0.42) !important;
    color: #92400E !important;
    flex-shrink: 0;
}

.active-view-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1rem;
    color: var(--text-main) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.brand-orb {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B45309, #F59E0B);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #FAF6EE;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.28);
    flex-shrink: 0;
}

.brand-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.96rem;
    color: var(--text-main) !important;
    text-shadow: none !important;
}

.imperial-calligraphy-brand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    gap: 6px !important;
    font-family: var(--font-display) !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

.auth-card h1.imperial-calligraphy-brand {
    display: flex !important;
    width: 100% !important;
    font-size: clamp(1.16rem, 5.2vw, 1.56rem) !important;
    line-height: 1.2 !important;
    margin: 0 auto 4px auto !important;
}

.imperial-calligraphy-brand .calligraphy-main-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background: linear-gradient(180deg, #1C1917 0%, #292524 58%, #44403C 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 5px rgba(120, 53, 15, 0.16)) !important;
}

.imperial-cinnabar-seal {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 19px !important;
    height: 25px !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #B91C1C 0%, #7F1D1D 100%) !important;
    color: #FEF2F2 !important;
    -webkit-text-fill-color: #FEF2F2 !important;
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    border: 1.5px solid #FCA5A5 !important;
    box-shadow: 0 2px 6px rgba(153, 27, 27, 0.38), inset 0 0 0 1px #991B1B !important;
    transform: rotate(-3deg);
    flex-shrink: 0 !important;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--gold-immortal);
    font-weight: 700;
}

.resource-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.res-pill,
.res-pill.cinnabar-stat-plaque {
    position: relative;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    padding: 4px 10px !important;
    min-height: 36px;
    border-radius: 6px !important;
    font-family: var(--font-mono) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    background: linear-gradient(180deg, #F7EFE0 0%, #EADBC2 58%, #DECAA8 100%) !important;
    border: 1.5px solid rgba(120, 68, 20, 0.36) !important;
    color: #1C1917 !important;
    box-shadow:
        0 2px 6px rgba(68, 38, 10, 0.12),
        inset 0 0 0 1px rgba(255, 252, 245, 0.78) !important;
}

.cinnabar-plaque-main {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 1.05 !important;
    color: #1C1917 !important;
}

.cinnabar-plaque-main span,
.res-pill.cinnabar-stat-plaque #top-stars,
.res-pill.cinnabar-stat-plaque #top-lt,
.res-pill.cinnabar-stat-plaque #top-tt,
.res-pill.cinnabar-stat-plaque #top-hammer,
.res-pill.cinnabar-stat-plaque #top-mail-count {
    color: #1C1917 !important;
    -webkit-text-fill-color: #1C1917 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

.res-pill.res-star .res-icon {
    color: #B45309 !important;
    -webkit-text-fill-color: #B45309 !important;
}

.res-pill.res-lt .res-icon {
    color: #0369A1 !important;
    -webkit-text-fill-color: #0369A1 !important;
}

.res-pill.res-tt .res-icon {
    color: #6D28D9 !important;
    -webkit-text-fill-color: #6D28D9 !important;
}

.res-pill.res-hammer .res-icon {
    color: #92400E !important;
    -webkit-text-fill-color: #92400E !important;
}

.res-pill.res-mail .res-icon {
    color: #78350F !important;
    -webkit-text-fill-color: #78350F !important;
}

.cinnabar-plaque-sub {
    font-family: var(--font-sans) !important;
    font-size: 0.56rem !important;
    font-weight: 700 !important;
    color: #5C4024 !important;
    opacity: 0.92;
    line-height: 1 !important;
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .res-pill,
    .res-pill.cinnabar-stat-plaque {
        padding: 4px 8px !important;
        min-height: 32px;
    }
    .cinnabar-plaque-sub {
        display: none !important;
    }
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.36);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 2000;
}

.sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 86vw;
    background: linear-gradient(180deg, #FAF6EE 0%, #F2EAE0 100%) !important;
    border-right: 1.5px solid rgba(217, 119, 6, 0.38) !important;
    box-shadow: none !important;
    color: var(--text-main) !important;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    padding: 16px;
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    pointer-events: none;
}

.sidebar-drawer.open {
    transform: translate3d(0, 0, 0);
    box-shadow: 10px 0 32px rgba(28, 25, 23, 0.18) !important;
    pointer-events: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-resources {
    display: none !important;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav .nav-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--text-muted) !important;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.sidebar-nav .nav-tab:hover {
    background: #EAE2D3 !important;
    color: var(--text-main) !important;
}

.sidebar-nav .nav-tab.active {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.18), rgba(3, 105, 161, 0.1)) !important;
    color: #92400E !important;
    border-color: rgba(217, 119, 6, 0.48) !important;
}

.sidebar-footer {
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bottom-quick-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #FAF3E4 0%, #EFE2C9 58%, #E4D0AE 100%) !important;
    border-top: 1.5px solid #C49A62 !important;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 4px 10px calc(4px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    box-shadow: 0 -4px 14px rgba(78, 46, 14, 0.12), inset 0 1px 0 rgba(255, 252, 245, 0.9) !important;
    overflow: hidden !important;
}

.bottom-quick-nav .nav-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    background: transparent !important;
    border: 1px solid transparent !important;
    padding: 4px;
    border-radius: 10px;
    color: #5C4024 !important;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.bottom-quick-nav .nav-tab .tab-icon {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.38rem;
    line-height: 1;
    transition: transform 0.18s ease;
}

.bottom-quick-nav .nav-tab.active {
    color: #78350F !important;
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.2) 0%, rgba(180, 83, 9, 0.08) 100%) !important;
    border: 1px solid rgba(180, 83, 9, 0.45) !important;
    box-shadow: inset 0 1px 0 rgba(255, 252, 245, 0.85) !important;
}

.bottom-quick-nav .nav-tab.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #D97706 0%, #F59E0B 50%, #D97706 100%);
    z-index: 3;
    pointer-events: none;
}

.bottom-quick-nav .nav-tab.active .tab-icon {
    transform: scale(1.1);
    color: #92400E !important;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.span-2, .span-full {
    grid-column: span 2;
}

#realm-hero-container.realm-hero-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    align-items: center;
    position: relative;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 18% 50%, rgba(217, 119, 6, 0.14) 0%, transparent 52%),
        radial-gradient(circle at 88% 16%, rgba(3, 105, 161, 0.1) 0%, transparent 48%),
        linear-gradient(165deg, #FAF6EE 0%, #F4ECE0 58%, #EBE0CE 100%) !important;
    border: 1.5px solid var(--border-gold) !important;
    box-shadow: 0 14px 34px -8px rgba(120, 53, 15, 0.16), 0 0 0 1px rgba(255, 252, 245, 0.85) inset !important;
}

.realm-visual-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-aura {
    position: relative;
    width: 100%;
    max-width: 340px;
    min-height: 250px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.stage-minor-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1.5px solid #F59E0B !important;
    color: #FDE047 !important;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 999px;
    z-index: 6;
    white-space: nowrap;
}

.cultivator-stage-root {
    width: 100%;
    height: 250px !important;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sigil-floating-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, #FEF3C7 0%, #F59E0B 100%) !important;
    border: 2px solid #B45309 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 900;
    color: #78350F !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35);
    z-index: 5;
}

.dimension-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(217, 119, 6, 0.14);
    color: #B45309;
    border: 1px solid rgba(217, 119, 6, 0.38);
}

.stage-rank-tag {
    background: rgba(3, 105, 161, 0.12);
    color: #0369A1;
    border: 1px solid rgba(3, 105, 161, 0.35);
}

.realm-title,
#ui-realm-name {
    display: block !important;
    width: 100% !important;
    font-family: var(--font-display) !important;
    font-size: clamp(1.5rem, 5.4vw, 2.35rem) !important;
    font-weight: 900 !important;
    line-height: 1.24 !important;
    margin: 4px 0 6px !important;
    background-image: linear-gradient(
        112deg,
        #92400E 0%,
        #D97706 32%,
        #F59E0B 48%,
        #0369A1 66%,
        #92400E 100%
    ) !important;
    background-size: 240% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 1px 0 rgba(255, 252, 245, 0.9)) drop-shadow(0 2px 8px rgba(180, 83, 9, 0.22)) !important;
}

#realm-hero-container .dao-hieu-line,
#realm-hero-container .cultivator-alias,
#realm-hero-container .progress-labels,
#realm-hero-container .next-stage-hint {
    color: var(--text-main) !important;
}

.progress-block {
    margin: 10px 0;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.stage-5-steps,
.stage-5-steps-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 8px;
}

.step-dot {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 2px;
    border-radius: 6px;
    background: #EAE2D3 !important;
    color: #57534E !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
}

.step-dot.passed {
    background: rgba(217, 119, 6, 0.16) !important;
    color: #92400E !important;
    border-color: rgba(217, 119, 6, 0.42) !important;
}

.step-dot.active {
    background: linear-gradient(135deg, #D97706, #B45309) !important;
    color: #FAF6EE !important;
    font-weight: 800;
    border-color: #92400E !important;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.28) !important;
}

.next-stage-hint {
    font-size: 0.78rem;
    color: var(--text-muted) !important;
    margin-top: 6px;
    font-weight: 600;
}

.realm-quote {
    font-style: italic;
    font-size: 0.84rem;
    color: #44403C !important;
    border-left: 3px solid var(--gold-bright) !important;
    padding: 7px 12px;
    margin: 10px 0;
    background: rgba(217, 119, 6, 0.09) !important;
    border-radius: 0 8px 8px 0;
}

.hero-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.metric-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.metric-box, .strip-item, .kt-stat, .kpi-card, .pet-stat-item, .sword-stats {
    background: #F3ECE0 !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    color: var(--text-main) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

.metric-box .metric-label, .metric-box .metric-sub, .strip-item span, .kt-stat span, .kpi-card span {
    color: var(--text-muted) !important;
}

.metric-big {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 800;
}

.oled-chrono-card {
    background: linear-gradient(165deg, #FAF6EE 0%, #F2EAE0 100%) !important;
    color: var(--text-main) !important;
    border: 1.5px solid var(--border-gold) !important;
    box-shadow: var(--shadow-card) !important;
}

.chrono-header-bar {
    border-bottom: 1px solid var(--border-subtle) !important;
    flex-wrap: wrap;
}

.oled-badges-cluster, .oled-top-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.oled-pill {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    background: #EAE2D3 !important;
    color: var(--text-main) !important;
    border: 1px solid rgba(146, 64, 14, 0.24) !important;
}

.oled-overtime-pill {
    background: rgba(217, 119, 6, 0.18) !important;
    color: #B45309 !important;
    border-color: #D97706 !important;
    animation: oledBlink 1s infinite alternate;
}

@keyframes oledBlink {
    0% { opacity: 0.75; }
    100% { opacity: 1; }
}

.oled-btn {
    background: #EAE2D3 !important;
    color: var(--text-main) !important;
    border: 1px solid rgba(146, 64, 14, 0.28) !important;
    padding: 9px 14px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s ease;
}

.oled-btn:hover {
    background: #DFD4C0 !important;
    border-color: var(--gold-bright) !important;
    color: #92400E !important;
}

.oled-btn-primary {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    color: #FAF6EE !important;
    border-color: #92400E !important;
    font-size: 0.92rem;
    padding: 12px 20px;
}

.oled-btn-harvest {
    background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%) !important;
    color: #FAF6EE !important;
    border-color: #0369A1 !important;
}

.oled-btn-danger {
    border-color: rgba(190, 18, 60, 0.4) !important;
    color: #BE123C !important;
}

.chrono-layout-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 24px;
    align-items: center;
    padding: 8px 0;
}

.chrono-dial-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chrono-svg-box {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chrono-center-readout {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chrono-digits {
    font-size: 3.3rem;
    font-weight: 800;
    color: var(--text-main) !important;
    letter-spacing: 2px;
    line-height: 1.05;
}

.chrono-status-text {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted) !important;
    margin-top: 6px;
    letter-spacing: 1.5px;
}

.oled-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.oled-select, .oled-input {
    width: 100%;
    background: var(--bg-input) !important;
    border: 1px solid rgba(146, 64, 14, 0.25) !important;
    color: var(--text-main) !important;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    outline: none;
}

.chrono-primary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.chrono-primary-actions .oled-btn {
    flex: 1;
    min-width: 120px;
}

.todo-input-group {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    margin-bottom: 10px;
}

.cyber-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.cyber-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #F3ECE0 !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md);
    color: var(--text-main) !important;
    font-size: 0.86rem;
}

.todo-done {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.65;
}

.schedule-builder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #F3ECE0 !important;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle) !important;
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.timeline-container {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.timeline-row {
    display: grid;
    grid-template-columns: 135px 115px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #FAF6EE !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--cyan-jade) !important;
    border-top: 1px solid var(--border-subtle) !important;
    border-right: 1px solid var(--border-subtle) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    font-size: 0.84rem;
}

.timeline-row.row-wasted {
    border-left-color: var(--crimson-sin) !important;
    background: rgba(254, 226, 226, 0.55) !important;
    color: #881337 !important;
}

.action-bar-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.verdict-box {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: #F5EBE6 !important;
    border: 1px solid rgba(190, 18, 60, 0.35) !important;
}

.verdict-header {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--crimson-sin);
    margin-bottom: 4px;
}

.verdict-body {
    font-size: 0.86rem;
    color: var(--text-main);
}

#audit-main-card.hell-crimson-mode {
    background: linear-gradient(145deg, #FFF1F2 0%, #FFE4E6 55%, #FECDD3 100%) !important;
    color: #881337 !important;
    border: 2px solid #E11D48 !important;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.22) !important;
}

.session-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.sess-btn {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    color: var(--text-main) !important;
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}

.sess-btn.active {
    background: linear-gradient(135deg, #D97706, #B45309) !important;
    color: #FAF6EE !important;
    border-color: #92400E !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.28) !important;
}

.sins-declaration-box {
    background: rgba(254, 226, 226, 0.5) !important;
    border: 1px solid rgba(190, 18, 60, 0.32) !important;
    color: #881337 !important;
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 14px;
}

.sins-declaration-box h4 {
    font-size: 0.8rem;
    color: var(--crimson-sin);
    margin-bottom: 8px;
}

.sin-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    cursor: pointer;
    font-size: 0.86rem;
    color: var(--text-main);
}

.sin-toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--crimson-sin);
}

.audit-preview-panel {
    background: #F3ECE0 !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 14px;
}

.preview-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    padding: 4px 0;
}

.preview-line.total-line {
    border-top: 1px dashed rgba(146, 64, 14, 0.25);
    margin-top: 4px;
    padding-top: 8px;
    font-size: 0.94rem;
}

.boss-stage {
    position: relative;
    text-align: center;
    padding: 14px;
    background: linear-gradient(180deg, #F5ECE0 0%, #EDE0CE 100%) !important;
    color: var(--text-main) !important;
    border: 1.5px solid rgba(190, 18, 60, 0.35) !important;
    border-radius: var(--radius-md);
    overflow: visible !important;
}

.boss-svg-wrap {
    position: relative;
    width: 100% !important;
    height: 225px !important;
    margin: 0 auto 10px !important;
    border-radius: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.boss-core-body {
    transform-origin: center;
    animation: bossMenaceFloat 2.8s ease-in-out infinite alternate;
}

@keyframes bossMenaceFloat {
    0% { transform: translateY(4px) scale(0.98); }
    100% { transform: translateY(-6px) scale(1.03); }
}

.boss-hit-shake {
    animation: bossDamageShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes bossDamageShake {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-12px, -4px) scale(0.94); filter: brightness(1.8); }
    40% { transform: translate(12px, 4px) scale(1.05); }
    60% { transform: translate(-8px, 2px); }
    80% { transform: translate(8px, -2px); }
}

.sigil-mini-boss {
    position: absolute;
    bottom: 6px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid #F59E0B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.boss-title {
    font-family: var(--font-display);
    color: #9F1239 !important;
    font-size: 1.08rem;
    font-weight: 900;
}

.combat-metrics {
    display: flex;
    justify-content: space-around;
    background: #FAF6EE !important;
    border: 1px solid var(--border-subtle) !important;
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-main) !important;
}

.combat-log {
    margin-top: 10px;
    background: #EAE2D3 !important;
    border: 1px solid var(--border-subtle) !important;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    text-align: left;
    min-height: 54px;
    color: var(--text-main) !important;
    white-space: pre-line;
}

.floating-dmg-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 25;
}

.dmg-float-item {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.5rem;
    color: #FB7185;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    animation: floatUpFade 0.95s ease-out forwards;
}

.dmg-float-item.crit {
    font-size: 1.9rem;
    color: #FDE047;
}

.dmg-float-item.dragon-assist {
    top: 56%;
    font-size: 1.15rem;
    color: #38BDF8;
}

@keyframes floatUpFade {
    0% { opacity: 0; transform: translate(-50%, 10px) scale(0.7); }
    25% { opacity: 1; transform: translate(-50%, -15px) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -60px) scale(0.95); }
}

.combat-slash-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}

.slash-blade-arc {
    position: absolute;
    top: 45%;
    left: 10%;
    width: 80%;
    height: 7px;
    background: linear-gradient(90deg, transparent, #ffffff, #38bdf8, #fde047, transparent);
    box-shadow: 0 0 22px #38bdf8;
    border-radius: 999px;
    transform: rotate(-28deg) scaleX(0);
    animation: slashStrikeAnim 0.36s ease-out forwards;
}

.slash-blade-arc.second-slash {
    transform: rotate(28deg) scaleX(0);
    background: linear-gradient(90deg, transparent, #ffffff, #f43f5e, #fde047, transparent);
    animation-delay: 0.1s;
}

@keyframes slashStrikeAnim {
    0% { transform: rotate(-28deg) scaleX(0); opacity: 1; }
    50% { transform: rotate(-28deg) scaleX(1.15); opacity: 1; }
    100% { transform: rotate(-28deg) scaleX(1.3); opacity: 0; }
}

.sword-stage, .pet-stage {
    text-align: center;
    padding: 8px 0;
}

.sword-svg-container, .dragon-svg-container {
    width: 100%;
    height: 180px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
}

.realtime-canvas-mount {
    width: 100%;
    height: 100%;
    display: block;
}

.sword-floating-body {
    transform-origin: center;
    animation: swordHoverAnim 2.5s ease-in-out infinite alternate;
}

@keyframes swordHoverAnim {
    0% { transform: translateY(3px); }
    100% { transform: translateY(-5px); }
}

.sword-milestones-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-top: 8px;
}

.sw-mile {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    border-radius: 6px;
    padding: 5px 2px;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted) !important;
    line-height: 1.25;
}

.sw-mile.unlocked {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(3, 105, 161, 0.12)) !important;
    border-color: var(--gold-bright) !important;
    color: #92400E !important;
}

.sword-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cyber-divider {
    border: none;
    height: 1px;
    background: var(--border-subtle);
    margin: 14px 0;
}

.pet-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 0.78rem;
}

#dragon-svg-root[data-dragon-awake="1"] .dragon-svg-container {
    animation: dragonAwakeFlight 0.9s ease-in-out;
}

@keyframes dragonAwakeFlight {
    0% { transform: scale(1); }
    35% { transform: scale(1.04) translateY(-4px); filter: drop-shadow(0 0 14px #f59e0b); }
    70% { transform: scale(1.02) translateY(2px); }
    100% { transform: scale(1); }
}

.ai-fullscreen-card {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 165px);
}

.ai-header-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-viewport {
    background: #F3ECE0 !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md);
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-viewport-large {
    flex: 1;
    min-height: 52vh;
    max-height: 65vh;
}

.chat-msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 92%;
    line-height: 1.55;
}

.chat-user {
    align-self: flex-end;
    background: rgba(3, 105, 161, 0.12) !important;
    border: 1px solid rgba(3, 105, 161, 0.35) !important;
    color: var(--text-main) !important;
}

.chat-ai {
    align-self: flex-start;
    background: #FAF6EE !important;
    border: 1px solid rgba(217, 119, 6, 0.42) !important;
    color: var(--text-main) !important;
}

.chat-input-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.gacha-compass-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.14), rgba(3, 105, 161, 0.08)) !important;
    border: 1.5px solid var(--border-gold) !important;
    padding: 14px;
    border-radius: var(--radius-md);
}

.compass-wheel {
    font-size: 3.1rem;
    animation: spinCW 20s linear infinite;
}

.shop-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #F3ECE0 !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-md);
}

.sleep-output-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

.sleep-cycle-card {
    background: #F3ECE0 !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.sleep-cycle-card.recommended {
    border-color: var(--gold-bright) !important;
    background: rgba(217, 119, 6, 0.12) !important;
}

.sleep-cycle-card.danger-zone {
    border-color: var(--crimson-sin) !important;
    background: rgba(190, 18, 60, 0.08) !important;
}

.period-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.period-btn {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    color: var(--text-muted) !important;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.period-btn.active {
    background: linear-gradient(135deg, #D97706, #B45309) !important;
    color: #FAF6EE !important;
    border-color: #92400E !important;
}

.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.section-sub-heading {
    font-family: var(--font-display);
    font-size: 0.94rem;
    color: var(--gold-immortal);
    margin-bottom: 8px;
}

.heat-cell {
    background: #F3ECE0 !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-main) !important;
    border-radius: 6px;
    padding: 6px 2px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.heat-cell.perfect {
    border-color: var(--cyan-jade) !important;
    background: rgba(3, 105, 161, 0.14) !important;
}

.achv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.achv-card {
    background: #F3ECE0 !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 0.8rem;
}

.achv-card.unlocked {
    border-color: var(--gold-bright) !important;
    background: rgba(245, 158, 11, 0.14) !important;
}

.cyber-collapse, .cyber-accordion {
    background: #F3ECE0 !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.collapse-summary, .cyber-accordion > summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.84rem;
    color: #92400E !important;
    user-select: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.58);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    z-index: 3000;
}

.modal-card {
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden !important;
    background: var(--bg-card-solid) !important;
    color: var(--text-main) !important;
    border: 2px solid var(--gold-bright) !important;
    padding: 16px !important;
}

#ladder-modal .rank-modal-card {
    background: linear-gradient(165deg, #FAF6EE 0%, #F2E8D5 100%) !important;
    color: var(--text-main) !important;
    border: 2px solid #D97706 !important;
}

#ladder-modal .rank-modal-card > .card-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

#ladder-modal .rank-modal-card > .card-header .ladder-subpage-title-wrap {
    flex: 1 1 180px !important;
    min-width: 0 !important;
}

#ladder-modal .rank-modal-card > .card-header h3 {
    color: #92400E !important;
    font-size: clamp(0.9rem, 3.2vw, 1.08rem) !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

#ladder-modal .rank-modal-card > .card-header #ladder-header-actions {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

#ladder-modal .rank-modal-card > .card-header #btn-instant-crystallize-stars {
    flex: 0 0 auto !important;
    width: auto !important;
    order: 1 !important;
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
}

#ladder-modal .rank-modal-card > .card-header #btn-close-ladder {
    flex: 0 0 auto !important;
    width: auto !important;
    order: 2 !important;
    margin-left: 0 !important;
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
}


.rank-carousel-shell {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px !important;
    align-items: center;
    gap: 8px !important;
    width: 100%;
}

.rank-nav-arrow {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    background: #EAE2D3 !important;
    border: 1.5px solid #D97706 !important;
    color: #92400E !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rank-nav-arrow:hover {
    background: #D97706 !important;
    color: #FAF6EE !important;
}

.rank-carousel-stage {
    min-height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-card-3d {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px 12px !important;
    border-radius: 18px;
    background: linear-gradient(165deg, #FAF6EE 0%, #EFE4D0 100%) !important;
    border: 1.5px solid #D97706 !important;
    color: var(--text-main) !important;
    text-align: center;
    box-shadow: 0 10px 26px rgba(120, 53, 15, 0.16);
}

.rank-preview-canvas-wrap {
    width: 100% !important;
    max-width: 240px !important;
    height: 150px !important;
    margin: 6px auto 10px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #D97706;
    background: radial-gradient(circle at 50% 45%, #181c2b 0%, #060810 100%);
    box-shadow: 0 6px 18px rgba(28, 25, 23, 0.32);
}

.rank-card-3d h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: #92400E !important;
    margin: 6px 0;
}

.rank-minor-5-strip {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.rank-minor-chip {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: #EAE2D3;
    border: 1px solid rgba(146, 64, 14, 0.24);
    color: var(--text-muted);
}

.rank-minor-chip.done {
    background: rgba(3, 105, 161, 0.14);
    border-color: #0284C7;
    color: #0369A1;
}

.rank-minor-chip.current {
    background: linear-gradient(135deg, #D97706, #B45309);
    border-color: #92400E;
    color: #FAF6EE;
}

.rank-dots-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.rank-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    background: #EAE2D3;
    color: var(--text-muted);
    border: 1px solid rgba(146, 64, 14, 0.25);
    cursor: pointer;
}

.rank-dot.active {
    background: #D97706;
    color: #FAF6EE;
    border-color: #92400E;
}

.adm-tabs-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.adm-tab-btn {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    color: var(--text-muted) !important;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.adm-tab-btn.active {
    background: linear-gradient(135deg, #D97706, #B45309) !important;
    color: #FAF6EE !important;
    border-color: #92400E !important;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.admin-action-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.fx-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.78);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
    padding: 20px;
}

.fx-stage {
    max-width: 540px;
    width: 100%;
    padding: 28px 22px;
    border-radius: 22px;
    background: linear-gradient(160deg, #FAF6EE 0%, #EFE4D0 100%);
    border: 2px solid #D97706;
    box-shadow: 0 20px 60px rgba(28, 25, 23, 0.55);
    animation: fxPopIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.fx-cutscene-viewport {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.fx-graphic {
    font-size: 4.5rem;
}

.fx-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 900;
    color: #92400E;
    margin-bottom: 8px;
}

.fx-subtitle {
    font-size: 0.98rem;
    color: var(--text-main);
}

@keyframes fxPopIn {
    0% { transform: scale(0.75); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.toast-container {
    position: fixed;
    bottom: 80px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9500;
    max-width: 350px;
}

.cyber-toast {
    background: #FAF6EE !important;
    border: 1px solid rgba(217, 119, 6, 0.45) !important;
    border-left: 4px solid var(--gold-bright) !important;
    color: var(--text-main) !important;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(120, 53, 15, 0.18);
    font-size: 0.84rem;
    font-weight: 600;
    animation: slideInRight 0.25s ease forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.virtual-battle-Overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #030208;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    user-select: none;
}

.vb-canvas-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.vb-hud-top { position: relative; z-index: 5; padding: 14px 16px; background: linear-gradient(180deg, rgba(5, 4, 14, 0.92) 0%, rgba(5, 4, 14, 0.45) 75%, transparent 100%); display: flex; flex-direction: column; gap: 8px; }
.vb-top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vb-url-pill { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 800; color: #38bdf8; background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(56, 189, 248, 0.45); padding: 4px 10px; border-radius: 999px; }
.vb-skip-btn { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 800; color: #fde047; background: rgba(15, 23, 42, 0.88); border: 1.5px solid #fbbf24; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.vb-boss-header { text-align: center; }
.vb-boss-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: #fde047; }
.vb-boss-sub { font-family: var(--font-mono); font-size: 0.74rem; color: #fda4af; }
.vb-hp-bar-outer { width: 100%; max-width: 560px; height: 16px; margin: 2px auto 0; background: rgba(15, 23, 42, 0.9); border: 1.5px solid #f43f5e; border-radius: 999px; overflow: hidden; position: relative; }
.vb-hp-bar-inner { height: 100%; background: linear-gradient(90deg, #dc2626 0%, #f97316 55%, #fde047 100%); transition: width 0.2s ease-out; }
.vb-hp-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 800; color: #ffffff; }
.vb-hud-bottom { position: relative; z-index: 5; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(0deg, rgba(5, 4, 14, 0.95) 0%, transparent 100%); text-align: center; }
.vb-combat-ticker { font-family: var(--font-mono); font-size: 0.84rem; font-weight: 700; color: #f8fafc; background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(251, 191, 36, 0.45); border-radius: 12px; padding: 10px 14px; max-width: 620px; margin: 0 auto; }

.plan-analytics-overlay { position: fixed; inset: 0; width: 100vw; height: 100dvh; background: var(--bg-void) !important; color: var(--text-main) !important; z-index: 99985; overflow-y: auto; padding: 18px 14px 60px; }
.pa-container { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.pa-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; background: var(--bg-card-solid) !important; border: 1.5px solid var(--border-gold) !important; border-radius: 16px; }
.pa-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pa-card { background: var(--bg-card-solid) !important; border: 1px solid var(--border-subtle) !important; border-radius: 14px; padding: 14px; }

@media (max-width: 960px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .span-2, .span-full {
        grid-column: span 1;
    }
    #realm-hero-container.realm-hero-card, .chrono-layout-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-action-row {
        justify-content: center;
    }
    .sleep-output-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stats-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .achv-grid {
        grid-template-columns: 1fr;
    }
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prestige-epochs-strip {
        grid-template-columns: repeat(3, 1fr);
    }
    .pa-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .schedule-builder, .oled-config-grid, .admin-grid {
        grid-template-columns: 1fr;
    }
    .timeline-row {
        grid-template-columns: 1fr auto;
        gap: 4px;
    }
    .todo-input-group {
        grid-template-columns: 1fr;
    }
    .session-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sleep-output-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .sword-milestones-strip {
        grid-template-columns: repeat(3, 1fr);
    }
    .prestige-epochs-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.realm-hero-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    align-items: center;
    background: linear-gradient(165deg, #FAF6EE 0%, #F4ECE0 58%, #EBE0CE 100%);
    border-color: rgba(217, 119, 6, 0.42);
    transition: all 0.5s ease;
}

.realm-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.dao-hieu-line {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hero-btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.comeback-banner {
    background: linear-gradient(135deg, #FAF6EE, #F3E5C8);
    border: 1px solid #D97706;
    color: #92400E;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.oled-btn-spark {
    border-color: #D97706;
    background: #EAE2D3;
}

.oled-btn-sm {
    padding: 6px 10px;
    font-size: 0.75rem;
}

.diary-full-list {
    max-height: 460px;
}

.sleep-control-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #F3ECE0;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.flex-end {
    justify-content: flex-end;
}

.medical-pathology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pathology-card {
    background: #F3ECE0;
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--gold-immortal);
    border-radius: var(--radius-md);
    padding: 12px;
}

.pathology-card h4 {
    font-size: 0.86rem;
    color: var(--gold-immortal);
    margin-bottom: 4px;
}

.pathology-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.period-filter-group {
    display: flex;
    gap: 6px;
}

.heatmap-strip {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 5px;
}

.backup-control-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.file-upload-label {
    cursor: pointer;
}

@keyframes card3dPop {
    0% { opacity: 0; transform: scale(0.92) translateY(8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.rank-emblem-crest {
    width: 96px;
    height: 96px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #FEF08A 0%, #D97706 65%, #78350F 100%);
    border: 3px solid #FAF6EE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 900;
    color: #1C1917;
    box-shadow: 0 0 28px rgba(217, 119, 6, 0.45);
}

.api-diagnostic-console {
    background: #1C1917;
    color: #38BDF8;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 12px;
    border-radius: var(--radius-md);
    max-height: 220px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.fx-overlay[data-cutscene-type="gacha"] .fx-graphic {
    animation: compassSpinFast 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fx-overlay[data-cutscene-type="forge"] .fx-graphic {
    animation: hammerForgeSmash 0.65s ease-out;
}

.fx-overlay[data-cutscene-type="dragon"] .fx-graphic {
    animation: dragonRoarPulse 0.85s ease-in-out infinite alternate;
}

.fx-overlay[data-cutscene-type="decree"] .fx-stage {
    background: linear-gradient(135deg, #FAF6EE 0%, #F5E5C6 50%, #EFE0C2 100%);
    border-color: #D97706;
}

@keyframes compassSpinFast {
    0% { transform: rotate(0deg) scale(0.5); }
    75% { transform: rotate(1080deg) scale(1.25); }
    100% { transform: rotate(1080deg) scale(1); }
}

@keyframes hammerForgeSmash {
    0% { transform: translateY(-60px) rotate(-45deg) scale(1.3); }
    45% { transform: translateY(10px) rotate(10deg) scale(0.95); filter: drop-shadow(0 0 25px #F59E0B); }
    100% { transform: translateY(0) rotate(0deg) scale(1.1); }
}

@keyframes dragonRoarPulse {
    0% { transform: scale(0.96); opacity: 0.9; }
    100% { transform: scale(1.12); opacity: 1; }
}

@keyframes realmLightSweep {
    0% {
        background-position: 200% 50%;
    }
    100% {
        background-position: -60% 50%;
    }
}

@keyframes supremeEmperorBorder {
    0%, 100% {
        border-color: rgba(217, 119, 6, 0.88);
    }
    50% {
        border-color: rgba(190, 18, 60, 0.85);
    }
}

.hidden {
    display: none !important;
}

body {
    background-color: #F2ECE1 !important;
    background-image:
        radial-gradient(circle at 50% -5%, var(--realm-bleed-1, rgba(217, 119, 6, 0.16)) 0%, transparent 58%),
        radial-gradient(circle at 85% 95%, var(--realm-bleed-2, rgba(3, 105, 161, 0.12)) 0%, transparent 50%) !important;
    background-attachment: scroll !important;
    color: #1C1917 !important;
}

.tab-pane.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 0 8px 0 !important;
}

.bento-grid {
    gap: 12px !important;
}

.cyber-card {
    background: rgba(250, 246, 238, 0.96) !important;
    border: 1px solid rgba(146, 64, 14, 0.18) !important;
    border-top: 1.5px solid var(--realm-border-glow, rgba(217, 119, 6, 0.42)) !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 10px 28px -8px rgba(120, 53, 15, 0.12), 0 4px 12px -2px rgba(28, 25, 23, 0.05) !important;
}


#sidebar-drawer .sidebar-resources,
#sidebar-drawer .sidebar-stats-grid,
#sidebar-drawer .resource-pill-grid {
    display: none !important;
}

.step-dot,
.adm-tab-btn,
.period-btn,
.sess-btn,
.btn-purple-glow,
.btn-matte-tool {
    background: #EAE2D3 !important;
    color: #57534E !important;
    border: 1px solid rgba(146, 64, 14, 0.24) !important;
    box-shadow: none !important;
}

.step-dot.passed {
    background: rgba(3, 105, 161, 0.12) !important;
    color: #0369A1 !important;
    border-color: rgba(3, 105, 161, 0.38) !important;
}

.step-dot.active,
.adm-tab-btn.active,
.period-btn.active,
.sess-btn.active {
    background: linear-gradient(90deg, #D97706 0%, #B45309 100%) !important;
    color: #FAF6EE !important;
    border-color: #92400E !important;
    font-weight: 800 !important;
}

.btn-matte-tool:hover {
    background: #E2D6C1 !important;
    border-color: #B45309 !important;
    color: #92400E !important;
}

.card-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.card-header-row h3 {
    font-size: 1.0rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    color: #1C1917 !important;
}

#realm-hero-container .realm-title,
#realm-hero-container #ui-realm-name,
.realm-title,
#ui-realm-name {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-family: 'Chakra Petch', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    font-size: clamp(1.75rem, 6.8vw, 2.75rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.22 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow: visible !important;
    margin: 6px auto 6px !important;
    padding: 2px 4px !important;
    background-color: transparent !important;
    background-image: linear-gradient(
        112deg,
        var(--realm-border-glow, #92400E) 0%,
        var(--realm-border-glow, #B45309) 36%,
        #D97706 47%,
        #F59E0B 50%,
        #D97706 53%,
        var(--realm-sec-glow, #0369A1) 64%,
        var(--realm-border-glow, #92400E) 100%
    ) !important;
    background-size: 260% 100% !important;
    background-repeat: repeat !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(0 1px 0 rgba(255, 252, 245, 0.95)) drop-shadow(0 2px 10px var(--realm-title-shadow, rgba(217, 119, 6, 0.28))) !important;
    will-change: background-position;
    animation: realmLightSweep 2.6s linear infinite !important;
}

#realm-hero-container[data-realm-id="12"] {
    background: var(
        --realm-card-surface,
        radial-gradient(circle at 50% 0%, var(--realm-bleed-1, rgba(245, 158, 11, 0.22)) 0%, var(--realm-bleed-2, rgba(190, 18, 60, 0.12)) 45%, rgba(250, 246, 238, 0.98) 88%),
        linear-gradient(180deg, #FAF6EE 0%, #EFE2CC 100%)
    ) !important;
    border: 2px solid var(--realm-border-glow, #D97706) !important;
    box-shadow: 0 10px 32px var(--realm-bleed-1, rgba(180, 83, 9, 0.22)), inset 0 0 22px var(--realm-bleed-2, rgba(245, 158, 11, 0.14)) !important;
}

#realm-hero-container[data-realm-id="12"] .realm-title,
#realm-hero-container[data-realm-id="12"] #ui-realm-name {
    font-size: clamp(1.42rem, 5.4vw, 2.35rem) !important;
    letter-spacing: 0.05em !important;
    background-image: var(
        --realm-title-grad,
        linear-gradient(112deg, #92400E 0%, #D97706 28%, #BE123C 50%, #0369A1 72%, #92400E 100%)
    ) !important;
    background-size: 260% 100% !important;
    background-repeat: repeat !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 1px 0 rgba(255, 252, 245, 0.95)) drop-shadow(0 2px 12px var(--realm-title-shadow, rgba(217, 119, 6, 0.36))) !important;
    animation: realmLightSweep 2.4s linear infinite !important;
}

.realm-header {
    padding-top: 6px !important;
}

.cultivator-alias {
    font-size: 0.82rem !important;
    color: #57534E !important;
    margin: 0 0 6px 0 !important;
}

.realm-progress-box {
    margin: 6px 0 !important;
}

.next-stage-hint {
    font-size: 0.76rem !important;
    margin: 4px 0 !important;
    color: #57534E !important;
}

.realm-quote {
    font-size: 0.78rem !important;
    padding: 6px 10px !important;
    margin: 6px 0 8px 0 !important;
    background: rgba(217, 119, 6, 0.09) !important;
    border-left: 3px solid var(--realm-border-glow, #D97706) !important;
    border-radius: 6px !important;
    color: #44403C !important;
}

.hero-action-row {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 6px !important;
}

.hero-action-row .cyber-btn {
    flex: 1 1 160px !important;
    padding: 9px 12px !important;
    font-size: 0.82rem !important;
}

.dashboard-todo-Command-card {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    background: rgba(250, 246, 238, 0.96) !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    border-left: 3px solid var(--realm-border-glow, #D97706) !important;
    border-radius: 14px !important;
}

.dash-todo-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.dash-todo-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.dash-todo-beacon {
    font-size: 1.15rem !important;
}

.dash-todo-heading {
    margin: 0 !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #1C1917 !important;
}

.dash-todo-sub {
    display: none !important;
}

.dash-todo-progress-track {
    width: 100% !important;
    height: 6px !important;
    background: #DFD5C3 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
}

.dash-todo-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #0369A1 0%, #0284C7 100%) !important;
    transition: width 0.3s ease !important;
}

.dash-todo-progress-fill.full-gold {
    background: linear-gradient(90deg, #B45309 0%, #F59E0B 100%) !important;
}

.dash-todo-quick-form {
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    gap: 6px !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.dash-todo-quick-form .cyber-input {
    min-width: 0 !important;
    padding: 8px 10px !important;
    font-size: 0.84rem !important;
    background: #EAE2D3 !important;
    color: #1C1917 !important;
}

.dash-todo-list-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    max-height: 220px !important;
    overflow-y: auto !important;
}

.dash-todo-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.18) !important;
    border-left: 3px solid #0369A1 !important;
}

.dash-todo-item.is-done {
    border-left-color: #D97706 !important;
    opacity: 0.65 !important;
}

.dash-todo-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.dash-todo-index {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: #B45309 !important;
}

.dash-todo-title {
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    color: #1C1917 !important;
    word-break: break-word !important;
}

.dash-todo-item.is-done .dash-todo-title {
    text-decoration: line-through !important;
    color: #78716C !important;
}

.dash-todo-meta {
    font-size: 0.68rem !important;
    color: #0369A1 !important;
    display: block !important;
}

.dash-todo-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
}

.dash-todo-empty {
    text-align: center !important;
    padding: 10px !important;
    font-size: 0.8rem !important;
    color: #57534E !important;
    border: 1px dashed rgba(146, 64, 14, 0.25) !important;
    border-radius: 8px !important;
}



#chrono-reactor-card .oled-adjust-bar {
    display: none !important;
}

.chrono-header-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

.chrono-header-bar .oled-badges-cluster {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 1 130px !important;
    min-width: 0 !important;
}

.chrono-header-bar #chrono-today-sessions-badge {
    font-size: 0.72rem !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

.chrono-header-actions,
.oled-top-btns {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    margin-left: auto !important;
}

.chrono-header-actions .cyber-btn,
#btn-chrono-10m-spark,
#btn-chrono-zen-toggle {
    padding: 7px 11px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: max-content !important;
    flex-shrink: 0 !important;
    background: #EAE2D3 !important;
    color: #1C1917 !important;
    border: 1px solid rgba(146, 64, 14, 0.28) !important;
    box-shadow: none !important;
}

#chrono-config-inputs:not(.hidden) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}

#chrono-config-inputs.hidden {
    display: none !important;
}

#chrono-config-inputs .field-group:last-child {
    grid-column: 1 / -1 !important;
}

.micro-battle-strip {
    margin-top: 10px !important;
    padding: 8px 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.chrono-edit-toggle-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 8px !important;
}

.chrono-edit-deck {
    width: 100% !important;
    margin-top: 8px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.25) !important;
}

body.chrono-zen-mode .top-header,
body.chrono-zen-mode .bottom-quick-nav,
body.chrono-zen-mode #future-mail-top-banner,
body.chrono-zen-mode #bg-canvas {
    display: none !important;
}

body.chrono-zen-mode .app-shell,
body.chrono-zen-mode .viewport,
body.chrono-zen-mode .tab-pane.active,
body.chrono-zen-mode .bento-grid {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

body.chrono-zen-mode #chrono-reactor-card {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 16px 20px !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 99990 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    overflow: hidden !important;
}

body.chrono-zen-mode #chrono-reactor-card:not(.chrono-theme-oled) {
    background: #FAF6EE !important;
}

body.chrono-zen-mode #chrono-reactor-card.chrono-theme-oled {
    background: #080B12 !important;
}

body.chrono-zen-mode .chrono-edit-deck,
body.chrono-zen-mode .chrono-edit-toggle-wrap,
body.chrono-zen-mode .micro-battle-strip {
    display: none !important;
}

body.chrono-zen-mode .chrono-layout-grid {
    flex: 1 1 auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px !important;
}

body.chrono-zen-mode #chrono-reactor-card .chrono-dial-wrap {
    width: 100% !important;
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body.chrono-zen-mode #chrono-reactor-card .chrono-svg-box {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

body.chrono-zen-mode #chrono-reactor-card .chrono-svg-box svg {
    display: none !important;
}

body.chrono-zen-mode #chrono-reactor-card .chrono-center-readout {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

body.chrono-zen-mode #chrono-reactor-card .chrono-digits,
body.chrono-zen-mode #chrono-reactor-card #chrono-time-display {
    font-size: clamp(4.8rem, min(22vw, 38dvh), 15rem) !important;
    line-height: 1 !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
    text-align: center !important;
}

body.chrono-zen-mode #chrono-reactor-card #chrono-state-label {
    opacity: 0.26 !important;
    font-size: clamp(0.72rem, 1.8vw, 0.92rem) !important;
    letter-spacing: 0.16em !important;
    max-width: 90vw !important;
    margin-top: 14px !important;
    font-weight: 600 !important;
}

@media (orientation: landscape) and (max-height: 640px) {
    html body:has(#tab-dongho.active) .top-header,
    html body:has(#tab-dongho.active) .bottom-quick-nav,
    html body:has(#tab-dongho.active) #future-mail-top-banner,
    html body:has(#tab-dongho.active) #bg-canvas {
        display: none !important;
    }

    html body:has(#tab-dongho.active) .app-shell,
    html body:has(#tab-dongho.active) .viewport,
    html body:has(#tab-dongho.active) .tab-pane.active,
    html body:has(#tab-dongho.active) .bento-grid {
        animation: none !important;
        transform: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100vw !important;
        height: 100dvh !important;
    }

    html body.chrono-zen-mode #chrono-reactor-card,
    html body:has(#tab-dongho.active) #chrono-reactor-card {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        padding: 12px 24px !important;
        margin: 0 !important;
        z-index: 99990 !important;
        border: none !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    html body.chrono-zen-mode #chrono-reactor-card .chrono-header-bar,
    html body:has(#tab-dongho.active) #chrono-reactor-card .chrono-header-bar {
        position: absolute !important;
        top: 10px !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        margin: 0 !important;
        padding-bottom: 6px !important;
        z-index: 25 !important;
        border-bottom: none !important;
    }

    html body:has(#tab-dongho.active) .chrono-edit-deck,
    html body:has(#tab-dongho.active) .chrono-edit-toggle-wrap,
    html body:has(#tab-dongho.active) .micro-battle-strip {
        display: none !important;
    }

    html body:has(#tab-dongho.active) #chrono-reactor-card .chrono-layout-grid {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        gap: 16px !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    html body.chrono-zen-mode #chrono-reactor-card:not(.chrono-controls-awake) .chrono-controls-wrap,
    html body:has(#tab-dongho.active) #chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) .chrono-controls-wrap {
        display: none !important;
        width: 0 !important;
        max-width: 0 !important;
        flex: 0 0 0 !important;
        overflow: hidden !important;
    }

    html body.chrono-zen-mode #chrono-reactor-card.chrono-controls-awake .chrono-controls-wrap,
    html body:has(#tab-dongho.active) #chrono-reactor-card.chrono-is-running.chrono-controls-awake .chrono-controls-wrap {
        position: absolute !important;
        bottom: 14px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: min(92vw, 460px) !important;
        z-index: 30 !important;
        background: rgba(250, 246, 238, 0.96) !important;
        padding: 8px 12px !important;
        border-radius: 12px !important;
        border: 1.5px solid #D97706 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
    }

    html body:has(#tab-dongho.active) #chrono-reactor-card.chrono-theme-oled.chrono-is-running.chrono-controls-awake .chrono-controls-wrap {
        background: rgba(15, 23, 42, 0.96) !important;
        border-color: #38BDF8 !important;
    }

    html body.chrono-zen-mode #chrono-reactor-card .chrono-dial-wrap,
    html body:has(#tab-dongho.active) #chrono-reactor-card .chrono-dial-wrap {
        flex: 1 1 auto !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
    }

    html body.chrono-zen-mode #chrono-reactor-card .chrono-svg-box,
    html body:has(#tab-dongho.active) #chrono-reactor-card .chrono-svg-box {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
    }

    html body.chrono-zen-mode #chrono-reactor-card .chrono-svg-box svg,
    html body:has(#tab-dongho.active) #chrono-reactor-card .chrono-svg-box svg {
        display: none !important;
    }

    html body.chrono-zen-mode #chrono-reactor-card .chrono-center-readout,
    html body:has(#tab-dongho.active) #chrono-reactor-card .chrono-center-readout {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
    }

    html body.chrono-zen-mode #chrono-reactor-card .chrono-digits,
    html body:has(#tab-dongho.active) #chrono-reactor-card .chrono-digits,
    html body:has(#tab-dongho.active) #chrono-reactor-card #chrono-time-display {
        font-size: clamp(4.6rem, min(22vw, 44dvh), 14rem) !important;
        line-height: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    html body.chrono-zen-mode #chrono-reactor-card #chrono-state-label,
    html body:has(#tab-dongho.active) #chrono-reactor-card #chrono-state-label {
        opacity: 0.26 !important;
        font-size: clamp(0.7rem, 2.5dvh, 0.88rem) !important;
        max-width: 90vw !important;
        margin-top: 10px !important;
    }
}

.session-selector-grid,
#audit-session-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
}

.session-selector-grid .sess-btn {
    padding: 9px 4px !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
}

.sins-check-box {
    padding: 10px 12px !important;
    margin-bottom: 10px !important;
}

.cyber-checkbox-row {
    font-size: 0.83rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.audit-preview-box {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px 12px !important;
    padding: 10px 12px !important;
    margin-bottom: 10px !important;
}

.audit-preview-box .preview-line {
    font-size: 0.78rem !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    border: none !important;
}

.audit-preview-box .preview-line.total-line {
    grid-column: 1 / -1 !important;
    border-top: 1px dashed rgba(146, 64, 14, 0.25) !important;
    padding-top: 6px !important;
}

.sword-milestones-strip {
    display: flex !important;
    justify-content: space-between !important;
    gap: 4px !important;
    margin: 8px 0 10px 0 !important;
    overflow-x: auto !important;
}

.sword-milestones-strip .sw-mile {
    flex: 1 1 0 !important;
    padding: 5px 4px !important;
    border-radius: 8px !important;
    text-align: center !important;
    min-width: 54px !important;
}

.sword-milestones-strip .sw-mile span {
    font-size: 0.68rem !important;
    display: block !important;
}

.sword-milestones-strip .sw-mile small {
    font-size: 0.6rem !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.pet-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin: 8px 0 10px 0 !important;
}

.pet-stat-box {
    padding: 7px 10px !important;
    border-radius: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px !important;
}

.pet-stat-box span {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
}

.pet-stat-box strong {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
}

.sleep-controls-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    align-items: end !important;
}

.sleep-controls-grid .field-group {
    margin-bottom: 0 !important;
}

.sleep-controls-grid .field-group label {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.sleep-cycle-card {
    position: relative !important;
    overflow: hidden !important;
    padding: 14px 12px !important;
    border-radius: 12px !important;
    text-align: center !important;
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    box-shadow: none !important;
    transition: border-color 0.16s ease !important;
}

.sleep-cycle-pill {
    display: inline-block !important;
    width: 100% !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    color: #57534E !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.sleep-cycle-card.sleep-tier-1 {
    background: linear-gradient(165deg, #FAF6EE 0%, #F5E6C8 100%) !important;
    border: 1.5px solid #D97706 !important;
    box-shadow: none !important;
}

.sleep-cycle-card.sleep-tier-1 .sleep-cycle-pill {
    background: rgba(217, 119, 6, 0.16) !important;
    border: 1px solid rgba(180, 83, 9, 0.45) !important;
    color: #92400E !important;
}

.sleep-cycle-card.sleep-tier-1 .sleep-hero-time {
    color: #92400E !important;
    font-size: 2.15rem !important;
    text-shadow: none !important;
}

.sleep-cycle-card.sleep-tier-2 {
    background: #FAF6EE !important;
    border: 1px solid rgba(3, 105, 161, 0.35) !important;
    box-shadow: none !important;
}

.sleep-cycle-card.sleep-tier-2 .sleep-cycle-pill {
    background: rgba(3, 105, 161, 0.1) !important;
    border: 1px solid rgba(3, 105, 161, 0.3) !important;
    color: #0369A1 !important;
}

.sleep-cycle-card.sleep-tier-2 .sleep-hero-time {
    color: #0369A1 !important;
    font-size: 2.02rem !important;
    text-shadow: none !important;
}

.sleep-cycle-card.sleep-tier-3 {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.18) !important;
    box-shadow: none !important;
    opacity: 0.85 !important;
}

.sleep-cycle-card.sleep-tier-3 .sleep-cycle-pill {
    background: rgba(146, 64, 14, 0.1) !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    color: #57534E !important;
}

.sleep-cycle-card.sleep-tier-3 .sleep-hero-time {
    color: #57534E !important;
    font-size: 1.85rem !important;
    text-shadow: none !important;
}

.sleep-cycle-card.is-selected-cycle {
    border-color: #B45309 !important;
    transform: none !important;
}

@media (max-width: 640px) {
    .sleep-controls-grid {
        grid-template-columns: 1fr !important;
    }
}

.shop-item-card {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
}

#tab-nhatky .card-header-row .cyber-btn {
    background: #EAE2D3 !important;
    color: #1C1917 !important;
    border: 1px solid rgba(146, 64, 14, 0.25) !important;
    box-shadow: none !important;
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
}

.diary-search-bar {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 10px 0 !important;
}

.diary-search-bar .cyber-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.diary-search-bar #diary-total-badge {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.72rem !important;
}

.diary-jade-card {
    list-style: none !important;
    padding: 12px 14px !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
    background: #FAF6EE !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    border-left: 3px solid #0369A1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.achv-card {
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
}

.achv-card span {
    color: #1C1917 !important;
}

.achv-card.unlocked {
    border-color: rgba(217, 119, 6, 0.55) !important;
    background: linear-gradient(145deg, #FAF6EE 0%, #F4E6CC 100%) !important;
}

.achv-card.unlocked span:first-child {
    color: #92400E !important;
}

.biorhythm-heatmap,
#biorhythm-heatmap {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 720px) {
    .biorhythm-heatmap,
    #biorhythm-heatmap {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
}

@media (max-width: 420px) {
    .biorhythm-heatmap,
    #biorhythm-heatmap {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
}

.heat-cell {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-width: 0 !important;
    min-height: 64px !important;
    padding: 6px 4px !important;
    font-size: 0.68rem !important;
    border-radius: 6px !important;
    background: linear-gradient(180deg, #FAF3E3 0%, #EFE0C4 100%) !important;
    border: 1.5px solid rgba(120, 68, 20, 0.32) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.heat-cell.perfect {
    border: 2px double #0369A1 !important;
    background: linear-gradient(180deg, #F0F9FF 0%, #E0F2FE 100%) !important;
}

.heat-cell > div {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.heat-cell .heat-time-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    width: 100% !important;
    padding: 2px 3px !important;
    margin-top: 1px !important;
    border-radius: 4px !important;
    background: rgba(120, 53, 15, 0.08) !important;
    border: 1px solid rgba(120, 53, 15, 0.2) !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.60rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #78350F !important;
    white-space: nowrap !important;
}

.backup-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.backup-bar .cyber-btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.78rem !important;
    padding: 9px 8px !important;
}

body.admin-subpage-open #admin-vault-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: #F2ECE1 !important;
    z-index: 99995 !important;
    padding: 0 !important;
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

body.admin-subpage-open #admin-vault-modal .admin-modal-wide,
body.admin-subpage-open #admin-vault-modal .modal-card {
    width: 100% !important;
    max-width: 1080px !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    border: none !important;
    background: #FAF6EE !important;
    display: block !important;
    padding: 14px 14px 40px 14px !important;
    overflow: visible !important;
}

#admin-vault-modal .adm-tabs-nav {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    overflow: visible !important;
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid rgba(146, 64, 14, 0.2) !important;
    height: auto !important;
    min-height: max-content !important;
}

#admin-vault-modal .adm-tabs-nav .adm-tab-btn {
    width: 100% !important;
    padding: 9px 6px !important;
    font-size: 0.76rem !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#admin-vault-modal .adm-tabs-nav .adm-tab-btn:last-child {
    grid-column: 1 / -1 !important;
}

#admin-vault-modal .admin-action-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(146, 64, 14, 0.2) !important;
}

#admin-vault-modal .admin-action-footer #btn-adm-save-all {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    padding: 12px !important;
    font-size: 0.88rem !important;
}

@media (min-width: 768px) {
    #admin-vault-modal .adm-tabs-nav {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    #admin-vault-modal .adm-tabs-nav .adm-tab-btn:last-child {
        grid-column: auto !important;
    }
}

.adm-diag-kpi-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 8px !important;
    margin-top: 8px !important;
}

.adm-diag-kpi {
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.25) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.adm-diag-kpi span {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #57534E !important;
}

.adm-diag-kpi strong {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.86rem !important;
    word-break: break-all !important;
}

.admin-api-console {
    background: #1C1917 !important;
    color: #FAF6EE !important;
    border: 1px solid rgba(217, 119, 6, 0.4) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.78rem !important;
    line-height: 1.55 !important;
    max-height: 360px !important;
    overflow-y: auto !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

.schedule-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    align-items: end !important;
}

.schedule-form-grid .field-group.span-2 {
    grid-column: 1 / -1 !important;
}
html,
body {
    background-color: #F2ECE1 !important;
    background-image:
        radial-gradient(circle at 50% -5%, var(--realm-bleed-1, rgba(217, 119, 6, 0.16)) 0%, transparent 58%),
        radial-gradient(circle at 85% 95%, var(--realm-bleed-2, rgba(3, 105, 161, 0.12)) 0%, transparent 52%),
        linear-gradient(180deg, #F5EFE6 0%, #F2ECE1 55%, #ECE3D3 100%) !important;
    color: #1C1917 !important;
}


.cyber-card {
    background: rgba(250, 246, 238, 0.96) !important;
    border: 1px solid rgba(146, 64, 14, 0.18) !important;
    border-top: 1.5px solid var(--realm-border-glow, rgba(217, 119, 6, 0.42)) !important;
    box-shadow: 0 10px 28px -8px rgba(120, 53, 15, 0.12), 0 4px 12px -2px rgba(28, 25, 23, 0.05) !important;
}

@keyframes realmSovereignCrownFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#realm-hero-container.realm-hero-card {
    position: relative !important;
    overflow: visible !important;
    background:
        radial-gradient(circle at 18% 50%, var(--realm-bleed-1, rgba(217, 119, 6, 0.14)) 0%, transparent 52%),
        radial-gradient(circle at 88% 16%, var(--realm-bleed-2, rgba(3, 105, 161, 0.1)) 0%, transparent 48%),
        linear-gradient(145deg, #FAF6EE 0%, #F4ECE0 58%, #EBE0CE 100%) !important;
    border: 1.5px solid var(--realm-border-glow, #D97706) !important;
    box-shadow:
        0 14px 32px -8px rgba(120, 53, 15, 0.18),
        inset 0 0 0 2px rgba(255, 252, 245, 0.85) !important;
    animation: none !important;
}

#realm-hero-container::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 12px !important;
    right: 12px !important;
    height: 3px !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--realm-border-glow, #D97706) 20%,
        #FAF6EE 50%,
        var(--realm-sec-glow, #0284C7) 80%,
        transparent 100%
    ) !important;
    opacity: 0.9 !important;
    z-index: 4 !important;
}

#realm-hero-container::after {
    display: none !important;
    content: none !important;
}

#realm-hero-container > * {
    position: relative !important;
    z-index: 2 !important;
}

#realm-hero-container .cultivator-stage-root {
    border: 2px solid var(--realm-border-glow, #D97706) !important;
    box-shadow:
        0 8px 24px rgba(28, 25, 23, 0.35),
        inset 0 0 18px var(--realm-bleed-1, rgba(217, 119, 6, 0.22)) !important;
}

#realm-hero-container #ui-realm-bar {
    background: linear-gradient(
        90deg,
        #0369A1 0%,
        #D97706 75%,
        #F59E0B 100%
    ) !important;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.32) !important;
}

.cyber-input,
.cyber-select,
.cyber-textarea {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.24) !important;
    color: #1C1917 !important;
}

.cyber-input:focus,
.cyber-select:focus,
.cyber-textarea:focus {
    background: #FAF6EE !important;
    border-color: #D97706 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15) !important;
}

.metric-box,
.kpi-card,
.pet-stat-item,
.sword-stats,
.audit-preview-panel,
.schedule-fast-builder,
.cyber-collapse,
.cyber-list li,
.timeline-row,
.shop-item-card {
    background: #F3ECE0 !important;
    border-color: rgba(146, 64, 14, 0.18) !important;
    color: #1C1917 !important;
}

.btn-cyan,
#btn-add-schedule,
#btn-add-todo,
#btn-run-sleep-analysis,
#btn-send-ai,
#btn-unlock-gate {
    background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%) !important;
    border: 1px solid #0369A1 !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.22) !important;
}

.btn-gold,
#btn-ai-judge-schedule,
#btn-execute-audit {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    border: 1px solid #92400E !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.22) !important;
}



#chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) .chrono-header-bar,
#chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) #chrono-today-sessions-badge,
#chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) #btn-chrono-10m-spark,
#chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) #btn-chrono-zen-toggle,
#chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) .chrono-primary-actions,
#chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) #btn-chrono-pause,
#chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) #btn-chrono-reset,
#chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) #btn-chrono-finish,
#chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) .micro-battle-strip,
#chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) .chrono-edit-toggle-wrap,
body.chrono-running-active:not(.chrono-controls-awake):has(#tab-dongho.active) .bottom-quick-nav,
body.chrono-running-active:not(.chrono-controls-awake):has(#tab-dongho.active) .top-header {
    opacity: 0 !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transition: opacity 0.25s ease !important;
}

#chrono-reactor-card.chrono-is-running.chrono-controls-awake .chrono-header-bar,
#chrono-reactor-card.chrono-is-running.chrono-controls-awake #chrono-today-sessions-badge,
#chrono-reactor-card.chrono-is-running.chrono-controls-awake #btn-chrono-10m-spark,
#chrono-reactor-card.chrono-is-running.chrono-controls-awake #btn-chrono-zen-toggle,
#chrono-reactor-card.chrono-is-running.chrono-controls-awake .chrono-primary-actions,
#chrono-reactor-card.chrono-is-running.chrono-controls-awake #btn-chrono-pause,
#chrono-reactor-card.chrono-is-running.chrono-controls-awake #btn-chrono-reset,
#chrono-reactor-card.chrono-is-running.chrono-controls-awake #btn-chrono-finish,
#chrono-reactor-card.chrono-is-running.chrono-controls-awake .micro-battle-strip,
#chrono-reactor-card.chrono-is-running.chrono-controls-awake .chrono-edit-toggle-wrap,
body.chrono-running-active.chrono-controls-awake:has(#tab-dongho.active) .bottom-quick-nav,
body.chrono-running-active.chrono-controls-awake:has(#tab-dongho.active) .top-header {
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: opacity 0.22s ease !important;
}

.future-mail-banner {
    max-width: 1280px !important;
    margin: 6px auto 0 !important;
    background: linear-gradient(135deg, #FAF6EE 0%, #F3E5C8 100%) !important;
    border: 1.5px solid #D97706 !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.12) !important;
    animation: none !important;
}

.future-mail-title-cluster {
    color: #92400E !important;
    font-size: 0.82rem !important;
    gap: 6px !important;
}

.future-mail-banner-body {
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px dashed rgba(180, 83, 9, 0.32) !important;
    gap: 4px !important;
}

.future-mail-item {
    background: #FAF6EE !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    border-left: 3px solid #D97706 !important;
    font-size: 0.8rem !important;
    color: #1C1917 !important;
}

.future-mail-compact-form {
    display: grid !important;
    grid-template-columns: 1fr 90px auto !important;
    gap: 6px !important;
    align-items: center !important;
}

.future-mail-compact-form .cyber-input,
.future-mail-compact-form .cyber-btn {
    height: 36px !important;
    padding: 6px 10px !important;
    font-size: 0.82rem !important;
}

.sch-preset-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin-bottom: 10px !important;
}

.sch-preset-strip .cyber-btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
}

.diary-jade-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
}

.diary-date-pill {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #0369A1 !important;
}

.diary-jade-actions {
    display: flex !important;
    gap: 5px !important;
}

.diary-jade-body {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    color: #1C1917 !important;
    white-space: pre-wrap !important;
}

.diary-summary-master-card {
    background: linear-gradient(145deg, #FAF6EE 0%, #F4E7CE 100%) !important;
    border: 1.5px solid rgba(217, 119, 6, 0.45) !important;
}

.diary-confide-card {
    background: #F3ECE0 !important;
    border: 1px solid rgba(3, 105, 161, 0.35) !important;
}

.fx-overlay {
    background: radial-gradient(circle at 50% 50%, rgba(28, 25, 23, 0.72) 0%, rgba(15, 12, 10, 0.88) 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.fx-stage {
    position: relative !important;
    max-width: 520px !important;
    width: 100% !important;
    padding: 28px 24px !important;
    border-radius: 18px !important;
    background: linear-gradient(160deg, #FAF6EE 0%, #F4E8D2 55%, #EDE0C6 100%) !important;
    border: 2px solid #D97706 !important;
    box-shadow: 0 24px 64px rgba(28, 25, 23, 0.55), 0 0 32px rgba(217, 119, 6, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    overflow: hidden !important;
}

.fx-stage::before,
.fx-stage::after {
    content: "" !important;
    position: absolute !important;
    left: 12% !important;
    right: 12% !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #D97706, #B45309, #D97706, transparent) !important;
}

.fx-stage::before {
    top: 0 !important;
}

.fx-stage::after {
    bottom: 0 !important;
}

.fx-stage-imperial-enter {
    animation: imperialDecreeUnfold 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes imperialDecreeUnfold {
    0% {
        opacity: 0;
        transform: scale(0.84) translateY(16px);
        filter: brightness(1.3);
    }
    60% {
        opacity: 1;
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: brightness(1);
    }
}

.fx-graphic {
    font-size: 4.2rem !important;
    filter: drop-shadow(0 4px 16px rgba(180, 83, 9, 0.38)) !important;
}

.fx-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.35rem, 4.8vw, 1.85rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    background: linear-gradient(180deg, #78350F 0%, #B45309 45%, #D97706 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9)) !important;
    margin-bottom: 8px !important;
}

.fx-subtitle {
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
    color: #1C1917 !important;
}

.slash-impact-ring {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #F59E0B;
    transform: translate(-50%, -50%) scale(0.2);
    animation: combatImpactPulse 0.44s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes combatImpactPulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(6.5);
    }
}

.slash-blade-arc.third-crit-slash {
    top: 48%;
    left: 6%;
    width: 88%;
    height: 9px;
    background: linear-gradient(90deg, transparent, #ffffff, #fde047, #f43f5e, transparent);
    box-shadow: 0 0 28px #fde047;
    transform: rotate(-4deg) scaleX(0);
    animation: critThirdSlashAnim 0.42s ease-out 0.14s forwards;
}

@keyframes critThirdSlashAnim {
    0% {
        transform: rotate(-4deg) scaleX(0);
        opacity: 1;
    }
    55% {
        transform: rotate(-4deg) scaleX(1.18);
        opacity: 1;
    }
    100% {
        transform: rotate(-4deg) scaleX(1.32);
        opacity: 0;
    }
}

.bio-metrics-trio {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.bio-metrics-trio .kpi-card {
    padding: 12px 10px !important;
    border-radius: 12px !important;
    background: #FAF6EE !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

.bio-metrics-trio .bio-kpi-wake {
    border-color: rgba(217, 119, 6, 0.45) !important;
}

.bio-metrics-trio .bio-kpi-sleep {
    border-color: rgba(3, 105, 161, 0.42) !important;
}

.bio-metrics-trio .bio-kpi-perfect {
    border-color: rgba(109, 40, 217, 0.42) !important;
}

.bio-metrics-trio .kpi-card small {
    font-size: 0.7rem !important;
    color: #57534E !important;
}

.achv-sanctuary-card {
    background: linear-gradient(165deg, #FAF6EE 0%, #F3E9D8 100%) !important;
    border: 1.5px solid rgba(217, 119, 6, 0.45) !important;
    box-shadow: var(--shadow-card) !important;
}

.achv-hero-banner {
    padding: 16px 18px !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 85% 15%, rgba(217, 119, 6, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 15% 85%, rgba(3, 105, 161, 0.12) 0%, transparent 55%),
        linear-gradient(135deg, #FAF6EE 0%, #F4E7CE 55%, #EDE0C6 100%) !important;
    border: 1.5px solid rgba(217, 119, 6, 0.52) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 18px rgba(120, 53, 15, 0.1) !important;
}

.achv-hero-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 12px !important;
}

.achv-imperial-tag {
    display: inline-block !important;
    font-family: var(--font-mono) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    color: #92400E !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
}

.achv-grand-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.35rem, 4.5vw, 1.85rem) !important;
    font-weight: 900 !important;
    margin: 0 !important;
    background: linear-gradient(110deg, #78350F 0%, #D97706 38%, #0369A1 68%, #92400E 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85)) !important;
}

.achv-imperial-progress {
    height: 12px !important;
    background: #DFD5C3 !important;
    border: 1px solid rgba(180, 83, 9, 0.35) !important;
}

.achv-imperial-progress .cyber-progress-fill {
    background: linear-gradient(90deg, #0369A1 0%, #D97706 55%, #F59E0B 100%) !important;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.38) !important;
}

.achv-tier-steps {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 5px !important;
    margin-top: 10px !important;
}

.achv-rank-step {
    text-align: center !important;
    font-family: var(--font-mono) !important;
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    padding: 5px 4px !important;
    border-radius: 6px !important;
    background: #EAE2D3 !important;
    color: #57534E !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.achv-rank-step.passed {
    background: rgba(3, 105, 161, 0.12) !important;
    color: #0369A1 !important;
    border-color: rgba(3, 105, 161, 0.38) !important;
}

.achv-rank-step.active {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    border-color: #78350F !important;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.28) !important;
}

.stats-kpi-5 {
    grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 768px) {
    .bio-metrics-trio {
        grid-template-columns: 1fr !important;
    }
    .stats-kpi-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.schedule-fast-builder {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
}

.schedule-fast-builder .field-group {
    margin-bottom: 0 !important;
}

.schedule-fast-builder .field-group.span-full {
    grid-column: 1 / -1 !important;
}

@media (max-width: 768px) {
    .schedule-fast-builder {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

#btn-chrono-open-audit.oled-btn-audit-distinct {
    background: #EAE2D3 !important;
    border: 1px solid rgba(180, 83, 9, 0.38) !important;
    color: #92400E !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

#btn-chrono-open-audit.oled-btn-audit-distinct:hover {
    background: #E2D5BE !important;
    border-color: #B45309 !important;
    box-shadow: none !important;
}

body.chrono-running-active #btn-chrono-open-audit,
.chrono-is-running #btn-chrono-open-audit {
    display: none !important;
}

#realm-hero-container .realm-badge-wrap,
.realm-era-top-row,
#ui-dimension.dimension-tag,
#ui-stage-rank-tag.stage-rank-tag {
    display: none !important;
}

#ui-stage-5-steps.stage-5-steps-row {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    align-items: end !important;
    gap: 5px !important;
    margin-top: 8px !important;
}

#ui-stage-5-steps .step-dot {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    padding: 0 4px !important;
    border-radius: 6px !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    color: #57534E !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

#ui-stage-5-steps .step-dot:nth-child(1) { height: 21px !important; }
#ui-stage-5-steps .step-dot:nth-child(2) { height: 23px !important; }
#ui-stage-5-steps .step-dot:nth-child(3) { height: 25px !important; }
#ui-stage-5-steps .step-dot:nth-child(4) { height: 27px !important; }
#ui-stage-5-steps .step-dot:nth-child(5) { height: 29px !important; }

#ui-stage-5-steps .step-dot.passed {
    background: rgba(217, 119, 6, 0.16) !important;
    color: #92400E !important;
    border: 1px solid rgba(217, 119, 6, 0.42) !important;
    box-shadow: none !important;
}

.sleep-hero-time {
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.15 !important;
    margin-top: 2px !important;
    color: #1C1917 !important;
    text-shadow: none !important;
    filter: none !important;
}

.stats-backup-toggle-bar {
    margin-top: 4px !important;
}

#btn-toggle-stats-backup-card {
    padding: 11px 16px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.25) !important;
    color: #1C1917 !important;
    border-radius: 12px !important;
}

#btn-toggle-stats-backup-card:hover {
    border-color: #B45309 !important;
    color: #92400E !important;
}

.backup-uniform-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(146, 64, 14, 0.18) !important;
}

.backup-uniform-grid .cyber-btn {
    width: 100% !important;
    justify-content: center !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.24) !important;
    color: #1C1917 !important;
    font-size: 0.8rem !important;
    padding: 10px 8px !important;
    box-shadow: none !important;
}

.backup-uniform-grid .cyber-btn:hover {
    border-color: #0369A1 !important;
    color: #0369A1 !important;
}

@keyframes achvLightSweep {
    0% {
        transform: translateX(-140%) skewX(-25deg);
    }
    50%,
    100% {
        transform: translateX(240%) skewX(-25deg);
    }
}

.achv-trophy-tiers-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(146, 64, 14, 0.18) !important;
}

.achv-grade-counter {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
}

.achv-grade-counter.tier-jade {
    border-color: rgba(3, 105, 161, 0.38) !important;
}

.achv-grade-counter.tier-azure {
    border-color: rgba(2, 132, 199, 0.42) !important;
}

.achv-grade-counter.tier-gold {
    border-color: rgba(217, 119, 6, 0.48) !important;
}

.achv-grade-counter.tier-mythic {
    border-color: rgba(190, 18, 60, 0.48) !important;
}

.achv-gc-icon {
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

.achv-gc-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.achv-gc-info span {
    font-size: 0.68rem !important;
    color: #57534E !important;
    white-space: nowrap !important;
}

.achv-gc-info strong {
    font-size: 0.86rem !important;
    color: #1C1917 !important;
}

.achv-spotlight-section {
    margin-top: 14px !important;
}

.achv-sub-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.achv-sub-bar span {
    font-family: var(--font-display) !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    color: #92400E !important;
}

.achv-sub-bar small {
    font-size: 0.7rem !important;
    color: #57534E !important;
}

.achv-nearest-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

.achv-near-pill {
    position: relative !important;
    overflow: hidden !important;
    padding: 10px 12px !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #FAF6EE 0%, #F3ECE0 100%) !important;
    border: 1px solid rgba(3, 105, 161, 0.35) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.achv-near-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
}

.achv-near-name {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #1C1917 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.achv-near-top strong {
    font-size: 0.78rem !important;
    color: #0369A1 !important;
    flex-shrink: 0 !important;
}

.achv-near-sub {
    font-size: 0.7rem !important;
    color: #57534E !important;
}

.achv-nearest-done {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 12px !important;
    border-radius: 10px !important;
    background: rgba(217, 119, 6, 0.14) !important;
    border: 1px solid #D97706 !important;
    color: #92400E !important;
    font-weight: 800 !important;
    font-size: 0.84rem !important;
}

.achv-category-tabs {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    padding: 12px 0 8px 0 !important;
    margin-top: 6px !important;
    border-bottom: 1px solid rgba(146, 64, 14, 0.18) !important;
    scrollbar-width: none !important;
}

.achv-category-tabs::-webkit-scrollbar {
    display: none !important;
}

.achv-cat-btn {
    padding: 7px 12px !important;
    border-radius: 999px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    color: #57534E !important;
    transition: all 0.2s ease !important;
}

.achv-cat-btn.active {
    background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%) !important;
    border-color: #0369A1 !important;
    color: #FAF6EE !important;
    box-shadow: 0 2px 10px rgba(3, 105, 161, 0.22) !important;
}

.achv-medal-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

.achv-medal-row {
    position: relative !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: 46px 1fr auto !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 11px 13px !important;
    border-radius: 12px !important;
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.achv-emblem-box {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #EAE2D3 !important;
    border: 1.5px solid rgba(146, 64, 14, 0.28) !important;
    font-size: 1.35rem !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

.achv-medal-row.is-locked .achv-emblem-box {
    opacity: 0.65 !important;
    filter: grayscale(0.45) !important;
}

.achv-medal-row.tier-jade .achv-emblem-box {
    border-color: rgba(3, 105, 161, 0.45) !important;
    background: radial-gradient(circle, rgba(3, 105, 161, 0.16) 0%, #EAE2D3 100%) !important;
}

.achv-medal-row.tier-azure .achv-emblem-box {
    border-color: rgba(2, 132, 199, 0.52) !important;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, #E0F2FE 100%) !important;
}

.achv-medal-row.tier-gold .achv-emblem-box {
    border-color: rgba(217, 119, 6, 0.65) !important;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, #F5E6C8 100%) !important;
}

.achv-medal-row.tier-mythic .achv-emblem-box {
    border-color: #E11D48 !important;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.22) 0%, #FFE4E6 100%) !important;
}

.achv-medal-main {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    position: relative !important;
    z-index: 2 !important;
}

.achv-medal-head {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.achv-medal-name {
    font-family: var(--font-display) !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    color: #1C1917 !important;
    line-height: 1.2 !important;
}

.achv-grade-tag {
    font-family: var(--font-mono) !important;
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    letter-spacing: 0.04em !important;
    background: #EAE2D3 !important;
    color: #57534E !important;
}

.tier-jade .achv-grade-tag {
    background: rgba(3, 105, 161, 0.12) !important;
    border: 1px solid rgba(3, 105, 161, 0.35) !important;
    color: #0369A1 !important;
}

.tier-azure .achv-grade-tag {
    background: rgba(2, 132, 199, 0.14) !important;
    border: 1px solid rgba(2, 132, 199, 0.42) !important;
    color: #0369A1 !important;
}

.tier-gold .achv-grade-tag {
    background: rgba(217, 119, 6, 0.16) !important;
    border: 1px solid rgba(217, 119, 6, 0.48) !important;
    color: #92400E !important;
}

.tier-mythic .achv-grade-tag {
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.16), rgba(109, 40, 217, 0.16)) !important;
    border: 1px solid #E11D48 !important;
    color: #BE123C !important;
}

.achv-medal-req {
    font-size: 0.76rem !important;
    color: #57534E !important;
    line-height: 1.35 !important;
}

.achv-medal-track {
    width: 100% !important;
    height: 5px !important;
    background: #DFD5C3 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    margin-top: 2px !important;
}

.achv-medal-fill {
    height: 100% !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #0369A1, #0284C7) !important;
    transition: width 0.35s ease !important;
}

.achv-medal-row.tier-azure .achv-medal-fill {
    background: linear-gradient(90deg, #0369A1, #38BDF8) !important;
}

.achv-medal-row.tier-gold .achv-medal-fill {
    background: linear-gradient(90deg, #B45309, #F59E0B) !important;
}

.achv-medal-row.tier-mythic .achv-medal-fill {
    background: linear-gradient(90deg, #BE123C, #D97706) !important;
}

.achv-medal-side {
    text-align: right !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

.achv-ratio-num {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #1C1917 !important;
}

.achv-ratio-pct {
    font-size: 0.68rem !important;
    color: #57534E !important;
}

.achv-seal-stamp {
    display: inline-block !important;
    font-size: 0.68rem !important;
    font-weight: 900 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    background: rgba(217, 119, 6, 0.16) !important;
    border: 1px solid #D97706 !important;
    color: #92400E !important;
}

.achv-seal-date {
    font-size: 0.64rem !important;
    color: #0369A1 !important;
    margin-top: 3px !important;
}

.achv-medal-row.is-unlocked {
    background: linear-gradient(135deg, #FAF6EE 0%, #F4E7CE 100%) !important;
    border-color: rgba(217, 119, 6, 0.55) !important;
    box-shadow: 0 4px 14px rgba(120, 53, 15, 0.1) !important;
}

.achv-medal-row.is-unlocked .achv-medal-name {
    color: #92400E !important;
}

.achv-medal-row.is-unlocked .achv-medal-req {
    color: #44403C !important;
}

.achv-empty-state {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 20px !important;
    color: #57534E !important;
    font-size: 0.84rem !important;
    border: 1px dashed rgba(146, 64, 14, 0.25) !important;
    border-radius: 12px !important;
}

@media (max-width: 768px) {
    .achv-trophy-tiers-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .achv-nearest-strip,
    .achv-medal-list {
        grid-template-columns: 1fr !important;
    }
}

@keyframes achvTitleBeamSweep {
    0% {
        background-position: 220% 50%;
    }
    100% {
        background-position: -40% 50%;
    }
}

#achv-hero-title.achv-grand-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 4px !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    filter: none !important;
}

#achv-hero-title .achv-crown-icon {
    font-size: clamp(1.3rem, 4.2vw, 1.75rem) !important;
    filter: drop-shadow(0 2px 6px rgba(180, 83, 9, 0.35)) !important;
}

#achv-hero-title .achv-shimmer-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.35rem, 4.5vw, 1.85rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    background-image: linear-gradient(
        110deg,
        #78350F 0%,
        #D97706 32%,
        #B45309 46%,
        #0369A1 54%,
        #D97706 68%,
        #78350F 100%
    ) !important;
    background-size: 240% 100% !important;
    background-repeat: repeat !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    filter: drop-shadow(0 1px 0 rgba(255, 252, 245, 0.9)) !important;
    animation: achvTitleBeamSweep 2.4s linear infinite !important;
}

.achv-rank-step {
    background: #EAE2D3 !important;
    color: #57534E !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
}

.achv-rank-step.passed {
    background: rgba(3, 105, 161, 0.12) !important;
    color: #0369A1 !important;
    border: 1px solid rgba(3, 105, 161, 0.35) !important;
    box-shadow: none !important;
}

.achv-rank-step.active {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    border-color: #78350F !important;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.28) !important;
}

.achv-near-desc {
    font-size: 0.75rem !important;
    color: #44403C !important;
    line-height: 1.35 !important;
    margin: 1px 0 2px 0 !important;
}

.achv-near-sub {
    font-size: 0.69rem !important;
    color: #B45309 !important;
    font-weight: 700 !important;
}

.achv-honor-showcase {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 14px !important;
}

.achv-honor-plaque {
    position: relative !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: 68px 1fr auto !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 12% 50%, rgba(217, 119, 6, 0.14) 0%, transparent 55%),
        linear-gradient(135deg, #FAF6EE 0%, #F4E8D2 60%, #EDE0C6 100%) !important;
    border: 1.5px solid rgba(217, 119, 6, 0.55) !important;
    box-shadow: 0 10px 24px -6px rgba(120, 53, 15, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.achv-honor-plaque.honor-rank-1 {
    border: 2px solid #D97706 !important;
    background:
        radial-gradient(circle at 15% 50%, rgba(190, 18, 60, 0.1) 0%, transparent 55%),
        radial-gradient(circle at 88% 20%, rgba(245, 158, 11, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #FAF6EE 0%, #F5E5C6 55%, #EFE0C2 100%) !important;
    box-shadow: 0 12px 28px -6px rgba(120, 53, 15, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

.achv-honor-plaque.honor-rank-2 {
    border-color: rgba(3, 105, 161, 0.52) !important;
}

.achv-honor-plaque.honor-rank-3 {
    border-color: rgba(180, 83, 9, 0.52) !important;
}

.achv-honor-plaque::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 55% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(245, 158, 11, 0.18),
        rgba(255, 255, 255, 0.35),
        transparent
    ) !important;
    pointer-events: none !important;
    animation: achvLightSweep 3.2s infinite ease-in-out !important;
    z-index: 1 !important;
}

.achv-honor-emblem-col {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
}

.achv-honor-crest {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle, #FEF3C7 0%, #F5E1B5 100%) !important;
    border: 2px solid #D97706 !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2) !important;
}

.achv-honor-plaque.honor-rank-1 .achv-honor-crest {
    border-color: #B45309 !important;
    background: radial-gradient(circle, #FEF08A 0%, #F59E0B 100%) !important;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.3) !important;
}

.achv-honor-icon {
    font-size: 1.75rem !important;
    line-height: 1 !important;
    filter: drop-shadow(0 2px 4px rgba(120, 53, 15, 0.25)) !important;
}

.achv-honor-rank-pill {
    font-size: 0.62rem !important;
    font-weight: 900 !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #D97706, #B45309) !important;
    color: #FAF6EE !important;
    letter-spacing: 0.05em !important;
}

.achv-honor-center-col {
    position: relative !important;
    z-index: 2 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.achv-honor-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.achv-honor-crown {
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    color: #B45309 !important;
}

.achv-honor-title {
    margin: 0 !important;
    font-family: var(--font-display) !important;
    font-size: 1.08rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em !important;
    background-image: linear-gradient(
        110deg,
        #78350F 0%,
        #D97706 45%,
        #B45309 55%,
        #92400E 100%
    ) !important;
    background-size: 220% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: achvTitleBeamSweep 3s linear infinite !important;
}

.achv-honor-desc {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #1C1917 !important;
    line-height: 1.35 !important;
}

.achv-honor-lore {
    font-size: 0.74rem !important;
    font-style: italic !important;
    color: #57534E !important;
    line-height: 1.3 !important;
}

.achv-honor-right-col {
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
}

.achv-imperial-seal {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    background: rgba(217, 119, 6, 0.14) !important;
    border: 1.5px solid #D97706 !important;
    box-shadow: inset 0 0 8px rgba(217, 119, 6, 0.12) !important;
    text-align: center !important;
    min-width: 118px !important;
}

.achv-seal-top {
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    color: #92400E !important;
    opacity: 0.95 !important;
    white-space: nowrap !important;
}

.achv-seal-main {
    font-size: 0.76rem !important;
    font-weight: 900 !important;
    color: #B45309 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.achv-imperial-seal .achv-seal-date {
    display: inline-block !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: #0369A1 !important;
    background: rgba(250, 246, 238, 0.85) !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    margin-top: 0 !important;
    white-space: nowrap !important;
}

@media (max-width: 640px) {
    .achv-honor-plaque {
        grid-template-columns: 58px minmax(0, 1fr) !important;
        gap: 10px !important;
    }
    .achv-honor-right-col {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        justify-self: stretch !important;
    }
    .achv-imperial-seal {
        width: 100% !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px 12px !important;
        padding: 7px 12px !important;
    }
}

.auth-cloud-collapse {
    margin: 8px 0 6px 0 !important;
    padding: 8px 10px !important;
    background: #F3ECE0 !important;
    border: 1px dashed rgba(180, 83, 9, 0.4) !important;
    border-radius: 10px !important;
}

#ui-realm-name.reincarnate-trigger-ready {
    cursor: pointer !important;
    user-select: none !important;
}

#ui-realm-name.reincarnate-trigger-ready:active {
    transform: scale(0.98) !important;
}

.btn-supreme-reincarnate,
.btn-reincarnate-confirm {
    background: linear-gradient(135deg, #BE123C 0%, #D97706 52%, #6D28D9 100%) !important;
    border: 1.5px solid #B45309 !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 16px rgba(190, 18, 60, 0.3) !important;
    animation: supremeEmperorBorder 2.4s infinite ease-in-out !important;
}

.btn-supreme-reincarnate:hover,
.btn-reincarnate-confirm:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-1px) !important;
}

.supreme-reincarnate-dialog {
    max-width: 600px !important;
    background: linear-gradient(155deg, #FAF6EE 0%, #F4E7CE 55%, #EDE0C6 100%) !important;
    border: 2px solid #D97706 !important;
    box-shadow: 0 20px 55px rgba(28, 25, 23, 0.45), 0 0 24px rgba(217, 119, 6, 0.22) !important;
}

.reincarnate-preview-box {
    margin-top: 10px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: #F3ECE0 !important;
    border: 1px solid rgba(180, 83, 9, 0.38) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    font-size: 0.82rem !important;
    color: #1C1917 !important;
}

.achv-top-right-cluster {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.achv-chronicles-btn {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), #EAE2D3) !important;
    border: 1px solid #D97706 !important;
    color: #92400E !important;
    font-size: 0.74rem !important;
    padding: 5px 11px !important;
    border-radius: 999px !important;
}

.achv-chronicles-btn:hover {
    background: linear-gradient(135deg, #D97706, #B45309) !important;
    color: #FAF6EE !important;
}

.chron-past-life-card {
    border: 1.5px solid rgba(217, 119, 6, 0.45) !important;
    background: linear-gradient(145deg, #FAF6EE, #F3ECE0) !important;
}

.chron-life-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.chron-mini-kpi {
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.chron-mini-kpi span {
    font-size: 0.7rem !important;
    color: #57534E !important;
}

.chron-mini-kpi strong {
    font-family: var(--font-mono) !important;
    font-size: 0.9rem !important;
    color: #1C1917 !important;
}

.chron-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
}

.chron-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.76rem !important;
}

.chron-table th,
.chron-table td {
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    padding: 7px 9px !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.sacred-depth-vignette,
.sacred-inner-filigree {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    border-radius: inherit !important;
    z-index: 2 !important;
}

.sacred-inner-filigree {
    inset: 5px !important;
    border: 1px solid rgba(217, 119, 6, 0.28) !important;
}

.sacred-corner-svg {
    position: absolute !important;
    width: 22px !important;
    height: 22px !important;
    pointer-events: none !important;
    z-index: 4 !important;
    color: var(--realm-border-glow, #B45309) !important;
    opacity: 0.88 !important;
}

.sacred-corner-svg.tl,
.sacred-corner-svg.sc-tl {
    top: 6px !important;
    left: 6px !important;
    transform: none !important;
}

.sacred-corner-svg.tr,
.sacred-corner-svg.sc-tr {
    top: 6px !important;
    right: 6px !important;
    transform: scaleX(-1) !important;
}

.sacred-corner-svg.bl,
.sacred-corner-svg.sc-bl {
    bottom: 6px !important;
    left: 6px !important;
    transform: scaleY(-1) !important;
}

.sacred-corner-svg.br,
.sacred-corner-svg.sc-br {
    bottom: 6px !important;
    right: 6px !important;
    transform: scale(-1, -1) !important;
}

#realm-hero-container.realm-hero-card,
#realm-hero-container[data-realm-id="12"] {
    border: 2px solid var(--realm-border-glow, #D97706) !important;
    background: var(
        --realm-card-surface,
        radial-gradient(circle at 16% 42%, var(--realm-bleed-1, rgba(217, 119, 6, 0.22)) 0%, transparent 56%),
        radial-gradient(circle at 86% 20%, var(--realm-bleed-2, rgba(3, 105, 161, 0.16)) 0%, transparent 54%),
        linear-gradient(155deg, #FAF6EE 0%, #F4ECE0 56%, #EBE0CE 100%)
    ) !important;
    box-shadow:
        0 14px 32px -8px rgba(120, 53, 15, 0.2),
        inset 0 0 0 2px rgba(255, 252, 245, 0.85) !important;
    animation: none !important;
}

#realm-hero-container .realm-title,
#realm-hero-container #ui-realm-name,
#realm-hero-container[data-realm-id="12"] .realm-title,
#realm-hero-container[data-realm-id="12"] #ui-realm-name {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #1C1006 !important;
    color: #1C1006 !important;
    line-height: 1.45 !important;
    padding-top: 4px !important;
    overflow: visible !important;
    filter: none !important;
    text-shadow: 0 1px 0 rgba(255, 252, 245, 0.88) !important;
    animation: none !important;
}

#realm-hero-container::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--realm-border-glow, #D97706) 20%,
        #FAF6EE 50%,
        var(--realm-sec-glow, #0369A1) 80%,
        transparent 100%
    ) !important;
    background-size: 240% 100% !important;
}

#realm-hero-container #ui-realm-bar {
    background: var(
        --realm-bar-grad,
        linear-gradient(90deg, var(--realm-sec-glow, #0369A1) 0%, var(--realm-border-glow, #D97706) 72%, #F59E0B 100%)
    ) !important;
    box-shadow: 0 0 12px var(--realm-title-shadow, rgba(217, 119, 6, 0.42)) !important;
}

#realm-hero-container #ui-stage-5-steps .step-dot.passed {
    background: var(--realm-bleed-1, rgba(217, 119, 6, 0.2)) !important;
    border: 1px solid var(--realm-border-glow, rgba(180, 83, 9, 0.5)) !important;
    color: var(--realm-text-strong, #78350F) !important;
}

#realm-hero-container #ui-stage-5-steps .step-dot.active {
    background: linear-gradient(
        135deg,
        var(--realm-border-glow, #D97706) 0%,
        var(--realm-sec-glow, #B45309) 100%
    ) !important;
    color: #FAF6EE !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    font-weight: 800 !important;
    border: 1px solid var(--realm-text-strong, #78350F) !important;
    box-shadow: 0 3px 10px var(--realm-title-shadow, rgba(180, 83, 9, 0.36)) !important;
}

#realm-hero-container .sacred-corner-svg {
    color: var(--realm-border-glow, #B45309) !important;
    filter: drop-shadow(0 0 5px var(--realm-bleed-1, rgba(217, 119, 6, 0.4))) !important;
}

#realm-hero-container .stage-minor-badge {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1.5px solid var(--realm-border-glow, #F59E0B) !important;
    color: #FDE047 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
}

#realm-hero-container .sigil-floating-badge {
    background: radial-gradient(circle, #FEF3C7 0%, var(--realm-border-glow, #F59E0B) 100%) !important;
    border: 2px solid var(--realm-border-glow, #B45309) !important;
    color: #78350F !important;
    box-shadow: 0 4px 12px var(--realm-title-shadow, rgba(180, 83, 9, 0.35)) !important;
}

#realm-hero-container #realm-sigil-inline,
#realm-hero-container #ui-stars-detail.text-gold {
    color: var(--realm-text-strong, #92400E) !important;
    font-weight: 900 !important;
}

#realm-hero-container #ui-realm-pct.text-cyan,
#realm-hero-container #ui-alias.text-cyan {
    color: var(--realm-sec-strong, #0369A1) !important;
    font-weight: 800 !important;
}

#realm-hero-container #ui-dimension.dimension-tag {
    background: var(--realm-bleed-1, rgba(217, 119, 6, 0.16)) !important;
    border: 1px solid var(--realm-border-glow, #D97706) !important;
    color: var(--realm-text-strong, #78350F) !important;
    box-shadow: none !important;
}

#realm-hero-container .realm-quote {
    background: linear-gradient(90deg, var(--realm-bleed-1, rgba(217, 119, 6, 0.18)) 0%, rgba(250, 246, 238, 0.94) 100%) !important;
    border-left: 3.5px solid var(--realm-border-glow, #D97706) !important;
    color: #292018 !important;
}

#realm-hero-container #btn-open-ladder {
    background: #EAE2D3 !important;
    border: 1.5px solid var(--realm-border-glow, #D97706) !important;
    color: var(--realm-text-strong, #78350F) !important;
}

#realm-hero-container #btn-open-ladder:hover {
    background: #DFD3BE !important;
    color: #451A03 !important;
}

#achv-trophy-tiers-row {
    display: none !important;
}

.achv-cat-btn.tier-jade.active,
.achv-cat-btn.tier-azure.active {
    background: linear-gradient(135deg, #0369A1, #0284C7) !important;
    border-color: #0369A1 !important;
    color: #FAF6EE !important;
}

.achv-cat-btn.tier-gold.active {
    background: linear-gradient(135deg, #D97706, #B45309) !important;
    border-color: #92400E !important;
    color: #FAF6EE !important;
}

.achv-cat-btn.tier-mythic.active {
    background: linear-gradient(135deg, #E11D48, #BE123C) !important;
    border-color: #9F1239 !important;
    color: #FAF6EE !important;
}

.plan-analytics-overlay {
    background: #F2ECE1 !important;
}

.calm-sub-header {
    background: #FAF6EE !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    box-shadow: none !important;
}

.calm-sub-title {
    margin: 0 !important;
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    color: #1C1917 !important;
}

.calm-sub-meta {
    font-size: 0.74rem !important;
    color: #57534E !important;
    margin-top: 3px !important;
}

.pa-calm-kpi-trio {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
}

.calm-kpi-box {
    background: #FAF6EE !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    box-shadow: none !important;
}

.calm-kpi-box span {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #57534E !important;
}

.calm-kpi-box strong {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #1C1917 !important;
}

.calm-kpi-box small {
    font-size: 0.72rem !important;
    color: #78716C !important;
}

.calm-sub-card {
    background: #FAF6EE !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    box-shadow: none !important;
}

.calm-section-label {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #92400E !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.calm-summary-body {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    color: #1C1917 !important;
}

.calm-chat-box {
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    min-height: 220px !important;
    max-height: 40vh !important;
}

.pa-day-dossier {
    background: #FAF6EE !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    box-shadow: none !important;
}

.pa-day-dossier[open] {
    border-color: #D97706 !important;
    box-shadow: none !important;
}

.pa-day-summary {
    background: #F3ECE0 !important;
    padding: 10px 14px !important;
}

.pa-day-date {
    color: #1C1917 !important;
    font-size: 0.84rem !important;
}

.pa-block-cat {
    font-size: 0.7rem !important;
    color: #57534E !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    background: #EAE2D3 !important;
    white-space: nowrap !important;
}

.pa-older-toggle-wrap {
    margin-top: 10px !important;
}

.chronicles-overlay .calm-kpi-box strong {
    color: #1C1917 !important;
}

.chron-table th {
    background: #EAE2D3 !important;
    color: #1C1917 !important;
    font-weight: 700 !important;
}

.chron-table td {
    color: #1C1917 !important;
}

.chron-neutral-pill {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.25) !important;
    color: #1C1917 !important;
}

.chron-subtle-note {
    padding: 12px 14px !important;
    border-radius: 10px !important;
    background: #F3ECE0 !important;
    border: 1px dashed rgba(146, 64, 14, 0.25) !important;
    color: #57534E !important;
    font-size: 0.8rem !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .pa-calm-kpi-trio {
        grid-template-columns: 1fr !important;
    }
}
html body #realm-hero-container .realm-visual-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

html body #realm-hero-container .avatar-aura,
html body .avatar-aura {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 8px auto !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    min-height: 250px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
}

html body #realm-hero-container .cultivator-stage-root,
html body .cultivator-stage-root {
    width: 100% !important;
    max-width: 100% !important;
    height: 250px !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

html body #ui-stage-5-steps.stage-5-steps-row,
html body #ui-stage-5-steps {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    margin-top: 8px !important;
    box-sizing: border-box !important;
}

html body #ui-stage-5-steps .step-dot {
    min-width: 0 !important;
    padding: 0 2px !important;
    font-size: clamp(0.58rem, 2.1vw, 0.68rem) !important;
    letter-spacing: -0.02em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    box-sizing: border-box !important;
}

@keyframes plaqueTasselSwing {
    0%, 100% { transform: rotate(-2.2deg); }
    50% { transform: rotate(2.2deg); }
}

@keyframes cinnabarStampSlam {
    0% { opacity: 0; transform: scale(1.55) rotate(-8deg); }
    70% { opacity: 1; transform: scale(0.95) rotate(-2deg); }
    100% { opacity: 1; transform: scale(1) rotate(-3deg); }
}

.cinnabar-stamp-badge,
.ntm-stamp-seal-fx {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 8px !important;
    border: 2px solid #B91C1C !important;
    outline: 1px solid #991B1B !important;
    outline-offset: -3px !important;
    border-radius: 3px !important;
    background: rgba(254, 242, 242, 0.94) !important;
    color: #B91C1C !important;
    font-family: var(--font-display, 'Chakra Petch', sans-serif) !important;
    font-size: 0.68rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    transform: rotate(-3deg) !important;
    box-shadow: 0 2px 5px rgba(153, 27, 27, 0.22) !important;
    will-change: transform, opacity;
    animation: cinnabarStampSlam 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

html body #realm-hero-container.imperial-scroll-sanctuary {
    display: grid !important;
    grid-template-columns: 368px minmax(0, 1fr) !important;
    gap: 14px 20px !important;
    align-items: center !important;
    padding: 18px 16px 16px !important;
    border-radius: 14px !important;
    overflow: visible !important;
    background:
        radial-gradient(circle at 15% 15%, var(--realm-bleed-1, rgba(217, 119, 6, 0.14)) 0%, transparent 48%),
        radial-gradient(circle at 85% 85%, var(--realm-bleed-2, rgba(3, 105, 161, 0.1)) 0%, transparent 48%),
        repeating-linear-gradient(0deg, rgba(120, 68, 20, 0.025) 0px, rgba(120, 68, 20, 0.025) 1px, transparent 1px, transparent 4px),
        linear-gradient(180deg, #FAF2E1 0%, #EFE0C4 54%, #E2CCA5 100%) !important;
    border: 3px double var(--realm-border-glow, #92400E) !important;
    box-shadow:
        0 14px 32px -8px rgba(68, 38, 10, 0.22),
        inset 0 0 0 3px #FAF3E6 !important;
}

@media (max-width: 960px) {
    html body #realm-hero-container.imperial-scroll-sanctuary {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 14px 12px !important;
    }
}

html body #realm-hero-container .imperial-plaque-header-stack {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 4px !important;
    overflow: visible !important;
}

html body #realm-hero-container .imperial-plaque-banner.imperial-plaque-v2 {
    position: relative !important;
    width: min(100%, 490px) !important;
    aspect-ratio: 600 / 128 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

html body #realm-hero-container .imperial-plaque-svg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    pointer-events: none !important;
    filter: drop-shadow(0 6px 12px rgba(56, 28, 6, 0.26));
}

html body #realm-hero-container .imperial-plaque-title {
    position: relative !important;
    z-index: 3 !important;
    font-family: 'Charm', 'Be Vietnam Pro', cursive, serif !important;
    font-size: clamp(1.32rem, 5.8vw, 2.25rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    line-height: 1.32 !important;
    padding: 4px 14% 0 14% !important;
    color: #2B1203 !important;
    text-shadow: 0 1px 0 rgba(255, 248, 214, 0.72) !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

html body #realm-hero-container .plaque-crimson-tassel.plaque-ear-tassel {
    position: absolute !important;
    top: 52% !important;
    left: 2.8% !important;
    width: clamp(24px, 6.2vw, 34px) !important;
    height: auto !important;
    transform-origin: 50% 4% !important;
    animation: plaqueTasselSwing 3.6s ease-in-out infinite !important;
    z-index: 6 !important;
    pointer-events: none !important;
}

html body #realm-hero-container .plaque-tassel-svg {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

html body #realm-hero-container .imperial-realm-scroll-row {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    max-width: 100% !important;
    overflow: visible !important;
}

html body #realm-hero-container .imperial-realm-scroll-banner {
    display: inline-flex !important;
    align-items: stretch !important;
    background: linear-gradient(180deg, #E5D1AF 0%, #FAF3E3 26%, #FAF3E3 74%, #D9BE94 100%) !important;
    border-top: 1.5px solid #8A5A2B !important;
    border-bottom: 1.5px solid #8A5A2B !important;
    box-shadow: 0 4px 10px rgba(62, 34, 8, 0.16) !important;
    overflow: visible !important;
}

html body #realm-hero-container .scroll-wood-roller {
    width: 9px !important;
    margin: -4px 0 !important;
    border-radius: 4px !important;
    background: linear-gradient(90deg, #3B200B 0%, #A96E30 50%, #291405 100%) !important;
    border: 1px solid #291405 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28) !important;
    flex-shrink: 0 !important;
}

html body #realm-hero-container .scroll-parchment-body {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 5px 18px 4px 18px !important;
    min-width: 0 !important;
    overflow: visible !important;
}

html body #realm-hero-container .scroll-epoch-prefix {
    font-family: var(--font-sans) !important;
    font-size: clamp(0.92rem, 3.2vw, 1.15rem) !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    padding-top: 4px !important;
    color: #1C1006 !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
}

html body #realm-hero-container .scroll-dot-sep {
    font-weight: 900 !important;
    color: #78350F !important;
    padding-top: 3px !important;
}

html body #realm-hero-container .scroll-parchment-body #ui-realm-name.realm-title,
html body #realm-hero-container[data-realm-id="12"] .scroll-parchment-body #ui-realm-name.realm-title {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 4px 2px 0 2px !important;
    font-family: var(--font-sans) !important;
    font-size: clamp(0.98rem, 3.5vw, 1.24rem) !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
    overflow: visible !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #1C1006 !important;
    color: #1C1006 !important;
    filter: none !important;
    text-shadow: 0 1px 0 rgba(255, 252, 245, 0.85) !important;
    animation: none !important;
}

html body #realm-hero-container .imperial-scroll-seal {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 32px !important;
    border-radius: 4px !important;
    background: linear-gradient(180deg, #B91C1C 0%, #881313 100%) !important;
    border: 1.5px solid #FCA5A5 !important;
    outline: 1px solid #991B1B !important;
    color: #FEF2F2 !important;
    box-shadow: 0 2px 6px rgba(153, 27, 27, 0.28) !important;
    flex-shrink: 0 !important;
}

html body #realm-hero-container .realm-visual-wrap {
    padding: 20px 18px 14px !important;
    overflow: visible !important;
}

html body #realm-hero-container .avatar-aura.imperial-evolving-frame {
    position: relative !important;
    width: 100% !important;
    max-width: 332px !important;
    padding: 12px 12px !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #3E2723 0%, #271815 100%) !important;
    border: 3px solid #6D4C41 !important;
    box-shadow:
        0 10px 24px rgba(28, 18, 10, 0.34),
        inset 0 0 0 2px #8D6E63 !important;
    overflow: visible !important;
    transition: border-color 0.25s ease !important;
}

html body #realm-hero-container .frame-top-crest,
html body #realm-hero-container .frame-side-tassel,
html body #realm-hero-container .frame-rune-pillar,
html body #realm-hero-container .frame-bottom-plinth {
    display: none !important;
    pointer-events: none !important;
}

html body #realm-hero-container[data-stage-tier="2"] .frame-top-crest,
html body #realm-hero-container[data-stage-tier="3"] .frame-top-crest,
html body #realm-hero-container[data-epoch="3"] .frame-top-crest,
html body #realm-hero-container[data-epoch="4"] .frame-top-crest,
html body #realm-hero-container[data-epoch="5"] .frame-top-crest {
    display: flex !important;
    justify-content: center !important;
    position: absolute !important;
    top: -19px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 78% !important;
    height: 28px !important;
    color: var(--realm-border-glow, #D97706) !important;
    z-index: 8 !important;
}

html body #realm-hero-container[data-stage-tier="2"] .frame-bottom-plinth,
html body #realm-hero-container[data-stage-tier="3"] .frame-bottom-plinth,
html body #realm-hero-container[data-epoch="4"] .frame-bottom-plinth,
html body #realm-hero-container[data-epoch="5"] .frame-bottom-plinth {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    position: absolute !important;
    bottom: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 3px 12px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #29180B 0%, #140B04 100%) !important;
    border: 1.5px solid var(--realm-border-glow, #D97706) !important;
    color: #FDE68A !important;
    z-index: 8 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.42) !important;
}

html body #realm-hero-container .plinth-geo-svg,
html body #realm-hero-container .pillar-geo-svg {
    display: block !important;
    color: #FDE047 !important;
    flex-shrink: 0 !important;
}

html body #realm-hero-container .plinth-center-orb {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, #E0F2FE 0%, #0284C7 70%, #1E3A8A 100%) !important;
    border: 1px solid #FDE047 !important;
}

html body #realm-hero-container[data-stage-tier="3"] .frame-rune-pillar,
html body #realm-hero-container[data-epoch="4"][data-stage-tier="2"] .frame-rune-pillar,
html body #realm-hero-container[data-epoch="5"] .frame-rune-pillar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: absolute !important;
    top: 14px !important;
    bottom: 14px !important;
    width: 14px !important;
    padding: 5px 1px !important;
    background: linear-gradient(180deg, #29160A 0%, #160B04 100%) !important;
    border: 1.5px solid var(--realm-border-glow, #D97706) !important;
    border-radius: 5px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35) !important;
    z-index: 7 !important;
}
html body #realm-hero-container .frame-rune-pillar.pillar-left { left: -14px !important; }
html body #realm-hero-container .frame-rune-pillar.pillar-right { right: -14px !important; }

html body #realm-hero-container .pillar-stud {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: #F59E0B !important;
}

html body #realm-hero-container[data-stage-tier="3"] .frame-side-tassel,
html body #realm-hero-container[data-epoch="5"] .frame-side-tassel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: absolute !important;
    top: 24px !important;
    z-index: 6 !important;
    transform-origin: top center !important;
    animation: plaqueTasselSwing 3.6s ease-in-out infinite !important;
}
html body #realm-hero-container .frame-side-tassel.tassel-left { left: -18px !important; }
html body #realm-hero-container .frame-side-tassel.tassel-right { right: -18px !important; }

html body #realm-hero-container .side-tassel-cord {
    width: 2px !important;
    height: 24px !important;
    background: #B91C1C !important;
}
html body #realm-hero-container .side-tassel-jade {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, #A7F3D0 0%, #059669 75%, #064E3B 100%) !important;
    border: 1px solid #FDE047 !important;
}
html body #realm-hero-container .side-tassel-fringe {
    width: 12px !important;
    height: 34px !important;
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%) !important;
    background: linear-gradient(180deg, #F59E0B 0%, #DC2626 26%, #7F1D1D 100%) !important;
}

html body #realm-hero-container[data-epoch="0"] .avatar-aura.imperial-evolving-frame {
    background: linear-gradient(180deg, #4E342E 0%, #2D1A14 100%) !important;
    border: 3px solid #795548 !important;
    box-shadow: 0 8px 20px rgba(45, 26, 20, 0.35), inset 0 0 0 2px #A1887F !important;
}

html body #realm-hero-container[data-epoch="1"] .avatar-aura.imperial-evolving-frame {
    background: linear-gradient(180deg, #14532D 0%, #064E3B 50%, #1C1917 100%) !important;
    border: 3px solid #D97706 !important;
    box-shadow: 0 10px 24px rgba(6, 78, 59, 0.38), inset 0 0 0 2px #34D399 !important;
}

html body #realm-hero-container[data-epoch="2"] .avatar-aura.imperial-evolving-frame {
    background: linear-gradient(180deg, #3F2312 0%, #1C1917 60%, #09090B 100%) !important;
    border: 3px solid #F59E0B !important;
    box-shadow: 0 12px 26px rgba(180, 83, 9, 0.38), inset 0 0 0 2px #FBBF24 !important;
}

html body #realm-hero-container[data-epoch="3"] .avatar-aura.imperial-evolving-frame {
    background: linear-gradient(180deg, #F8FAFC 0%, #E2E8F0 55%, #CBD5E1 100%) !important;
    border: 3px solid #D97706 !important;
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.34), inset 0 0 0 2.5px #10B981 !important;
}

html body #realm-hero-container[data-epoch="4"] .avatar-aura.imperial-evolving-frame {
    background: linear-gradient(180deg, #3B0764 0%, #1E1B4B 60%, #090414 100%) !important;
    border: 3px solid #F59E0B !important;
    box-shadow: 0 14px 32px rgba(88, 28, 135, 0.45), inset 0 0 0 2px #C084FC !important;
}

html body #realm-hero-container[data-epoch="5"] .avatar-aura.imperial-evolving-frame {
    background: linear-gradient(180deg, #5A280D 0%, #2E1306 52%, #170803 100%) !important;
    border: 3.5px solid #F59E0B !important;
    box-shadow:
        0 14px 32px rgba(120, 53, 15, 0.5),
        inset 0 0 0 2.5px #FDE047 !important;
}

html body #realm-hero-container .cultivator-stage-root {
    border: 2px solid var(--realm-border-glow, #D97706) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55) !important;
}

html body #realm-hero-container .imperial-scroll-dossier {
    padding: 12px 14px !important;
    border-radius: 10px !important;
    background:
        linear-gradient(180deg, rgba(255, 251, 242, 0.92) 0%, rgba(244, 232, 210, 0.92) 100%) !important;
    border: 2px double rgba(138, 90, 43, 0.42) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

html body .btn-matte-tool,
html body #chrono-visible-edit-deck button,
html body .chrono-edit-deck button,
html body .sch-preset-strip button,
html body .micro-battle-btns .oled-btn {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.25) !important;
    color: #1C1917 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

html body .btn-matte-tool:hover,
html body #chrono-visible-edit-deck button:hover,
html body .chrono-edit-deck button:hover,
html body .sch-preset-strip button:hover,
html body .micro-battle-btns .oled-btn:hover {
    background: #DFD3BE !important;
    border-color: #B45309 !important;
    color: #92400E !important;
}

html body #chrono-visible-edit-deck,
html body .chrono-edit-deck {
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.24) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: none !important;
}

html body .sch-day-mini-pills span {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    color: #1C1917 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 0.74rem !important;
}

html body .achv-tier-steps {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
}

html body .achv-tier-steps .achv-rank-step {
    min-width: 0 !important;
    padding: 5px 2px !important;
    font-size: clamp(0.56rem, 2vw, 0.68rem) !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 768px) {
    html body .achv-tier-steps {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }
}

html body .exam-countdown-banner {
    position: relative;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #FAF6EE, #F3E9D8) !important;
    border: 1.5px solid rgba(3, 105, 161, 0.38) !important;
    box-shadow: 0 8px 24px rgba(120, 53, 15, 0.12) !important;
}

html body .exam-countdown-banner[data-urgency="warning"] {
    background: linear-gradient(135deg, #FAF6EE, #F5E5C6) !important;
    border-color: rgba(217, 119, 6, 0.65) !important;
    box-shadow: 0 8px 26px rgba(180, 83, 9, 0.18) !important;
}

html body .exam-countdown-banner[data-urgency="critical"] {
    background: linear-gradient(135deg, #FFF1F2, #FFE4E6) !important;
    border-color: rgba(225, 29, 72, 0.68) !important;
    box-shadow: 0 8px 28px rgba(190, 18, 60, 0.22) !important;
}

.exam-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.exam-pills-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    flex: 1;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.exam-pills-strip::-webkit-scrollbar {
    display: none;
}

.exam-subject-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    background: #EAE2D3;
    border: 1px solid rgba(146, 64, 14, 0.24);
    color: #57534E;
}

.exam-subject-pill.active {
    background: rgba(217, 119, 6, 0.18);
    border-color: #B45309;
    color: #92400E;
}

.exam-add-drawer {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #F3ECE0;
    border: 1px solid rgba(146, 64, 14, 0.24);
}

.exam-form-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.8fr auto;
    gap: 8px;
    align-items: center;
}

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

.exam-info-col {
    flex: 1 1 200px;
    min-width: 0;
}

.exam-tag-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.exam-status-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #EAE2D3;
    border: 1px solid rgba(146, 64, 14, 0.28);
    color: #1C1917;
}

.exam-dokiep-buff {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(217, 119, 6, 0.16);
    border: 1px solid #D97706;
    color: #92400E;
}

.exam-main-title {
    font-size: clamp(1.05rem, 3.2vw, 1.35rem);
    font-weight: 800;
    color: #1C1917;
    margin: 2px 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exam-datetime-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.76rem;
    color: #57534E;
}

.exam-del-btn {
    background: rgba(190, 18, 60, 0.12);
    border: 1px solid rgba(190, 18, 60, 0.4);
    color: #BE123C;
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 0.7rem;
    cursor: pointer;
}

.exam-Boxes-col {
    display: grid;
    grid-template-columns: repeat(4, minmax(54px, 68px));
    gap: 6px;
}

.exam-unit-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    border-radius: 10px;
    background: #F3ECE0;
    border: 1px solid rgba(180, 83, 9, 0.35);
}

.exam-unit-box strong {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #92400E;
}

.exam-unit-box span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #57534E;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .exam-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .exam-form-grid #exam-title-input {
        grid-column: 1 / -1;
    }

    .exam-hero-display {
        flex-direction: column;
        align-items: stretch;
    }

    .exam-Boxes-col {
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
    }

    #coop-lobby-controls {
        grid-template-columns: 1fr 1fr !important;
    }
}

html body:has(#tab-dongho.active) #bg-canvas,
html body:has(#tab-dongho.active) #fx-canvas,
html body:has(#tab-dongho.active) .sovereign-phenomena-canvas,
html body:has(#tab-dongho.active) .sovereign-phenomena-badge,
html body.chrono-zen-mode #bg-canvas,
html body.chrono-zen-mode #fx-canvas {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.realm-hero-card,
.realm-header,
.realm-progress-box {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 960px) {
    .realm-hero-card {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

.realm-era-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin-bottom: 6px !important;
}

.realm-inline-photo-btn {
    padding: 3px 11px !important;
    font-size: 0.76rem !important;
    line-height: 1.2 !important;
    border-radius: 999px !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(180, 83, 9, 0.42) !important;
    color: #92400E !important;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.14) !important;
    flex: 0 0 auto !important;
    width: auto !important;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.realm-inline-photo-btn:hover {
    transform: translateY(-1px) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25) !important;
}

.stage-5-steps-row {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.stage-5-steps-row > * {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding: 5px 2px !important;
    font-size: clamp(0.62rem, 2.2vw, 0.75rem) !important;
    text-align: center !important;
}

.exam-countdown-banner {
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(217, 119, 6, 0.48) !important;
    background: radial-gradient(circle at 15% 20%, rgba(217, 119, 6, 0.16), #FAF6EE 72%) !important;
    box-shadow: 0 10px 28px rgba(120, 53, 15, 0.14) !important;
}

.exam-countdown-banner[data-urgency="critical"],
.exam-countdown-banner[data-urgency="urgent"] {
    border-color: rgba(159, 18, 57, 0.72) !important;
    background: radial-gradient(circle at 20% 20%, rgba(159, 18, 57, 0.12), #FAF3E3 72%) !important;
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.16) !important;
    animation: none !important;
}

.exam-hero-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.exam-info-col {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

@media (max-width: 640px) {
    .exam-hero-display {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .exam-info-col {
        flex: 0 0 auto !important;
        width: 100% !important;
    }
}

.exam-urgency-bar-wrap {
    margin-top: 10px;
}

.exam-urgency-bar-track {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: #DFD5C3;
    border: 1px solid rgba(180, 83, 9, 0.35);
    overflow: hidden;
}

.exam-urgency-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0369A1, #D97706, #E11D48);
    background-size: 200% 100%;
    animation: urgencyFlow 3s linear infinite;
}

@keyframes urgencyFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.exam-urgency-quote {
    margin-top: 6px;
    font-size: 0.76rem;
    color: #92400E;
    font-weight: 700;
}

.exam-Boxes-col {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(60px, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
    max-width: 340px;
}

@media (max-width: 640px) {
    .exam-Boxes-col {
        max-width: 100% !important;
    }
}

.exam-unit-box {
    background: #F3ECE0 !important;
    border: 1px solid rgba(217, 119, 6, 0.45) !important;
    border-radius: 12px !important;
    padding: 10px 6px !important;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.exam-unit-box strong {
    display: block;
    font-size: 1.45rem !important;
    font-weight: 800;
    color: #92400E !important;
    text-shadow: none;
}

.exam-sec-pulse-box {
    border-color: rgba(180, 83, 9, 0.65) !important;
    animation: none !important;
}

.schedule-flexible-console {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.sched-time-matrix-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.sched-time-range-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 220px;
    background: #EAE2D3;
    border: 1px solid rgba(180, 83, 9, 0.35);
    border-radius: 10px;
    padding: 4px 8px;
}

.sched-time-input {
    flex: 1 1 90px;
    text-align: center;
    font-weight: 700;
}

.sched-arrow-sep {
    color: #B45309;
    font-weight: 800;
}

.sched-type-select {
    flex: 1 1 170px;
}

.btn-donate-shimmer {
    width: 100%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(225, 29, 72, 0.14), rgba(217, 119, 6, 0.26)) !important;
    border: 1.5px solid #D97706 !important;
    color: #92400E !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.16);
    animation: none !important;
}

.donate-shrine-modal {
    border: 2px solid #D97706 !important;
    background: radial-gradient(circle at top, #FAF6EE, #EFE4D0 70%) !important;
}

.donate-shrine-lead {
    text-align: center;
    font-size: 0.85rem;
    color: #92400E;
    margin-bottom: 14px;
    line-height: 1.5;
}

.donate-qr-showcase-box {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 14px auto;
    border-radius: 16px;
    padding: 10px;
    background: #FAF6EE;
    border: 3px solid #D97706;
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.donate-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.donate-qr-placeholder {
    text-align: center;
    color: #57534E;
    padding: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.donate-qr-placeholder-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.donate-acc-copy-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lb-identity-config-box {
    background: #F3ECE0;
    border: 1px solid rgba(146, 64, 14, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.lb-identity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.lb-identity-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #92400E;
}

.lb-identity-mode-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.lb-radio-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 8px;
    background: #EAE2D3;
    border: 1px solid rgba(146, 64, 14, 0.26);
    color: #1C1917;
    cursor: pointer;
}

.lb-alias-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.leaderboard-gate-banner {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1.5px solid #D97706;
    background: linear-gradient(135deg, #FAF6EE, #F3E5C8);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.14);
}

.lb-gate-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.lb-gate-emblem {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(180, 83, 9, 0.35));
}

.lb-gate-text {
    flex: 1 1 180px;
}

.lb-gate-text h4 {
    margin: 0 0 4px 0;
    color: #92400E;
    font-size: 0.95rem;
}

.lb-gate-text p {
    margin: 0;
    font-size: 0.76rem;
    color: #57534E;
}

.leaderboard-self-beacon {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.15), rgba(3, 105, 161, 0.1));
    border: 1px solid rgba(217, 119, 6, 0.45);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #1C1917;
    font-weight: 700;
}

.admin-user-detail-drawer {
    background: #F3ECE0;
    border: 1.5px solid #D97706;
    border-radius: 12px;
    padding: 12px;
}

.admin-inspect-pre {
    background: #1C1917;
    border: 1px solid rgba(217, 119, 6, 0.4);
    border-radius: 8px;
    padding: 8px;
    font-size: 0.75rem;
    color: #FAF6EE;
    max-height: 130px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.achv-plaque-title,
.achv-honor-plaque h4,
.achv-honor-plaque .achv-title {
    color: #78350F !important;
    -webkit-text-fill-color: #78350F !important;
    background: none !important;
    text-shadow: none !important;
    font-weight: 800 !important;
    opacity: 1 !important;
}

.exam-title-inline-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.exam-main-title {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    color: #1C1917 !important;
    text-shadow: none;
}

.lb-ellipsis-divider {
    text-align: center;
    padding: 6px 0;
    color: #B45309;
    font-weight: 900;
    letter-spacing: 6px;
    font-size: 1.1rem;
    opacity: 0.85;
}

.day-group-accordion {
    border: 1px solid rgba(146, 64, 14, 0.24);
    border-radius: 10px;
    background: #FAF6EE;
    margin-bottom: 8px;
    overflow: hidden;
}

.day-group-accordion > summary {
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.84rem;
    color: #1C1917;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.day-group-accordion > summary::-webkit-details-marker {
    display: none;
}

.day-group-accordion[open] > summary {
    border-bottom: 1px solid rgba(146, 64, 14, 0.2);
    background: #F3ECE0;
    color: #92400E;
}

.day-group-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

html body #achv-tier-steps-strip,
html body .achv-tier-steps-strip,
html body .achv-tier-steps {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 7px 0 0 0 !important;
    box-sizing: border-box !important;
}

html body #achv-tier-steps-strip .achv-rank-step,
html body .achv-tier-steps-strip .achv-rank-step,
html body .achv-tier-steps .achv-rank-step {
    min-width: 0 !important;
    height: 21px !important;
    min-height: 21px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    font-size: clamp(0.58rem, 1.8vw, 0.68rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 6px !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    color: #57534E !important;
    box-sizing: border-box !important;
}

@media (min-width: 640px) {
    html body #achv-tier-steps-strip .achv-rank-step,
    html body .achv-tier-steps-strip .achv-rank-step,
    html body .achv-tier-steps .achv-rank-step {
        height: 22px !important;
        min-height: 22px !important;
        font-size: 0.68rem !important;
    }
}

html body #achv-tier-steps-strip .achv-rank-step.passed,
html body .achv-tier-steps-strip .achv-rank-step.passed {
    background: rgba(217, 119, 6, 0.16) !important;
    border: 1px solid rgba(217, 119, 6, 0.42) !important;
    color: #92400E !important;
}

html body #achv-tier-steps-strip .achv-rank-step.active,
html body .achv-tier-steps-strip .achv-rank-step.active {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    border: 1px solid #78350F !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(180, 83, 9, 0.24) !important;
}

html body #realm-hero-container .realm-title,
html body #realm-hero-container #ui-realm-name,
html body #realm-hero-container[data-realm-id="12"] .realm-title,
html body #realm-hero-container[data-realm-id="12"] #ui-realm-name {
    font-size: clamp(0.98rem, 3.5vw, 1.24rem) !important;
    letter-spacing: 0.03em !important;
    line-height: 1.45 !important;
    padding: 4px 2px 0 2px !important;
    margin: 0 !important;
    overflow: visible !important;
}

html body #chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) #chrono-edit-toggle-wrap,
html body #chrono-reactor-card.chrono-is-running:not(.chrono-controls-awake) #chrono-visible-edit-deck,
html body.chrono-zen-mode #chrono-edit-toggle-wrap,
html body.chrono-zen-mode #chrono-visible-edit-deck,
html body.audit-locked-today #chrono-edit-toggle-wrap,
html body.audit-locked-today #chrono-visible-edit-deck {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@keyframes nguhanhOrbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

html body .achv-honor-plaque.honor-rank-1.nguhanh-hoa-kim,
html body .achv-honor-plaque.honor-rank-2.nguhanh-thuy-loi,
html body .achv-honor-plaque.honor-rank-3.nguhanh-moc-tho {
    animation: none !important;
}

html body .achv-honor-plaque {
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.25s ease !important;
}

html body .achv-honor-plaque .achv-nguhanh-bg-fx {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

html body .achv-honor-plaque.honor-rank-1.nguhanh-hoa-kim {
    border: 2px solid #D97706 !important;
    background:
        radial-gradient(circle at 12% 50%, rgba(225, 29, 72, 0.1) 0%, transparent 52%),
        radial-gradient(circle at 88% 20%, rgba(245, 158, 11, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #FAF6EE 0%, #F5E5C6 52%, #EFE0C2 100%) !important;
    transform: scale(1.01) !important;
}

html body .achv-honor-plaque.honor-rank-1 .achv-nguhanh-bg-fx {
    background: conic-gradient(from 0deg at 15% 50%, transparent 0deg, rgba(245, 158, 11, 0.12) 60deg, transparent 140deg, rgba(225, 29, 72, 0.1) 240deg, transparent 360deg) !important;
}

html body .achv-honor-plaque.honor-rank-1 .achv-honor-crest {
    position: relative !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 15px !important;
    border: 2px solid #B45309 !important;
    background: radial-gradient(circle, #FEF08A 0%, #F59E0B 100%) !important;
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.3) !important;
}

html body .achv-honor-plaque.honor-rank-1 .achv-crest-orbit-ring {
    position: absolute !important;
    inset: -5px !important;
    border-radius: 18px !important;
    border: 1.5px dashed #B45309 !important;
    animation: nguhanhOrbitSpin 8s linear infinite !important;
    pointer-events: none !important;
}

html body .achv-honor-plaque.honor-rank-1 .achv-honor-rank-pill {
    background: linear-gradient(90deg, #BE123C 0%, #D97706 100%) !important;
    color: #FAF6EE !important;
    border: 1px solid #92400E !important;
}

html body .achv-honor-plaque.honor-rank-1 .achv-honor-title {
    font-size: 1.12rem !important;
    background-image: linear-gradient(110deg, #78350F 0%, #BE123C 45%, #D97706 100%) !important;
    background-size: 240% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html body .achv-honor-plaque.honor-rank-1 .achv-imperial-seal {
    background: rgba(217, 119, 6, 0.16) !important;
    border: 1.5px solid #B45309 !important;
}

html body .achv-honor-plaque.honor-rank-2.nguhanh-thuy-loi {
    border: 1.5px solid #0284C7 !important;
    background:
        radial-gradient(circle at 14% 50%, rgba(2, 132, 199, 0.14) 0%, transparent 52%),
        linear-gradient(135deg, #FAF6EE 0%, #EBF3F9 55%, #E3EEF7 100%) !important;
    
}

html body .achv-honor-plaque.honor-rank-2 .achv-honor-crest {
    position: relative !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 14px !important;
    border: 2px solid #0284C7 !important;
    background: radial-gradient(circle, #E0F2FE 0%, #7DD3FC 100%) !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
}

html body .achv-honor-plaque.honor-rank-2 .achv-crest-orbit-ring {
    position: absolute !important;
    inset: -4px !important;
    border-radius: 17px !important;
    border: 1px dashed #0284C7 !important;
    animation: nguhanhOrbitSpin 12s linear infinite reverse !important;
    pointer-events: none !important;
}

html body .achv-honor-plaque.honor-rank-2 .achv-honor-rank-pill {
    background: linear-gradient(90deg, #0369A1 0%, #0284C7 100%) !important;
    color: #FAF6EE !important;
    border: 1px solid #075985 !important;
}

html body .achv-honor-plaque.honor-rank-2 .achv-honor-crown {
    color: #0369A1 !important;
}

html body .achv-honor-plaque.honor-rank-2 .achv-honor-title {
    font-size: 1.06rem !important;
    background-image: linear-gradient(110deg, #075985 0%, #0284C7 55%, #0369A1 100%) !important;
    background-size: 220% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html body .achv-honor-plaque.honor-rank-2 .achv-imperial-seal {
    background: rgba(3, 105, 161, 0.1) !important;
    border: 1.5px solid #0284C7 !important;
}

html body .achv-honor-plaque.honor-rank-2 .achv-seal-top,
html body .achv-honor-plaque.honor-rank-2 .achv-seal-main {
    color: #0369A1 !important;
}

html body .achv-honor-plaque.honor-rank-3.nguhanh-moc-tho {
    border: 1.5px solid #B45309 !important;
    background:
        radial-gradient(circle at 14% 50%, rgba(217, 119, 6, 0.14) 0%, transparent 52%),
        linear-gradient(135deg, #FAF6EE 0%, #F3E8D4 58%, #EBE0CC 100%) !important;
    
}

html body .achv-honor-plaque.honor-rank-3 .achv-honor-crest {
    position: relative !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 13px !important;
    border: 1.5px solid #B45309 !important;
    background: radial-gradient(circle, #FEF3C7 0%, #FDE68A 100%) !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2) !important;
}

html body .achv-honor-plaque.honor-rank-3 .achv-crest-orbit-ring {
    display: none !important;
}

html body .achv-honor-plaque.honor-rank-3 .achv-honor-rank-pill {
    background: linear-gradient(90deg, #B45309 0%, #D97706 100%) !important;
    color: #FAF6EE !important;
    border: 1px solid #78350F !important;
}

html body .achv-honor-plaque.honor-rank-3 .achv-honor-crown {
    color: #92400E !important;
}

html body .achv-honor-plaque.honor-rank-3 .achv-honor-title {
    font-size: 1.02rem !important;
    background-image: linear-gradient(110deg, #78350F 0%, #B45309 50%, #D97706 100%) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html body .achv-honor-plaque.honor-rank-3 .achv-imperial-seal {
    background: rgba(180, 83, 9, 0.12) !important;
    border: 1.5px solid #B45309 !important;
}

html body .achv-honor-plaque.honor-rank-3 .achv-seal-top,
html body .achv-honor-plaque.honor-rank-3 .achv-seal-main {
    color: #92400E !important;
}

html body #exam-countdown-card[data-urgency="normal"],
html body #exam-countdown-card.exam-stage-1 {
    border: 1.5px solid rgba(22, 101, 52, 0.52) !important;
    animation: none !important;
}

html body #exam-countdown-card[data-urgency="warning"],
html body #exam-countdown-card.exam-stage-2 {
    border: 1.8px solid #B45309 !important;
    animation: none !important;
}

html body #exam-countdown-card[data-urgency="critical"],
html body #exam-countdown-card.exam-stage-3 {
    border: 2px solid #9F1239 !important;
    animation: none !important;
}

html body #btn-open-chronicles-subapp {
    display: none !important;
}

html body #btn-open-mailbox-modal.res-mail {
    cursor: pointer !important;
    border: 1px solid rgba(146, 64, 14, 0.28) !important;
    background: #EAE2D3 !important;
    color: #1C1917 !important;
    transition: border-color 0.18s ease, background-color 0.18s ease !important;
}

html body #btn-open-mailbox-modal.res-mail:hover {
    border-color: #0284C7 !important;
    background: #DFD3BE !important;
}

html body #btn-open-mailbox-modal.res-mail.has-unread {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(225, 29, 72, 0.16)) !important;
    border-color: #B91C1C !important;
    color: #92400E !important;
    animation: none !important;
}

html body #ui-alias,
html body .cultivator-alias {
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

html body #ui-alias:hover,
html body .cultivator-alias:hover {
    color: #B45309 !important;
}

html body .btn-imperial-gold,
html body #btn-save-diary.btn-imperial-gold {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    border: 1px solid #92400E !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.24) !important;
    transition: all 0.2s ease !important;
}

html body .btn-imperial-gold:hover,
html body #btn-save-diary.btn-imperial-gold:hover {
    background: linear-gradient(135deg, #B45309 0%, #92400E 100%) !important;
    border-color: #78350F !important;
    color: #FAF6EE !important;
}

html body #btn-open-diary-memory-page {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.26) !important;
    color: #1C1917 !important;
    box-shadow: none !important;
}

html body #btn-open-diary-memory-page:hover {
    background: #DFD3BE !important;
    border-color: #B45309 !important;
    color: #92400E !important;
}

html body .lb-clean-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
}

html body .lb-clean-row {
    position: relative !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 11px 14px !important;
    border-radius: 12px !important;
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

html body .lb-clean-row.lb-top-1,
html body .lb-clean-row.lb-top-2,
html body .lb-clean-row.lb-top-3 {
    padding: 13px 16px !important;
}

html body .lb-clean-row.lb-top-1 {
    background:
        radial-gradient(circle at 12% 50%, rgba(225, 29, 72, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 88% 25%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #FAF6EE 0%, #F5E3BE 52%, #EFE0C2 100%) !important;
    border: 1.8px solid #D97706 !important;
    
}

html body .lb-clean-row.lb-top-2 {
    background:
        radial-gradient(circle at 12% 50%, rgba(2, 132, 199, 0.14) 0%, transparent 50%),
        linear-gradient(135deg, #FAF6EE 0%, #E0F2FE 55%, #EDE6DA 100%) !important;
    border: 1.6px solid #0284C7 !important;
    
}

html body .lb-clean-row.lb-top-3 {
    background:
        radial-gradient(circle at 12% 50%, rgba(217, 119, 6, 0.14) 0%, transparent 50%),
        linear-gradient(135deg, #FAF6EE 0%, #F2E4D4 55%, #EDE3D2 100%) !important;
    border: 1.5px solid #C2410C !important;
    
}

html body .lb-clean-row.lb-self-row {
    outline: 1.5px solid #0369A1 !important;
    outline-offset: -1.5px !important;
}

html body .lb-rank-orb {
    position: relative !important;
    z-index: 2 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-mono) !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.26) !important;
    color: #57534E !important;
    flex-shrink: 0 !important;
}

html body .lb-user-col {
    position: relative !important;
    z-index: 2 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

html body .lb-user-name-line {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
}

html body .lb-user-name {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #1C1917 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body .lb-top-element-tag {
    font-family: var(--font-mono) !important;
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    letter-spacing: 0.02em !important;
}

html body .lb-clean-row.lb-top-1 .lb-top-element-tag {
    background: linear-gradient(90deg, #E11D48, #D97706) !important;
    color: #FAF6EE !important;
    border: 1px solid #92400E !important;
}

html body .lb-clean-row.lb-top-2 .lb-top-element-tag {
    background: linear-gradient(90deg, #0284C7, #4F46E5) !important;
    color: #FAF6EE !important;
    border: 1px solid #0369A1 !important;
}

html body .lb-clean-row.lb-top-3 .lb-top-element-tag {
    background: linear-gradient(90deg, #B45309, #EA580C) !important;
    color: #FAF6EE !important;
    border: 1px solid #78350F !important;
}

html body .lb-realm-clean-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: fit-content !important;
    font-family: var(--font-sans, sans-serif) !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.25) !important;
    color: #57534E !important;
    letter-spacing: 0.01em !important;
}

html body .lb-realm-clean-tag[data-realm-lv="1"] {
    color: #0369A1 !important;
    border-color: rgba(3, 105, 161, 0.35) !important;
    background: rgba(3, 105, 161, 0.1) !important;
}

html body .lb-realm-clean-tag[data-realm-lv="2"] {
    color: #B45309 !important;
    border-color: rgba(217, 119, 6, 0.38) !important;
    background: rgba(217, 119, 6, 0.12) !important;
}

html body .lb-realm-clean-tag[data-realm-lv="3"] {
    color: #C2410C !important;
    border-color: rgba(194, 65, 12, 0.38) !important;
    background: rgba(234, 88, 12, 0.12) !important;
}

html body .lb-realm-clean-tag[data-realm-lv="4"] {
    color: #BE123C !important;
    border-color: rgba(190, 18, 60, 0.38) !important;
    background: rgba(225, 29, 72, 0.1) !important;
}

html body .lb-realm-clean-tag[data-realm-lv="5"] {
    color: #0284C7 !important;
    border-color: rgba(2, 132, 199, 0.38) !important;
    background: rgba(2, 132, 199, 0.12) !important;
}

html body .lb-realm-clean-tag[data-realm-lv="6"] {
    color: #6D28D9 !important;
    border-color: rgba(109, 40, 217, 0.38) !important;
    background: rgba(109, 40, 217, 0.1) !important;
}

html body .lb-realm-clean-tag[data-realm-lv="7"] {
    color: #0369A1 !important;
    border-color: rgba(3, 105, 161, 0.42) !important;
    background: rgba(3, 105, 161, 0.14) !important;
}

html body .lb-realm-clean-tag[data-realm-lv="8"] {
    color: #9F1239 !important;
    border-color: rgba(159, 18, 57, 0.42) !important;
    background: rgba(190, 18, 60, 0.12) !important;
}

html body .lb-realm-clean-tag[data-realm-lv="9"] {
    color: #92400E !important;
    border-color: rgba(180, 83, 9, 0.45) !important;
    background: rgba(245, 158, 11, 0.16) !important;
}

html body .lb-realm-clean-tag[data-realm-lv="10"] {
    color: #1D4ED8 !important;
    border-color: rgba(29, 78, 216, 0.42) !important;
    background: rgba(37, 99, 235, 0.12) !important;
}

html body .lb-realm-clean-tag[data-realm-lv="11"] {
    color: #BE123C !important;
    border-color: rgba(225, 29, 72, 0.5) !important;
    background: rgba(225, 29, 72, 0.14) !important;
}

html body .lb-realm-clean-tag[data-realm-lv="12"] {
    color: #78350F !important;
    border-color: #D97706 !important;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.25), rgba(225, 29, 72, 0.16)) !important;
}

html body .donate-compact-card {
    max-width: 330px !important;
    width: 92vw !important;
    padding: 14px 14px !important;
}

html body .donate-qr-frame-box {
    margin: 6px auto 10px !important;
    padding: 10px !important;
    background: #F3ECE0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(217, 119, 6, 0.42) !important;
}

html body .donate-qr-img-fit {
    display: block !important;
    width: 100% !important;
    max-width: 248px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    margin: 0 auto 8px !important;
    border-radius: 8px !important;
    background: #FAF6EE !important;
    padding: 4px !important;
}

html body .donate-meta-compact {
    font-size: 0.75rem !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    color: #1C1917 !important;
}

html body .donate-meta-line {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
}

html body .mail-item-card {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

html body .mail-item-card.is-unread {
    border-color: #D97706 !important;
    background: linear-gradient(135deg, #FAF6EE, #F5E5C6) !important;
}

html body .mail-item-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    font-size: 0.72rem !important;
    color: #57534E !important;
}

html body .mail-item-title {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: #92400E !important;
    margin: 0 !important;
}

html body .mail-item-body {
    font-size: 0.8rem !important;
    color: #1C1917 !important;
    line-height: 1.48 !important;
    white-space: pre-wrap !important;
}

html body #btn-supreme-reincarnate {
    display: none !important;
}

html body #ui-realm-name.reincarnate-trigger-ready {
    cursor: pointer !important;
    filter: drop-shadow(0 2px 10px rgba(217, 119, 6, 0.45));
}

html body.audit-locked-today:not(.chrono-running-active) #chrono-edit-toggle-wrap:not(.hidden) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

html body.audit-locked-today:not(.chrono-running-active) #chrono-visible-edit-deck:not(.hidden) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

@keyframes sacredSweepAcross {
    0% {
        transform: translateX(-165%) skewX(-24deg);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    46% {
        transform: translateX(350%) skewX(-24deg);
        opacity: 0.96;
    }
    52%, 100% {
        transform: translateX(350%) skewX(-24deg);
        opacity: 0;
    }
}

html body #tab-congdong .lb-top-element-tag {
    display: none !important;
}

html body #tab-congdong #leaderboard-self-beacon {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.14), rgba(3, 105, 161, 0.1)) !important;
    border: 1px solid rgba(217, 119, 6, 0.42) !important;
    color: #1C1917 !important;
}

html body #tab-congdong .lb-clean-row {
    position: relative !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    isolation: isolate !important;
}

html body #tab-congdong .lb-clean-row > * {
    position: relative !important;
    z-index: 3 !important;
}

html body #tab-congdong .lb-clean-row::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}

html body #tab-congdong .lb-clean-row.lb-top-1,
html body .lb-podium-col.podium-1 {
    position: relative !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 15% 50%, rgba(245, 158, 11, 0.2) 0%, transparent 55%),
        linear-gradient(135deg, #FAF6EE 0%, #F5E3BE 55%, #EFE0C2 100%) !important;
    border: 1.5px solid #D97706 !important;
    box-shadow: 0 8px 20px rgba(180, 83, 9, 0.14) !important;
    animation: none !important;
}

html body #tab-congdong .lb-clean-row.lb-top-1 .lb-rank-orb {
    background: linear-gradient(135deg, #F59E0B, #B45309) !important;
    border: 1.5px solid #78350F !important;
    color: #FAF6EE !important;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.24) !important;
}

html body #tab-congdong .lb-clean-row.lb-top-2,
html body .lb-podium-col.podium-2 {
    position: relative !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 15% 50%, rgba(2, 132, 199, 0.16) 0%, transparent 55%),
        linear-gradient(135deg, #FAF6EE 0%, #E0F2FE 55%, #EDE6DA 100%) !important;
    border: 1.5px solid #0284C7 !important;
    box-shadow: 0 8px 18px rgba(3, 105, 161, 0.12) !important;
    animation: none !important;
}

html body #tab-congdong .lb-clean-row.lb-top-2 .lb-rank-orb {
    background: linear-gradient(135deg, #0284C7, #0369A1) !important;
    border: 1.5px solid #075985 !important;
    color: #FAF6EE !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.22) !important;
}

html body #tab-congdong .lb-clean-row.lb-top-3,
html body .lb-podium-col.podium-3 {
    position: relative !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 15% 50%, rgba(234, 88, 12, 0.16) 0%, transparent 55%),
        linear-gradient(135deg, #FAF6EE 0%, #F2E4D4 55%, #EDE3D2 100%) !important;
    border: 1.5px solid #C2410C !important;
    box-shadow: 0 8px 18px rgba(194, 65, 12, 0.12) !important;
    animation: none !important;
}

html body #tab-congdong .lb-clean-row.lb-top-3 .lb-rank-orb {
    background: linear-gradient(135deg, #EA580C, #9A3412) !important;
    border: 1.5px solid #7C2D12 !important;
    color: #FAF6EE !important;
    box-shadow: 0 2px 8px rgba(194, 65, 12, 0.22) !important;
}

html body #tab-congdong .lb-clean-row.lb-self-row {
    outline: 2px solid #0369A1 !important;
    outline-offset: -2px !important;
    animation: none !important;
}

html body .sect-plaque-card,
html body .sect-card {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    animation: none !important;
}

html body #tab-congdong .lb-rank-orb {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-mono) !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.26) !important;
    color: #57534E !important;
    flex-shrink: 0 !important;
}

html body #tab-congdong .lb-user-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
}

html body #tab-congdong .lb-user-name-line {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
}

html body #tab-congdong .lb-user-name {
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    color: #1C1917 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body #tab-congdong .lb-clean-row.lb-top-1 .lb-user-name {
    color: #78350F !important;
}

html body #tab-congdong .lb-clean-row.lb-top-2 .lb-user-name {
    color: #075985 !important;
}

html body #tab-congdong .lb-clean-row.lb-top-3 .lb-user-name {
    color: #7C2D12 !important;
}

html body .lb-self-tag {
    font-family: var(--font-mono) !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    background: rgba(3, 105, 161, 0.14) !important;
    border: 1px solid rgba(3, 105, 161, 0.42) !important;
    color: #0369A1 !important;
    flex-shrink: 0 !important;
}

html body #tab-congdong .lb-realm-clean-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: fit-content !important;
    max-width: 100% !important;
    height: 24px !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html body .lb-metric-col {
    position: relative !important;
    z-index: 2 !important;
    text-align: right !important;
    flex-shrink: 0 !important;
    font-family: var(--font-mono) !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    color: #1C1917 !important;
}

html body .lb-clean-row.lb-top-1 .lb-metric-col {
    font-size: 1.04rem !important;
    color: #B45309 !important;
}

html body .lb-clean-row.lb-top-2 .lb-metric-col {
    font-size: 1rem !important;
    color: #0369A1 !important;
}

html body .lb-clean-row.lb-top-3 .lb-metric-col {
    font-size: 0.98rem !important;
    color: #C2410C !important;
}

html body .imperial-podium-showcase {
    position: relative;
    padding: 20px 12px 14px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 14%, rgba(245, 158, 11, 0.24) 0%, transparent 56%),
        linear-gradient(180deg, #FBF5E6 0%, #EFE1C6 100%);
    border: 2px solid #C69A5B;
    box-shadow: inset 0 0 24px rgba(140, 88, 28, 0.12), 0 8px 22px rgba(92, 56, 18, 0.12);
    margin-bottom: 14px;
}

html body .imperial-emperor-seal {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #EF4444 0%, #B91C1C 62%, #7F1D1D 100%);
    border: 2.5px solid #FDE047;
    color: #FEF08A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.8), inset 0 0 8px rgba(254, 240, 138, 0.65);
}

html body .imperial-podium-columns,
html body .lb-podium-stage {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: end !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
}

html body .podium-column-unit {
    cursor: pointer !important;
    user-select: none !important;
    transition: transform 0.18s ease !important;
}

html body .podium-column-unit:active {
    transform: scale(0.98) !important;
}

html body .podium-silk-banner {
    position: relative;
    padding: 18px 6px 22px !important;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 87%, 50% 100%, 0 87%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
}

html body #tab-congdong .podium-silk-banner.rank-1-silk,
html body .podium-silk-banner.rank-1-silk {
    background: linear-gradient(180deg, #FFFBEB 0%, #FDE68A 48%, #D97706 100%) !important;
    color: #291807 !important;
    border-top: 5px solid #92400E !important;
    min-height: 162px !important;
    padding: 22px 6px 26px !important;
}

html body #tab-congdong .podium-silk-banner.rank-2-silk,
html body .podium-silk-banner.rank-2-silk {
    background: linear-gradient(180deg, #1E40AF 0%, #1D4ED8 54%, #0F172A 100%) !important;
    color: #F8FAFC !important;
    border-top: 5px solid #93C5FD !important;
    min-height: 128px !important;
    padding: 16px 6px 18px !important;
}

html body #tab-congdong .podium-silk-banner.rank-3-silk,
html body .podium-silk-banner.rank-3-silk {
    background: linear-gradient(180deg, #573B26 0%, #3E2716 55%, #1C130B 100%) !important;
    color: #FEF3C7 !important;
    border-top: 5px solid #D97706 !important;
    min-height: 116px !important;
    padding: 14px 6px 16px !important;
}

html body .podium-player-name {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-weight: 900 !important;
    font-size: clamp(0.74rem, 2.6vw, 0.9rem) !important;
    line-height: 1.22 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding: 0 2px !important;
}

html body .podium-column-unit.is-reward-open .podium-player-name {
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
}

html body .podium-rank-two-lines {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    width: 100% !important;
    margin: 1px 0 2px 0 !important;
}

html body .podium-epoch-line {
    font-family: var(--font-mono) !important;
    font-size: clamp(0.58rem, 1.9vw, 0.66rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    opacity: 0.88 !important;
    white-space: nowrap !important;
}

html body .podium-realm-line {
    font-size: clamp(0.65rem, 2.2vw, 0.76rem) !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

html body .podium-metric-single-line {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    width: 100% !important;
    white-space: nowrap !important;
    font-family: var(--font-mono) !important;
    font-weight: 900 !important;
    font-size: clamp(0.62rem, 2.1vw, 0.78rem) !important;
    line-height: 1.2 !important;
}

html body .podium-reward-drawer {
    display: none !important;
    width: 100% !important;
    margin-top: 4px !important;
    padding: 4px 4px !important;
    border-radius: 6px !important;
    background: rgba(0, 0, 0, 0.22) !important;
    font-family: var(--font-mono) !important;
    font-size: clamp(0.54rem, 1.8vw, 0.64rem) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}

html body .podium-silk-banner.rank-1-silk .podium-reward-drawer {
    background: rgba(120, 53, 15, 0.16) !important;
    color: #451A03 !important;
}

html body .podium-column-unit.is-reward-open .podium-reward-drawer {
    display: block !important;
}

@media (max-width: 640px) {
    html body .imperial-podium-showcase {
        padding: 14px 6px 10px !important;
    }
    html body .imperial-podium-columns,
    html body .lb-podium-stage {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    html body #tab-congdong .podium-silk-banner.rank-1-silk,
    html body .podium-silk-banner.rank-1-silk {
        min-height: 148px !important;
        padding: 20px 4px 22px !important;
    }
    html body #tab-congdong .podium-silk-banner.rank-2-silk,
    html body .podium-silk-banner.rank-2-silk {
        min-height: 114px !important;
        padding: 15px 4px 16px !important;
    }
    html body #tab-congdong .podium-silk-banner.rank-3-silk,
    html body .podium-silk-banner.rank-3-silk {
        min-height: 104px !important;
        padding: 14px 4px 15px !important;
    }
    html body .podium-base-plinth {
        font-size: 0.55rem !important;
        padding: 4px 2px !important;
    }
    html body .podium-column-unit.col-rank-1 .podium-base-plinth {
        padding: 7px 2px !important;
    }
}

html body .imperial-silk-pennant-grid,
html body .imperial-silk-pennant-grid.four-sects-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 12px !important;
    margin: 10px 0 14px !important;
}

html body .imperial-silk-pennant {
    position: relative;
    padding: 14px 10px 26px !important;
    text-align: center;
    color: #FEF3C7;
    clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
    border-top: 5px solid #D99B4E;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease;
}

html body .imperial-silk-pennant:hover {
    transform: translateY(-2px);
}

html body .imperial-silk-pennant.pennant-crimson {
    background: linear-gradient(180deg, #991B1B 0%, #7F1D1D 56%, #450A0A 100%);
    box-shadow: 0 12px 24px rgba(153, 27, 27, 0.32), 0 0 16px rgba(245, 158, 11, 0.24);
}

html body .imperial-silk-pennant.pennant-sapphire {
    background: linear-gradient(180deg, #1E3A8A 0%, #172554 58%, #091128 100%);
}

html body .imperial-silk-pennant.pennant-bronze {
    background: linear-gradient(180deg, #92400E 0%, #78350F 58%, #451A03 100%);
}

html body .pennant-rank-header {
    font-size: clamp(0.58rem, 1.9vw, 0.68rem) !important;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #FDE68A;
    text-transform: uppercase;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html body .pennant-main-title {
    font-family: var(--font-display);
    font-size: clamp(0.82rem, 2.8vw, 1.04rem) !important;
    font-weight: 900;
    line-height: 1.22;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html body .pennant-sub-meta {
    font-size: clamp(0.64rem, 2vw, 0.74rem) !important;
    font-weight: 700;
    color: #FDE68A;
    margin-bottom: 8px;
    line-height: 1.3;
}

html body .pennant-medallion-seal {
    width: 38px !important;
    height: 38px !important;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem !important;
    background: radial-gradient(circle, #FDE047 0%, #D97706 70%, #78350F 100%);
    border: 2px solid #FEF08A;
    color: #451A03;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.38);
}

@media (max-width: 640px) {
    html body .imperial-silk-pennant-grid,
    html body .imperial-silk-pennant-grid.four-sects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px 8px !important;
    }
    html body .imperial-silk-pennant {
        padding: 11px 6px 22px !important;
    }
    html body .pennant-medallion-seal {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.96rem !important;
    }
    html body .pennant-tassels-row {
        height: 28px !important;
    }
    html body .pennant-tassels-row .pennant-tassel.tassel-center {
        width: 14px !important;
        height: 24px !important;
    }
}

html body #adm-pane-6.adm-users-subpage-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99995 !important;
    background: #F2ECE1 !important;
    padding: 16px !important;
    overflow-y: auto !important;
}

html body #adm-pane-6 .adm-users-subpage-bar,
html body #adm-pane-6 .adm-users-pagination-bar {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.28) !important;
    color: #1C1917 !important;
}

html body #adm-pane-6 .adm-users-pagination-bar button:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

@media (max-width: 540px) {
    html body #exam-countdown-card .exam-main-title {
        font-size: 1.08rem !important;
    }
    html body #exam-countdown-card .exam-unit-box strong {
        font-size: 1.26rem !important;
    }
    html body #tab-congdong .lb-clean-row {
        grid-template-columns: 38px minmax(0, 1fr) auto !important;
        gap: 9px !important;
        padding: 10px 11px !important;
    }
    html body #tab-congdong .lb-realm-clean-tag {
        font-size: 0.68rem !important;
        height: 22px !important;
        padding: 0 8px !important;
    }
}

:root {
    --bg-void: #F2ECE1 !important;
    --bg-deep: #E8DFCE !important;
    --bg-card: #FAF6EE !important;
    --bg-card-solid: #FAF6EE !important;
    --bg-panel: #F3ECE0 !important;
    --bg-input: #EAE2D3 !important;
    --bg-elevated: #F3ECE0 !important;
    --text-main: #1C1917 !important;
    --text-sub: #44403C !important;
    --text-muted: #57534E !important;
    --border-dim: rgba(146, 64, 14, 0.18) !important;
    --border-highlight: rgba(217, 119, 6, 0.42) !important;
    --radius-lg: 16px !important;
    --radius-md: 12px !important;
    --radius-sm: 8px !important;
}

html,
body {
    background-color: #F2ECE1 !important;
    background-image:
        radial-gradient(circle at 14% 12%, var(--realm-bleed-1, rgba(217, 119, 6, 0.14)) 0%, transparent 48%),
        radial-gradient(circle at 86% 14%, var(--realm-bleed-2, rgba(3, 105, 161, 0.1)) 0%, transparent 48%),
        linear-gradient(180deg, #F5EFE6 0%, #F2ECE1 55%, #ECE3D3 100%) !important;
    color: #1C1917 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html body .top-header,
html body .top-header.imperial-top-header {
    background: linear-gradient(180deg, #FBF6EC 0%, #F1E5D1 100%) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 2px solid #C69C63 !important;
    box-shadow: 0 4px 18px rgba(92, 58, 22, 0.12), inset 0 -1px 0 rgba(255, 251, 240, 0.85) !important;
}

html body .top-header .menu-trigger-btn,
html body .icon-btn {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.28) !important;
    color: #1C1917 !important;
    box-shadow: none !important;
}

html body .top-header .active-view-title {
    color: #1C1917 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html body .bottom-quick-nav,
html body .bottom-quick-nav.bottom-nav-icons-only {
    background: linear-gradient(180deg, #FAF3E4 0%, #EFE2C9 58%, #E4D0AE 100%) !important;
    border-top: 1.5px solid #C49A62 !important;
    padding: 4px 10px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    box-shadow: 0 -4px 14px rgba(78, 46, 14, 0.12), inset 0 1px 0 rgba(255, 252, 245, 0.9) !important;
    overflow: hidden !important;
}

html body .bottom-quick-nav .nav-tab {
    position: relative !important;
    min-height: 40px !important;
    padding: 4px !important;
    color: #5C4024 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transition: transform 0.18s ease, background-color 0.18s ease !important;
}

html body .bottom-quick-nav .nav-tab .tab-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
}

html body .bottom-quick-nav .nav-tab.active {
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.2) 0%, rgba(180, 83, 9, 0.08) 100%) !important;
    color: #78350F !important;
    border: 1px solid rgba(180, 83, 9, 0.45) !important;
    box-shadow: inset 0 1px 0 rgba(255, 252, 245, 0.85) !important;
}

html body .bottom-quick-nav .nav-tab.active .tab-icon {
    transform: scale(1.1) !important;
}

html body .resource-bar .res-pill,
html body .resource-bar .res-pill.cinnabar-stat-plaque,
html body .resource-bar .res-pill.res-star,
html body .resource-bar .res-pill.res-lt,
html body .resource-bar .res-pill.res-tt,
html body .resource-bar .res-pill.res-hammer,
html body .resource-bar #btn-open-mailbox-modal.res-pill.res-mail {
    position: relative !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    padding: 4px 10px !important;
    min-height: 36px !important;
    border-radius: 6px !important;
    font-family: var(--font-mono) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    background: linear-gradient(180deg, #F7EFE0 0%, #EADBC2 58%, #DECAA8 100%) !important;
    border: 1.5px solid rgba(120, 68, 20, 0.36) !important;
    color: #1C1917 !important;
    box-shadow:
        0 2px 6px rgba(68, 38, 10, 0.12),
        inset 0 0 0 1px rgba(255, 252, 245, 0.78) !important;
    cursor: pointer;
}

html body .resource-bar .res-pill span:not(.res-icon):not(.cinnabar-plaque-sub),
html body .resource-bar #btn-open-mailbox-modal.res-pill.res-mail #top-mail-count {
    color: #1C1917 !important;
    -webkit-text-fill-color: #1C1917 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

html body .resource-bar .res-pill .cinnabar-plaque-sub {
    color: #5C4024 !important;
    -webkit-text-fill-color: #5C4024 !important;
    text-shadow: none !important;
}

html body .resource-bar #btn-open-mailbox-modal.res-pill.res-mail.has-unread {
    border-color: #B91C1C !important;
    background: linear-gradient(180deg, #FEF2F2 0%, #FDE68A 100%) !important;
    box-shadow: 0 0 10px rgba(185, 28, 28, 0.28) !important;
}

@media (max-width: 640px) {
    html body .resource-bar .res-pill,
    html body .resource-bar .res-pill.cinnabar-stat-plaque,
    html body .resource-bar #btn-open-mailbox-modal.res-pill.res-mail {
        padding: 4px 8px !important;
        min-height: 32px !important;
    }
}

html body .cyber-card:not(#chrono-reactor-card):not(#realm-hero-container):not(#exam-countdown-card):not(#dashboard-todo-showcase) {
    position: relative !important;
    background:
        radial-gradient(circle at 8% 10%, rgba(139, 90, 43, 0.10) 0%, transparent 42%),
        radial-gradient(circle at 92% 90%, rgba(139, 90, 43, 0.12) 0%, transparent 42%),
        repeating-linear-gradient(0deg, rgba(120, 68, 20, 0.022) 0px, rgba(120, 68, 20, 0.022) 1px, transparent 1px, transparent 4px),
        linear-gradient(180deg, #FAF3E3 0%, #F3E6CE 55%, #EAD8B8 100%) !important;
    border: 3px double rgba(138, 90, 43, 0.48) !important;
    border-top: 3px double var(--realm-border-glow, #92400E) !important;
    border-radius: 12px !important;
    box-shadow:
        0 10px 26px -8px rgba(68, 38, 10, 0.18),
        inset 0 0 0 2px rgba(255, 252, 245, 0.72) !important;
}

html body .card-header {
    border-bottom: 2px double rgba(120, 68, 20, 0.28) !important;
}

html body .cyber-divider {
    height: 3px !important;
    border-top: 1px solid rgba(120, 68, 20, 0.35) !important;
    border-bottom: 1px solid rgba(120, 68, 20, 0.2) !important;
    background: transparent !important;
}

html body .day-group-accordion,
html body .pa-day-dossier {
    border: 2px double rgba(120, 68, 20, 0.38) !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #FAF3E3 0%, #F1E2C6 100%) !important;
}

html body .chron-table th,
html body .chron-table td {
    border: 1.5px solid rgba(120, 68, 20, 0.32) !important;
}

html body #audit-session-grid .sess-btn,
html body .period-btn,
html body .adm-tab-btn {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    color: #57534E !important;
    box-shadow: none !important;
}

html body #audit-session-grid .sess-btn.active,
html body .period-btn.active,
html body .adm-tab-btn.active {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    border-color: #92400E !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.25) !important;
}

html body #dashboard-todo-showcase.dashboard-todo-Command-card {
    position: relative !important;
    overflow: visible !important;
    isolation: isolate !important;
    background: linear-gradient(180deg, #FBF6EC 0%, #F4E9D5 55%, #EADBC0 100%) !important;
    border: 2.5px solid #B88642 !important;
    border-radius: 16px !important;
    padding: 18px 16px 16px !important;
    box-shadow:
        0 12px 28px rgba(78, 46, 14, 0.15),
        inset 0 0 0 3px #FAF3E6,
        inset 0 0 0 4.5px rgba(184, 134, 66, 0.45) !important;
}

html body #dashboard-todo-showcase.dashboard-todo-Command-card::after {
    display: none !important;
    content: none !important;
}

html body #dashboard-todo-showcase .dash-todo-list-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 4px 8px !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: visible !important;
}

html body #dashboard-todo-showcase .dash-todo-item {
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 2px 6px !important;
    padding: 11px 16px !important;
    background:
        radial-gradient(circle at 14% 25%, rgba(168, 118, 56, 0.14) 0%, transparent 48%),
        linear-gradient(180deg, #D7BD93 0%, #F2E4C9 20%, #FAF2E2 50%, #EFE0C2 82%, #D2B485 100%) !important;
    border-top: 1.5px solid #A87C40 !important;
    border-bottom: 2px solid #855D27 !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 2px !important;
    box-shadow:
        0 6px 14px rgba(68, 38, 10, 0.2),
        inset 10px 0 12px -8px rgba(88, 50, 12, 0.3),
        inset -10px 0 12px -8px rgba(88, 50, 12, 0.3),
        inset 0 1px 0 rgba(255, 252, 245, 0.75) !important;
    overflow: visible !important;
}

html body #dashboard-todo-showcase .dash-todo-item::before,
html body #dashboard-todo-showcase .dash-todo-item::after {
    content: "" !important;
    position: absolute !important;
    top: -5px !important;
    bottom: -5px !important;
    width: 10px !important;
    border-radius: 5px !important;
    background: linear-gradient(90deg, #4A2B0D 0%, #C89452 38%, #F4D39B 52%, #87531D 80%, #361D05 100%) !important;
    border: 1px solid #331B04 !important;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.35) !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

html body #dashboard-todo-showcase .dash-todo-item::before {
    left: -7px !important;
}

html body #dashboard-todo-showcase .dash-todo-item::after {
    right: -7px !important;
}


html body #btn-open-donate-modal.btn-donate-shimmer,
html body .btn-donate-shimmer {
    width: 100% !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(225, 29, 72, 0.15) 50%, rgba(217, 119, 6, 0.26) 100%) !important;
    border: 1.5px solid #D97706 !important;
    color: #92400E !important;
    font-weight: 800 !important;
    box-shadow: none !important;
    animation: none !important;
}

html body #realm-hero-container #ui-stage-5-steps.stage-5-steps-row,
html body #ui-stage-5-steps {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    margin-top: 7px !important;
}

html body #realm-hero-container #ui-stage-5-steps .step-dot,
html body #realm-hero-container #ui-stage-5-steps .step-dot:nth-child(1),
html body #realm-hero-container #ui-stage-5-steps .step-dot:nth-child(2),
html body #realm-hero-container #ui-stage-5-steps .step-dot:nth-child(3),
html body #realm-hero-container #ui-stage-5-steps .step-dot:nth-child(4),
html body #realm-hero-container #ui-stage-5-steps .step-dot:nth-child(5) {
    height: 22px !important;
    min-height: 22px !important;
    line-height: 20px !important;
    padding: 0 2px !important;
    border-radius: 6px !important;
    font-size: clamp(0.56rem, 1.8vw, 0.64rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    color: #57534E !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
}

html body #realm-hero-container #ui-stage-5-steps .step-dot.passed {
    background: var(--realm-bleed-1, rgba(217, 119, 6, 0.18)) !important;
    border: 1px solid var(--realm-border-glow, rgba(217, 119, 6, 0.45)) !important;
    color: var(--realm-border-glow, #92400E) !important;
}

html body #realm-hero-container #ui-stage-5-steps .step-dot.active {
    background: linear-gradient(
        135deg,
        var(--realm-border-glow, #D97706) 0%,
        var(--realm-sec-glow, #B45309) 100%
    ) !important;
    border: 1px solid var(--realm-border-glow, #78350F) !important;
    color: #FAF6EE !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
    box-shadow: 0 3px 10px var(--realm-title-shadow, rgba(180, 83, 9, 0.35)) !important;
}

html body #ui-next-hint {
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    border-radius: 10px !important;
    color: #44403C !important;
    padding: 7px 12px !important;
    margin-top: 8px !important;
    font-size: 0.76rem !important;
    box-shadow: none !important;
}

html body #tab-chienvuc .sword-svg-container,
html body .sword-svg-container {
    width: 100% !important;
    max-width: 440px !important;
    height: auto !important;
    aspect-ratio: 320 / 175 !important;
    margin: 0 auto 8px auto !important;
    background: radial-gradient(circle at 50% 50%, #161b2b 0%, #05070e 100%) !important;
    border-radius: 14px !important;
    border: 2px solid #D97706 !important;
    overflow: hidden !important;
    box-shadow: 0 8px 20px rgba(28, 25, 23, 0.3) !important;
}

html body #tab-chienvuc .dragon-svg-container,
html body .dragon-svg-container {
    width: 100% !important;
    max-width: 440px !important;
    height: auto !important;
    aspect-ratio: 320 / 185 !important;
    margin: 0 auto 8px auto !important;
    background: radial-gradient(circle at 50% 50%, #161b2b 0%, #05070e 100%) !important;
    border-radius: 14px !important;
    border: 2px solid #D97706 !important;
    overflow: hidden !important;
    box-shadow: 0 8px 20px rgba(28, 25, 23, 0.3) !important;
}

html body .sword-svg-container canvas,
html body .dragon-svg-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
}

html body #tab-kehoach #exam-countdown-card.exam-countdown-banner,
html body #exam-countdown-card,
html body #exam-countdown-card[data-urgency="calm"],
html body #exam-countdown-card[data-urgency="normal"],
html body #exam-countdown-card[data-urgency="focus"],
html body #exam-countdown-card[data-urgency="warning"],
html body #exam-countdown-card[data-urgency="critical"],
html body #exam-countdown-card.exam-stage-1,
html body #exam-countdown-card.exam-stage-2,
html body #exam-countdown-card.exam-stage-3 {
    position: relative !important;
    overflow: hidden !important;
    padding: 18px 18px 18px !important;
    border-radius: 8px !important;
    background:
        radial-gradient(circle at 12% 15%, rgba(139, 90, 43, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(139, 90, 43, 0.16) 0%, transparent 45%),
        repeating-linear-gradient(0deg, rgba(120, 68, 20, 0.03) 0px, rgba(120, 68, 20, 0.03) 1px, transparent 1px, transparent 4px),
        linear-gradient(90deg, #D5BC92 0%, #F5E9D3 7%, #FAF2E2 50%, #F5E9D3 93%, #D5BC92 100%) !important;
    border-top: 6px solid #5C340E !important;
    border-bottom: 6px solid #452407 !important;
    border-left: 2.5px solid var(--exam-accent, #92400E) !important;
    border-right: 2.5px solid var(--exam-accent, #92400E) !important;
    box-shadow:
        0 10px 24px -6px rgba(62, 34, 8, 0.22),
        inset 0 0 0 3px #FAF3E3,
        inset 0 0 0 4.5px var(--exam-accent, #92400E) !important;
    animation: none !important;
    isolation: isolate !important;
}

html body #exam-countdown-card[data-urgency="calm"],
html body #exam-countdown-card[data-urgency="normal"] {
    --exam-accent: #166534;
    --exam-sec: #14532D;
}

html body #exam-countdown-card[data-urgency="focus"] {
    --exam-accent: #075985;
    --exam-sec: #0C4A6E;
}

html body #exam-countdown-card[data-urgency="warning"] {
    --exam-accent: #92400E;
    --exam-sec: #78350F;
}

html body #exam-countdown-card[data-urgency="critical"] {
    --exam-accent: #9F1239;
    --exam-sec: #881337;
}

html body #exam-countdown-card.exam-countdown-banner::before,
html body #exam-countdown-card.exam-countdown-banner::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}

html body #exam-countdown-card .sacred-corner-svg {
    color: var(--exam-accent, #92400E) !important;
    filter: none !important;
    width: 20px !important;
    height: 20px !important;
    z-index: 3 !important;
}

html body #exam-countdown-card .exam-top-bar {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px double rgba(120, 68, 20, 0.32) !important;
    flex-wrap: wrap !important;
}

html body #exam-countdown-card .exam-subject-pill {
    background: #EADAC0 !important;
    border: 1.5px solid rgba(120, 68, 20, 0.35) !important;
    color: #3E2712 !important;
    font-size: 0.73rem !important;
    font-weight: 800 !important;
    padding: 4px 11px !important;
    border-radius: 5px !important;
}

html body #exam-countdown-card .exam-subject-pill.active {
    background: var(--exam-accent, #92400E) !important;
    border-color: #451A03 !important;
    color: #FFFBEB !important;
}

html body .exam-corner-icon-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    background: #EADAC0 !important;
    border: 1.5px solid rgba(120, 68, 20, 0.35) !important;
    color: #3E2712 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    padding: 0 !important;
}

html body #btn-delete-active-exam {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 5px !important;
    background: rgba(159, 18, 57, 0.12) !important;
    border: 1.5px solid rgba(159, 18, 57, 0.45) !important;
    color: #9F1239 !important;
    font-size: 1.02rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 5 !important;
}

html body #exam-countdown-card #exam-hero-display.exam-hero-display {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
}

html body #exam-countdown-card .exam-header-stage {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.88) 0%, rgba(238, 222, 194, 0.88) 100%) !important;
    border: 2px double rgba(120, 68, 20, 0.36) !important;
}

html body #exam-countdown-card .exam-urgency-pill {
    display: none !important;
}

html body #exam-countdown-card .exam-main-title,
html body #exam-countdown-card #exam-active-title {
    color: #1C0D02 !important;
    -webkit-text-fill-color: #1C0D02 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    box-shadow: none !important;
    filter: none !important;
    font-family: var(--font-display, 'Chakra Petch', serif) !important;
    font-weight: 900 !important;
    font-size: clamp(1.35rem, 4.6vw, 2.05rem) !important;
    letter-spacing: 0.04em !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 22px !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
}

html body #exam-countdown-card .exam-datetime-badges-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

html body #exam-countdown-card .exam-meta-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    border-radius: 5px !important;
    background: var(--exam-accent, #78350F) !important;
    border: 1.5px solid #291405 !important;
    color: #FFFBEB !important;
    font-size: 0.84rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em !important;
    box-shadow: 0 2px 6px rgba(41, 20, 5, 0.22) !important;
}

html body #exam-countdown-card #exam-active-time.exam-meta-chip {
    background: #EAD8B8 !important;
    border: 1.5px solid #8A5A2B !important;
    color: #291405 !important;
    font-size: 0.78rem !important;
    box-shadow: none !important;
}

html body #exam-countdown-card .exam-Boxes-col {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 540px !important;
    margin: 4px auto 0 auto !important;
    padding: 10px !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #3D2311 0%, #261408 100%) !important;
    border: 2px solid #C68B3C !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(42, 20, 6, 0.22) !important;
}

html body #exam-countdown-card .exam-unit-box,
html body #exam-countdown-card .exam-unit-box.exam-sec-pulse-box {
    background: linear-gradient(180deg, #4B2C16 0%, #2E180A 100%) !important;
    border: 1.5px solid #B87B32 !important;
    border-radius: 8px !important;
    padding: 10px 4px !important;
    box-shadow: inset 0 1px 0 rgba(254, 243, 199, 0.18) !important;
    animation: none !important;
    transform: none !important;
}

html body #exam-countdown-card .exam-unit-box strong {
    color: #FEF3C7 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55) !important;
    box-shadow: none !important;
    filter: none !important;
    animation: none !important;
    font-weight: 800 !important;
    font-size: clamp(1.75rem, 6vw, 2.45rem) !important;
    line-height: 1.08 !important;
    letter-spacing: 0.02em !important;
}

html body #exam-countdown-card .exam-unit-box span {
    color: #DFC08E !important;
    text-shadow: none !important;
    font-weight: 800 !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.08em !important;
    margin-top: 4px !important;
}

.exam-ambient-particles {
    display: none !important;
}

html body #admin-vault-modal .adm-tabs-nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
}

html body #admin-vault-modal .adm-tabs-nav .adm-tab-btn:last-child {
    grid-column: auto !important;
}

@media (min-width: 768px) {
    html body #admin-vault-modal .adm-tabs-nav {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

html body .achv-honor-plaque {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    padding: 14px 16px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
}

html body .achv-honor-emblem-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 86px !important;
    width: auto !important;
}

html body .achv-honor-rank-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    width: max-content !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

@media (max-width: 640px) {
    html body .achv-honor-plaque {
        grid-template-columns: auto minmax(0, 1fr) !important;
    }
    html body .achv-honor-right-col {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        justify-self: stretch !important;
    }
}

html body .mail-item-card {
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.22) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    box-shadow: none !important;
}

html body .mail-item-card.is-unread {
    border-color: #D97706 !important;
    background: linear-gradient(135deg, #FAF6EE, #F5E5C6) !important;
}

html body #btn-export-realm-card.realm-inline-photo-btn {
    flex: 0 0 auto !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    background: #EAE2D3 !important;
    border: 1px solid rgba(180, 83, 9, 0.38) !important;
    color: #92400E !important;
    box-shadow: none !important;
    font-size: 0.95rem !important;
}

html body #toast-container,
.toast-container {
    z-index: 100005 !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled),
html body #chrono-reactor-card.cyber-card:not(.chrono-theme-oled),
html body #chrono-reactor-card.oled-chrono-card:not(.chrono-theme-oled),
html body.chrono-zen-mode #chrono-reactor-card:not(.chrono-theme-oled) {
    background: linear-gradient(165deg, #FAF3E3 0%, #EFE0C6 100%) !important;
    border: 3px double rgba(146, 64, 14, 0.48) !important;
    box-shadow: var(--shadow-card) !important;
    color: #1C1917 !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) .chrono-header-bar {
    border-bottom: 2px double rgba(146, 64, 14, 0.24) !important;
}

html body:not(.chrono-zen-mode) #chrono-reactor-card .chrono-svg-box {
    position: relative !important;
    width: 248px !important;
    height: 248px !important;
    min-height: 248px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html body:not(.chrono-zen-mode) #chrono-reactor-card .chrono-svg-box svg,
html body:not(.chrono-zen-mode) .oled-ring-box svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
}

html body.chrono-zen-mode #chrono-reactor-card .chrono-svg-box {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

html body.chrono-zen-mode #chrono-reactor-card .chrono-svg-box svg,
html body.chrono-zen-mode #chrono-reactor-card .oled-ring-box svg {
    display: none !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) .oled-ring-box svg circle:first-child {
    stroke: #DFD5C3 !important;
    stroke-width: 8 !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) #chrono-svg-ring {
    stroke: #B45309 !important;
    stroke-width: 8 !important;
    opacity: 0.92 !important;
    filter: none !important;
    transition: stroke-dashoffset 0.4s linear !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled).chrono-is-overtime #chrono-svg-ring {
    stroke: #D97706 !important;
}

html body:not(.chrono-zen-mode) #chrono-reactor-card .chrono-center-readout {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 22px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
}

html body.chrono-zen-mode #chrono-reactor-card .chrono-center-readout {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    pointer-events: none !important;
}

html body #chrono-reactor-card .chrono-digits,
html body #chrono-reactor-card #chrono-time-display {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 3.15rem !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    filter: none !important;
    letter-spacing: 0.03em !important;
    line-height: 1.05 !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) .chrono-digits,
html body #chrono-reactor-card:not(.chrono-theme-oled) #chrono-time-display {
    color: #1C1917 !important;
    -webkit-text-fill-color: #1C1917 !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled).chrono-is-overtime .chrono-digits,
html body #chrono-reactor-card:not(.chrono-theme-oled).chrono-is-overtime #chrono-time-display {
    color: #B45309 !important;
    -webkit-text-fill-color: #B45309 !important;
}

html body #chrono-reactor-card #chrono-state-label {
    font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
    font-weight: 700 !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.10em !important;
    line-height: 1.25 !important;
    margin-top: 6px !important;
    max-width: 176px !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    opacity: 0.62 !important;
    text-shadow: none !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) #chrono-state-label {
    color: #57534E !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) .field-group label {
    color: #57534E !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) .oled-pill,
html body #chrono-reactor-card:not(.chrono-theme-oled) .oled-btn:not(.oled-btn-primary):not(.oled-btn-audit-distinct):not(.oled-btn-harvest):not(.oled-btn-danger),
html body #chrono-reactor-card:not(.chrono-theme-oled) .oled-select,
html body #chrono-reactor-card:not(.chrono-theme-oled) .oled-input,
html body #chrono-reactor-card:not(.chrono-theme-oled) #btn-chrono-zen-toggle,
html body #chrono-reactor-card:not(.chrono-theme-oled) #btn-toggle-chrono-edit-deck {
    background: #EAE2D3 !important;
    color: #1C1917 !important;
    border: 1px solid rgba(146, 64, 14, 0.26) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) #btn-chrono-open-audit.oled-btn-audit-distinct {
    padding: 7px 12px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    border-radius: 9px !important;
    background: #F3E5C8 !important;
    border: 1.5px solid #B45309 !important;
    color: #78350F !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) .oled-btn-primary,
html body #chrono-reactor-card:not(.chrono-theme-oled) #btn-chrono-start {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    color: #FAF6EE !important;
    border: 1px solid #92400E !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    padding: 12px 20px !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.22) !important;
    text-shadow: none !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) .oled-btn-harvest,
html body #chrono-reactor-card:not(.chrono-theme-oled) #btn-chrono-finish {
    background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%) !important;
    border: 1px solid #0369A1 !important;
    color: #FAF6EE !important;
    box-shadow: none !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) .oled-btn-danger,
html body #chrono-reactor-card:not(.chrono-theme-oled) #btn-chrono-reset {
    background: rgba(190, 18, 60, 0.1) !important;
    border: 1px solid rgba(190, 18, 60, 0.38) !important;
    color: #BE123C !important;
    box-shadow: none !important;
}

html body #chrono-reactor-card:not(.chrono-theme-oled) #chrono-visible-edit-deck {
    background: #F3ECE0 !important;
    border: 1px solid rgba(146, 64, 14, 0.24) !important;
    color: #1C1917 !important;
}

html body.chrono-theme-oled:has(#tab-dongho.active),
html body.chrono-theme-oled.chrono-zen-mode {
    background-color: #000000 !important;
    background-image: none !important;
    color: #F8FAFC !important;
}

html body #chrono-reactor-card.chrono-theme-oled,
html body.chrono-zen-mode #chrono-reactor-card.chrono-theme-oled {
    background: #080B12 !important;
    background-image: none !important;
    border: 1px solid #1E293B !important;
    box-shadow: none !important;
    color: #F8FAFC !important;
}

html body #chrono-reactor-card.chrono-theme-oled::before,
html body #chrono-reactor-card.chrono-theme-oled::after {
    display: none !important;
    content: none !important;
}

html body #chrono-reactor-card.chrono-theme-oled .chrono-header-bar {
    border-bottom: 1px solid #1E293B !important;
}

html body #chrono-reactor-card.chrono-theme-oled .oled-ring-box svg circle:first-child {
    stroke: #1E293B !important;
    stroke-width: 8 !important;
}

html body #chrono-reactor-card.chrono-theme-oled #chrono-svg-ring {
    stroke: #CBD5E1 !important;
    stroke-width: 8 !important;
    opacity: 0.92 !important;
    filter: none !important;
    transition: stroke-dashoffset 0.4s linear !important;
}

html body #chrono-reactor-card.chrono-theme-oled.chrono-is-overtime #chrono-svg-ring {
    stroke: #FBBF24 !important;
}

html body #chrono-reactor-card.chrono-theme-oled .chrono-digits,
html body #chrono-reactor-card.chrono-theme-oled #chrono-time-display {
    color: #F8FAFC !important;
    -webkit-text-fill-color: #F8FAFC !important;
    text-shadow: none !important;
    filter: none !important;
}

html body #chrono-reactor-card.chrono-theme-oled.chrono-is-overtime .chrono-digits,
html body #chrono-reactor-card.chrono-theme-oled.chrono-is-overtime #chrono-time-display {
    color: #FBBF24 !important;
    -webkit-text-fill-color: #FBBF24 !important;
}

html body #chrono-reactor-card.chrono-theme-oled #chrono-state-label {
    color: #94A3B8 !important;
    opacity: 0.56 !important;
}

html body #chrono-reactor-card.chrono-theme-oled .field-group label {
    color: #94A3B8 !important;
}

html body #chrono-reactor-card.chrono-theme-oled .oled-pill,
html body #chrono-reactor-card.chrono-theme-oled .oled-btn:not(.oled-btn-primary):not(.oled-btn-audit-distinct):not(.oled-btn-harvest):not(.oled-btn-danger),
html body #chrono-reactor-card.chrono-theme-oled .oled-select,
html body #chrono-reactor-card.chrono-theme-oled .oled-input,
html body #chrono-reactor-card.chrono-theme-oled #btn-chrono-zen-toggle,
html body #chrono-reactor-card.chrono-theme-oled #btn-toggle-chrono-edit-deck {
    background: #111827 !important;
    color: #E2E8F0 !important;
    border: 1px solid #334155 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html body #chrono-reactor-card.chrono-theme-oled #btn-chrono-open-audit.oled-btn-audit-distinct {
    padding: 7px 12px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    border-radius: 9px !important;
    background: #172033 !important;
    border: 1px solid #D97706 !important;
    color: #FDE68A !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html body #chrono-reactor-card.chrono-theme-oled .oled-btn-primary,
html body #chrono-reactor-card.chrono-theme-oled #btn-chrono-start {
    background: #1E293B !important;
    color: #F8FAFC !important;
    border: 1.5px solid #94A3B8 !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    padding: 12px 20px !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html body #chrono-reactor-card.chrono-theme-oled .oled-btn-harvest,
html body #chrono-reactor-card.chrono-theme-oled #btn-chrono-finish {
    background: #1E293B !important;
    border: 1px solid #38BDF8 !important;
    color: #E0F2FE !important;
    box-shadow: none !important;
}

html body #chrono-reactor-card.chrono-theme-oled .oled-btn-danger,
html body #chrono-reactor-card.chrono-theme-oled #btn-chrono-reset {
    background: #1F2937 !important;
    border: 1px solid #F43F5E !important;
    color: #FDA4AF !important;
    box-shadow: none !important;
}

html body #chrono-reactor-card.chrono-theme-oled #chrono-visible-edit-deck {
    background: #0F172A !important;
    border: 1px solid #1E293B !important;
    color: #E2E8F0 !important;
}

html body #chrono-reactor-card.chrono-theme-oled #chrono-visible-edit-deck div,
html body #chrono-reactor-card.chrono-theme-oled #chrono-visible-edit-deck span {
    color: #E2E8F0 !important;
}

html body #chrono-reactor-card.chrono-theme-oled #chrono-visible-edit-deck button {
    background: #1E293B !important;
    border: 1px solid #334155 !important;
    color: #F8FAFC !important;
}

html body.chrono-zen-mode #chrono-reactor-card .chrono-digits,
html body.chrono-zen-mode #chrono-reactor-card #chrono-time-display {
    font-size: clamp(4.8rem, min(22vw, 38dvh), 15rem) !important;
    line-height: 1 !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
    text-align: center !important;
}

html body.chrono-zen-mode #chrono-reactor-card #chrono-state-label {
    opacity: 0.28 !important;
    font-size: clamp(0.72rem, 1.8vw, 0.92rem) !important;
    letter-spacing: 0.16em !important;
    max-width: 90vw !important;
    margin-top: 14px !important;
    font-weight: 600 !important;
}

@media (orientation: landscape) and (max-height: 640px) {
    html body:has(#tab-dongho.active) #chrono-reactor-card .chrono-svg-box {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }
    html body:has(#tab-dongho.active) #chrono-reactor-card .chrono-svg-box svg {
        display: none !important;
    }
    html body:has(#tab-dongho.active) #chrono-reactor-card .chrono-center-readout {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
    }
    html body:has(#tab-dongho.active) #chrono-reactor-card .chrono-digits,
    html body:has(#tab-dongho.active) #chrono-reactor-card #chrono-time-display {
        font-size: clamp(4.6rem, min(22vw, 44dvh), 14rem) !important;
        line-height: 1 !important;
    }
    html body:has(#tab-dongho.active) #chrono-reactor-card #chrono-state-label {
        opacity: 0.28 !important;
        max-width: 90vw !important;
    }
}


html body #tab-chienvuc .cyber-card > .card-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px 10px !important;
}

html body #tab-chienvuc .cyber-card > .card-header h3 {
    flex: 1 1 auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    font-size: clamp(0.92rem, 3.6vw, 1.05rem) !important;
    margin: 0 !important;
}

html body #tab-chienvuc #sword-tier-badge,
html body #tab-chienvuc #pet-tier-badge,
html body #tab-chienvuc #boss-tier-badge {
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
    padding: 4px 10px !important;
    font-size: 0.7rem !important;
}

html body #ladder-modal.guide-subpage-overlay.hidden,
html body #guide-codex-modal.guide-subpage-overlay.hidden,
html body .guide-subpage-overlay.hidden {
    display: none !important;
}

html body #ladder-modal.guide-subpage-overlay:not(.hidden),
html body #guide-codex-modal.guide-subpage-overlay:not(.hidden) {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #F2ECE1 !important;
    z-index: 99992 !important;
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

html body #ladder-modal .rank-modal-card.guide-subpage-card,
html body #guide-codex-modal .guide-subpage-card {
    width: 100% !important;
    max-width: 1080px !important;
    min-height: 100dvh !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 14px 14px 80px 14px !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 10px solid #C69F68 !important;
    border-right: 10px solid #C69F68 !important;
    background: linear-gradient(180deg, #FAF3E3 0%, #F2E5CE 52%, #E8D6B7 100%) !important;
    box-shadow: inset 0 0 32px rgba(92, 56, 18, 0.16) !important;
    overflow: visible !important;
}

@media (max-width: 640px) {
    html body #ladder-modal .rank-modal-card.guide-subpage-card,
    html body #guide-codex-modal .guide-subpage-card {
        border-left-width: 4px !important;
        border-right-width: 4px !important;
        padding: 12px 10px 80px 10px !important;
    }
}

html body #ladder-modal .ladder-subpage-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
}

html body #ladder-modal .ladder-subpage-title-wrap {
    flex: 1 1 170px !important;
    min-width: 0 !important;
}

html body #ladder-modal .ladder-subpage-title-wrap h3 {
    margin: 0 !important;
    font-size: clamp(0.88rem, 3.2vw, 1.12rem) !important;
    color: #92400E !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body #ladder-modal .ladder-subpage-title-wrap small {
    display: block !important;
    font-size: 0.68rem !important;
    color: #57534E !important;
}

html body #ladder-modal #ladder-header-actions,
html body #ladder-modal .ladder-header-actions {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

@media (max-width: 520px) {
    html body #ladder-modal .ladder-subpage-title-wrap {
        flex: 1 1 100% !important;
    }
    html body #ladder-modal #ladder-header-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }
    html body #ladder-modal #btn-instant-crystallize-stars {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }
}

html body #ladder-modal .imperial-epochs-stack-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
}

@media (min-width: 860px) {
    html body #ladder-modal .imperial-epochs-stack-list {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

html body #ladder-modal .epoch-stack-banner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 2px !important;
    padding: 7px 6px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    border: 1.5px solid rgba(217, 155, 78, 0.65) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease !important;
    min-width: 0 !important;
}

html body #ladder-modal .epoch-stack-banner:hover {
    transform: translateY(-1px) !important;
}

html body #ladder-modal .epoch-stack-banner.active-selected {
    outline: 2.5px solid #F59E0B !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28), 0 6px 14px rgba(0, 0, 0, 0.2) !important;
}

html body #ladder-modal .epoch-stack-banner.epoch-theme-5 {
    background: linear-gradient(135deg, #3B1D06 0%, #52290A 50%, #291202 100%) !important;
    color: #FEF3C7 !important;
    border-color: #F59E0B !important;
}

html body #ladder-modal .epoch-stack-banner.epoch-theme-4 {
    background: linear-gradient(135deg, #9A3412 0%, #B45309 50%, #7C2D12 100%) !important;
    color: #FFFBEB !important;
    border-color: #FBBF24 !important;
}

html body #ladder-modal .epoch-stack-banner.epoch-theme-3 {
    background: linear-gradient(135deg, #B88642 0%, #9E6E2B 50%, #85581A 100%) !important;
    color: #FFFBEB !important;
    border-color: #78490E !important;
}

html body #ladder-modal .epoch-stack-banner.epoch-theme-2 {
    background: linear-gradient(135deg, #DFC394 0%, #CEAB72 50%, #BA9152 100%) !important;
    color: #1C1917 !important;
    border-color: #9C7336 !important;
}

html body #ladder-modal .epoch-stack-banner.epoch-theme-1 {
    background: linear-gradient(135deg, #F2E4C9 0%, #E6D1AA 50%, #D8BC8C 100%) !important;
    color: #1C1917 !important;
    border-color: #B89358 !important;
}

html body #ladder-modal .epoch-stack-banner.epoch-theme-0 {
    background: linear-gradient(135deg, #FBF7EE 0%, #F3E9D6 52%, #E8DABF 100%) !important;
    color: #292524 !important;
    border-color: #C9B18B !important;
}

html body #ladder-modal .epoch-banner-meditator,
html body #ladder-modal .epoch-banner-sub {
    display: none !important;
}

html body #ladder-modal .epoch-banner-left-col {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

html body #ladder-modal .epoch-banner-code {
    font-size: clamp(0.64rem, 2.1vw, 0.74rem) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body #ladder-modal .epoch-banner-center-col {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
}

html body #ladder-modal .epoch-banner-realm-title {
    display: none !important;
}

html body #ladder-modal .epoch-banner-mult-pill {
    padding: 1px 6px !important;
    border-radius: 999px !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    background: rgba(20, 14, 8, 0.48) !important;
    color: #FDE68A !important;
    border: 1px solid rgba(251, 191, 36, 0.45) !important;
    white-space: nowrap !important;
}

html body #ladder-modal .epoch-stack-banner.epoch-theme-0 .epoch-banner-mult-pill,
html body #ladder-modal .epoch-stack-banner.epoch-theme-1 .epoch-banner-mult-pill,
html body #ladder-modal .epoch-stack-banner.epoch-theme-2 .epoch-banner-mult-pill {
    background: rgba(120, 53, 15, 0.14) !important;
    color: #78350F !important;
    border: 1px solid rgba(146, 64, 14, 0.35) !important;
}

html body #ladder-modal .epoch-banner-income-badge {
    padding: 2px 6px !important;
    border-radius: 6px !important;
    font-family: var(--font-mono) !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    background: rgba(250, 240, 215, 0.9) !important;
    color: #291A0C !important;
    border: 1px solid rgba(140, 98, 48, 0.45) !important;
    white-space: nowrap !important;
}

html body #ladder-modal .rank-card-3d > .status-badge:first-child {
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: clamp(0.62rem, 2.1vw, 0.74rem) !important;
    padding: 4px 10px !important;
}

html body #ladder-modal #rank-dots-nav.rank-dots-nav {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
    max-width: 310px !important;
    margin: 10px auto 0 auto !important;
}

@media (min-width: 680px) {
    html body #ladder-modal #rank-dots-nav.rank-dots-nav {
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
        max-width: 520px !important;
    }
}

html body #ladder-modal #rank-dots-nav .rank-dot {
    width: 100% !important;
    height: 30px !important;
    border-radius: 8px !important;
    font-size: 0.74rem !important;
}

@media (max-width: 680px) {
    html body .top-header,
    html body .top-header.imperial-top-header {
        padding: 6px 8px !important;
        gap: 6px !important;
    }
    html body .top-header .header-left {
        width: 100% !important;
        flex: 1 1 100% !important;
        gap: 6px !important;
    }
    html body .top-header .active-view-title {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: 0.92rem !important;
    }
    html body .resource-bar {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }
    html body .resource-bar .res-pill,
    html body .resource-bar .res-pill.cinnabar-stat-plaque,
    html body .resource-bar #btn-open-mailbox-modal.res-pill.res-mail {
        width: 100% !important;
        min-width: 0 !important;
        padding: 4px 2px !important;
        min-height: 30px !important;
        font-size: 0.7rem !important;
    }
}
@keyframes royalTasselGentleSway {
    0%, 100% {
        transform: rotate(-2.2deg);
    }
    50% {
        transform: rotate(2.2deg);
    }
}

html body .podium-silk-banner::before,
html body .imperial-silk-pennant::before {
    border: none !important;
    display: none !important;
    content: none !important;
}

html body .podium-silk-banner,
html body .imperial-silk-pennant {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

html body .podium-silk-banner::after,
html body .imperial-silk-pennant::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}

html body .podium-silk-banner > *,
html body .imperial-silk-pennant > * {
    position: relative !important;
    z-index: 2 !important;
}

html body .podium-column-unit.col-rank-1,
html body .podium-column-unit.col-rank-2,
html body .podium-column-unit.col-rank-3,
html body .pennant-wrapper-col.sapphire-col,
html body .pennant-wrapper-col.bronze-col,
html body .pennant-wrapper-col.white-jade-col,
html body .pennant-wrapper-col.crimson-col {
    animation: none !important;
    filter: none !important;
}

html body .imperial-silk-pennant.pennant-white-jade {
    background: linear-gradient(180deg, #FFFFFF 0%, #EEF2F6 54%, #CBD5E1 100%) !important;
    border-top: 5px solid #B45309 !important;
    border-left: 1.5px solid #B45309 !important;
    border-right: 1.5px solid #B45309 !important;
    color: #1E293B !important;
    box-shadow: 0 10px 22px rgba(30, 41, 59, 0.16) !important;
}

html body .imperial-silk-pennant.pennant-white-jade .pennant-rank-header,
html body .imperial-silk-pennant.pennant-white-jade .pennant-sub-meta {
    color: #92400E !important;
}

html body .imperial-silk-pennant.pennant-white-jade .pennant-main-title {
    color: #1E293B !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body .pennant-tassels-row {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    height: 44px !important;
    margin-top: -3px !important;
    padding: 0 !important;
    z-index: 4 !important;
    pointer-events: none !important;
}

html body .pennant-tassels-row .pennant-tassel:not(.tassel-center) {
    display: none !important;
}

html body .pennant-tassels-row .pennant-tassel.tassel-center {
    position: relative !important;
    display: block !important;
    width: 18px !important;
    height: 38px !important;
    margin: 0 auto !important;
    border-radius: 0 0 6px 6px !important;
    transform-origin: top center !important;
    animation: royalTasselGentleSway 3.4s ease-in-out infinite !important;
    clip-path: polygon(36% 0%, 64% 0%, 64% 24%, 100% 100%, 0% 100%, 36% 24%) !important;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(254, 240, 138, 0.38) 0px,
            rgba(254, 240, 138, 0.38) 1.5px,
            transparent 1.5px,
            transparent 3.5px
        ),
        linear-gradient(180deg, #F59E0B 0%, #D97706 26%, #B91C1C 62%, #7F1D1D 100%) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28) !important;
}

html body .pennant-tassels-row .pennant-tassel.tassel-center::before {
    content: "" !important;
    position: absolute !important;
    top: 3px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 10px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, #FEF08A 0%, #D97706 70%, #78350F 100%) !important;
    border: 1px solid #FEF9C3 !important;
}

html body .pennant-wrapper-col.sapphire-col .pennant-tassel.tassel-center {
    background:
        repeating-linear-gradient(
            90deg,
            rgba(186, 230, 253, 0.42) 0px,
            rgba(186, 230, 253, 0.42) 1.5px,
            transparent 1.5px,
            transparent 3.5px
        ),
        linear-gradient(180deg, #F59E0B 0%, #38BDF8 28%, #0284C7 68%, #1E3A8A 100%) !important;
}

html body .pennant-wrapper-col.bronze-col .pennant-tassel.tassel-center {
    background:
        repeating-linear-gradient(
            90deg,
            rgba(254, 243, 199, 0.45) 0px,
            rgba(254, 243, 199, 0.45) 1.5px,
            transparent 1.5px,
            transparent 3.5px
        ),
        linear-gradient(180deg, #FDE047 0%, #F59E0B 28%, #B45309 68%, #78350F 100%) !important;
}

html body .pennant-wrapper-col.white-jade-col .pennant-tassel.tassel-center {
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.65) 0px,
            rgba(255, 255, 255, 0.65) 1.5px,
            transparent 1.5px,
            transparent 3.5px
        ),
        linear-gradient(180deg, #B45309 0%, #F8FAFC 28%, #CBD5E1 68%, #64748B 100%) !important;
}

html body .pennant-wrapper-col.crimson-col .pennant-tassel.tassel-center {
    background:
        repeating-linear-gradient(
            90deg,
            rgba(253, 224, 71, 0.42) 0px,
            rgba(253, 224, 71, 0.42) 1.5px,
            transparent 1.5px,
            transparent 3.5px
        ),
        linear-gradient(180deg, #FDE047 0%, #EF4444 28%, #B91C1C 68%, #450A0A 100%) !important;
}

html body .imperial-ancient-scroll-frame {
    position: relative !important;
    overflow: visible !important;
    margin-top: 18px !important;
    margin-bottom: 22px !important;
    padding: 26px 24px 36px 24px !important;
    border-radius: 6px !important;
    background:
        radial-gradient(circle at 12% 14%, rgba(139, 90, 43, 0.11) 0%, transparent 44%),
        radial-gradient(circle at 88% 86%, rgba(139, 90, 43, 0.13) 0%, transparent 44%),
        linear-gradient(180deg, #FAF4E4 0%, #F2E6CE 54%, #E8D7B6 100%) !important;
    border: 2px solid #A47B46 !important;
    box-shadow:
        0 12px 28px -8px rgba(54, 30, 8, 0.24),
        inset 0 0 0 4px #FAF3E3,
        inset 0 0 0 5.5px rgba(138, 90, 43, 0.36) !important;
}

html body .imperial-ancient-scroll-frame::before {
    display: none !important;
    content: none !important;
}

html body .imperial-ancient-scroll-frame.scroll-arena-shell {
    padding: 26px 20px 36px 20px !important;
}

html body .imperial-ancient-scroll-frame .asc-top-rod {
    position: absolute !important;
    top: -17px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(76%, 360px) !important;
    height: 30px !important;
    pointer-events: none !important;
    z-index: 6 !important;
}

html body .imperial-ancient-scroll-frame .asc-top-rod svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    filter: drop-shadow(0 3px 5px rgba(42, 20, 4, 0.32));
}

html body .imperial-ancient-scroll-frame .asc-side-tassel {
    position: absolute !important;
    top: 2px !important;
    width: 24px !important;
    height: 92px !important;
    pointer-events: none !important;
    z-index: 5 !important;
    transform-origin: 50% 0% !important;
    animation: plaqueTasselSwing 4.2s ease-in-out infinite !important;
}

html body .imperial-ancient-scroll-frame .asc-side-tassel.asc-tassel-left {
    left: 4px !important;
}

html body .imperial-ancient-scroll-frame .asc-side-tassel.asc-tassel-right {
    right: 4px !important;
}

html body .imperial-ancient-scroll-frame .asc-side-tassel svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

html body .imperial-ancient-scroll-frame .asc-round-seal {
    position: absolute !important;
    bottom: 20px !important;
    left: 14px !important;
    width: 36px !important;
    height: 36px !important;
    pointer-events: none !important;
    z-index: 4 !important;
    opacity: 0.72 !important;
}

html body .imperial-ancient-scroll-frame .asc-round-seal svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

html body .imperial-ancient-scroll-frame .asc-bottom-rod {
    position: absolute !important;
    bottom: -15px !important;
    left: -10px !important;
    right: -10px !important;
    height: 28px !important;
    pointer-events: none !important;
    z-index: 6 !important;
}

html body .imperial-ancient-scroll-frame .asc-bottom-rod svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    filter: drop-shadow(0 4px 6px rgba(42, 20, 4, 0.28));
}

@media (max-width: 640px) {
    html body .imperial-ancient-scroll-frame,
    html body .imperial-ancient-scroll-frame.scroll-arena-shell {
        margin-top: 14px !important;
        margin-bottom: 18px !important;
        padding: 22px 12px 30px 12px !important;
    }
    html body .imperial-ancient-scroll-frame .asc-top-rod {
        top: -14px !important;
        width: min(82%, 280px) !important;
        height: 24px !important;
    }
    html body .imperial-ancient-scroll-frame .asc-side-tassel {
        width: 18px !important;
        height: 68px !important;
    }
    html body .imperial-ancient-scroll-frame .asc-side-tassel.asc-tassel-left {
        left: 0px !important;
    }
    html body .imperial-ancient-scroll-frame .asc-side-tassel.asc-tassel-right {
        right: 0px !important;
    }
    html body .imperial-ancient-scroll-frame .asc-round-seal {
        width: 28px !important;
        height: 28px !important;
        bottom: 16px !important;
        left: 10px !important;
    }
    html body .imperial-ancient-scroll-frame .asc-bottom-rod {
        bottom: -12px !important;
        left: -6px !important;
        right: -6px !important;
        height: 22px !important;
    }
}

html body #btn-time-reverse,
html body .btn-time-reverse-bronze {
    background: linear-gradient(135deg, #7C4A1E 0%, #5A3210 55%, #3E2008 100%) !important;
    border: 1.5px solid #C68B3C !important;
    color: #FEF3C7 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(62, 32, 8, 0.26) !important;
}

html body #btn-time-reverse:hover:not(:disabled),
html body .btn-time-reverse-bronze:hover:not(:disabled) {
    background: linear-gradient(135deg, #925824 0%, #6E3E14 100%) !important;
    border-color: #EAB308 !important;
}

html body .hdr-cloud-sync-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    background: #16A34A !important;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.35) !important;
}

html body .hdr-cloud-sync-dot.synced {
    background: #16A34A !important;
}

html body .hdr-cloud-sync-dot.pending {
    background: #D97706 !important;
}

html body .hdr-cloud-sync-dot.offline {
    background: #DC2626 !important;
}

html body .hdr-sound-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.92rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    margin-left: 2px !important;
}

html body .sidebar-mini-btn {
    background: #EAE2D3 !important;
    border: 1px solid rgba(146, 64, 14, 0.26) !important;
    color: #1C1917 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 6px 8px !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body .sidebar-mini-btn:hover {
    background: #DFD3BE !important;
    border-color: #B45309 !important;
    color: #92400E !important;
}

html body .sidebar-mini-btn.active-static-on {
    background: rgba(3, 105, 161, 0.14) !important;
    border-color: #0369A1 !important;
    color: #0369A1 !important;
}

html body .sidebar-mini-btn.sidebar-logout-btn {
    color: #7F1D1D !important;
    border-color: rgba(185, 28, 28, 0.32) !important;
}

html body .auth-turnstile-box {
    display: flex !important;
    justify-content: center !important;
    margin: 8px 0 4px 0 !important;
    min-height: 0 !important;
}

html body #kehoach-todo-root {
    min-width: 0 !important;
    width: 100% !important;
}

@keyframes parchmentSkeletonFade {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.88; }
}

.ntm-skeleton-card,
.lb-skeleton-row {
    border-radius: 12px !important;
    padding: 12px 14px !important;
    background: #EFE4D0 !important;
    border: 1px solid rgba(146, 64, 14, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.ntm-skeleton-bar {
    height: 12px !important;
    border-radius: 6px !important;
    background: #DECBB0 !important;
    will-change: opacity;
    animation: parchmentSkeletonFade 1.4s ease-in-out infinite !important;
}

.ntm-skeleton-bar.short {
    width: 48% !important;
}

.ntm-skeleton-bar.medium {
    width: 74% !important;
}

@keyframes aiTypingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-4px); opacity: 1; }
}

.ai-typing-indicator,
.chat-ai.is-loading {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-style: italic !important;
    color: #78350F !important;
    background: #F7EFE0 !important;
    border: 1px dashed #D97706 !important;
}

.ai-typing-dots {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.ai-typing-dots span {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #B45309 !important;
    animation: aiTypingBounce 1.1s infinite ease-in-out !important;
}

.ai-typing-dots span:nth-child(2) {
    animation-delay: 0.16s !important;
}

.ai-typing-dots span:nth-child(3) {
    animation-delay: 0.32s !important;
}

.imperial-confirm-backdrop,
.ntm-confirm-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100020 !important;
    background: rgba(24, 16, 8, 0.62) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
}

.imperial-confirm-card,
.ntm-confirm-modal {
    width: 100% !important;
    max-width: 410px !important;
    padding: 20px 18px 16px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #FAF4E6 0%, #EFE2C8 100%) !important;
    border: 2.5px double #92400E !important;
    box-shadow: 0 18px 44px rgba(24, 14, 4, 0.45), inset 0 0 0 2px rgba(255, 252, 245, 0.85) !important;
    color: #1C1917 !important;
}

.imperial-confirm-title,
.ntm-confirm-title {
    font-family: var(--font-display) !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    color: #78350F !important;
    margin-bottom: 8px !important;
}

.imperial-confirm-msg,
.ntm-confirm-msg {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    color: #292524 !important;
    margin-bottom: 14px !important;
    white-space: pre-line !important;
}

.imperial-confirm-actions,
.ntm-confirm-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

@keyframes undoToastBarShrink {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

.cyber-toast.ntm-undo-toast {
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 11px 12px 13px !important;
    background: #FAF4E6 !important;
    border: 1.5px solid #B45309 !important;
    border-left: 4px solid #B91C1C !important;
    color: #1C1917 !important;
}

.ntm-undo-btn {
    padding: 5px 10px !important;
    border-radius: 7px !important;
    border: 1px solid #92400E !important;
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
    color: #FAF6EE !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.ntm-undo-progress {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 3px !important;
    background: #D97706 !important;
    transform-origin: left center !important;
    animation: undoToastBarShrink 5s linear forwards !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}