.guide-auth-links{display:flex;align-items:center;gap:10px;margin-left:auto;font:600 13px system-ui,sans-serif}
.guide-auth-links a,.guide-auth-links button{display:inline-block;background:#317452;color:#fff;border:0;border-radius:10px;padding:9px 12px;font:inherit;text-decoration:none;cursor:pointer}
.guide-auth-links form{margin:0}.guide-auth-links .guide-email{font-size:12px;max-width:130px;overflow:hidden;text-overflow:ellipsis}
.guide-auth-page{padding:42px 14px 90px;background:#f6f8f5}.guide-auth-card{max-width:440px;margin:auto;padding:28px;background:white;border:1px solid #dbe6de;border-radius:20px;box-shadow:0 12px 30px #16372112}
.guide-auth-card h1{font:700 29px system-ui;margin:0 0 10px}.guide-auth-card p{color:#607466;line-height:1.5}.guide-auth-card label{display:block;margin:18px 0 6px;font:600 14px system-ui}.guide-auth-card input{box-sizing:border-box;width:100%;height:48px;padding:10px;border:1px solid #c5d6c9;border-radius:11px;font:16px system-ui}
.guide-auth-card button{margin-top:22px;background:#28724d;color:#fff;border:0;border-radius:11px;width:100%;padding:14px;font:700 15px system-ui;cursor:pointer}.guide-auth-card .guide-auth-bottom{text-align:center;margin-top:22px}.guide-auth-bottom a{font-weight:700;color:#267049}.guide-auth-card .guide-auth-error{padding:10px;background:#fff0ea;color:#962d18;border-radius:9px}
.bible-verse:has(.guide-verse-btn){position:relative;padding-right:41px}.guide-verse-btn{position:absolute;right:0;top:3px;border:0;background:transparent;color:#467653;font-size:19px;cursor:pointer;min-width:35px;min-height:36px}.bible-verse.guide-highlight{background:#fff0a8!important;border-radius:8px}.bible-verse.guide-focus{outline:2px solid #34815b;outline-offset:2px;border-radius:8px}
.guide-notes-trigger{position:fixed;right:18px;bottom:18px;z-index:1001;background:#246e4b;border:0;border-radius:99px;color:white;padding:13px 20px;box-shadow:0 8px 26px #0003;font:700 14px system-ui;cursor:pointer}
.guide-notes-mask{position:fixed;inset:0;background:#0007;z-index:9000}.guide-notes-panel{position:fixed;right:0;top:0;bottom:0;width:min(410px,100%);z-index:9001;background:#fff;padding:22px;box-sizing:border-box;overflow:auto;box-shadow:-15px 0 32px #0003;font:14px system-ui;color:#253b2b}
.guide-notes-mask[hidden],.guide-notes-panel[hidden],[data-guide-hidden]{display:none!important}.guide-notes-panel-head{display:flex;justify-content:space-between;align-items:center}.guide-notes-panel-head h2{font:750 22px system-ui;margin:0}.guide-notes-panel-head button{height:42px;width:42px;border:0;border-radius:50%;font-size:23px;background:#eaf1eb;cursor:pointer}
.guide-notes-tabs,.guide-notes-actions{display:flex;gap:8px;margin:15px 0}.guide-notes-tabs button,.guide-notes-actions button{flex:1;min-height:43px;border:1px solid #c4d7ca;border-radius:10px;background:#f4f8f4;color:#276345;font-weight:650;cursor:pointer}.guide-notes-tabs button.active,.guide-notes-actions .save{background:#28704b;color:#fff}.guide-notes-label{font-weight:750;margin:18px 0 10px}.guide-notes-panel textarea{width:100%;box-sizing:border-box;height:150px;padding:12px;border:1px solid #bdcfc1;border-radius:12px;font:16px/1.4 system-ui;resize:vertical}.guide-notes-status{min-height:18px;color:#35724e}
.guide-saved-list{display:grid;gap:9px}.guide-saved-list a{display:block;padding:12px;border-radius:12px;background:#f3f8f4;border:1px solid #dce7dd;text-decoration:none;color:#254b33}.guide-saved-list small{display:block;margin-top:4px;color:#66746a;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:767px){.guide-auth-links{gap:5px}.guide-auth-links a,.guide-auth-links button{padding:8px;font-size:12px}.guide-auth-links .guide-email{display:none}.site-header .header-row{display:flex!important;justify-content:space-between!important;gap:6px}.site-header .brand{font-size:16px!important;white-space:normal!important}.guide-notes-trigger{bottom:calc(82px + env(safe-area-inset-bottom,0px))}.guide-notes-panel{top:auto;left:0;right:0;bottom:0;width:100%;max-height:89dvh;border-radius:23px 23px 0 0;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}}

/* Development notebook: mobile layout and saved-note controls. */

.guide-notes-trigger {
    z-index: 12000;
    min-height: 46px;
}

.guide-notes-mask {
    z-index: 20000;
}

.guide-notes-panel {
    z-index: 20001;
}

.guide-notes-tabs {
    position: sticky;
    top: -22px;
    z-index: 2;
    background: white;
    padding: 10px 0;
}

.guide-notes-tabs button {
    min-height: 48px;
    font: 700 14px system-ui;
}

.guide-notes-panel textarea {
    min-height: 145px;
}

.guide-notes-actions {
    flex-wrap: wrap;
}

.guide-notes-actions button {
    flex: 1 1 45%;
    min-height: 45px;
    padding: 8px;
    font-size: 13px;
}

.guide-notes-actions .danger,
.guide-saved-tools .danger {
    color: #a23123;
    background: #fff0ed;
    border: 1px solid #efc8c0;
}

.guide-saved-list {
    display: grid;
    gap: 12px;
}

.guide-saved-card {
    border: 1px solid #dce7dd;
    border-radius: 14px;
    background: #f6faf7;
    padding: 14px;
    overflow-wrap: anywhere;
}

.guide-saved-card strong {
    display: block;
    font: 700 15px/1.35 system-ui;
}

.guide-note-preview {
    white-space: pre-wrap;
    color: #57685e;
    font: 14px/1.4 system-ui;
}

.guide-saved-tools {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 11px;
}

.guide-saved-tools button {
    min-height: 44px;
    border: 1px solid #c7d9ca;
    border-radius: 10px;
    padding: 8px 11px;
    background: #fff;
    color: #285d40;
    font: 700 12px system-ui;
    cursor: pointer;
}

.guide-notes-panel button:disabled,
.guide-verse-btn:disabled {
    opacity: .55;
}

@media (max-width: 767px) {
    .guide-notes-trigger {
        bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    }

    .guide-notes-panel {
        inset: 0 !important;
        width: 100% !important;
        max-height: none !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        padding:
            calc(10px + env(safe-area-inset-top, 0px))
            16px
            calc(15px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .guide-notes-tabs {
        top: 0;
        margin: 10px 0;
        gap: 8px;
    }

    .guide-notes-tabs button {
        min-height: 48px;
    }

    .guide-notes-panel-head {
        min-height: 48px;
    }

    .guide-notes-panel textarea {
        height: 25dvh;
        min-height: 130px;
    }
}


/* Development account header */

.site-header .guide-auth-links {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

/* Desktop: white login text */

.site-header .guide-auth-links a.guide-login-link {
    display: inline-block;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #efefeb;
    box-shadow: none;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.site-header .guide-auth-links a.guide-login-link:hover {
    text-decoration: underline;
}

/* Person icon */

.site-header .guide-user-menu {
    position: relative;
}

.site-header .guide-user-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.09);
    color: white;
    cursor: pointer;
    list-style: none;
}

.site-header .guide-user-trigger::-webkit-details-marker {
    display: none;
}

/* Dropdown */

.site-header .guide-user-dropdown {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 9px);
    right: 0;
    min-width: 145px;
    padding: 7px;
    background: white;
    border: 1px solid #e0e7e0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.site-header .guide-user-dropdown form {
    margin: 0;
}

/* Logout: red text, no bulky button */

.site-header .guide-user-dropdown button.guide-logout-text {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: none;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    color: #c02e2e;
    font: 600 14px system-ui, sans-serif;
    text-align: left;
    cursor: pointer;
}

.site-header .guide-user-dropdown button.guide-logout-text:hover {
    background: #fff1f1;
}

/* Mobile: keep green login and account icon */

@media (max-width: 767px) {
    .site-header .guide-auth-links a.guide-login-link {
        padding: 9px 13px;
        background: #28724d;
        color: white;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 650;
        text-decoration: none;
        white-space: nowrap;
    }

    .site-header .guide-user-trigger {
        background: #28724d;
        border-color: #28724d;
        color: white;
    }
}


/* MOBILE ORIGINAL HEADER RESTORATION */
@media (max-width: 767px) {

    .site-header {
        background: #2e332d !important;
        border-bottom: 1px solid #1c201b;
        box-shadow: none;
    }

    .site-header .header-row {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 60px;
        min-height: 60px;
        padding: 0 16px;
    }

    .site-header .brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        max-width: calc(100% - 135px);

        color: #efefeb !important;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(15px, 4vw, 20px);
        font-weight: bold;
        letter-spacing: normal;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    .site-header .guide-auth-links {
        position: relative;
        z-index: 2;
        margin-left: auto;
    }

    .site-header .guide-auth-links a.guide-login-link {
        background: #28724d;
        color: white;
    }

    .site-header .guide-user-trigger {
        background: #28724d;
        color: white;
    }
}


/* ORIGINAL WHITE MOBILE HEADER */
@media screen and (max-width: 767px) {

    .site-header {
        background: #ffffff !important;
        border-bottom: 1px solid #e3e8e3 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .site-header .header-row {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 12px !important;
    }

    .site-header .brand {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;

        margin: 0 !important;
        padding: 0 !important;
        max-width: calc(100% - 125px) !important;

        font-family: Georgia, "Times New Roman", serif !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        letter-spacing: normal !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: nowrap !important;

        color: #253229 !important;
        background: transparent !important;
        text-decoration: none !important;
    }

    .site-header .guide-auth-links {
        position: absolute !important;
        top: 50% !important;
        right: 12px !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        z-index: 20 !important;
    }

    .site-header .guide-auth-links a.guide-login-link {
        background: #28724d !important;
        color: #ffffff !important;
        border-radius: 10px !important;
        padding: 9px 12px !important;
        font-size: 12px !important;
        font-weight: 650 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    .site-header .guide-user-trigger {
        width: 38px !important;
        height: 38px !important;
        background: #28724d !important;
        border: 1px solid #28724d !important;
        color: #ffffff !important;
    }

    .site-header .guide-user-dropdown {
        right: 0 !important;
        background: #ffffff !important;
    }

    .site-header .guide-user-dropdown .guide-logout-text {
        background: transparent !important;
        color: #c02e2e !important;
        border: none !important;
        box-shadow: none !important;
    }
}
