/* GLOBAL */
:root {
--partner-bar-height: 38px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #070816;
    color: #e5e7eb;
    line-height: 1.6;
}

/* DEFENSIVE FIX FOR ACCIDENTAL NESTED INCLUDE MARKUP */
.top-partner-bar .top-partner-bar {
    position: static;
    top: auto;
    z-index: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: inherit;
    line-height: inherit;
}

nav nav {
    position: static;
    top: auto;
    z-index: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* TOP PARTNER BAR */
.top-partner-bar {
    position: sticky;
    top: 0;
    z-index: 99999;
    min-height: var(--partner-bar-height);
    background: #050510;
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.4;
}

.top-partner-bar span {
    opacity: 0.8;
    margin-right: 6px;
}

.top-partner-bar a,
footer a {
    color: #f5c76b;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 700;
}

.top-partner-bar a:hover,
footer a:hover {
    text-decoration: underline;
}

/* HEADER */
header {
    background:
        radial-gradient(circle at top, rgba(245,199,107,0.18), transparent 35%),
        linear-gradient(135deg, #070816, #312e81, #111827);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

header h1 {
    font-size: 52px;
    margin: 0 0 10px;
    color: #f5c76b;
    letter-spacing: 1px;
}

header p {
    max-width: 760px;
    margin: 0 auto;
    color: #e5e7eb;
    font-size: 20px;
}

/* NAV */
nav {
    position: sticky;
    top: var(--partner-bar-height);
    z-index: 99998;
    background: #111827;
    padding: 14px 20px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.38);
}

nav a {
    color: #f5c76b;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 700;
}

nav a:hover {
    color: #fff;
}

/* MAIN */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.intro {
    text-align: center;
    margin-bottom: 45px;
}

.intro h2 {
    margin-bottom: 12px;
    color: #f5c76b;
    font-size: 34px;
}

.intro p {
    max-width: 780px;
    margin: 12px auto;
    color: #d1d5db;
}

.section-title {
    margin-top: 55px;
    margin-bottom: 20px;
    color: #f5c76b;
    font-size: 28px;
    scroll-margin-top: 110px;
}

/* TOOL GRID */
.tool-grid,
.partner-grid {
    display: grid;
}

.tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

/* CARDS */
.tool-card,
.note-box,
.tool-container {
    background:
        radial-gradient(circle at top left, rgba(245,199,107,0.07), transparent 34%),
        linear-gradient(145deg, #111827, #1e1b4b);
    border: 1px solid rgba(245,199,107,0.18);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.tool-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 24px;
    transition: all 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245,199,107,0.45);
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.tool-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #fff;
}

.tool-card p,
.note-box p,
.tool-container p {
    color: #d1d5db;
}

.tool-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* NOTE BOX */
.note-box,
.tool-container {
    margin-top: 55px;
    padding: 28px;
}

.note-box h2,
.tool-container h2 {
    color: #f5c76b;
}

.note-box h3,
.tool-container h3 {
    color: #fff;
}

/* BUTTONS */
.tool-card a,
.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5c76b, #ffe08a);
    color: #111827;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tool-card a:hover,
.btn:hover,
button.btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffe08a, #f5c76b);
    box-shadow: 0 8px 24px rgba(0,0,0,0.32);
}

/* FORMS */
input,
textarea,
select {
    font: inherit;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="number"],
textarea,
select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 52px;
    padding: 15px 18px;
    border: 1px solid rgba(245,199,107,0.42);
    border-radius: 999px;
    background: linear-gradient(145deg, #050510, #111827) !important;
    color: #f8fafc !important;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.52),
        0 0 0 rgba(245,199,107,0);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
    min-height: 130px;
    border-radius: 18px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: rgba(229,231,235,0.55);
}

input[type="text"]:hover,
input[type="search"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
textarea:hover,
select:hover {
    border-color: rgba(245,199,107,0.65);
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #f5c76b;
    background: linear-gradient(145deg, #070816, #111827) !important;
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.5),
        0 0 0 4px rgba(245,199,107,0.14),
        0 0 22px rgba(245,199,107,0.08);
}

/* DREAM / NUMBER / QUESTION TOOL PANELS */
.dream-explorer-panel {
    overflow: hidden;
}

.dream-search-box {
    margin: 26px 0 34px;
    padding: 24px;
    border: 1px solid rgba(245,199,107,0.25);
    border-radius: 20px;
    background: #0d1024;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.dream-search-box label,
.tool-container label {
    display: block;
    margin-bottom: 12px;
    color: #f5c76b;
    font-size: 16px;
    font-weight: 800;
}

.dream-input-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 760px;
    margin-top: 6px;
}

.dream-input-row input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 0 22px;
    border: 1px solid rgba(245,199,107,0.5);
    border-radius: 30px;
    background-color: #111827 !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 600;
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.45),
        0 8px 20px rgba(0,0,0,0.22);
}

.dream-input-row input::placeholder {
    color: rgba(255,255,255,0.58);
    font-weight: 500;
}

.dream-input-row input:hover {
    border-color: rgba(245,199,107,0.8);
    background-color: #151d35 !important;
}

.dream-input-row input:focus {
    border-color: #f5c76b;
    background-color: #151d35 !important;
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.45),
        0 0 0 4px rgba(245,199,107,0.16),
        0 8px 22px rgba(0,0,0,0.28);
}

.dream-input-row .btn,
.tool-container #dreamInput + .btn {
    height: 58px;
    min-height: 58px;
    margin: 0;
    padding: 0 28px;
    font-size: 17px;
    white-space: nowrap;
}

.tool-container #dreamInput {
    max-width: 560px;
    margin: 0 12px 14px 0;
}

/* RESULT BOX */
.result-box {
    margin-top: 22px;
    padding: 20px 22px;
    border: 1px solid rgba(245,199,107,0.22);
    border-radius: 18px;
    background: rgba(5,5,16,0.75);
    color: #d1d5db;
    box-shadow: inset 0 0 18px rgba(0,0,0,0.22);
}

.result-box strong {
    color: #f5c76b;
}

.result-box em {
    color: #f8fafc;
}

/* PARTNER GRID */
.partner-grid a {
    display: block;
    padding: 12px;
    border: 1px solid rgba(245,199,107,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #f5c76b;
    text-decoration: none;
    font-weight: 700;
}

.partner-grid a:hover {
    border-color: rgba(245,199,107,0.3);
    background: rgba(255,255,255,0.14);
}

/* FOOTER */
footer {
    margin-top: 60px;
    padding: 30px 20px;
    border-top: 1px solid rgba(245,199,107,0.25);
    background: #050510;
    color: #fff;
    text-align: center;
}

/* SHARE BUTTON */
.share-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100000;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5c76b, #ffe08a);
    color: #111827;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.share-button:hover {
    background: linear-gradient(135deg, #ffe08a, #f5c76b);
}

/* SHARE MENU */
.share-menu {
    position: fixed;
    right: 20px;
    bottom: 75px;
    z-index: 100000;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 130px;
    padding: 12px;
    border: 1px solid rgba(245,199,107,0.25);
    border-radius: 14px;
    background: linear-gradient(135deg, #111827, #312e81);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.share-menu.open {
    display: flex;
}

.share-menu a {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #f5c76b;
    text-decoration: none;
    font-weight: 700;
}

.share-menu a:hover {
    background: rgba(255,255,255,0.16);
}

/* MOBILE */
@media (max-width: 600px) {
    :root {
        --partner-bar-height: 36px;
    }

    html {
        scroll-padding-top: 125px;
    }

    .top-partner-bar {
        padding: 8px 6px;
        font-size: 12px;
        line-height: 1.6;
    }

    .top-partner-bar a {
        margin: 0 5px;
    }

    nav {
        padding: 10px 12px;
    }

    nav a {
        display: inline-block;
        margin: 2px;
        font-size: 13px;
    }

    header {
        padding: 60px 20px;
    }

    header h1 {
        font-size: 40px;
    }

    header p {
        font-size: 18px;
    }

    main {
        margin: 30px auto;
        padding: 0 16px;
    }

    .intro h2,
    .section-title {
        font-size: 26px;
    }

    .section-title {
        scroll-margin-top: 125px;
    }

    .tool-card {
        min-height: 230px;
    }

    .note-box,
    .tool-container {
        padding: 22px;
    }

    .dream-search-box {
        padding: 20px;
    }

    .share-button {
        right: 14px;
        bottom: 14px;
    }

    .share-menu {
        right: 14px;
        bottom: 68px;
    }
}

/* MOBILE / TABLET TOOL INPUTS */
@media (max-width: 900px) {
    .dream-input-row {
        display: block;
        max-width: 100%;
    }

    .dream-input-row input,
    .tool-container #dreamInput {
        width: 100%;
        max-width: 100%;
        margin: 0 0 14px;
        font-size: 17px;
    }

    .dream-input-row .btn,
    .tool-container #dreamInput + .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* NAV SEARCH */
nav {
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
flex-wrap: wrap;
}

.nav-links {
display: flex;
align-items: center;
justify-content: center;
gap: 18px;
flex-wrap: wrap;
}

.nav-links a {
margin: 0;
}

.nav-search {
position: relative;
flex: 0 1 220px;
}

.nav-search input {
width: 220px;
min-height: 38px;
margin: 0;
padding: 8px 13px;
border: 1px solid rgba(245,199,107,0.42);
border-radius: 999px;
background: #050510 !important;
color: #f8fafc !important;
font-size: 14px;
font-weight: 600;
box-shadow: none;
}

.nav-search input::placeholder {
color: rgba(229,231,235,0.58);
}

.nav-search input:hover,
.nav-search input:focus {
border-color: #f5c76b;
background: #070816 !important;
box-shadow: 0 0 0 3px rgba(245,199,107,0.12);
}

.tool-search-results {
position: absolute;
top: calc(100% + 8px);
right: 0;
z-index: 100000;
display: none;
width: 280px;
max-height: 330px;
overflow-y: auto;
border: 1px solid rgba(245,199,107,0.28);
border-radius: 12px;
background: #111827;
box-shadow: 0 10px 26px rgba(0,0,0,0.45);
text-align: left;
}

.tool-search-results.open {
display: block;
}

.tool-search-results a {
display: block;
margin: 0;
padding: 11px 13px;
border-bottom: 1px solid rgba(245,199,107,0.12);
color: #f5c76b;
text-decoration: none;
font-size: 14px;
font-weight: 700;
}

.tool-search-results a:last-child {
border-bottom: none;
}

.tool-search-results a:hover {
background: rgba(245,199,107,0.10);
color: #fff;
}

.tool-search-empty {
padding: 12px 13px;
color: #d1d5db;
font-size: 14px;
}

@media (max-width: 700px) {
html {
scroll-padding-top: 175px;
}


.section-title {
    scroll-margin-top: 175px;
}

nav {
    gap: 9px;
}

.nav-links {
    gap: 7px 13px;
}

.nav-search {
    width: 100%;
    max-width: 300px;
    flex-basis: 100%;
}

.nav-search input {
    width: 100%;
}

.tool-search-results {
    right: auto;
    left: 0;
    width: 100%;
}


}

/* SHARED NAV + SEARCH — ONLY CONVERTED PAGES */
.top-partner-bar[data-include] {
min-height: 0;
padding: 8px 10px;
border: 0;
font-size: 14px;
line-height: 1.3;
}

.top-partner-bar[data-include] span,
.top-partner-bar[data-include] a {
line-height: 1.3;
}


.top-partner-bar[data-include] span,
.top-partner-bar[data-include] a {
    line-height: 1.25;
}

nav[data-include] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 11px 20px;
    top: calc(var(--partner-bar-height) - 1px);
    border: 0;
    box-shadow: none;
}

nav[data-include] .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
}

nav[data-include] .nav-links a {
    margin: 0;
    white-space: nowrap;
}

nav[data-include] .nav-search {
    position: relative;
    flex: 0 0 190px;
    width: 190px;
}

nav[data-include] .nav-search input {
    display: block;
    width: 190px !important;
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 7px 13px !important;
    border: 1px solid rgba(245,199,107,0.45) !important;
    border-radius: 999px !important;
    background: #050510 !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

nav[data-include] .nav-search input::placeholder {
    color: rgba(229,231,235,0.58);
}

nav[data-include] .nav-search input:hover,
nav[data-include] .nav-search input:focus {
    border-color: #f5c76b !important;
    background: #070816 !important;
    box-shadow: 0 0 0 3px rgba(245,199,107,0.12) !important;
}

.tool-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100000;
    display: none;
    width: 280px;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid rgba(245,199,107,0.28);
    border-radius: 12px;
    background: #111827;
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
    text-align: left;
}

.tool-search-results.open {
    display: block;
}

.tool-search-results a {
    display: block;
    margin: 0;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(245,199,107,0.12);
    color: #f5c76b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.tool-search-results a:last-child {
    border-bottom: 0;
}

.tool-search-results a:hover {
    background: rgba(245,199,107,0.10);
    color: #fff;
}

.tool-search-empty {
    padding: 12px 13px;
    color: #d1d5db;
    font-size: 14px;
}

@media (max-width: 850px) {
    nav[data-include] {
        gap: 10px;
        flex-wrap: wrap;
    }

    nav[data-include] .nav-links {
        width: 100%;
        gap: 8px 14px;
        flex-wrap: wrap;
    }

    nav[data-include] .nav-search {
        flex: 0 1 290px;
        width: 100%;
    }

    nav[data-include] .nav-search input {
        width: 100% !important;
    }

    .tool-search-results {
        width: 100%;
    }
}

/* PERSONAL MEANING PROFILE GENERATOR */

.personal-profile-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
margin-top: 22px;
}

.profile-field {
min-width: 0;
}

.profile-field-wide {
grid-column: 1 / -1;
}

.profile-field label {
display: block;
margin-bottom: 10px;
color: #f5c76b;
font-weight: 800;
}

.profile-field select {
padding-right: 48px;
background:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5c76b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
no-repeat right 18px center / 12px 8px,
linear-gradient(145deg, #050510, #111827) !important;
}

.profile-field select:focus {
background:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5c76b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
no-repeat right 18px center / 12px 8px,
linear-gradient(145deg, #070816, #111827) !important;
}

.profile-field-help,
.privacy-note {
margin: 8px 0 0;
color: rgba(209, 213, 219, 0.76);
font-size: 14px;
}

.personal-profile-actions {
margin-top: 22px;
}

.personal-profile-actions .btn {
min-height: 54px;
padding: 0 30px;
}

.profile-result-heading {
margin-bottom: 18px;
}

.profile-result-kicker {
display: block;
color: #f5c76b;
font-size: 12px;
font-weight: 800;
letter-spacing: 1px;
text-transform: uppercase;
}

.profile-result-heading h3 {
margin: 5px 0 8px;
color: #fff;
font-size: 28px;
}

.profile-result-heading p {
margin: 0;
}

.personal-profile-summary {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
margin: 20px 0;
}

.profile-result-card {
padding: 16px;
border: 1px solid rgba(245,199,107,0.18);
border-radius: 14px;
background: rgba(255,255,255,0.05);
}

.profile-result-card span {
display: block;
margin-bottom: 6px;
color: rgba(245,199,107,0.8);
font-size: 12px;
font-weight: 800;
letter-spacing: 0.7px;
text-transform: uppercase;
}

.profile-result-card strong {
display: block;
color: #fff;
font-size: 18px;
}

.profile-result-card p {
margin: 8px 0 0;
color: #d1d5db;
font-size: 14px;
}

.profile-combined-message {
margin: 0 0 18px;
color: #e5e7eb;
}

.profile-symbol-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 20px;
border: 1px solid rgba(245,199,107,0.28);
border-radius: 16px;
background:
radial-gradient(circle at top right, rgba(245,199,107,0.12), transparent 42%),
rgba(5,5,16,0.58);
}

.profile-symbol-card span {
display: block;
color: #f5c76b;
font-size: 13px;
font-weight: 800;
letter-spacing: 0.7px;
text-transform: uppercase;
}

.profile-symbol-card h3 {
margin: 4px 0 7px;
color: #fff;
font-size: 25px;
}

.profile-symbol-card p {
margin: 0;
}

.profile-symbol-card a {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
padding: 11px 16px;
border: 1px solid rgba(245,199,107,0.42);
border-radius: 999px;
background: rgba(245,199,107,0.12);
color: #f5c76b;
text-decoration: none;
font-weight: 800;
}

.profile-symbol-card a:hover {
border-color: #f5c76b;
background: rgba(245,199,107,0.2);
color: #fff;
}

.profile-prompt {
margin-top: 18px;
padding: 18px 20px;
border-left: 3px solid #f5c76b;
border-radius: 0 12px 12px 0;
background: rgba(245,199,107,0.08);
}

.profile-prompt strong {
color: #f5c76b;
}

.profile-prompt p {
margin: 7px 0 0;
color: #f8fafc;
}

@media (max-width: 700px) {
.personal-profile-grid,
.personal-profile-summary {
grid-template-columns: 1fr;
}


.personal-profile-actions .btn {
    width: 100%;
}

.profile-symbol-card {
    align-items: stretch;
    flex-direction: column;
}

.profile-symbol-card a {
    align-self: flex-start;
}


}

/* FIX: DROPDOWN MENU COLOURS */

select {
    color-scheme: dark;
}

select option {
    background: #111827 !important;
    color: #f8fafc !important;
}

select option:checked,
select option:hover {
    background: #312e81 !important;
    color: #ffffff !important;
}

/* RACING THOUGHTS AT NIGHT TOOL */

.worry-textarea {
width: 100%;
min-height: 155px;
padding: 15px 16px;
border: 1px solid rgba(245, 199, 107, 0.26);
border-radius: 14px;
background: #0c0e1c;
color: #f8fafc;
font: inherit;
line-height: 1.6;
resize: vertical;
box-sizing: border-box;
}

.worry-textarea:focus {
outline: none;
border-color: #f5c76b;
box-shadow: 0 0 0 3px rgba(245, 199, 107, 0.12);
}

.worry-textarea::placeholder {
color: #9ca3af;
}

.worry-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
margin-top: 18px;
}

.worry-clear-btn {
padding: 10px 14px;
border: 1px solid rgba(245, 199, 107, 0.32);
border-radius: 999px;
background: transparent;
color: #f5c76b;
font: inherit;
font-weight: 700;
cursor: pointer;
}

.worry-clear-btn:hover {
background: rgba(245, 199, 107, 0.1);
}

.sleep-support-note {
margin-top: 18px;
padding: 14px 16px;
border-left: 3px solid #f5c76b;
border-radius: 10px;
background: rgba(245, 199, 107, 0.07);
color: #e5e7eb;
}

@media (max-width: 600px) {
.worry-actions {
align-items: stretch;
}


.worry-actions .btn,
.worry-clear-btn {
    width: 100%;
}


}

/* SLEEP ROUTINE BUILDER - TIME INPUTS */

input[type="time"] {
width: 100%;
min-height: 68px;
padding: 0 18px;
border: 1px solid rgba(245, 199, 107, 0.42);
border-radius: 999px;
background: linear-gradient(135deg, #0c0e1c, #111827);
color: #f8fafc;
font: inherit;
font-size: 17px;
font-weight: 700;
box-sizing: border-box;
color-scheme: dark;
cursor: pointer;
}

input[type="time"]:hover {
border-color: rgba(245, 199, 107, 0.75);
}

input[type="time"]:focus {
outline: none;
border-color: #f5c76b;
box-shadow: 0 0 0 3px rgba(245, 199, 107, 0.13);
}

/* Chrome / Edge time text */
input[type="time"]::-webkit-datetime-edit {
color: #f8fafc;
padding: 0;
}

input[type="time"]::-webkit-datetime-edit-fields-wrapper {
padding: 0;
}

input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field,
input[type="time"]::-webkit-datetime-edit-ampm-field {
color: #f8fafc;
}

/* Clock icon */
input[type="time"]::-webkit-calendar-picker-indicator {
cursor: pointer;
opacity: 0.95;
filter: invert(83%) sepia(32%) saturate(570%) hue-rotate(350deg) brightness(102%) contrast(92%);
}

/* SLEEP DIARY GENERATOR */

.sleep-diary-controls {
margin-bottom: 20px;
}

.sleep-diary-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 18px;
}

.sleep-diary-secondary-btn {
padding: 12px 17px;
border: 1px solid rgba(245, 199, 107, 0.38);
border-radius: 999px;
background: transparent;
color: #f5c76b;
font: inherit;
font-weight: 800;
cursor: pointer;
}

.sleep-diary-secondary-btn:hover {
background: rgba(245, 199, 107, 0.1);
}

.sleep-diary-table-wrap {
width: 100%;
margin-top: 20px;
overflow-x: auto;
border: 1px solid rgba(245, 199, 107, 0.24);
border-radius: 14px;
}

.sleep-diary-table {
width: 100%;
min-width: 1170px;
border-collapse: collapse;
background: #0c0e1c;
color: #f8fafc;
}

.sleep-diary-table th,
.sleep-diary-table td {
padding: 10px 8px;
border-right: 1px solid rgba(245, 199, 107, 0.16);
border-bottom: 1px solid rgba(245, 199, 107, 0.16);
vertical-align: top;
text-align: left;
}

.sleep-diary-table th:last-child,
.sleep-diary-table td:last-child {
border-right: 0;
}

.sleep-diary-table tr:last-child td {
border-bottom: 0;
}

.sleep-diary-table th {
background: rgba(245, 199, 107, 0.1);
color: #f5c76b;
font-size: 13px;
line-height: 1.3;
font-weight: 800;
}

.sleep-diary-table td:first-child {
min-width: 108px;
color: #f5c76b;
font-weight: 800;
}

.sleep-diary-table input,
.sleep-diary-table select,
.sleep-diary-table textarea {
width: 100%;
min-height: 36px;
padding: 6px 8px;
border: 1px solid rgba(245, 199, 107, 0.28);
border-radius: 8px;
background: #111827;
color: #f8fafc;
font: inherit;
font-size: 13px;
line-height: 1.35;
box-sizing: border-box;
}

.sleep-diary-table input[type="time"] {
min-height: 36px;
padding: 6px 8px;
border-radius: 8px;
font-size: 13px;
}

.sleep-diary-table select {
padding-right: 28px;
}

.sleep-diary-table textarea {
min-width: 160px;
min-height: 58px;
resize: vertical;
}

.sleep-diary-table input:focus,
.sleep-diary-table select:focus,
.sleep-diary-table textarea:focus {
outline: none;
border-color: #f5c76b;
box-shadow: 0 0 0 2px rgba(245, 199, 107, 0.1);
}

.sleep-diary-print-title {
margin: 0 0 6px;
color: #f5c76b;
font-size: 24px;
}

.sleep-diary-print-subtitle {
margin: 0 0 18px;
color: #cbd5e1;
}

.sleep-diary-tip {
margin-top: 16px;
padding: 14px 16px;
border-left: 3px solid #f5c76b;
border-radius: 10px;
background: rgba(245, 199, 107, 0.07);
color: #e5e7eb;
}

@media (max-width: 600px) {
.sleep-diary-actions .btn,
.sleep-diary-secondary-btn {
width: 100%;
}
}

@media print {
@page {
size: A4 landscape;
margin: 8mm;
}


body.sleep-diary-page {
    padding-top: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
}

body.sleep-diary-page > header,
body.sleep-diary-page > nav,
body.sleep-diary-page .top-partner-bar,
body.sleep-diary-page footer,
body.sleep-diary-page [data-include="/includes/share-button.html"],
body.sleep-diary-page .share-button,
body.sleep-diary-page .share-menu,
body.sleep-diary-page .back-to-top,
body.sleep-diary-page .sleep-diary-controls,
body.sleep-diary-page .privacy-note,
body.sleep-diary-page .note-box:not(.dream-explorer-panel) {
    display: none !important;
}

body.sleep-diary-page main,
body.sleep-diary-page .dream-explorer-panel,
body.sleep-diary-page .dream-search-box {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body.sleep-diary-page .dream-explorer-panel > h2,
body.sleep-diary-page .dream-explorer-panel > p {
    display: none !important;
}

.sleep-diary-print-title {
    color: #000000 !important;
    font-size: 19pt;
}

.sleep-diary-print-subtitle {
    color: #333333 !important;
    font-size: 10pt;
}

.sleep-diary-table-wrap {
    overflow: visible !important;
    border: 1px solid #777777 !important;
    border-radius: 0 !important;
}

.sleep-diary-table {
    min-width: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 7.5pt;
}

.sleep-diary-table th,
.sleep-diary-table td {
    padding: 4px !important;
    border-color: #888888 !important;
    background: #ffffff !important;
    color: #000000 !important;
}

.sleep-diary-table th {
    font-size: 7.5pt;
    background: #eeeeee !important;
    color: #000000 !important;
}

.sleep-diary-table td:first-child {
    color: #000000 !important;
}

.sleep-diary-table input,
.sleep-diary-table select,
.sleep-diary-table textarea,
.sleep-diary-table input[type="time"] {
    min-height: 26px !important;
    padding: 3px 4px !important;
    border: 1px solid #999999 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 7.5pt !important;
    box-shadow: none !important;
}

.sleep-diary-table textarea {
    min-width: 125px !important;
    min-height: 30px !important;
    height: 30px !important;
}

.sleep-diary-tip {
    margin-top: 8px !important;
    padding: 8px 10px !important;
    border-color: #555555 !important;
    background: #f4f4f4 !important;
    color: #000000 !important;
    font-size: 8pt;
}


}
/* SLEEP DIARY - DATE PICKER + MATCHING BUTTON SIZES */

.sleep-diary-page input[type="date"] {
width: 100%;
min-height: 68px;
padding: 0 18px;
border: 1px solid rgba(245, 199, 107, 0.42);
border-radius: 999px;
background: linear-gradient(135deg, #0c0e1c, #111827);
color: #f8fafc;
font: inherit;
font-size: 17px;
font-weight: 700;
box-sizing: border-box;
color-scheme: dark;
cursor: pointer;
}

.sleep-diary-page input[type="date"]:hover {
border-color: rgba(245, 199, 107, 0.75);
}

.sleep-diary-page input[type="date"]:focus {
outline: none;
border-color: #f5c76b;
box-shadow: 0 0 0 3px rgba(245, 199, 107, 0.13);
}

.sleep-diary-page input[type="date"]::-webkit-datetime-edit,
.sleep-diary-page input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.sleep-diary-page input[type="date"]::-webkit-datetime-edit-day-field,
.sleep-diary-page input[type="date"]::-webkit-datetime-edit-month-field,
.sleep-diary-page input[type="date"]::-webkit-datetime-edit-year-field {
color: #f8fafc;
}

.sleep-diary-page input[type="date"]::-webkit-calendar-picker-indicator {
cursor: pointer;
opacity: 0.95;
filter: invert(83%) sepia(32%) saturate(570%) hue-rotate(350deg) brightness(102%) contrast(92%);
}

/* Keep all three action buttons identical in height */

.sleep-diary-actions {
align-items: stretch;
}

.sleep-diary-actions .btn,
.sleep-diary-actions .sleep-diary-secondary-btn {
min-height: 56px;
padding: 0 24px;
display: inline-flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
white-space: nowrap;
}
