body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 20px;
}

h1 {
    color: #2c3e50;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

ul {
    margin-top: 20px;
}

li {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    list-style: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.delete-icon {
    margin-left: 12px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
}

.delete-icon:hover {
    opacity: 1;
}
.edit-icon {
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.6;
}

.edit-icon:hover {
    opacity: 1;
}
.meta-info {
    font-size: 10px;
    color: #999;
    display: block;
    text-align: right;
}
.place-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}
.meta-block {
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 6px;
}
/* Vzhled odkazu na fotku u uloženého místa */
.photo-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    text-decoration: none;
}

.photo-link:hover {
    text-decoration: underline;
}
/* Souhrn aktuální cesty pod hlavním nadpisem */
.trip-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 10px 0 26px 0;
    padding: 14px 18px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.trip-summary strong {
    display: block;
    font-size: 22px;
}

.trip-summary span {
    font-size: 13px;
    color: #777;
}

.trip-summary-text {
    margin-left: auto;
    font-size: 14px;
    color: #666;
}

/* Rozbalovací štítek typu dokumentu */
.document-type-select {
    margin-left: 10px;
    padding: 3px 6px;
    font-size: 12px;
    color: #1f3b57;
    background-color: #dfeeff;
    border: 1px solid #b8d7ff;
    border-radius: 999px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: fit-content;
    min-width: 0;
    max-width: none;
    text-align: center;
    text-align-last: center;
}
/* TripVault navigation and responsive layout */
* { box-sizing: border-box; }
.tv-header { max-width: 1100px; margin: 0 auto 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.tv-brand { font-weight:750; font-size:19px; color:#234968; text-decoration:none; }
#account-link { color:#234968; text-decoration:none; background:#e3ecf5; border-radius:20px; padding:8px 12px; font-size:13px; overflow-wrap:anywhere; }
.tv-container { max-width:1100px; margin:0 auto; }
.tv-subtitle { color:#607589; }
.tv-container ul { padding-left:0; }
.tv-container textarea { display:block; width:100%; max-width:700px; border:1px solid #cbd5e1; border-radius:10px; padding:12px; font:inherit; }
.tv-container input[type=file], .tv-container select { max-width:100%; margin:8px 8px 8px 0; }
@media (max-width:650px) { body{padding:16px} .trip-summary{flex-wrap:wrap;gap:14px}.trip-summary-text{width:100%;margin-left:0} }


/* TripVault detail/account redesign – standalone overrides, safe to append. */
:root { --tv-ink:#20394f; --tv-muted:#667f92; --tv-blue:#2788cc; --tv-pale:#eaf3fb; --tv-line:#e4ecf3; --tv-bg:#f4f7fb; }
body.tv-trip-page,body.tv-account-page { background:var(--tv-bg);color:var(--tv-ink);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.5; }
.tv-trip-page .tv-container,.tv-account-page .tv-container { max-width:1080px;margin:0 auto 64px; }
.tv-trip-page .tv-header,.tv-account-page .tv-header { max-width:1080px;margin:0 auto 20px;padding:4px 0; }
.tv-trip-page .back-link { color:var(--tv-muted);text-decoration:none;display:inline-block;margin:5px 0 14px;font-size:14px; }
.tv-trip-page .back-link:hover { color:var(--tv-blue); }
.tv-hero { display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px 30px;background:linear-gradient(110deg,#eaf5ff 0%,#f4f9ff 72%,#fff 100%);border:1px solid #e1edf7;border-radius:22px;margin-bottom:18px; }
.tv-eyebrow {color:#4982b1;font-size:11px;font-weight:750;letter-spacing:.14em;margin:0 0 6px;}
.tv-hero h1 {font-size:clamp(27px,3.6vw,38px);line-height:1.1;margin:0;color:var(--tv-ink);}
.tv-hero-caption {color:var(--tv-muted);font-size:14px;margin:10px 0 0;}
.tv-hero-mark {font-size:44px;filter:drop-shadow(0 7px 9px #80a5c344);}
.tv-trip-page .trip-summary {margin:0 0 24px;padding:15px 22px;gap:28px;box-shadow:none;border:1px solid var(--tv-line);border-radius:18px;flex-wrap:wrap;}
.tv-stat {display:flex;align-items:center;gap:12px;min-width:145px;}
.tv-stat-icon {display:grid;place-items:center;width:45px;height:45px;background:#edf5fd;border-radius:13px;font-size:21px;}
.tv-trip-page .trip-summary strong {color:var(--tv-ink);font-size:25px;line-height:1.1;}
.tv-trip-page .trip-summary span:not(.tv-stat-icon) {color:var(--tv-muted);font-size:12px;display:block;}
.tv-trip-page .trip-summary-text {font-size:13px;color:var(--tv-muted);max-width:225px;}
.tv-panel {background:#fff;border:1px solid var(--tv-line);border-radius:20px;padding:24px 27px;margin:0 0 20px;box-shadow:0 4px 16px #29496608;}
.tv-section-heading {display:flex;align-items:center;gap:15px;margin-bottom:19px;}
.tv-section-icon {width:48px;height:48px;border-radius:14px;background:#eef5fc;display:grid;place-items:center;flex:none;font-size:22px;}
.tv-section-heading h2 {font-size:21px;color:var(--tv-ink);margin:0 0 3px;line-height:1.2;}
.tv-section-heading p {color:var(--tv-muted);margin:0;font-size:13px;}
.tv-toolbar {display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:3px 0 8px;}
.tv-upload-button,.tv-primary-link {display:inline-flex;align-items:center;justify-content:center;background:var(--tv-blue);color:#fff!important;border-radius:10px;text-decoration:none;cursor:pointer;padding:11px 16px;font-weight:650;font-size:13px;white-space:nowrap;}
.tv-upload-button:hover,.tv-primary-link:hover {background:#1a70ac;}
.tv-upload-muted {background:#eaf3fb!important;color:#2e678e!important;}
.tv-trip-page .tv-toolbar input[type=file] {width:160px;max-width:100%;font-size:11px;color:var(--tv-muted);margin:0;}
.tv-trip-page .tv-toolbar input[type=file]::file-selector-button {display:none;}
.tv-filter-label {color:var(--tv-muted);font-size:13px;margin-left:auto;}
.tv-trip-page .tv-toolbar select {margin:0;padding:9px 12px;border:1px solid #d5e1ea;border-radius:9px;background:#fff;color:var(--tv-ink);font:inherit;font-size:13px;}
.tv-list {margin:12px 0 0!important;padding:0!important;}
.tv-list li {border:1px solid var(--tv-line);box-shadow:none!important;background:#fbfdff!important;padding:15px 17px!important;border-radius:13px!important;margin-bottom:9px!important;overflow-wrap:anywhere;}
.tv-documents-list li {display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.tv-documents-list li a {font-weight:600;font-size:14px;text-decoration:none;color:#246eaa;}
.tv-documents-list li a:hover{text-decoration:underline;}
.tv-documents-list .document-type-select {margin-left:0;border-color:#c5def2;background:#e9f4fe;min-width:102px;max-width:150px;text-align:center;text-align-last:center;padding:5px 9px;}
.tv-documents-list .delete-icon {margin-left:auto!important;}
.tv-hint {color:#8799a9;font-size:12px;margin:10px 0 0;}
.tv-trip-page textarea {max-width:none!important;min-height:170px;padding:17px!important;border:1px solid #dce5ee!important;border-radius:13px!important;background:#fcfdff;line-height:1.6;resize:vertical;}
.tv-trip-page textarea:focus,.tv-account-page input:focus {outline:2px solid #c3e2f9;border-color:#80bfea!important;}
.tv-trip-page #tlacitko-misto {font-size:13px;padding:11px 17px;border-radius:10px;}
.tv-places-list li {padding:18px 20px!important;}
.tv-places-list .place-header strong {font-size:16px;color:var(--tv-ink);}
.tv-places-list .meta-block {font-size:11px;color:var(--tv-muted);margin-top:10px;}
.tv-places-list .photo-link {font-size:13px;}
.tv-account-container {max-width:800px!important;}
.tv-account-head {display:flex;align-items:center;gap:18px;margin:12px 0 28px;}
.tv-account-head h1 {margin:0;font-size:34px;color:var(--tv-ink);}
.tv-profile-avatar {width:68px;height:68px;background:#e6f2fc;border-radius:22px;display:grid;place-items:center;font-size:30px;}
.tv-account-page .tv-panel {padding:27px 30px;}
.tv-account-page .tv-form-grid {display:grid;grid-template-columns:1fr 1fr;gap:17px;}
.tv-account-page label:not(.tv-upload-button) {display:block;font-size:13px;color:#42576b;font-weight:650;margin:0 0 7px;}
.tv-account-page form input {width:100%;border:1px solid #d7e1ea;border-radius:10px;padding:11px 13px;font:inherit;color:var(--tv-ink);margin-bottom:15px;}
.tv-account-page input[readonly] {background:#f4f7fa;color:var(--tv-muted);}
.tv-account-page button[type=submit] {padding:11px 18px;}
.tv-button-soft {display:inline-flex;border:0;background:#e9f2fa;color:#285b7e;padding:10px 15px;border-radius:10px;text-decoration:none;font-weight:650;font-size:13px;cursor:pointer;}
.tv-password-wrap {position:relative;}.tv-password-wrap input{padding-right:45px!important;}
.tv-password-eye {position:absolute;right:5px;top:4px;background:transparent!important;color:var(--tv-muted)!important;font-size:17px;padding:5px 10px!important;}
.tv-alert {font-size:13px;color:#25613d;min-height:20px;margin:16px 0;}
.tv-alert-error {color:#b42318;}
[hidden] {display:none!important;}
@media(max-width:680px) {.tv-trip-page,.tv-account-page{padding:13px!important}.tv-hero{padding:22px 19px}.tv-hero-mark{display:none}.tv-trip-page .trip-summary{gap:15px;padding:14px}.tv-stat{min-width:115px}.tv-trip-page .trip-summary-text{width:100%;margin-left:0}.tv-panel,.tv-account-page .tv-panel{padding:19px 16px;border-radius:16px}.tv-section-heading{align-items:flex-start}.tv-filter-label{margin-left:0}.tv-account-page .tv-form-grid{grid-template-columns:1fr}.tv-trip-page .tv-toolbar input[type=file]{width:100%}.tv-documents-list .delete-icon{margin-left:8px!important}}


/* ===== TripVault Midnight desktop, v2 visual layer ===== */
:root {--mid-bg:#080d20;--mid-panel:#111a35;--mid-card:#151f3e;--mid-border:#283455;--mid-text:#eff2ff;--mid-muted:#99a8cd;--mid-violet:#bd83ff;--mid-cyan:#6fe4e4;--mid-side:252px;--tv-ink:var(--mid-text);--tv-muted:var(--mid-muted);--tv-blue:#9063eb;--tv-line:var(--mid-border);--tv-bg:var(--mid-bg);}
html{scroll-behavior:smooth}
body.tv-home-page,body.tv-trip-page{background:radial-gradient(ellipse 700px 500px at 87% -8%,#40216c55,transparent 72%),radial-gradient(ellipse 680px 420px at 45% 28%,#152e6155,transparent 70%),var(--mid-bg)!important;color:var(--mid-text)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.55;min-height:100vh;margin:0;padding:0 38px 50px calc(var(--mid-side) + 38px)!important}
.tv-home-page *, .tv-trip-page * {box-sizing:border-box}
.tv-sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:var(--mid-side);padding:32px 19px 20px;background:linear-gradient(165deg,#111830,#0b1229 70%);border-right:1px solid #273351;display:flex;flex-direction:column;box-shadow:12px 0 48px #01051220}
.tv-side-brand{display:flex;align-items:center;gap:12px;padding:0 11px 48px;text-decoration:none;color:#fff;font-size:23px;font-weight:850;letter-spacing:-.045em;line-height:1}
.tv-side-brand small{display:block;color:#8393b9;font-size:8px;letter-spacing:.19em;margin-top:8px;font-weight:750}
.tv-brand-accent{color:#c09aff}.tv-logo-mark{display:grid;place-items:center;border-radius:15px;width:43px;height:43px;background:linear-gradient(135deg,#6041cb,#b76afa);box-shadow:0 5px 28px #9569ff4d;color:#fff;font-size:26px;flex-shrink:0}
.tv-nav-caption{font-size:10px;font-weight:800;letter-spacing:.18em;color:#6f80a7;margin:0 13px 16px}
.tv-side-nav{display:grid;gap:8px}.tv-side-nav a{display:flex;align-items:center;gap:14px;padding:14px 14px;text-decoration:none;color:#aab8d4;font-size:13px;font-weight:650;border:1px solid transparent;border-radius:12px;transition:.18s}
.tv-side-nav a span{font-size:22px;width:24px;text-align:center;line-height:1;color:#a896d9}.tv-side-nav a:hover{background:#253353;color:#fff}.tv-home-page .tv-nav-home,.tv-trip-page .tv-nav-trips{background:linear-gradient(105deg,#643fb355,#2d367855);border-color:#7050ba65;color:#fff;box-shadow:inset 3px 0 #bc83ff}
.tv-sidebar-bottom{margin-top:auto;background:radial-gradient(circle at 85% 5%,#865bd35d,transparent 50%),#182244;border:1px solid #344264;border-radius:18px;padding:23px 18px 15px;display:grid;gap:8px}.tv-sidebar-orbit{color:#d4a3ff;font-size:34px;line-height:1}.tv-sidebar-bottom strong{font-size:13px;line-height:1.35;color:#f5efff}.tv-sidebar-bottom>span{color:#96a5c4;font-size:11px}.tv-sidebar-version{margin-top:22px;color:#798aad;font-size:9px;letter-spacing:.13em}
body.tv-home-page .tv-header,body.tv-trip-page .tv-header{max-width:1540px;width:100%;padding:22px 0 18px!important;margin:0 auto 23px!important;border-bottom:1px solid #293657;display:flex;align-items:center;justify-content:space-between}
body.tv-home-page .tv-header .tv-brand,body.tv-trip-page .tv-header .tv-brand{font-size:15px;color:#f3f1ff;letter-spacing:-.01em;text-decoration:none}.tv-header-label{color:#8697be;font-weight:400;margin-left:6px}
body.tv-home-page #account-link,body.tv-trip-page #account-link{background:#1c294a!important;border:1px solid #354564!important;color:#d8e3ff!important;padding:10px 17px!important;font-size:12px;border-radius:30px;text-decoration:none}
body.tv-home-page .tv-container,body.tv-trip-page .tv-container{width:100%;max-width:1540px!important;margin:0 auto 70px!important}
body.tv-home-page h1,body.tv-trip-page h1,body.tv-home-page h2,body.tv-trip-page h2,body.tv-home-page h3,body.tv-trip-page h3{color:#fafaff!important}
body.tv-home-page .tv-eyebrow,body.tv-trip-page .tv-eyebrow{color:#c69dff!important;font-weight:800;letter-spacing:.2em;font-size:10px}
.tv-home-page .tv-subtitle,.tv-trip-page .tv-hero-caption{color:#a8b6d4!important}
.tv-home-page button,.tv-trip-page button{font-family:inherit}
.tv-new-trip-button,.tv-trip-page #tlacitko-misto,.tv-trip-page .tv-upload-button:not(.tv-upload-muted){background:linear-gradient(110deg,#8156db,#b174ee)!important;border:1px solid #ad82f8!important;box-shadow:0 8px 24px #9a64e338;color:white!important;font-weight:750!important}
.tv-new-trip-button:hover,.tv-trip-page #tlacitko-misto:hover{filter:brightness(1.15)}
.tv-home-page .tv-gallery-intro{margin:35px 0 24px;align-items:center}.tv-home-page .tv-gallery-intro h1{font-size:clamp(33px,4vw,53px);letter-spacing:-.045em;margin-bottom:12px}.tv-home-page .tv-gallery-intro h1 span{color:#cb91ff}
.tv-home-spotlight{position:relative;display:grid;grid-template-columns: .9fr 1.2fr;min-height:245px;overflow:hidden;margin:0 0 43px;background:radial-gradient(circle at 23% 55%,#5a348c 0%,transparent 43%),linear-gradient(110deg,#101c42,#19254d 55%,#121a3c);border:1px solid #3d4e7a;border-radius:24px;box-shadow:0 20px 55px #0307175c}
.tv-home-spotlight-visual{position:relative;min-height:250px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 44% 78%,#22d7d560,transparent 42%)}
.tv-planet{font-size:180px;font-weight:100;line-height:1;color:#d2adff;text-shadow:0 0 55px #bb64ff,0 0 130px #8254e9;transform:rotate(-12deg)}.tv-spotlight-stars{position:absolute;bottom:28px;left:18%;color:#70e1f4;font-size:22px;letter-spacing:20px}
.tv-spotlight-copy{align-self:center;padding:36px 36px 36px 8px;position:relative;z-index:1}.tv-spotlight-label{font-size:10px;letter-spacing:.22em;font-weight:800;color:#7ee2de}.tv-spotlight-copy h2{font-size:clamp(26px,3vw,38px);letter-spacing:-.04em;line-height:1.2;margin:9px 0}.tv-spotlight-copy p{color:#b1bfdd;font-size:14px;max-width:360px}.tv-spotlight-copy a{display:inline-flex;gap:15px;align-items:center;color:#e8c8ff;font-weight:700;font-size:13px;text-decoration:none;margin-top:9px}.tv-spotlight-copy a:hover{color:white}
body.tv-home-page .tv-gallery-hint{color:#8291b4}
body.tv-trip-page .back-link{color:#aab6dc!important;margin:12px 0 2px!important}.tv-trip-page .back-link:hover{color:#dab5ff!important}
body.tv-trip-page .tv-hero{position:relative;isolation:isolate;overflow:hidden;min-height:225px;padding:42px 47px;border:1px solid #4a4178;border-radius:24px;background:radial-gradient(circle at 85% 55%,#7e4cab72,transparent 30%),radial-gradient(circle at 40% 110%,#17789a3f,transparent 40%),linear-gradient(118deg,#192149,#151d3e 65%,#2a1c50);box-shadow:0 15px 44px #02051455}
.tv-trip-page .tv-hero:after{content:'';position:absolute;inset:0;background-image:radial-gradient(#ffffff88 1px,transparent 1px);background-size:46px 43px;opacity:.15;pointer-events:none;z-index:-1}
.tv-trip-page .tv-hero h1{font-size:clamp(31px,4vw,48px)!important;letter-spacing:-.04em}.tv-trip-page .tv-hero-caption{font-size:14px}
.tv-trip-page .tv-hero-mark{height:132px;width:132px;border:1px solid #9778e359;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#bf8dff82,#5b45a43d 60%,transparent 70%);box-shadow:0 0 0 23px #7964d410,0 0 0 53px #7964d40a;flex-shrink:0}.tv-trip-page .tv-hero-mark span:first-child{position:absolute;font-size:100px;color:#c59aff62}.tv-trip-page .tv-hero-mark span:last-child{font-size:54px;color:#f1ddff}
body.tv-trip-page .trip-summary{background:#131e3b!important;border:1px solid #2e3b60!important;border-radius:19px;padding:19px 26px;box-shadow:none;gap:26px}
.tv-trip-page .tv-stat-icon{background:#28365e;color:#edb2ff}.tv-trip-page .trip-summary strong{color:#fff!important}.tv-trip-page .trip-summary span:not(.tv-stat-icon),.tv-trip-page .trip-summary-text{color:#91a5c9!important}
body.tv-trip-page .tv-panel{background:linear-gradient(145deg,#151f3c,#101a35)!important;border:1px solid #2c3a60!important;border-radius:20px;box-shadow:0 12px 34px #0308183d}
.tv-trip-page .tv-section-icon{background:#293358;color:#d4baff}.tv-trip-page .tv-section-heading p{color:#a2afd0!important}
.tv-trip-page .tv-toolbar select,.tv-trip-page .document-type-select{background:#242f51!important;border:1px solid #405175!important;color:#e7edff!important;border-radius:10px}
.tv-trip-page .tv-upload-muted{background:#283656!important;color:#d2c4f6!important;border:1px solid #3e4a70!important}
.tv-trip-page .tv-toolbar input[type=file]{color:#a1b0d1!important}.tv-trip-page .tv-filter-label{color:#a8b8d4!important}
.tv-trip-page .tv-list li{background:#182443!important;border:1px solid #354466!important;color:#e5ecff!important;box-shadow:none!important}.tv-trip-page .tv-documents-list li a{color:#9acaff!important}
.tv-trip-page textarea{background:#101a33!important;border:1px solid #374565!important;color:#edf1ff!important;max-width:none!important;box-shadow:inset 0 1px 6px #0003}.tv-trip-page textarea::placeholder{color:#7486ad}
.tv-trip-page .tv-hint{color:#8294b9!important}.tv-trip-page .tv-place-card,.tv-trip-page .tv-places-list li{background:#1b2748!important;border-color:#354466!important;color:#edf2ff!important}
.tv-trip-page .tv-place-top h3,.tv-trip-page .tv-places-list .place-header strong{color:#f5f2ff!important}.tv-trip-page .tv-place-note,.tv-trip-page .tv-place-date{color:#a2afd0!important}.tv-trip-page .tv-place-links a{color:#87dbe9!important}.tv-trip-page .tv-place-icon-btn{color:#e6d8fc!important;background:#2b3960!important}
.tv-home-page .tv-dialog{background:#141e39!important;color:#f5f2ff;border:1px solid #4c3d7c}.tv-home-page .tv-dialog label{color:#d9e4ff}.tv-home-page .tv-dialog input{background:#1c2949!important;color:#fff!important;border-color:#46567e!important}.tv-home-page .tv-dialog-note{color:#a1afd0}.tv-home-page .tv-dialog-cancel,.tv-home-page .tv-close{background:#2a3755!important;color:#dce5ff!important}
.tv-home-page :focus-visible,.tv-trip-page :focus-visible{outline:2px solid #bb91ff!important;outline-offset:3px}
@media(max-width:1100px){:root{--mid-side:205px}body.tv-home-page,body.tv-trip-page{padding-right:22px!important;padding-left:calc(var(--mid-side) + 22px)!important}.tv-sidebar{padding-inline:13px}.tv-side-brand{font-size:20px}}
@media(max-width:780px){body.tv-home-page,body.tv-trip-page{padding:0 18px 38px!important}.tv-sidebar{position:relative;inset:auto;width:calc(100% + 36px);margin:0 -18px;padding:12px 18px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-right:0;border-bottom:1px solid #30405d;box-shadow:none}.tv-side-brand{font-size:19px;padding:0;gap:8px}.tv-side-brand small,.tv-nav-caption,.tv-sidebar-bottom{display:none}.tv-logo-mark{height:35px;width:35px;border-radius:11px;font-size:19px}.tv-side-nav{display:flex;gap:3px}.tv-side-nav a{padding:9px 10px;font-size:0;gap:0}.tv-side-nav a span{font-size:21px}.tv-trip-page .tv-side-nav a:nth-child(n+3){display:none}body.tv-home-page .tv-header,body.tv-trip-page .tv-header{padding:16px 0!important;margin-bottom:12px!important}body.tv-home-page .tv-gallery-intro{margin-top:22px}.tv-home-spotlight{grid-template-columns:1fr 1.2fr}.tv-trip-page .tv-hero{padding:27px}.tv-trip-page .tv-hero-mark{width:82px;height:82px}.tv-trip-page .tv-hero-mark span:last-child{font-size:34px}}
@media(max-width:560px){body.tv-home-page,body.tv-trip-page{padding-inline:13px!important}.tv-sidebar{width:calc(100% + 26px);margin:0 -13px;padding-inline:13px}.tv-home-spotlight{grid-template-columns:1fr}.tv-home-spotlight-visual{min-height:130px}.tv-planet{font-size:110px}.tv-spotlight-stars{display:none}.tv-spotlight-copy{padding:8px 25px 24px}.tv-home-page .tv-gallery-intro{gap:16px}.tv-trip-page .tv-hero{min-height:170px;padding:24px 22px}.tv-trip-page .tv-hero-mark{display:none}.tv-header-label{display:none}.tv-trip-page .tv-panel{padding:19px!important}}

/* ============================================================
   TripVault Midnight | Account page (2026-11)
   Page-scoped, safe to use with existing account-profile.js.
   Daylight theme can reuse these variables in a future iteration.
   ============================================================ */
body.tv-account-page {
    --account-bg: #0d142b;
    --account-surface: #17223e;
    --account-surface-soft: #1c2948;
    --account-field: #111c34;
    --account-border: #344365;
    --account-text: #f2f4ff;
    --account-muted: #afbed9;
    --account-accent: #a879ec;
    margin: 0;
    padding: 30px 26px 60px;
    min-height: 100vh;
    background: radial-gradient(ellipse 850px 500px at 90% -10%, #50307140, transparent 75%),
                linear-gradient(150deg, #111933, var(--account-bg) 65%) !important;
    color: var(--account-text) !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body.tv-account-page .tv-header {
    max-width: 970px;
    margin: 0 auto 34px;
    padding: 8px 0 20px;
    border-bottom: 1px solid #344365;
}
body.tv-account-page .tv-brand {
    color: var(--account-text) !important;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
body.tv-account-page .tv-container.tv-account-container {
    max-width: 900px !important;
    margin: 0 auto 60px;
}
body.tv-account-page .tv-account-head {
    margin: 8px 0 24px;
    gap: 17px;
}
body.tv-account-page .tv-account-head h1 {
    color: var(--account-text) !important;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.15;
}
body.tv-account-page .tv-eyebrow {
    color: #c7a0ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}
body.tv-account-page .tv-subtitle { color: var(--account-muted) !important; }
body.tv-account-page .tv-profile-avatar {
    width: 58px;
    height: 58px;
    background: linear-gradient(145deg, #4f397f, #2a3b67);
    color: #f2e5ff;
    border: 1px solid #725ca6;
    border-radius: 17px;
    font-size: 25px;
}
body.tv-account-page .tv-panel {
    background: linear-gradient(145deg, #1a2746, var(--account-surface)) !important;
    color: var(--account-text) !important;
    border: 1px solid var(--account-border) !important;
    border-radius: 19px;
    padding: 26px 29px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px #03071226;
}
body.tv-account-page .tv-section-heading { margin-bottom: 21px; }
body.tv-account-page .tv-section-icon {
    width: 45px;
    height: 45px;
    background: #293758;
    color: #d7bbff;
    border: 1px solid #3b4970;
    border-radius: 13px;
    font-size: 21px;
}
body.tv-account-page .tv-section-heading h2,
body.tv-account-page #signed-out-section h2 {
    color: var(--account-text) !important;
    font-size: 20px;
    line-height: 1.3;
}
body.tv-account-page .tv-section-heading p,
body.tv-account-page #signed-out-section p {
    color: var(--account-muted) !important;
}
body.tv-account-page label:not(.tv-upload-button) {
    color: #dbe4fb;
    margin-bottom: 8px;
    font-weight: 650;
}
body.tv-account-page form input {
    min-height: 46px;
    color: var(--account-text) !important;
    background: var(--account-field) !important;
    border: 1px solid #405172 !important;
    border-radius: 11px;
    margin-bottom: 16px;
    padding: 11px 14px;
    box-shadow: none;
}
body.tv-account-page form input[readonly] {
    background: #1e2b46 !important;
    color: #aabbdb !important;
    border-color: #344563 !important;
}
body.tv-account-page form input:focus-visible {
    outline: 2px solid #af85fa !important;
    outline-offset: 1px;
    border-color: #a47ee9 !important;
}
body.tv-account-page .tv-hint {
    color: var(--account-muted) !important;
    margin: 0 0 14px;
    line-height: 1.55;
}
body.tv-account-page button[type=submit],
body.tv-account-page .tv-primary-link {
    background: linear-gradient(115deg, #8655d5, #ad72e9) !important;
    border: 1px solid #b78af7 !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 11px 19px;
    font-weight: 750;
    box-shadow: 0 6px 17px #713dcc2b;
}
body.tv-account-page button[type=submit]:hover,
body.tv-account-page .tv-primary-link:hover { filter: brightness(1.12); }
body.tv-account-page .tv-button-soft {
    background: #293653 !important;
    border: 1px solid #485a7e !important;
    color: #e1ddfb !important;
    border-radius: 10px;
}
body.tv-account-page .tv-button-soft:hover { background: #35446a !important; }
body.tv-account-page .tv-password-wrap { position: relative; }
body.tv-account-page .tv-password-wrap input { padding-right: 53px !important; }
body.tv-account-page .tv-password-eye {
    position: absolute;
    right: 5px;
    top: 3px;
    color: #d8bcff !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 7px 10px !important;
}
body.tv-account-page .tv-password-eye:hover { color: white !important; }
body.tv-account-page .tv-alert { color: #8ee2ce; }
body.tv-account-page .tv-alert-error { color: #ffabab; }
body.tv-account-page a:focus-visible,
body.tv-account-page button:focus-visible {
    outline: 2px solid #b48bfb;
    outline-offset: 3px;
}
@media (max-width: 680px) {
    body.tv-account-page { padding: 16px 14px 40px !important; }
    body.tv-account-page .tv-panel { padding: 20px 17px; border-radius: 16px; }
    body.tv-account-page .tv-form-grid { grid-template-columns: 1fr; gap: 4px; }
    body.tv-account-page .tv-account-head { gap: 12px; }
    body.tv-account-page .tv-profile-avatar { width: 49px; height: 49px; }
}

/* TripVault 2.1: shared compact layout and accessible controls */
.tv-top-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.tv-switch,.tv-signout{border-radius:11px;background:#222e50;color:#e6e6ff;border:1px solid #3e5076;padding:9px 13px;font-size:12px;font-weight:700;cursor:pointer}
.tv-switch:hover,.tv-signout:hover{background:#33446b}.tv-signout{background:transparent;border-color:#72527c;color:#e6bcec}
.tv-stat-link{text-decoration:none;cursor:pointer;transition:background .2s,transform .2s;border-radius:13px;padding:10px;margin:-10px;color:inherit;scroll-margin:36px}
.tv-stat-link:hover{background:#ffffff12;transform:translateY(-2px)}.tv-stat-arrow{margin-left:8px;color:#bc95f4!important;font-size:18px!important}
#documents-panel,#places-panel{scroll-margin-top:30px}
.tv-home-page .tv-gallery-intro{margin:12px 0 19px!important}.tv-home-page .tv-gallery-intro h1{font-size:clamp(29px,2.6vw,39px)!important;margin:0 0 8px!important}
.tv-home-page .tv-gallery-intro .tv-subtitle{font-size:13px!important;max-width:650px}
.tv-home-page .tv-dashboard{grid-template-columns:minmax(0,1.7fr) minmax(240px,.7fr);gap:14px;margin:8px 0 23px}
.tv-home-page .tv-featured,.tv-home-page .tv-featured-content{min-height:272px!important}
.tv-home-page .tv-featured-content{padding:27px 31px!important}.tv-home-page .tv-featured h2{font-size:clamp(25px,2.8vw,40px)!important;margin:8px 0 10px!important}
.tv-home-page .tv-featured p{font-size:13px!important;margin-bottom:15px!important}.tv-home-page .tv-featured-action{padding:10px 14px;font-size:12px}
.tv-home-page .tv-dashboard-aside{gap:14px}.tv-home-page .tv-dash-stat-card,.tv-home-page .tv-dash-inspiration{border-radius:18px;padding:18px}
.tv-home-page .tv-dash-count{font-size:42px!important;margin-top:2px}.tv-home-page .tv-dash-stat-card h3,.tv-home-page .tv-dash-inspiration h3{font-size:16px!important}
.tv-home-page .tv-dash-stat-card p,.tv-home-page .tv-dash-inspiration p{font-size:11px!important}.tv-home-page .tv-dashboard-kicker{font-size:9px}
.tv-home-page .tv-dash-stat-card a{margin-top:6px;font-size:11px}.tv-home-page .tv-inspiration-icon{display:none}.tv-home-page .tv-dash-add{padding:7px 11px;font-size:11px}
.tv-home-page .tv-gallery-heading{margin-bottom:12px!important}.tv-gallery-tools{display:flex;align-items:center;gap:13px}.tv-demo-label{color:#9cd8da;font-size:12px;margin:0 0 12px}
.tv-home-page .tv-trip-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:15px}.tv-home-page .tv-card-cover{height:153px!important}.tv-home-page .tv-trip-card-body{padding:13px 15px}.tv-home-page .tv-trip-card-title{font-size:18px}.tv-home-page .tv-trip-card-description{margin:6px 0 11px}.tv-home-page .tv-trip-card-footer{padding-top:10px}
/* Daylight palette: warm paper and sea-glass, not stark white. */
body[data-tv-theme="daylight"]{--mid-bg:#e9f2f1;--mid-panel:#f5f8f6;--mid-card:#f8faf7;--mid-border:#cadbdc;--mid-text:#243749;--mid-muted:#657e88;--mid-violet:#815a92;--mid-cyan:#257e82;--tv-ink:#243749;--tv-muted:#657e88;--tv-bg:#e9f2f1;--tv-line:#cadbdc;--tv-blue:#278e91}
body.tv-home-page[data-tv-theme="daylight"],body.tv-trip-page[data-tv-theme="daylight"]{background:radial-gradient(circle at 90% 0%,#e5d7df,transparent 33%),#e9f2f1!important;color:#243749!important}
body[data-tv-theme="daylight"] .tv-sidebar{background:linear-gradient(155deg,#e5efed,#dceae9)!important;border-color:#c3d7d8;box-shadow:none}
body[data-tv-theme="daylight"] .tv-side-brand,body[data-tv-theme="daylight"] .tv-header .tv-brand{color:#243749!important}
body[data-tv-theme="daylight"] .tv-brand-accent{color:#257f83}body[data-tv-theme="daylight"] .tv-nav-caption,body[data-tv-theme="daylight"] .tv-side-nav a{color:#496a75}
body[data-tv-theme="daylight"] .tv-side-nav a:hover,body[data-tv-theme="daylight"] .tv-nav-home,body[data-tv-theme="daylight"] .tv-nav-trips{background:#c9e6e3!important;color:#1c5e65!important;border-color:#aad2ce!important}
body[data-tv-theme="daylight"] .tv-sidebar-bottom{background:#cbdedb;border-color:#b7cecd}body[data-tv-theme="daylight"] .tv-sidebar-bottom strong{color:#29505f}body[data-tv-theme="daylight"] .tv-sidebar-bottom>span,body[data-tv-theme="daylight"] .tv-sidebar-version{color:#5b7c84}
body[data-tv-theme="daylight"] .tv-header{border-color:#c9dbdd!important}body[data-tv-theme="daylight"] #account-link,body[data-tv-theme="daylight"] .tv-switch,body[data-tv-theme="daylight"] .tv-signout{background:#d9eae8!important;color:#286973!important;border-color:#bad2d2!important}
body[data-tv-theme="daylight"] h1,body[data-tv-theme="daylight"] h2,body[data-tv-theme="daylight"] h3{color:#243749!important}
body[data-tv-theme="daylight"] .tv-subtitle,body[data-tv-theme="daylight"] .tv-hero-caption,body[data-tv-theme="daylight"] .tv-dashboard-kicker,body[data-tv-theme="daylight"] .tv-eyebrow{color:#327b80!important}
body.tv-home-page[data-tv-theme="daylight"] .tv-featured h2,body.tv-home-page[data-tv-theme="daylight"] .tv-featured p{color:#fff!important}body.tv-home-page[data-tv-theme="daylight"] .tv-featured{border-color:#b5cbcb}
body[data-tv-theme="daylight"] .tv-dash-stat-card,body[data-tv-theme="daylight"] .tv-dash-inspiration,body[data-tv-theme="daylight"] .tv-trip-card,body[data-tv-theme="daylight"] .tv-panel{background:#f7f9f6!important;border-color:#c6d7d7!important;color:#243749!important;box-shadow:0 8px 22px #3d6d7415!important}
body[data-tv-theme="daylight"] .tv-dash-stat-card p,body[data-tv-theme="daylight"] .tv-dash-inspiration p,body[data-tv-theme="daylight"] .tv-trip-card-description{color:#69808a!important}
body[data-tv-theme="daylight"] .tv-dash-count,body[data-tv-theme="daylight"] .tv-trip-card-title{color:#253e50!important}
body[data-tv-theme="daylight"] .tv-dash-stat-card a,body[data-tv-theme="daylight"] .tv-open-trip{color:#1a7f83}
body[data-tv-theme="daylight"] .tv-new-trip-button,body[data-tv-theme="daylight"] .tv-dash-add,body[data-tv-theme="daylight"] #tlacitko-misto,body[data-tv-theme="daylight"] .tv-upload-button:not(.tv-upload-muted){background:linear-gradient(110deg,#278e91,#45aaa0)!important;border-color:#4da59f!important;box-shadow:none!important;color:#fff!important}
body[data-tv-theme="daylight"] .tv-trip-page .tv-hero{background:#dceae8}body.tv-trip-page[data-tv-theme="daylight"] .tv-hero{background:linear-gradient(115deg,#d8e9e7,#ece5df)!important;border-color:#bbd1d1}
body.tv-trip-page[data-tv-theme="daylight"] .trip-summary,body.tv-trip-page[data-tv-theme="daylight"] .tv-list li,body.tv-trip-page[data-tv-theme="daylight"] .tv-place-card{background:#f8faf7!important;border-color:#cbdad9!important;color:#243749!important}
body.tv-trip-page[data-tv-theme="daylight"] .tv-documents-list a,body.tv-trip-page[data-tv-theme="daylight"] .tv-place-links a{color:#1f7f85!important}
body.tv-trip-page[data-tv-theme="daylight"] .tv-section-heading p,body.tv-trip-page[data-tv-theme="daylight"] .tv-hint,body.tv-trip-page[data-tv-theme="daylight"] .tv-place-note,body.tv-trip-page[data-tv-theme="daylight"] .tv-place-date{color:#617c86!important}
body.tv-trip-page[data-tv-theme="daylight"] textarea,body.tv-trip-page[data-tv-theme="daylight"] .tv-toolbar select,body.tv-trip-page[data-tv-theme="daylight"] .document-type-select{background:#edf4f2!important;color:#263e50!important;border-color:#c4d8d5!important}
body.tv-trip-page[data-tv-theme="daylight"] .tv-stat-link:hover{background:#d7e8e5}
body.tv-home-page[data-tv-theme="daylight"] .tv-dialog{background:#f8faf7!important;color:#243749!important;border-color:#c5d8d7}
body.tv-home-page[data-tv-theme="daylight"] .tv-dialog input{background:#fff!important;color:#243749!important;border-color:#b9cfd0!important}
body.tv-account-page[data-tv-theme="daylight"]{background:#e9f2f1!important;color:#263e50!important}
body.tv-account-page[data-tv-theme="daylight"] .tv-panel{background:#f8faf7!important;border-color:#cadada!important}body.tv-account-page[data-tv-theme="daylight"] h1,body.tv-account-page[data-tv-theme="daylight"] h2,body.tv-account-page[data-tv-theme="daylight"] label{color:#273f50!important}
body.tv-account-page[data-tv-theme="daylight"] .tv-section-heading p,body.tv-account-page[data-tv-theme="daylight"] .tv-subtitle,body.tv-account-page[data-tv-theme="daylight"] .tv-hint{color:#69818a!important}
body.tv-account-page[data-tv-theme="daylight"] input{background:#f1f6f4!important;color:#273f50!important;border-color:#bfd2d1!important}body.tv-account-page[data-tv-theme="daylight"] .tv-profile-avatar,body.tv-account-page[data-tv-theme="daylight"] .tv-section-icon{background:#d9e9e6!important}
body.tv-account-page[data-tv-theme="daylight"] .tv-button-soft{background:#d9e9e6!important;color:#256873!important;border-color:#b8d2d1!important}
@media(max-width:850px){.tv-home-page .tv-dashboard{grid-template-columns:1fr}.tv-home-page .tv-dashboard-aside{grid-template-columns:1fr 1fr}.tv-home-page .tv-featured,.tv-home-page .tv-featured-content{min-height:270px!important}}
@media(max-width:590px){.tv-home-page .tv-dashboard-aside{grid-template-columns:1fr}.tv-top-controls{gap:5px}.tv-switch,.tv-signout{padding:8px}.tv-home-page .tv-gallery-intro h1{font-size:29px!important}.tv-home-page .tv-gallery-tools{gap:6px}.tv-home-page .tv-demo-label{font-size:11px}}

/* TripVault Travel Wallet – categorized document cards, Midnight and Daylight */
.tv-trip-page .tv-wallet-panel {padding:24px!important}
.tv-wallet-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 23px}
.tv-trip-page .tv-wallet-category {position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;min-width:0;min-height:132px;padding:17px 18px!important;background:#1b2849!important;color:#eff2ff!important;border:1px solid #36456e!important;border-radius:16px!important;box-shadow:none!important;transition:border-color .15s,transform .15s,background .15s;cursor:pointer}
.tv-trip-page .tv-wallet-category:hover{transform:translateY(-2px);border-color:#a685ee!important;background:#243457!important}
.tv-trip-page .tv-wallet-category.is-active{border-color:#b88afa!important;background:linear-gradient(145deg,#33245e,#202b56)!important;box-shadow:inset 0 0 0 1px #a776e955!important}
.tv-wallet-icon{font-size:23px;line-height:1.3}
.tv-wallet-label{font-weight:760;font-size:15px;line-height:1.2}
.tv-wallet-sub{font-size:11px;color:#9eafd4;line-height:1.35;max-width:90%}
.tv-wallet-count{position:absolute;right:14px;top:14px;min-width:26px;text-align:center;border-radius:99px;background:#34436c;color:#e1c6ff;font-size:12px;padding:4px 7px}
.tv-wallet-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 9px;padding-top:19px;border-top:1px solid #3a4567}
.tv-wallet-list-head h3{margin:0!important;font-size:18px!important}
.tv-wallet-list-head p{margin:3px 0 0;font-size:12px;color:#a3b2d5}
.tv-trip-page .tv-wallet-all{background:transparent!important;border:1px solid #54628c!important;color:#d6c4ff!important;border-radius:9px;padding:9px 13px;font-size:12px;white-space:nowrap}
.tv-trip-page .tv-wallet-toolbar{padding:5px 0 10px}
.tv-wallet-status{font-size:12px;min-height:0;color:#80dfd0;margin:2px 0 8px}
.tv-trip-page .tv-wallet-panel #soubor{font-size:11px}
body.tv-trip-page[data-tv-theme="daylight"] .tv-wallet-category{background:#f3f8f6!important;border-color:#cfdfdb!important;color:#223c4b!important}
body.tv-trip-page[data-tv-theme="daylight"] .tv-wallet-category:hover{background:#e8f4f0!important;border-color:#75bdb6!important}
body.tv-trip-page[data-tv-theme="daylight"] .tv-wallet-category.is-active{background:#daf2ec!important;border-color:#3ca7a0!important;box-shadow:inset 0 0 0 1px #64b5af!important}
body.tv-trip-page[data-tv-theme="daylight"] .tv-wallet-sub,body.tv-trip-page[data-tv-theme="daylight"] .tv-wallet-list-head p{color:#637e87}
body.tv-trip-page[data-tv-theme="daylight"] .tv-wallet-count{background:#d9ebe7;color:#246b67}
body.tv-trip-page[data-tv-theme="daylight"] .tv-wallet-list-head{border-color:#d5e3df}
body.tv-trip-page[data-tv-theme="daylight"] .tv-wallet-all{color:#2d686d!important;border-color:#a5c4c1!important}
body.tv-trip-page[data-tv-theme="daylight"] .tv-wallet-status{color:#23796d}
@media(max-width:1170px){.tv-wallet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tv-wallet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tv-trip-page .tv-wallet-category{padding:13px!important;min-height:130px}.tv-wallet-sub{font-size:10px}.tv-wallet-label{font-size:13px}.tv-trip-page .tv-wallet-panel{padding:16px!important}.tv-wallet-list-head{align-items:flex-start}}

/* ===============================================================
   TripVault 2.2 | Compact workspace redesign
   Scoped to the trip detail; original mobile ergonomics retained.
   Layout is deliberately flatter, denser and less promotional.
   =============================================================== */
@media (min-width: 781px) {
  :root { --mid-side: 210px; }
  body.tv-trip-page {
    padding: 0 22px 36px calc(var(--mid-side) + 22px) !important;
    line-height: 1.42;
  }
  body.tv-trip-page .tv-sidebar { padding: 21px 12px 18px; }
  body.tv-trip-page .tv-side-brand { padding: 0 8px 28px; font-size: 20px; }
  body.tv-trip-page .tv-logo-mark { height: 37px; width: 37px; border-radius: 11px; font-size: 21px; }
  body.tv-trip-page .tv-nav-caption { margin: 0 10px 8px; }
  body.tv-trip-page .tv-side-nav { gap: 3px; }
  body.tv-trip-page .tv-side-nav a { padding: 10px 11px; border-radius: 9px; font-size: 12px; gap: 11px; }
  body.tv-trip-page .tv-side-nav a span { font-size: 18px; width: 19px; }
  body.tv-trip-page .tv-sidebar-bottom { padding: 14px 13px; border-radius: 12px; gap: 5px; }
  body.tv-trip-page .tv-sidebar-orbit { font-size: 20px; }
  body.tv-trip-page .tv-sidebar-version { margin-top: 7px; }
  body.tv-trip-page .tv-header { padding: 11px 0 10px !important; margin-bottom: 11px !important; }
  body.tv-trip-page .tv-container { margin-bottom: 34px !important; }
  body.tv-trip-page .back-link { margin: 0 !important; font-size: 12px; }

  /* Hero: a context heading, not a full-size marketing billboard. */
  body.tv-trip-page .tv-hero {
    min-height: 106px; padding: 16px 21px; border-radius: 14px;
    box-shadow: none;
  }
  body.tv-trip-page .tv-hero h1 { font-size: clamp(23px, 2.5vw, 31px) !important; line-height: 1.12; }
  body.tv-trip-page .tv-hero .tv-eyebrow { font-size: 9px; margin-bottom: 4px; }
  body.tv-trip-page .tv-hero-caption { margin-top: 6px; font-size: 12px; }
  body.tv-trip-page .tv-hero-mark { width: 58px; height: 58px; box-shadow: none; }
  body.tv-trip-page .tv-hero-mark span:first-child { font-size: 42px; }
  body.tv-trip-page .tv-hero-mark span:last-child { font-size: 27px; }
  body.tv-trip-page .trip-summary {
    padding: 8px 14px !important; gap: 18px !important; border-radius: 12px !important;
  }
  body.tv-trip-page .tv-stat { min-width: 118px; gap: 9px; }
  body.tv-trip-page .tv-stat-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; }
  body.tv-trip-page .trip-summary strong { font-size: 20px; }
  body.tv-trip-page .trip-summary span:not(.tv-stat-icon) { font-size: 11px; }
  body.tv-trip-page .trip-summary-text { font-size: 11px; max-width: 255px; }
  body.tv-trip-page .tv-stat-link { padding: 6px; margin: -6px; border-radius: 9px; }

  /* Wallet uses the full row, notes and places share the next row. */
  body.tv-trip-page .tv-container {
    display: grid !important;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) !important;
    grid-template-areas:
      'back back'
      'hero hero'
      'summary summary'
      'documents documents'
      'notes places' !important;
    gap: 11px 14px !important;
    align-items: start;
  }
  body.tv-trip-page .tv-container > .back-link { grid-area: back; }
  body.tv-trip-page .tv-container > .tv-hero { grid-area: hero; margin: 0 !important; }
  body.tv-trip-page .tv-container > .trip-summary { grid-area: summary; margin: 0 !important; }
  body.tv-trip-page #documents-panel { grid-area: documents; }
  body.tv-trip-page #notes-panel { grid-area: notes; }
  body.tv-trip-page #places-panel { grid-area: places; }
  body.tv-trip-page .tv-container > .tv-panel { min-width: 0; margin: 0 !important; padding: 16px 18px !important; border-radius: 14px !important; box-shadow: none !important; }
  body.tv-trip-page .tv-section-heading { gap: 10px; margin-bottom: 11px; }
  body.tv-trip-page .tv-section-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
  body.tv-trip-page .tv-section-heading h2 { font-size: 17px; line-height: 1.2; margin: 0 0 2px; }
  body.tv-trip-page .tv-section-heading p { font-size: 11px; }
  body.tv-trip-page .tv-toolbar { gap: 9px; padding: 2px 0 5px; }
  body.tv-trip-page .tv-upload-button, body.tv-trip-page #tlacitko-misto {
    padding: 8px 12px !important; border-radius: 8px !important;
    font-size: 12px !important; box-shadow: none !important;
  }
  body.tv-trip-page .tv-toolbar select { padding: 7px 10px; border-radius: 8px; font-size: 12px; }
  body.tv-trip-page .tv-filter-label { font-size: 11px; }
  body.tv-trip-page .tv-hint { font-size: 11px; margin-top: 7px; }
  body.tv-trip-page .tv-list { margin-top: 6px !important; }
  body.tv-trip-page .tv-list li { padding: 10px 12px !important; margin-bottom: 6px !important; border-radius: 10px !important; }
  body.tv-trip-page .tv-documents-list li a { font-size: 12px; }
  body.tv-trip-page .document-type-select { font-size: 11px; }

  /* Wallet: three tidy columns on a standard laptop. */
  body.tv-trip-page .tv-wallet-panel { padding: 16px 18px !important; }
  body.tv-trip-page .tv-wallet-grid {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 8px !important; margin: 11px 0 12px !important;
  }
  body.tv-trip-page .tv-wallet-category {
    min-height: 77px !important; padding: 11px 12px !important;
    border-radius: 11px !important; gap: 3px !important;
    box-shadow: none !important;
  }
  body.tv-trip-page .tv-wallet-icon { font-size: 17px; line-height: 1.15; }
  body.tv-trip-page .tv-wallet-label { font-size: 12px; font-weight: 700; line-height: 1.2; }
  body.tv-trip-page .tv-wallet-sub { font-size: 10px; line-height: 1.2; max-width: calc(100% - 12px); }
  body.tv-trip-page .tv-wallet-count { right: 9px; top: 9px; min-width: 20px; padding: 2px 5px; font-size: 10px; }
  body.tv-trip-page .tv-wallet-list-head { margin: 9px 0 7px; padding-top: 9px; }
  body.tv-trip-page .tv-wallet-list-head h3 { font-size: 14px !important; }
  body.tv-trip-page .tv-wallet-list-head p { font-size: 10px; }
  body.tv-trip-page .tv-wallet-all { padding: 6px 10px; font-size: 11px; }
  body.tv-trip-page .tv-wallet-toolbar { padding: 2px 0 5px; }
  body.tv-trip-page .tv-wallet-status { font-size: 11px; margin-bottom: 4px; }

  /* Shorter notes and photo cards, with the original photo aspect intact. */
  body.tv-trip-page #notes-panel textarea {
    height: 126px !important; min-height: 106px !important;
    padding: 12px !important; border-radius: 10px !important;
    font-size: 12px; line-height: 1.5;
  }
  body.tv-trip-page #places-panel .tv-place-image { aspect-ratio: 16 / 9; }
  body.tv-trip-page #places-panel .tv-place-body { padding: 10px; }
  body.tv-trip-page #places-panel .tv-place-top h3 { font-size: 13px; }
  body.tv-trip-page #places-panel .tv-place-note,
  body.tv-trip-page #places-panel .tv-place-date { font-size: 11px; }
  body.tv-trip-page #seznam-mist.tv-places-list { gap: 10px; }
}

/* Tablet: restore readable single-column content. */
@media (min-width:781px) and (max-width:1023px) {
  body.tv-trip-page .tv-container {
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-areas: 'back' 'hero' 'summary' 'documents' 'notes' 'places' !important;
  }
}

/* Small screens must keep usable touch targets and avoid horizontal overflow. */
@media (max-width:780px) {
  body.tv-trip-page .tv-wallet-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  body.tv-trip-page .tv-wallet-category { min-height:104px; padding:12px !important; }
  body.tv-trip-page .tv-wallet-panel { padding:16px !important; }
  body.tv-trip-page .tv-hero { min-height:160px; }
}
@media (max-width:420px) {
  body.tv-trip-page .tv-wallet-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.tv-trip-page .tv-wallet-sub { font-size:10px; }
}

/* ================================================================
 TripVault 3.0 | editorial product design, desktop-first, mobile-ready.
 Isolated to the trip detail; existing Supabase widgets keep their CSS.
 ================================================================= */
body.tv-trip-page {
  --v3-bg:#f4f2ee;--v3-card:#fffefa;--v3-border:#dddcd6;--v3-ink:#213c3b;
  --v3-sub:#697c7b;--v3-accent:#176c66;--v3-soft:#e4ece8;
  background:var(--v3-bg)!important;color:var(--v3-ink)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
}
body.tv-trip-page:not([data-tv-theme="daylight"]){
  --v3-bg:#0b1425;--v3-card:#152238;--v3-border:#2a3b52;--v3-ink:#edf3f6;
  --v3-sub:#a4b4c8;--v3-accent:#a884ee;--v3-soft:#253653;
  background:var(--v3-bg)!important;color:var(--v3-ink)!important;
}
body.tv-trip-page .tv-sidebar{background:var(--v3-card)!important;border-color:var(--v3-border)!important;box-shadow:none!important}
body.tv-trip-page .tv-sidebar-bottom{background:var(--v3-soft)!important;border-color:var(--v3-border)!important}
body.tv-trip-page .tv-sidebar-bottom strong{color:var(--v3-ink)!important}
body.tv-trip-page .tv-side-brand{color:var(--v3-ink)!important}
body.tv-trip-page .tv-side-nav a{font-size:12px;min-height:38px;padding:9px 11px}
body.tv-trip-page .tv-side-nav a:hover{background:var(--v3-soft)!important}
body.tv-trip-page .tv-header{border-color:var(--v3-border)!important;max-width:1440px!important;margin-bottom:12px!important}
body.tv-trip-page .tv-header .tv-brand{color:var(--v3-ink)!important}
body.tv-trip-page .tv-container{
  max-width:1440px!important;display:block!important;margin:0 auto 35px!important;
}
body.tv-trip-page .tv-v3-titlebar{display:flex;justify-content:space-between;align-items:center;margin:10px 0 14px}
.tv-v3-breadcrumb{display:flex;align-items:center;gap:11px;font-size:13px;color:var(--v3-sub)}
.tv-v3-breadcrumb a{color:var(--v3-sub);text-decoration:none}.tv-v3-breadcrumb strong{color:var(--v3-ink)}
.tv-v3-version{font-size:9px;letter-spacing:.15em;color:var(--v3-sub)}
.tv-v3-tabs{display:flex;gap:2px;align-items:center;overflow-x:auto;border-bottom:1px solid var(--v3-border);margin-bottom:16px;scrollbar-width:thin}
body.tv-trip-page .tv-v3-tab{white-space:nowrap;border:0;border-radius:0;background:transparent!important;color:var(--v3-sub)!important;padding:11px 12px!important;font-weight:650;font-size:12px;box-shadow:none!important;border-bottom:2px solid transparent!important}
body.tv-trip-page .tv-v3-tab.is-active{color:var(--v3-ink)!important;border-bottom-color:var(--v3-accent)!important}
body.tv-trip-page .tv-v3-view[hidden],body.tv-trip-page [hidden]{display:none!important}
body.tv-trip-page .tv-v3-view .tv-hero{min-height:135px!important;margin:0 0 12px!important;padding:22px 26px!important;border:0!important;border-radius:13px!important;background:linear-gradient(96deg,#125651ed,#356a6896),linear-gradient(120deg,#3f6c7d,#b3bcaa)!important;box-shadow:none!important}
body.tv-trip-page:not([data-tv-theme="daylight"]) .tv-v3-view .tv-hero{background:linear-gradient(98deg,#15243e,#253b50 70%,#263a4d)!important}
body.tv-trip-page .tv-v3-view .tv-hero h1{font-size:clamp(29px,3vw,41px)!important;color:#fff!important;letter-spacing:-.035em}
body.tv-trip-page .tv-v3-view .tv-hero .tv-hero-caption{color:#e0efee!important}
body.tv-trip-page .tv-v3-view .tv-hero-mark{opacity:.35}
body.tv-trip-page .tv-v3-view .tv-hero .tv-eyebrow{color:#d2e9e6!important}
body.tv-trip-page .tv-v3-view .trip-summary{margin:0 0 14px!important;padding:10px 17px!important;border:1px solid var(--v3-border)!important;background:var(--v3-card)!important;border-radius:12px!important;box-shadow:none!important}
body.tv-trip-page .tv-v3-view .trip-summary strong{color:var(--v3-ink)!important}
body.tv-trip-page .tv-v3-view .trip-summary span:not(.tv-stat-icon),body.tv-trip-page .trip-summary-text{color:var(--v3-sub)!important}
body.tv-trip-page .tv-v3-view .tv-stat-icon{background:var(--v3-soft)!important}
body.tv-trip-page .tv-v3-panel{background:var(--v3-card);border:1px solid var(--v3-border);border-radius:13px;padding:19px 20px;min-width:0;box-shadow:0 3px 16px #101d2509}
.tv-v3-panel h2{font-size:18px!important;line-height:1.22;margin:0;color:var(--v3-ink)!important;letter-spacing:-.015em}
.tv-v3-panel-title{margin-bottom:16px}.tv-v3-panel-title p{font-size:12px;color:var(--v3-sub);margin:5px 0 0}
.tv-v3-flex{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tv-v3-kicker{font-size:10px!important;letter-spacing:.13em;font-weight:750;color:var(--v3-accent)!important;margin:0 0 7px!important}
body.tv-trip-page .tv-v3-outline,body.tv-trip-page .tv-v3-primary{background:transparent!important;color:var(--v3-accent)!important;border:1px solid var(--v3-border)!important;box-shadow:none!important;border-radius:8px!important;padding:8px 11px!important;font-size:12px!important;font-weight:650}
body.tv-trip-page .tv-v3-primary{background:var(--v3-accent)!important;color:white!important;border-color:var(--v3-accent)!important}
body.tv-trip-page .tv-v3-outline:disabled{opacity:.38;cursor:not-allowed}
.tv-v3-quick{margin-bottom:13px}.tv-v3-quicklinks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
body.tv-trip-page .tv-v3-quicklinks button{display:flex;align-items:center;gap:10px;background:var(--v3-soft)!important;color:var(--v3-ink)!important;border:1px solid transparent!important;border-radius:9px!important;padding:13px 12px!important;box-shadow:none!important;font-size:12px;font-weight:700;text-align:left}
.tv-v3-quicklinks button>span:first-child{font-size:18px;color:var(--v3-accent)}.tv-v3-quicklinks strong,.tv-v3-quicklinks button>span:last-child{margin-left:auto;font-size:13px}
.tv-v3-analytics{display:grid;grid-template-columns:1.1fr 1fr;gap:13px;align-items:stretch}
.tv-v3-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tv-v3-stats div{padding:13px 11px;background:var(--v3-soft);border-radius:10px;min-width:0}
.tv-v3-stats small{display:block;font-size:11px;color:var(--v3-sub)}.tv-v3-stats strong{display:block;font-size:16px;margin-top:8px;color:var(--v3-ink);overflow-wrap:anywhere}
.tv-v3-note{margin-top:14px;font-size:12px;color:var(--v3-sub)}
.tv-v3-spend-main{display:flex;align-items:center;gap:25px}
.tv-v3-donut{flex-shrink:0;display:grid;place-items:center;width:135px;height:135px;border-radius:50%;background:conic-gradient(var(--v3-accent) 0deg var(--spent-angle,0deg),var(--v3-soft) var(--spent-angle,0deg) 360deg)}
.tv-v3-donut>div{background:var(--v3-card);border-radius:50%;width:100px;height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.tv-v3-donut small{font-size:10px;color:var(--v3-sub)}.tv-v3-donut strong{font-size:16px;color:var(--v3-ink)}
.tv-v3-spend-details{flex:1;min-width:0}.tv-v3-spend-details>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--v3-border);padding:8px 0;font-size:12px}.tv-v3-spend-details strong{color:var(--v3-ink)}.tv-v3-spend-details p{font-size:11px;color:var(--v3-sub)}
.tv-v3-expenses{margin-top:11px}.tv-v3-expense-line{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:1px solid var(--v3-border);font-size:12px}.tv-v3-expense-line>span{flex:1}.tv-v3-expense-line button{background:transparent!important;color:var(--v3-sub)!important;padding:4px!important;border:0!important;box-shadow:none!important}
.tv-v3-upcoming{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:13px}
body.tv-trip-page .tv-v3-upcoming button{display:flex;align-items:center;gap:12px;text-align:left;padding:15px!important;border-radius:12px!important;border:1px solid var(--v3-border)!important;background:var(--v3-card)!important;color:var(--v3-ink)!important;box-shadow:none!important}
.tv-v3-upcoming button>span:first-child{font-size:20px;color:var(--v3-accent)}.tv-v3-upcoming button>div{display:grid;gap:3px;flex:1}.tv-v3-upcoming small{font-size:11px;color:var(--v3-sub)}
body.tv-trip-page .tv-v3-view>.tv-panel{margin:0!important;box-shadow:none!important;border:1px solid var(--v3-border)!important;background:var(--v3-card)!important;border-radius:13px!important;padding:19px 20px!important}
body.tv-trip-page .tv-v3-view>.tv-panel h2{color:var(--v3-ink)!important}
body.tv-trip-page .tv-v3-view>.tv-panel .tv-section-heading p{color:var(--v3-sub)!important}
body.tv-trip-page .tv-v3-view .tv-wallet-category{min-height:90px!important}
body.tv-trip-page .tv-v3-view #notes-panel textarea{height:220px!important;font-size:14px}
.tv-v3-coming{min-height:330px;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:16px}.tv-v3-coming-icon{font-size:36px;color:var(--v3-accent)}.tv-v3-coming p{max-width:470px;font-size:14px;color:var(--v3-sub)}
.tv-v3-dialog{border:1px solid var(--v3-border);border-radius:15px;background:var(--v3-card);color:var(--v3-ink);padding:25px;width:min(450px,calc(100vw - 32px));box-shadow:0 20px 80px #0005}
.tv-v3-dialog::backdrop{background:#071321a8}.tv-v3-dialog form{display:grid;gap:13px}.tv-v3-dialog h2{font-size:20px;margin:0 0 10px}.tv-v3-dialog label{display:grid;gap:6px;font-size:12px;font-weight:650}.tv-v3-dialog input,.tv-v3-dialog select{width:100%;min-height:40px;background:var(--v3-soft);color:var(--v3-ink);border:1px solid var(--v3-border);border-radius:8px;padding:8px 10px;color-scheme:normal}
.tv-v3-actions{display:flex;justify-content:flex-end;gap:8px}.tv-v3-dialog p[role=alert]{color:#d96a6a;font-size:12px}
#tv-v3-toast{position:fixed;z-index:100;bottom:18px;right:18px;background:#183c3b;color:#fff;border-radius:9px;padding:12px 18px;opacity:0;pointer-events:none;transition:opacity .2s}#tv-v3-toast.show{opacity:1}
@media(max-width:1100px){.tv-v3-analytics{grid-template-columns:1fr}.tv-v3-spend-main{gap:30px}}
@media(max-width:780px){body.tv-trip-page .tv-container{display:block!important}.tv-v3-quicklinks{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-v3-upcoming{grid-template-columns:1fr}.tv-v3-version{display:none}.tv-v3-tabs{margin-top:10px}.tv-v3-donut{width:115px;height:115px}.tv-v3-donut>div{width:84px;height:84px}.tv-v3-analytics{grid-template-columns:1fr}}
@media(max-width:430px){.tv-v3-stats{grid-template-columns:1fr 1fr}.tv-v3-spend-main{gap:12px}.tv-v3-quicklinks button{padding:10px!important}}
