﻿#reloadPageWithUser {
    position: fixed;
    right: 12px;
    bottom: 88px;
    z-index: 9999;
    min-width: 72px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(43, 33, 24, 0.72);
    color: #fffaf3;
    font-size: 13px;
    line-height: 32px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(43, 33, 24, 0.16);
    cursor: pointer;
    user-select: none;
}

#autoLoginContainer {
    display: none;
    width: 0;
    height: 0;
    border: 0;
}

#pcNavFalooApp .faloo-brandbar,
#pcNavFalooApp .faloo-categorybar-wrap {
    display: none;
}

#pcNavFalooApp .faloo-topbar {
    background: rgba(255, 252, 246, 0.92);
    box-shadow: 0 6px 18px rgba(92, 66, 43, 0.04);
}

#pcNavFalooApp .faloo-topline {
    min-height: 34px;
}

#pcNavFalooApp .faloo-navbar {
    border-bottom: 1px solid rgba(92, 66, 43, 0.1);
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(250, 244, 234, 0.94));
}

#pcNavFalooApp .faloo-mainnav {
    min-height: 42px;
    justify-content: center;
    gap: 8px;
}

#pcNavFalooApp .faloo-mainnav a {
    min-height: 30px;
    padding: 0 16px;
    border-radius: 999px;
}

.readhead {
    position: relative;
    top: auto;
    z-index: 20;
    min-height: 58px;
    border: 0;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(249, 242, 231, 0.9)),
        #fbf7ef;
    box-shadow: inset 0 -1px 0 rgba(92, 66, 43, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.readhead .booknav {
    width: min(980px, calc(100% - 36px));
    min-height: 58px;
    justify-content: center;
    gap: 6px;
    color: rgba(91, 73, 56, 0.66);
    font-size: 13px;
}

.readhead .booknav b {
    color: rgba(47, 38, 31, 0.92);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.readhead .booknav span {
    max-width: 220px;
}

.readhead .booknav span + span::before {
    content: "›";
    margin-right: 6px;
    color: rgba(92, 66, 43, 0.34);
}

.readhead .booknav a {
    color: rgba(91, 73, 56, 0.72);
    transition: color 0.18s ease;
}

.readhead .booknav a:hover {
    color: #b85f42;
}

#book_info {
    position: sticky;
    top: 0;
    z-index: 80 !important;
    min-height: 60px;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.62);
    border-bottom: 1px solid rgba(92, 66, 43, 0.1);
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 12px 28px rgba(92, 66, 43, 0.06);
}

#book_info img {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(92, 66, 43, 0.07);
    transition: transform 0.18s ease, background 0.18s ease;
}

#book_info img:hover {
    background: rgba(184, 95, 66, 0.12);
    transform: translateX(-2px);
}

#book_info div {
    color: rgba(47, 38, 31, 0.88);
    font-size: 16px;
    font-weight: 800;
}

#book_info div:nth-of-type(2) {
    width: 1px;
    height: 18px;
    background: rgba(92, 66, 43, 0.18);
    font-size: 0;
}

body.layout-modal-open {
    overflow: hidden;
}

.layout-force-show {
    display: block !important;
}

#pcLoginModalMaskGlobal {
    position: fixed;
    inset: 0;
    background: rgba(44, 31, 16, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 30000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#pcLoginModalMaskGlobal.show {
    display: flex;
}

#pcLoginModalWrapGlobal {
    position: relative;
    width: 430px;
    max-width: 100%;
    background: linear-gradient(180deg, #fffaf2 0%, #fffdf8 100%);
    border: 1px solid rgba(221, 199, 166, 0.9);
    border-radius: 18px;
    box-shadow: 0 22px 56px rgba(83, 55, 24, 0.14);
    overflow: hidden;
    color: #2b2118;
}

#pcLoginModalWrapGlobal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #9d611f, #d59a4b, #a97836);
}

#pcLoginModalWrapGlobal .hd {
    min-height: 76px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(229, 213, 190, 0.82);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: rgba(255, 250, 242, 0.76);
}

#pcLoginModalWrapGlobal .hd .title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #2b2118;
}

#pcLoginModalWrapGlobal .hd .subtitle {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #856241;
}

#pcLoginModalWrapGlobal .hd .close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(218, 198, 168, 0.86);
    border-radius: 50%;
    background: #fffaf3;
    color: #8a6235;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#pcLoginModalWrapGlobal .hd .close.is-hidden {
    display: none;
}

#pcLoginModalWrapGlobal .hd .close:hover {
    background: #f5eadb;
    color: #5d3714;
    transform: translateY(-1px);
}

#pcLoginModalWrapGlobal .bd {
    padding: 22px 24px 24px;
}

#pcLoginModalWrapGlobal .field {
    position: relative;
    border: 1px solid rgba(218, 198, 168, 0.9);
    background: #fffaf3;
    border-radius: 12px;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    margin-bottom: 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#pcLoginModalWrapGlobal .field:focus-within {
    border-color: #b9772d;
    background: #fffdf8;
    box-shadow: 0 0 0 3px rgba(185, 119, 45, 0.12);
}

#pcLoginModalWrapGlobal .field .prefix {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex: none;
    opacity: 0.72;
    filter: sepia(0.35) saturate(0.85);
}

#pcLoginModalWrapGlobal .field .prefix img {
    width: 20px;
    height: 20px;
    display: block;
}

#pcLoginModalWrapGlobal .field input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 15px;
    color: #2b2118;
    background: transparent;
    padding: 0;
}

#pcLoginModalWrapGlobal .field input::placeholder {
    color: #aa9277;
}

#pcLoginModalWrapGlobal .field .suffix {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9b7147;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease;
}

#pcLoginModalWrapGlobal .field .suffix:hover {
    background: #f2e5d3;
    color: #6d4219;
}

#pcLoginModalWrapGlobal .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    margin-bottom: 18px;
}

#pcLoginModalWrapGlobal .row .left {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6f5132;
    gap: 8px;
    white-space: nowrap;
}

#pcLoginModalWrapGlobal .row .left input {
    width: 15px;
    height: 15px;
    accent-color: #b9772d;
}

#pcLoginModalWrapGlobal .row .right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

#pcLoginModalWrapGlobal .row .right a {
    color: #7b5631;
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.18s ease;
}

#pcLoginModalWrapGlobal .row .right a:hover {
    color: #b9772d;
}

#pcLoginModalWrapGlobal .row .right .sep {
    color: #d7c3a9;
    margin: 0 8px;
}

#pcLoginModalWrapGlobal .submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #a86624 0%, #c78232 100%);
    color: #fffaf3;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(168, 102, 36, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#pcLoginModalWrapGlobal .submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(168, 102, 36, 0.26);
    filter: saturate(1.04);
}

#pcLoginModalWrapGlobal .submit[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 8px 18px rgba(168, 102, 36, 0.16);
}

@media (max-width: 520px) {
    #pcLoginModalMaskGlobal {
        padding: 14px;
    }

    #pcLoginModalWrapGlobal {
        border-radius: 16px;
    }

    #pcLoginModalWrapGlobal .hd {
        padding: 18px 18px 14px;
    }

    #pcLoginModalWrapGlobal .hd .title {
        font-size: 22px;
    }

    #pcLoginModalWrapGlobal .bd {
        padding: 18px;
    }

    #pcLoginModalWrapGlobal .row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    #pcLoginModalWrapGlobal .row .right {
        width: 100%;
        justify-content: space-between;
    }

    #pcLoginModalWrapGlobal .row .right .sep {
        display: none;
    }
}

@media (max-width: 1024px) {
    #pcNavFalooApp .faloo-topbar,
    #pcNavFalooApp .faloo-navbar {
        display: none;
    }
}

@media (max-width: 640px) {
    .readhead {
        display: none;
    }

    #book_info {
        min-height: 54px;
        justify-content: flex-start;
        padding: 0 14px;
    }

    #book_info div {
        font-size: 15px;
    }
}
