/* v5.2 accessibility, collapsible hours, and new visual world */
.tt-second-hours{grid-column:1/-1;min-width:0;border:1px dashed #cbb99e;border-radius:12px;background:#fffaf0;padding:7px 10px;margin:4px 0;color:#705b47}
.tt-second-hours summary{cursor:pointer;font-weight:600;font-size:.88rem;list-style-position:inside}
.tt-second-fields{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 2px}.tt-second-fields input{min-width:100px;max-width:170px}
.v52-upload-error:not(:empty){padding:12px;border:1px solid #c25d55;border-radius:10px;background:#fff0ed;color:#922b25;overflow-wrap:anywhere}
.tt-theme-switch{padding:14px 10px;margin-top:12px;border-top:1px dashed #c6b39a}.tt-theme-switch strong{display:block;font-size:13px;margin-bottom:9px}.tt-theme-actions{display:grid;gap:7px}.tt-theme-actions button{cursor:pointer;border:1px solid #cdbca6;background:#fffdf7;color:#695641;border-radius:12px;padding:10px;text-align:left}.tt-theme-actions button.selected{border-color:#679a84;background:#e4eee6;font-weight:700}
#tt-top-menu{display:none}
@media(max-width:760px){
 .journal-mobile-menu{display:none!important}
 #tt-top-menu{display:flex;align-items:center;justify-content:center;position:fixed;left:12px;top:max(12px,env(safe-area-inset-top));z-index:1200;width:46px;height:46px;border-radius:14px;background:#fffaf0;color:#6e5843;border:2px solid #cdb99e;box-shadow:0 3px 12px #56452e2e;font-size:23px;cursor:pointer}
 body .top .shell{padding-left:60px!important}
 body nav.journal-nav{z-index:1190!important;padding-top:65px!important}
 body nav.journal-nav.journal-drawer-open{visibility:visible!important}
 body .journal-nav-head{margin-top:0}
}
/* New theme is structurally distinct: midnight postcards, ticket edges and constellation timeline. */
body.tt-night-postcard{--trip-primary:#7796b6;--trip-dark:#d9e6fa;--trip-accent:#f0c47e;--trip-bg:#101b34;--trip-soft:#1c3152;--trip-ink:#e6ecfa;background:#101b34!important;color:#e6ecfa}
body.tt-night-postcard .top,body.tt-night-postcard #app,body.tt-night-postcard main.shell{color:#e6ecfa}
body.tt-night-postcard .hero.trip-theme-banner{background:linear-gradient(140deg,#0c1735,#263e6a 70%,#715b86)!important;border:2px solid #c7aa78!important;border-radius:22px!important;box-shadow:0 15px 35px #060e23aa!important}
body.tt-night-postcard .journal-scene{filter:brightness(.62) saturate(.9) hue-rotate(155deg);border:3px solid #e7c782!important;border-radius:12px!important}
body.tt-night-postcard .journal-hero-kicker{color:#f2d8a2!important;letter-spacing:3px}
body.tt-night-postcard .journal-countdown{background:#1b2b4b!important;color:#f6dfaa!important;border:1px solid #f6dfaa!important}
body.tt-night-postcard nav.journal-nav{background:#142441!important;border:1px solid #b49a6d!important;color:#f4e4bd!important;border-radius:20px!important}
body.tt-night-postcard .journal-nav-head{color:#f4dfb0!important}
body.tt-night-postcard .journal-nav-title{background:#263d63!important;color:#f6dfb2!important;border-radius:4px!important;letter-spacing:1px}
body.tt-night-postcard .journal-nav-links button{background:#1b3053!important;color:#e7edf9!important;border:1px solid #506b90!important;border-radius:7px!important;box-shadow:3px 3px 0 #0b152d!important}
body.tt-night-postcard .journal-nav-links button.active{background:#4b4273!important;border-color:#e5c67b!important;color:#fff5d9!important}
body.tt-night-postcard #content .card,body.tt-night-postcard #content .v4-card,body.tt-night-postcard #content .note,body.tt-night-postcard #content .empty{background:#1c2b4b!important;color:#f1e9d7!important;border:1px solid #6c7597!important;border-radius:9px!important;box-shadow:4px 5px 0 #09132b!important}
body.tt-night-postcard #content .journal-page-intro{background:linear-gradient(115deg,#243e64,#463d6a)!important;color:#f3e8d1!important;border:1px solid #c5a972!important;border-radius:12px!important}
body.tt-night-postcard #content .journal-page-intro h2,body.tt-night-postcard #content h2,body.tt-night-postcard #content h3{color:#f5dbac!important}
body.tt-night-postcard #content .muted,body.tt-night-postcard #content p{color:#d3d9e7}
body.tt-night-postcard .tt-theme-actions button{background:#243a5f;color:#f5e5c4;border-color:#7686a0}
body.tt-night-postcard .tt-theme-actions button.selected{background:#51476e;border-color:#f5d28e}
body.tt-night-postcard #content input,body.tt-night-postcard #content select,body.tt-night-postcard #content textarea{background:#f9f5e9;color:#27334b}
body.tt-night-postcard .tt-second-hours{background:#263d60;color:#f6e7c4;border-color:#8a9bb8}
@media(max-width:760px){body.tt-night-postcard #tt-top-menu{background:#1a2b4a;color:#f3dfb2;border-color:#d1ae70}}
