
:root { font-family:'Segoe UI',Arial,sans-serif; color-scheme:dark; background:#03151e; color:#f5f0df; }
* { box-sizing:border-box; }
html,body { margin:0; min-width:0; min-height:100%; }
body { background:#03151e; }
html[data-auth-pending] #tm-app { visibility:hidden; }
[hidden] { display:none!important; }
button,input { -webkit-tap-highlight-color:transparent; }
button { touch-action:manipulation; }
button:focus-visible { outline:2px solid #ffe3a1; outline-offset:4px; }
h1:focus { outline:none; }

/* TimeMachineNEW — approved purchase layout, frontend only. */
#tm-purchase { width:min(100%,480px); margin:0 auto; color:#f7f3e1; }
#tm-purchase .tp-screen { display:flex; flex-direction:column; min-height:100svh; padding:calc(22px + env(safe-area-inset-top,0px)) 30px calc(30px + env(safe-area-inset-bottom,0px)); background:#042b30 url('/assets/purchase/purchase-base.webp') no-repeat center top / 100% 780px; }
#tm-purchase .tp-header { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:45px; border-bottom:1px solid #be9b67; }
#tm-purchase .tp-wordmark { white-space:nowrap; font:300 23px/1.25 'Segoe UI Light','Segoe UI',Arial,sans-serif; }
#tm-purchase .tp-wordmark span { color:#eebe70; }
#tm-purchase .tp-back { flex:none; min-width:44px; min-height:44px; padding:0; border:0; background:none; color:inherit; font:400 .75rem/1.5 'Segoe UI',Arial,sans-serif; cursor:pointer; }
#tm-purchase .tp-title { margin:20px 0 32px; font:400 1.8125rem/1.2 Georgia,'Times New Roman',serif; }
#tm-purchase .tp-packages { display:grid; gap:16px; margin:0; padding:0; list-style:none; }
#tm-purchase .tp-card { position:relative; display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:132px; padding:26px 20px; border:1px solid #2b5959; border-radius:10px; background:#083a3e; }
#tm-purchase .tp-card::before { content:''; position:absolute; left:-1px; top:27px; bottom:27px; width:1.3px; border-radius:1px; background:#eebe70; }
#tm-purchase .tp-copy { min-width:0; overflow-wrap:anywhere; }
#tm-purchase .tp-copy h2 { margin:0; font:400 1.375rem/1.2 Georgia,'Times New Roman',serif; }
#tm-purchase .tp-price { margin:8px 0 0; color:#eebe70; font:400 1.9375rem/1.2 Georgia,'Times New Roman',serif; }
#tm-purchase .tp-buy { flex:none; width:96px; min-height:48px; padding:10px 8px; border:1px solid #f4d493; border-radius:12px; background:linear-gradient(#f5ce86,#e3a956); color:#1a211a; overflow-wrap:anywhere; font:400 1rem/1.5 'Segoe UI',Arial,sans-serif; cursor:pointer; }
#tm-purchase .tp-terms { margin:auto 0 0; padding-top:48px; color:#a9bebd; text-align:center; font:400 .75rem/1.5 'Segoe UI',Arial,sans-serif; }
#tm-purchase .tp-document-status { margin:10px 0 0; text-align:center; color:#a9bebd; font:400 .75rem/1.5 'Segoe UI',Arial,sans-serif; }
.tm-purchase-document { min-height:100svh; }
@media (max-width:374px) {
  #tm-purchase .tp-screen { padding-left:26px; padding-right:26px; }
}
@media (max-width:340px) {
  #tm-purchase .tp-screen { padding-left:24px; padding-right:24px; }
  #tm-purchase .tp-card { padding-left:16px; padding-right:16px; }
  #tm-purchase .tp-title { font-size:1.6875rem; margin-bottom:34.4px; }
  #tm-purchase .tp-copy h2 { font-size:1.25rem; }
  #tm-purchase .tp-price { font-size:1.8125rem; }
  #tm-purchase .tp-buy { width:88px; }
}
@media (min-width:440px) {
  #tm-purchase .tp-screen { padding-left:32px; padding-right:32px; }
}

    #tm-onboarding-ready{width:min(100%,390px);margin:0 auto;background:#043039;color:#f7f2df;border-radius:26px;overflow:hidden;position:relative;font-family:'Segoe UI',Arial,sans-serif;box-shadow:0 18px 54px #00131b30}
    #tm-onboarding-ready *{box-sizing:border-box}
    #tm-onboarding-ready .hero{position:relative;isolation:isolate}
    #tm-onboarding-ready .hero img{display:block;width:100%;height:auto;aspect-ratio:887/1080}
    #tm-onboarding-ready .hero:after{content:'';position:absolute;inset:auto 0 0;height:25px;background:linear-gradient(transparent,#043039);pointer-events:none}
    #tm-onboarding-ready .brand{position:absolute;top:22px;left:0;width:100%;text-align:center;font-size:18px;letter-spacing:.2px;line-height:25px;color:#f6f5e9}
    #tm-onboarding-ready .brand span{color:#eeb969}
    #tm-onboarding-ready .content{padding:4px 28px 40px;text-align:center;background:radial-gradient(ellipse at 75% 90%,#08394355,transparent 60%),#043039}
    #tm-onboarding-ready .eyebrow{margin:0 0 9px;color:#e8b967;font-size:10px;line-height:16px;letter-spacing:3.2px;font-weight:500;white-space:nowrap}
    #tm-onboarding-ready h1{font:400 41px/1.02 Georgia,'Times New Roman',serif;letter-spacing:-1.8px;margin:0 -15px 16px}
    #tm-onboarding-ready .description{font-size:14px;line-height:19px;color:#c4d0d0;margin:0 -3px 25px}
    #tm-onboarding-ready .launch{display:block;width:calc(100% - 16px);margin:0 8px;min-height:49px;border-radius:20px;border:1px solid #ffdf94;background:linear-gradient(135deg,#f8d388,#f3c169 51%,#dfaa56);color:#151509;font:500 20px/1.2 'Segoe UI',Arial,sans-serif;cursor:pointer}
    #tm-onboarding-ready .balance{margin:11px 0 0;font-size:12px;line-height:19px;color:#edf1ea}
    @media(max-width:360px){#tm-onboarding-ready .content{padding-left:24px;padding-right:24px}#tm-onboarding-ready h1{font-size:35px;letter-spacing:-1.6px}#tm-onboarding-ready .eyebrow{font-size:9px;letter-spacing:2.5px}#tm-onboarding-ready .description{font-size:13px}}


    #tm-time-selection-ready{width:min(100%,390px);margin:0 auto;background:#003039;color:#f7f2df;border-radius:26px;overflow:hidden;position:relative;font-family:'Segoe UI',Arial,sans-serif;box-shadow:0 18px 54px #00131b30}
    #tm-time-selection-ready *{box-sizing:border-box}
    #tm-time-selection-ready [hidden]{display:none!important}
    #tm-time-selection-ready .hero{position:relative}
    #tm-time-selection-ready .hero>img{display:block;width:100%;height:auto;aspect-ratio:887/786}
    #tm-time-selection-ready .hero:after{content:'';position:absolute;inset:auto 0 0;height:22px;background:linear-gradient(transparent,#003039);pointer-events:none}
    #tm-time-selection-ready .header{position:absolute;top:14px;left:28px;right:28px;display:flex;align-items:center;justify-content:space-between;gap:8px}
    #tm-time-selection-ready .brand{font-size:18px;line-height:26px;letter-spacing:.2px;color:#f6f5e9}
    #tm-time-selection-ready .brand span{color:#eeb969}
    #tm-time-selection-ready .menu-toggle{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;background:none;border:0;cursor:pointer}
    #tm-time-selection-ready .menu-toggle img{display:block;width:44px;height:44px}
    #tm-time-selection-ready .content{position:relative;padding:2px 28px 38px;isolation:isolate;background:radial-gradient(ellipse at 20% 20%,#06404a55,transparent 65%),#003039}
    #tm-time-selection-ready h1{font:400 37px/1.16 Georgia,'Times New Roman',serif;text-align:center;letter-spacing:-1.3px;margin:0 -15px 4px;white-space:nowrap}
    #tm-time-selection-ready .subtitle{font-size:14px;line-height:21px;text-align:center;color:#c3cfd1;margin:0 0 12px}
    #tm-time-selection-ready .segments{display:grid;grid-template-columns:1fr 1fr;border:1px solid #93adb4;border-radius:9px;background:#03263160}
    #tm-time-selection-ready .segments button{min-height:42px;margin:-1px;border:1px solid transparent;border-radius:9px;padding:6px 4px;color:#f1f4ee;background:transparent;font:400 14px/1.2 'Segoe UI',Arial,sans-serif;cursor:pointer}
    #tm-time-selection-ready .segments button[aria-pressed=true]{background:linear-gradient(140deg,#366d64,#1d5955);border-color:#f3cd74;color:#f7d579;font-weight:500}
    #tm-time-selection-ready .label{display:block;color:#d3dddd;font-size:12px;line-height:18px;margin:10px 0 5px}
    #tm-time-selection-ready .entry{display:flex;align-items:center;min-height:49px;border:1px solid #f3cd74;border-radius:9px;background:#01293466;padding:4px 14px}
    #tm-time-selection-ready input{min-width:0;width:100%;background:transparent;border:0;color:#faf6e6;padding:0;font:500 34px/1.2 Georgia,'Times New Roman',serif;caret-color:#f3cd74;border-radius:2px}
    #tm-time-selection-ready .unit{padding:0 18px 0 9px;color:#f1f5ef;font-size:15px}
    #tm-time-selection-ready .helper{margin:3px 0 0;font-size:12px;line-height:18px;color:#a9bfc3}
    #tm-time-selection-ready .summary{min-height:49px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:0 5px;text-align:center;font:400 23px/1.3 Georgia,'Times New Roman',serif;margin:6px -6px 12px;overflow-wrap:anywhere}
    #tm-time-selection-ready .summary .number{color:#efbd74}
    #tm-time-selection-ready .launch{display:block;width:calc(100% - 16px);margin:0 8px;min-height:49px;border:1px solid #ffdf94;border-radius:20px;background:linear-gradient(135deg,#f8d388,#f3c169 51%,#dfaa56);color:#151509;font:500 20px/1.2 'Segoe UI',Arial,sans-serif;cursor:pointer}
    #tm-time-selection-ready .balance{margin:11px -4px 0;text-align:center;font-size:12px;line-height:19px;color:#edf1ea;position:relative;z-index:1}
    #tm-time-selection-ready .cloud{position:absolute;bottom:0;height:auto;pointer-events:none;z-index:-1}
    #tm-time-selection-ready .cloud.left{width:22.32%;left:0}#tm-time-selection-ready .cloud.right{width:26.72%;right:0}
    @media(max-width:360px){#tm-time-selection-ready .content{padding-left:24px;padding-right:24px}#tm-time-selection-ready .header{left:24px;right:24px}#tm-time-selection-ready h1{font-size:32px;letter-spacing:-1.4px}#tm-time-selection-ready .subtitle{font-size:12px}#tm-time-selection-ready .segments button{font-size:12px}#tm-time-selection-ready .summary{font-size:20px}#tm-time-selection-ready .balance{font-size:11px}#tm-time-selection-ready .brand{font-size:17px}}
    @media(pointer:coarse){#tm-time-selection-ready .segments button{min-height:44px}}


/* App layout: full-bleed on phones, with no mockup frame or shadow. */
#tm-onboarding-ready,#tm-time-selection-ready {
  width:100%; max-width:480px; min-height:100svh; border-radius:0;
  box-shadow:none; overflow:visible;
}
#tm-onboarding-ready .launch,#tm-time-selection-ready .launch { min-height:56px; }
#tm-time-selection-ready .segments button { min-height:44px; }
#tm-onboarding-ready .content,#tm-time-selection-ready .content {
  padding-bottom:calc(40px + env(safe-area-inset-bottom,0px));
}
#tm-onboarding-ready .brand { top:calc(22px + env(safe-area-inset-top,0px)); }
#tm-time-selection-ready .header { top:calc(14px + env(safe-area-inset-top,0px)); }
#tm-time-selection-ready .panel-spacer { height:21px; }
#tm-time-selection-ready button:disabled { cursor:default; opacity:1; }
#tm-time-selection-ready .summary { min-width:0; }
#tm-time-selection-ready .summary .number { min-width:0; max-width:100%; overflow-wrap:anywhere; }
#tm-time-selection-ready .entry { scroll-margin-block:24px; }
@media(min-width:420px) {
  #tm-onboarding-ready h1 { font-size:46px; }
  #tm-time-selection-ready h1 { font-size:41px; }
}

/* Validation stays in normal document flow; only the existing field border changes. */
#tm-time-selection-ready input,#tm-time-selection-ready input:focus,#tm-time-selection-ready input:focus-visible { outline:none; box-shadow:none; appearance:none; }
#tm-time-selection-ready .entry:focus-within { border-color:#ffe3a1; }
#tm-time-selection-ready .entry.invalid { border-color:#ffb5a6; }
#tm-time-selection-ready .field-error { margin:4px 0 0; font-size:12px; line-height:18px; color:#ffb5a6; overflow-wrap:anywhere; }
#tm-time-selection-ready .launch.invalid { background:#486364; border-color:#829894; color:#c8d2ce; cursor:not-allowed; }


#tm-flight-03 { background: transparent; padding: 10px 0; }
#tm-flight-03 * { box-sizing: border-box; }
#tm-flight-03 .tf-screen { --tf-ink: #f5f0df; --tf-gold: #eac486; --tf-muted: #b1c4c8; position: relative; isolation: isolate; overflow: hidden; width: min(100%, 390px); min-height: 780px; margin: 0 auto; border-radius: 26px; background: #05141d; color: var(--tf-ink); font-family: 'Segoe UI', Arial, sans-serif; box-shadow: 0 16px 42px #00182025; }
#tm-flight-03 .tf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
#tm-flight-03 .tf-vignette { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, #03121b90 0%, transparent 23%, transparent 57%, #05252aa0 70%, #052c30 100%); }
#tm-flight-03 .tf-header { display: flex; align-items: center; justify-content: space-between; height: 81px; padding: 23px 23px 10px 28px; position: relative; }
#tm-flight-03 .tf-wordmark { font-family: 'Segoe UI', Arial, sans-serif; font-size: 22px; line-height: 30px; letter-spacing: .35px; font-weight: 400; }
#tm-flight-03 .tf-wordmark span { color: var(--tf-gold); }
#tm-flight-03 .tf-destination { text-align: center; padding: 12px 28px 0; }
#tm-flight-03 .tf-destination-label { color: #adc0c3; margin: 0 0 9px; font-size: 10px; line-height: 16px; letter-spacing: 2.4px; font-weight: 400; }
#tm-flight-03 .tf-date { color: var(--tf-gold); margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 23px; line-height: 30px; font-weight: 400; }
#tm-flight-03 .tf-space { height: 347px; position: relative; }
#tm-flight-03 .tf-micro { position: absolute; color: #88adb5; opacity: .48; font-family: 'Courier New', monospace; font-size: 11px; line-height: 19px; letter-spacing: .9px; }
#tm-flight-03 .tf-micro-a { top: 57px; left: 28px; }
#tm-flight-03 .tf-micro-b { bottom: 14px; right: 28px; text-align: right; }
#tm-flight-03 .tf-status { text-align: center; padding: 0 26px; }
#tm-flight-03 .tf-eyebrow { color: var(--tf-gold); font-size: 10px; line-height: 16px; letter-spacing: 2.4px; margin: 0 0 15px; font-weight: 400; }
#tm-flight-03 .tf-title { min-height: 82px; display: flex; align-items: center; justify-content: center; font-family: Georgia, 'Times New Roman', serif; font-size: 35px; line-height: 1.13; letter-spacing: -.5px; font-weight: 400; margin: 0; color: var(--tf-ink); }
#tm-flight-03 .tf-description { min-height: 50px; margin: 14px 0 0; color: var(--tf-muted); font-size: 15px; line-height: 1.55; font-weight: 400; }
#tm-flight-03 .tf-dots { display: flex; justify-content: center; align-items: center; gap: 7px; height: 37px; }
#tm-flight-03 .tf-dots span { width: 3px; height: 3px; border-radius: 50%; background: #d9ba85; opacity: .55; }
#tm-flight-03 .tf-switching { animation: tf-status-change .45s ease-out; }
#tm-flight-03 .tf-destination-label, #tm-flight-03 .tf-eyebrow { font-size: 11px; letter-spacing: 2px; }
@keyframes tf-status-change { from { opacity: .2; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 360px) { #tm-flight-03 .tf-title { font-size: 31px; } #tm-flight-03 .tf-header { padding-left: 24px; } #tm-flight-03 .tf-wordmark { font-size: 20px; } #tm-flight-03 .tf-micro-a { left: 24px; } #tm-flight-03 .tf-screen { min-height: 760px; } #tm-flight-03 .tf-space { height: 330px; } }


#tm-result-04 { padding: 10px 0; background: transparent; }
#tm-result-04 * { box-sizing: border-box; }
#tm-result-04 .tr-screen { --tr-ink: #f5f0df; --tr-gold: #eac486; --tr-muted: #b1c4c8; width: min(100%, 390px); margin: 0 auto; overflow: hidden; position: relative; isolation: isolate; border-radius: 26px; background: #052c30; color: var(--tr-ink); font-family: 'Segoe UI', Arial, sans-serif; box-shadow: 0 16px 42px #00182025; }
#tm-result-04 .tr-header { height: 81px; padding: 23px 28px 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: absolute; inset: 0 0 auto; z-index: 2; background: linear-gradient(180deg, #03121bde, #03121b50 70%, transparent); }
#tm-result-04 .tr-wordmark { white-space: nowrap; font-size: 22px; line-height: 30px; letter-spacing: .35px; font-weight: 400; }
#tm-result-04 .tr-wordmark span { color: var(--tr-gold); }
#tm-result-04 .tr-history { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--tr-ink); font-family: inherit; font-size: 15px; line-height: 22px; font-weight: 400; cursor: pointer; white-space: nowrap; text-decoration: none; }
#tm-result-04 .tr-history i, #tm-result-04 .tr-history svg { width: 20px; height: 20px; color: var(--tr-gold); flex-shrink: 0; }
#tm-result-04 .tr-hero { position: relative; margin: 0; height: 426px; background: #091b24; }
#tm-result-04 .tr-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
#tm-result-04 .tr-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #03121b20, transparent 24%, transparent 68%, #052c3066 81%, #052c30 100%); }
#tm-result-04 .tr-main { padding: 0 28px; position: relative; margin-top: -6px; }
#tm-result-04 .tr-meta { text-align: center; color: var(--tr-gold); font-size: 14px; line-height: 22px; margin: 0 0 11px; letter-spacing: .25px; }
#tm-result-04 .tr-title { font-family: Georgia, 'Times New Roman', serif; font-size: 36px; line-height: 1.16; letter-spacing: -.65px; font-weight: 400; text-align: center; margin: 0; color: var(--tr-ink); }
#tm-result-04 .tr-context { text-align: center; color: var(--tr-muted); font-size: 12px; line-height: 20px; margin: 12px 0 28px; }
#tm-result-04 .tr-story { color: #e0e5dc; font-size: 16px; line-height: 1.72; font-weight: 400; text-align: left; overflow-wrap: break-word; }
#tm-result-04 .tr-story p { margin: 0 0 21px; }
#tm-result-04 .tr-story p:last-child { margin-bottom: 0; }
#tm-result-04 .tr-footer { padding: 30px 28px 42px; position: relative; }
#tm-result-04 .tr-next { position: relative; z-index: 1; width: 100%; min-height: 56px; border: 1px solid #ffdf94; border-radius: 20px; padding: 14px 10px; background: linear-gradient(135deg, #f8d388 0%, #f3c169 51%, #dfaa56 100%); color: #151509; font-family: 'Segoe UI', Arial, sans-serif; font-size: 19px; line-height: 26px; font-weight: 500; text-align: center; cursor: pointer; }
#tm-result-04 .tr-next:hover { filter: brightness(1.04); }
@media (max-width: 360px) {
  #tm-result-04 .tr-header { padding-left: 24px; padding-right: 24px; gap: 8px; }
  #tm-result-04 .tr-wordmark { font-size: 20px; }
  #tm-result-04 .tr-history { gap: 6px; font-size: 14px; }
  #tm-result-04 .tr-main { padding: 0 24px; }
  #tm-result-04 .tr-footer { padding-left: 24px; padding-right: 24px; }
  #tm-result-04 .tr-hero { height: 400px; }
  #tm-result-04 .tr-title { font-size: 32px; }
  #tm-result-04 .tr-next { font-size: 18px; }
}

/* Flight and result use the approved layouts without the preview frame. */
#tm-flight-03,#tm-result-04 { padding:0; }
#tm-flight-03 .tf-screen,#tm-result-04 .tr-screen {
  width:100%; max-width:480px; border-radius:0; box-shadow:none;
}
#tm-flight-03 .tf-screen { min-height:max(780px,100svh); padding-bottom:env(safe-area-inset-bottom,0px); }
#tm-flight-03 .tf-header { height:calc(81px + env(safe-area-inset-top,0px)); padding-top:calc(23px + env(safe-area-inset-top,0px)); }
#tm-flight-03 .tf-date { overflow-wrap:anywhere; }
#tm-flight-03 .tf-micro-a { white-space:pre-line; }
#tm-flight-03 .tf-status { padding-bottom:24px; }
#tm-result-04 .tr-screen { min-height:100svh; }
#tm-result-04 .tr-header { height:calc(81px + env(safe-area-inset-top,0px)); padding-top:calc(23px + env(safe-area-inset-top,0px)); }
#tm-result-04 .tr-footer { padding-bottom:calc(42px + env(safe-area-inset-bottom,0px)); }
#tm-result-04 .tr-history:disabled { opacity:1; cursor:default; }
#tm-time-selection-ready .launch-error { text-align:center; margin:6px 0 12px; }
@media(max-width:360px) { #tm-flight-03 .tf-screen { min-height:max(760px,100svh); } }

/* Portrait is the only phone layout; keep the page state underneath the notice. */
body.portrait-required { overflow:hidden; }
body.portrait-required #tm-app { visibility:hidden; }
.portrait-notice { position:fixed; inset:0; z-index:10; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; overflow:auto; padding:24px; text-align:center; background:#052c30; color:#f5f0df; outline:none; }
.portrait-notice svg { flex-shrink:0; width:32px; height:48px; color:#eac486; }
.portrait-notice h2 { margin:0; font:400 28px/1.2 Georgia,'Times New Roman',serif; }
.portrait-notice p { margin:0; color:#b1c4c8; font-size:14px; line-height:1.5; }

/* Sources and recovery actions stay in normal document flow. */
#tm-result-04 .tr-source { color:#f3c169; font-size:12px; white-space:nowrap; text-decoration:underline; text-underline-offset:3px; }
#tm-time-selection-ready .retry-image { width:100%; min-height:44px; margin:0 0 12px; padding:9px 12px; border:1px solid #eac486; border-radius:12px; background:transparent; color:#f5cf83; font:inherit; font-size:14px; cursor:pointer; }

/* Approved Yandex/Telegram entry and right-hand navigation. */
.tm-visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
body.tm-overlay-open { overflow:hidden; }
.tm-overlay { position:fixed; inset-block:0; left:50%; width:min(100%,480px); transform:translateX(-50%); z-index:20; }
.tm-overlay-backdrop { position:absolute; inset:0; background:rgba(0,13,19,.69); }
.tm-overlay-close { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:0; background:transparent; cursor:pointer; }
.tm-overlay-close img { display:block; width:44px; height:44px; }
.tm-login-overlay { display:flex; align-items:stretch; justify-content:center; overflow-y:auto; padding:max(24px,env(safe-area-inset-top,0px)) 0 max(24px,env(safe-area-inset-bottom,0px)); }
.tm-login-overlay .tm-overlay-backdrop { position:fixed; background:rgba(0,12,19,.62); }
.tm-login-dialog { position:relative; align-self:center; flex:none; width:calc(100% - 48px); max-width:323px; margin:auto; padding:19px 24px 18px; border:1px solid rgba(225,185,113,.667); border-radius:18px; background:rgba(7,48,57,.988); color:#f7f2df; text-align:center; box-shadow:0 18px 46px #00182085; transform:translateY(-3svh); }
.tm-login-dialog:focus,.tm-menu-panel:focus { outline:none; }
.tm-login-dialog .tm-overlay-close { position:absolute; right:3px; top:6px; }
.tm-login-eyebrow { margin:0 28px 22px; color:#eeb969; font:700 9.5px/18px 'Segoe UI',Arial,sans-serif; letter-spacing:.25px; white-space:nowrap; }
.tm-login-dialog h2 { margin:0; color:#f7f2df; font:400 19px/27px Georgia,'Times New Roman',serif; letter-spacing:-.22px; }
.tm-login-rule { height:1px; margin:14px 10px 19px; background:rgba(203,169,110,.373); }
.tm-yandex-login { display:flex; align-items:center; justify-content:center; width:214px; max-width:100%; min-height:48px; margin:0 auto; padding:10px 12px; border:1px solid #ffdd9c; border-radius:24px; background:#f0bf6e; color:#191e1b; font:700 16px/24px 'Segoe UI',Arial,sans-serif; cursor:pointer; }
.tm-telegram-login { display:block; width:max-content; max-width:100%; min-height:40px; margin:8px auto 0; padding:12px 4px 8px; color:#f7f2df; font:400 12px/20px 'Segoe UI',Arial,sans-serif; text-decoration:underline; text-decoration-color:#b3caca; text-decoration-thickness:1px; text-underline-offset:4px; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.tm-telegram-login:focus-visible { outline:2px solid #ffe3a1; outline-offset:2px; border-radius:3px; }
.tm-login-dialog.tm-zero-dialog { padding:53px 24px 28px; }
.tm-login-dialog.tm-zero-dialog h2 { font:400 24px/1.3 Georgia,'Times New Roman',serif; letter-spacing:-.3px; margin:0 0 12px; }
.tm-zero-subtitle { margin:0 0 24px; color:#c3cfd1; font:400 14px/21px 'Segoe UI',Arial,sans-serif; }
.tm-zero-buy { display:flex; align-items:center; justify-content:center; width:100%; max-width:250px; min-height:48px; margin:0 auto; padding:10px 12px; border:1px solid #ffdd9c; border-radius:24px; background:#f0bf6e; color:#191e1b; font:500 16px/24px 'Segoe UI',Arial,sans-serif; cursor:pointer; }
.tm-login-caption { margin:0; color:#9eb6b6; font:400 11px/16px 'Segoe UI',Arial,sans-serif; }
.tm-login-status { margin:13px 0 0; color:#f7f2df; font:13px/1.4 'Segoe UI',Arial,sans-serif; }
@media(max-height:420px) {
  .tm-login-dialog { transform:none; }
}
.tm-menu-panel { position:absolute; right:0; top:0; width:74%; max-width:355px; height:100%; height:100svh; display:flex; flex-direction:column; overflow-y:auto; padding:calc(34px + env(safe-area-inset-top,0px)) 27px calc(18px + env(safe-area-inset-bottom,0px)); border-left:1px solid #ba965a; background:#052b34; color:#f7f2df; box-shadow:-12px 0 32px #00182045; }
.tm-menu-head { display:flex; align-items:center; justify-content:space-between; min-height:44px; margin:0 -14px 26px 0; }
.tm-menu-head p { margin:0; color:#f0bf6e; font:700 10px/1.3 'Segoe UI',Arial,sans-serif; letter-spacing:.3px; }
.tm-menu-head .tm-overlay-close { flex:none; }
.tm-menu-name { margin:0; padding:0 0 20px; border-bottom:1px solid #bea06b; overflow-wrap:anywhere; font:400 24px/1.2 Georgia,'Times New Roman',serif; }
.tm-menu-links { margin-top:21px; }
.tm-menu-links a { display:flex; align-items:center; justify-content:space-between; gap:9px; min-height:54px; border-bottom:1px solid #779598; color:#f7f2df; text-decoration:none; font:400 17px/1.25 'Segoe UI',Arial,sans-serif; }
.tm-menu-links img { display:block; flex:none; width:24px; height:24px; }
.tm-menu-balance { display:flex; align-items:center; justify-content:center; gap:5px; width:100%; min-height:37px; margin:44px 0 0; padding:6px 7px; border-radius:8px; background:#164648; color:#f7f2df; white-space:nowrap; font:400 13px/1.2 'Segoe UI',Arial,sans-serif; }
.tm-menu-balance strong { color:#f0bf6e; font-weight:700; }
.tm-menu-status { margin:12px 0 0; color:#c5d3d3; font:12px/1.4 'Segoe UI',Arial,sans-serif; }
.tm-menu-spacer { flex:1 0 30px; }
.tm-menu-logout { display:block; flex:none; width:100%; min-height:58px; padding:16px 0 0; border:0; border-top:1px solid #bea06b; background:transparent; color:#f7f2df; text-align:left; font:400 17px/1.3 'Segoe UI',Arial,sans-serif; cursor:pointer; }
#tm-time-selection-ready .demo-note { margin:12px 0 0; color:#c2d0d1; text-align:center; font:12px/1.4 'Segoe UI',Arial,sans-serif; }
@media(max-width:360px) {
  .tm-login-dialog h2 { font-size:18.5px; }
  .tm-menu-panel { padding-left:21px; padding-right:21px; }
  .tm-menu-links a { font-size:15px; }
  .tm-menu-balance { font-size:11px; }
}

/* Approved History layout. The illustrations contain no text or controls. */
#tm-history { width:100%; max-width:480px; min-height:100svh; margin:0 auto; color:#f7f3e1; }
#tm-history * { box-sizing:border-box; }
#tm-history .th-screen { min-height:100svh; padding:calc(26px + env(safe-area-inset-top,0px)) 30px calc(34px + env(safe-area-inset-bottom,0px)); background:#042b30 url('/assets/history/history-base.webp') no-repeat center top / 100% auto; }
#tm-history .th-screen.is-empty { background:#042b30 url('/assets/history/history-empty.webp') no-repeat center top / 100% auto; }
#tm-history .th-screen.is-error { background:#042b30 url('/assets/history/history-error.webp') no-repeat center top / 100% auto; }
#tm-history .th-header { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:40px; padding-bottom:14px; border-bottom:1px solid #eebe70; }
#tm-history .th-wordmark { white-space:nowrap; font:400 21px/1.25 'Segoe UI',Arial,sans-serif; letter-spacing:.2px; }
#tm-history .th-wordmark span { color:#eebe70; }
#tm-history .th-back { flex:none; min-height:44px; margin:-5px -5px -5px 0; padding:5px; border:0; background:none; color:#f7f3e1; font:400 15px/1.2 'Segoe UI',Arial,sans-serif; cursor:pointer; }
#tm-history .th-title { margin:21px 0 30px; font:400 clamp(25px,7.5vw,35px)/1.2 Georgia,'Times New Roman',serif; letter-spacing:-.5px; }
#tm-history .th-list-state { min-height:calc(100svh - 100px); }
#tm-history .th-detail-status { margin:-16px 0 20px; color:#a9bebd; font:400 13px/1.4 'Segoe UI',Arial,sans-serif; }
#tm-history .th-list { position:relative; display:grid; gap:10px; margin:0; padding:0 0 0 0; list-style:none; }
#tm-history .th-list::before { content:''; position:absolute; top:33px; bottom:33px; left:-11px; width:1px; background:#eebe70; }
#tm-history .th-list li { position:relative; min-width:0; }
#tm-history .th-list li::before { content:''; position:absolute; top:32px; left:-13px; width:5px; height:5px; border-radius:50%; background:#eebe70; }
#tm-history .th-card { display:flex; align-items:center; width:100%; min-height:66px; gap:11px; padding:8px 10px 8px 9px; border:1px solid #2c6768; border-radius:9px; background:#083a3e; color:#f7f3e1; text-align:left; cursor:pointer; }
#tm-history .th-card::before { content:''; position:absolute; left:0; top:12px; bottom:12px; width:2px; border-radius:2px; background:#eebe70; }
#tm-history .th-card:hover { border-color:#d5aa68; }
#tm-history .th-card:focus-visible,#tm-history .th-back:focus-visible,#tm-history .th-retry:focus-visible { outline:2px solid #ffe3a1; outline-offset:3px; }
#tm-history .th-thumb { display:block; flex:none; width:48px; height:48px; border-radius:5px; object-fit:cover; background:#16494c; }
#tm-history .th-copy { display:block; min-width:0; flex:1; }
#tm-history .th-card-title { display:block; overflow-wrap:anywhere; font:400 16px/1.2 Georgia,'Times New Roman',serif; }
#tm-history .th-period { display:block; margin-top:5px; color:#a9bebd; font:400 10px/1.25 'Segoe UI',Arial,sans-serif; }
#tm-history .th-chevron { flex:none; width:9px; height:9px; margin:0 3px 0 1px; border-top:1.5px solid #eebe70; border-right:1.5px solid #eebe70; transform:rotate(45deg); }
#tm-history .th-skeleton-cards { display:grid; gap:10px; }
#tm-history .th-skeleton-card { display:flex; align-items:center; gap:11px; height:66px; padding:8px 10px 8px 9px; border:1px solid #22565a; border-radius:9px; background:#083a3e; }
#tm-history .th-skeleton-thumb { flex:none; width:48px; height:48px; border-radius:5px; background:#16494c; }
#tm-history .th-skeleton-lines { flex:1; display:grid; gap:10px; }
#tm-history .th-skeleton-lines i { display:block; height:10px; border-radius:10px; background:#205459; }
#tm-history .th-skeleton-lines i:first-child { width:72%; }
#tm-history .th-skeleton-lines i:last-child { width:35%; height:7px; }
#tm-history .th-bottom-state { min-height:85px; margin-top:13px; padding:25px 8px 0; border-top:1px solid #eebe70; color:#a9bebd; text-align:center; font:400 13px/1.45 'Segoe UI',Arial,sans-serif; }
#tm-history .th-bottom-state p { margin:0; }
#tm-history .th-dots,#tm-history .th-end-dot { display:block; margin:8px 0 0; color:#eebe70; letter-spacing:3px; }
#tm-history .th-end-dot { margin:0 0 13px; font-size:19px; line-height:1; }
#tm-history .th-page-spinner { display:block; width:19px; height:19px; margin:0 auto 10px; border:2px solid transparent; border-right-color:#eebe70; border-bottom-color:#eebe70; border-radius:50%; animation:th-spin .9s linear infinite; }
@keyframes th-spin { to { transform:rotate(360deg); } }
#tm-history .th-page-error { display:flex; align-items:center; justify-content:space-between; gap:8px; text-align:left; }
#tm-history .th-page-alert { display:grid; place-items:center; flex:none; width:17px; height:17px; border:1px solid #eebe70; border-radius:50%; color:#eebe70; font-size:11px; }
#tm-history .th-page-error strong { color:#f7f3e1; font-weight:400; font-size:12px; }
#tm-history .th-page-error p { font-size:11px; }
#tm-history .th-illustrated { margin-top:clamp(230px,39svh,380px); text-align:center; }
#tm-history .th-illustrated h2 { margin:0 0 16px; font:400 clamp(21px,6vw,27px)/1.16 Georgia,'Times New Roman',serif; }
#tm-history .th-error h2 { font-size:clamp(18px,5.4vw,23px); }
#tm-history .th-illustrated p { margin:0; color:#a9bebd; font:400 14px/1.4 'Segoe UI',Arial,sans-serif; }
#tm-history .th-retry { min-width:126px; min-height:44px; margin-top:23px; padding:8px 20px; border:1px solid #eebe70; border-radius:10px; background:#0b4143; color:#eebe70; font:400 15px/1.2 'Segoe UI',Arial,sans-serif; cursor:pointer; }
#tm-history .th-page-error .th-retry { flex:none; min-width:0; margin:0; padding:8px 9px; font-size:12px; }
@media(max-width:360px) {
  #tm-history .th-screen { padding-left:24px; padding-right:24px; }
  #tm-history .th-title { font-size:27px; }
  #tm-history .th-card-title { font-size:15px; }
  #tm-history .th-card { gap:9px; }
}

/* Approved privacy notice links. */
.tm-policy-link { color:#e5bf7f; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.tm-policy-link:focus-visible { outline:2px solid #ffe3a1; outline-offset:3px; border-radius:2px; }
#tm-onboarding-ready .tm-onboarding-legal { margin:16px 0 0; color:#a9bfbe; font:400 12px/18px 'Segoe UI',Arial,sans-serif; }
.tm-legal-terms { color:#d8e2da; }
.tm-login-legal { margin:16px 0 0; color:#9eb6b6; font:400 11px/16px 'Segoe UI',Arial,sans-serif; }

/* Public text page: privacy policy. */
.tm-policy-page { color:#d5e1de; background:#052c30; }
.tm-policy { width:min(100%,960px); margin:0 auto; padding:calc(20px + env(safe-area-inset-top,0px)) 30px calc(40px + env(safe-area-inset-bottom,0px)); }
.tm-policy-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 0 16px; border-bottom:1px solid #9e8258; }
.tm-policy-brand { color:#f7f2df; font:300 23px/1.25 'Segoe UI Light','Segoe UI',Arial,sans-serif; text-decoration:none; white-space:nowrap; }
.tm-policy-brand span { color:#eebe70; }
.tm-policy-back { display:flex; align-items:center; min-height:44px; color:#e5bf7f; font-size:14px; text-decoration:none; }
.tm-policy article { font:400 16px/1.65 'Segoe UI',Arial,sans-serif; overflow-wrap:anywhere; }
.tm-policy h1 { margin:28px 0 20px; color:#f7f2df; font:400 32px/1.25 Georgia,'Times New Roman',serif; }
.tm-policy h2 { margin:28px 0 16px; color:#e5bf7f; font:400 25px/1.3 Georgia,'Times New Roman',serif; }
.tm-policy h3 { margin:24px 0 12px; color:#f7f2df; font-size:18px; line-height:1.4; }
.tm-policy p { margin:0 0 16px; }
.tm-policy ul { margin:0 0 20px; padding-left:24px; }
.tm-policy li { margin:0 0 6px; }
.tm-policy strong { font-weight:600; color:#e9eee1; }
.tm-policy code { font:inherit; color:inherit; }
.tm-policy hr { margin:28px 0; border:0; border-top:1px solid #315553; }
.tm-policy a:focus-visible,.tm-policy-table:focus-visible { outline:2px solid #ffe3a1; outline-offset:4px; }
.tm-policy article a { color:#e5bf7f; text-underline-offset:3px; }
.tm-policy-table { max-width:100%; overflow-x:auto; margin:0 0 24px; border:1px solid #315553; border-radius:10px; }
.tm-policy table { width:100%; min-width:680px; border-collapse:collapse; font-size:14px; line-height:1.55; }
.tm-policy th,.tm-policy td { padding:14px; border-bottom:1px solid #315553; border-right:1px solid #315553; vertical-align:top; text-align:left; }
.tm-policy th { background:#0b3a3c; color:#f7f2df; font-weight:600; }
.tm-policy th:last-child,.tm-policy td:last-child { border-right:0; }
.tm-policy tr:last-child td { border-bottom:0; }
@media(max-width:480px) {
  .tm-policy { padding-left:24px; padding-right:24px; }
  .tm-policy article { font-size:15px; line-height:1.6; }
  .tm-policy h1 { font-size:26px; }
  .tm-policy h2 { font-size:22px; }
}

#tm-purchase .tp-buy:disabled { opacity:.55; cursor:default; }
#tm-purchase .tp-payment-unavailable { margin:20px 0 0; color:#a9bebd; text-align:center; font:400 .875rem/1.5 'Segoe UI',Arial,sans-serif; }

/* Approved purchase confirmation; shared overlay focus and dismiss behavior. */
#tm-purchase-success-overlay .tm-overlay-backdrop { background:rgba(0,12,19,.70); }
.tm-login-dialog.tm-purchase-success-dialog { max-width:334px; padding:37px 22px 28px; border-color:#a58f61; background:#073039; transform:none; }
.tm-purchase-success-mark { display:flex; align-items:center; justify-content:center; width:48px; height:48px; margin:0 auto 21px; border:1px solid #b99a63; border-radius:50%; color:#f0bf6e; font:400 26px/1 Arial,sans-serif; }
.tm-login-dialog.tm-purchase-success-dialog h2 { margin:0 0 17px; color:#f7f2df; font:400 28px/1.18 Georgia,'Times New Roman',serif; letter-spacing:-.3px; }
#tm-purchase-success-message { margin:0 0 26px; color:#d3dfdc; font:400 16px/1.5 'Segoe UI',Arial,sans-serif; text-wrap:pretty; }
.tm-purchase-success-travel { display:block; width:100%; min-height:50px; padding:12px; border:1px solid #ffdd9c; border-radius:24px; background:linear-gradient(135deg,#f8d388,#f0bf6e 58%,#dfaa56); color:#191e1b; font:500 17px/24px 'Segoe UI',Arial,sans-serif; cursor:pointer; }
@media(max-width:350px) {
  .tm-login-dialog.tm-purchase-success-dialog { width:calc(100% - 32px); padding-left:18px; padding-right:18px; }
  .tm-login-dialog.tm-purchase-success-dialog h2 { font-size:26px; }
}

.tm-purchase-success-dialog .tm-overlay-close { top:5px; right:5px; color:#eebe70; font:400 28px/1 Arial,sans-serif; }

/* Approved Telegram sharing link: 8px after story, 32px before navigation. */
#tm-result-04 .tr-footer { padding-top: 8px; }
#tm-result-04 .tr-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tr-gold);
  font: 400 16px/22px 'Segoe UI', Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#tm-result-04 .tr-share span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
#tm-result-04 .tr-share svg { width: 18px; height: 18px; flex: 0 0 18px; }
#tm-result-04 .tr-share:hover { color: #ffe3a1; }
#tm-result-04 .tr-share:focus-visible { outline: 2px solid #ffe3a1; outline-offset: 4px; border-radius: 3px; }

#tm-result-04 .tr-share-feedback { margin: -16px 0 24px; color: var(--tr-muted); font: 400 14px/1.5 'Segoe UI',Arial,sans-serif; }
#tm-result-04 .tr-share-status { margin: 0 0 8px; }
#tm-result-04 .tr-share-copy { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--tr-gold); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
#tm-result-04 .tr-share-url { display: block; width: 100%; margin: 8px 0 0; padding: 10px; border: 1px solid var(--tr-gold); border-radius: 8px; background: #052c30; color: var(--tr-ink); font: inherit; }
#tm-result-04 .tr-public-next { display: block; margin-top: 22px; text-decoration: none; }

/* Approved Time Secret: local web reader; research sources stay backend-only. */
.tr-time-secret { display:flex; justify-content:flex-start; margin:24px 0 18px; }
.tm-secret-button { position:relative; display:grid; place-items:center; width:216px; max-width:100%; min-height:46px; padding:10px 38px; border:1px solid #c7a16d; border-radius:12px; background:linear-gradient(115deg,#103a3b 0%,#19423b 55%,#3a4734 100%); color:#f2cf88; font:400 16px/24px 'Segoe UI',Arial,sans-serif; cursor:pointer; touch-action:manipulation; }
.tm-secret-button:hover { background:linear-gradient(115deg,#154143,#204b40 55%,#44513c); }
.tm-secret-button:active { background:linear-gradient(115deg,#0c3031,#17392f 55%,#303d2b); }
.tm-secret-label { text-align:center; white-space:nowrap; }
.tm-secret-sparkles { position:absolute; left:12px; top:50%; transform:translateY(-50%); width:24px; height:24px; }
.tm-secret-sparkles i { position:absolute; display:block; background:currentColor; clip-path:polygon(50% 0,63% 35%,100% 50%,63% 65%,50% 100%,37% 65%,0 50%,37% 35%); }
.tm-secret-sparkles i:nth-child(1) { width:15px; height:18px; right:0; top:5px; }
.tm-secret-sparkles i:nth-child(2) { width:8px; height:9px; left:0; top:0; }
.tm-secret-sparkles i:nth-child(3) { width:5px; height:6px; left:1px; bottom:1px; }
body.tm-secret-open { overflow:hidden; }
.tm-secret-overlay { position:fixed; inset:0; z-index:30; display:flex; align-items:center; justify-content:center; padding:max(24px,env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px)); color-scheme:dark; }
.tm-secret-backdrop { position:absolute; inset:0; background:rgba(0,12,19,.70); }
.tm-secret-dialog { position:relative; display:flex; flex-direction:column; min-height:0; width:100%; max-width:360px; max-height:100%; overflow:hidden; padding:26px 24px; border:1px solid rgba(225,185,113,.667); border-radius:18px; background:#073039; color:#f5f0df; }
.tm-secret-dialog:focus { outline:none; }
.tm-secret-head { flex:none; }
.tm-secret-title { margin:0 22px 16px 0; color:#f5f0df; font:400 26px/1.2 Georgia,'Times New Roman',serif; letter-spacing:-.3px; }
.tm-secret-close { position:absolute; top:5px; right:5px; width:44px; height:44px; padding:0; border:0; background:transparent; color:#eac486; font:400 28px/1 Arial,sans-serif; cursor:pointer; touch-action:manipulation; }
.tm-secret-content { overflow-y:auto; min-height:0; scrollbar-width:thin; scrollbar-color:#52767a #073039; overscroll-behavior:contain; }
.tm-secret-copy { color:#e0e5dc; font:400 16px/1.65 'Segoe UI',Arial,sans-serif; overflow-wrap:anywhere; white-space:pre-line; }
.tm-secret-dialog[data-loading=true] { min-height:min(210px,100%); }
.tm-secret-loading { display:block; text-align:center; margin:26px 0 22px; color:#eac486; white-space:normal; font:400 17px/28px 'Segoe UI',Arial,sans-serif; }
.tm-secret-dots { display:inline-flex; width:18px; }
.tm-secret-dots i { font:inherit; animation:tm-secret-dot 1.5s ease-in-out infinite; }
.tm-secret-dots i:nth-child(2) { animation-delay:.18s; }
.tm-secret-dots i:nth-child(3) { animation-delay:.36s; }
@keyframes tm-secret-dot { 0%,70%,100% { opacity:.25; } 35% { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .tm-secret-dots i { animation:none; opacity:1; } }
@media(max-width:350px) { .tm-secret-dialog { padding:24px 20px; } .tm-secret-title { font-size:24px; } .tm-secret-loading { font-size:16px; } }

/* Approved place/time layout. The supplied hero already contains both fades. */
#tm-time-selection-ready .time-place-hero { height:calc(132px + min(77.5vw,372px)); padding-top:86px; }
#tm-time-selection-ready .time-place-hero::after { content:none; }
#tm-time-selection-ready .time-place-hero picture { position:absolute; inset:0; pointer-events:none; }
#tm-time-selection-ready .time-place-hero picture img { display:block; width:100%; height:100%; }
#tm-time-selection-ready .time-place-hero h1 { position:relative; margin:0 13px; }
.tm-place-trigger { position:absolute; bottom:23px; left:50%; transform:translateX(-50%); display:grid; grid-template-columns:20px minmax(0,1fr) 16px; align-items:center; gap:10px; width:262px; min-height:44px; padding:10px 12px; border:1px solid #d1aa6d; border-radius:22px; background:#07383e; color:#f7f2df; font:400 15px/22px 'Segoe UI',Arial,sans-serif; cursor:pointer; }
.tm-place-trigger img { display:block; }
.tm-place-label { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-align:center; }
body.tm-place-open { overflow:hidden; }
.tm-place-dialog { position:fixed; inset:auto 0; top:calc(var(--tm-place-viewport-top,0px) + var(--tm-place-viewport-height,100dvh) / 2); transform:translateY(-50%); width:calc(100% - 48px); max-width:342px; max-height:calc(var(--tm-place-viewport-height,100dvh) - 48px); margin:0 auto; padding:20px 19px 0; overflow:hidden; border:1px solid #a88d61; border-radius:18px; background:#073039; color:#f7f2df; font:400 14px/1.5 'Segoe UI',Arial,sans-serif; box-shadow:0 18px 46px #00182050; }
.tm-place-dialog[open] { display:flex; flex-direction:column; }
.tm-place-dialog::backdrop { background:rgba(0,12,19,.66); }
.tm-place-dialog:focus { outline:none; }
.tm-place-head { display:flex; flex:none; align-items:center; justify-content:space-between; gap:4px; min-height:32px; margin:0 0 24px; }
.tm-place-head h2 { margin:0 0 0 3px; font:400 22px/1.2 Georgia,'Times New Roman',serif; letter-spacing:-.2px; }
.tm-place-close { display:grid; place-items:center; flex:none; width:32px; height:32px; margin-right:-6px; padding:0; border:0; background:none; color:#f7f2df; font:300 28px/1 Arial,sans-serif; cursor:pointer; }
.tm-place-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-bottom:40px; scrollbar-width:thin; scrollbar-color:#a88d61 transparent; }
.tm-place-options { display:grid; gap:12px; min-width:0; margin:0; padding:0; border:0; }
.tm-place-option { display:flex; align-items:center; gap:13px; min-height:62px; padding:12px 13px; border:1px solid #3e676b; border-radius:11px; background:#08353c; cursor:pointer; }
.tm-place-option:has(input:checked) { border-color:#d3af72; background:#124b4d; }
.tm-place-option input { appearance:none; flex:none; width:16px; height:16px; margin:0; border:1px solid #91abaa; border-radius:50%; background:transparent; cursor:pointer; }
.tm-place-option input:checked { border-color:#eebe70; background:radial-gradient(circle,#eebe70 0 3px,transparent 3.5px); }
.tm-place-option input:focus-visible { outline:2px solid #ffe3a1; outline-offset:4px; }
.tm-place-search { margin-top:24px; }
.tm-place-search-field { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 11px; border:1px solid #d3af72; border-radius:9px; background:#072e37; }
.tm-place-search-field img { flex:none; }
.tm-place-search-field input { width:100%; min-width:0; padding:0; border:0; border-radius:0; background:none; color:#f7f2df; font:400 14px/22px 'Segoe UI',Arial,sans-serif; outline:none; }
.tm-place-search-field input::placeholder { color:#abc4c3; opacity:1; }
.tm-place-search-field:focus-within { border-color:#ffe3a1; }
.tm-place-search-field input::-webkit-search-cancel-button { -webkit-appearance:none; }
.tm-place-results { margin:12px 8px 0; padding:0; list-style:none; }
.tm-place-results:empty { margin:0; }
.tm-place-results li + li { border-top:1px solid #284d52; }
.tm-place-results button { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:52px; padding:3px 0; border:0; background:none; color:#f7f2df; text-align:left; font:inherit; cursor:pointer; }
.tm-place-city,.tm-place-region { display:block; }
.tm-place-city { font-size:15px; line-height:23px; }
.tm-place-region { color:#abc4c3; font-size:11px; line-height:18px; }
.tm-place-results button img { flex:none; }
@media(max-width:360px) {
  #tm-time-selection-ready .time-place-hero { height:calc(126px + 77.5vw); padding-top:85px; }
  .tm-place-dialog { width:calc(100% - 32px); }
  .tm-place-head h2 { font-size:21px; }
  .tm-place-option { gap:10px; padding-left:10px; padding-right:10px; font-size:13px; }
}
@media(max-width:320px) { .tm-place-trigger { width:250px; } }
@media(min-width:420px) { #tm-time-selection-ready .time-place-hero { padding-top:81px; } }
.tm-tg-body .tm-place-dialog { top:calc(var(--tm-place-viewport-top,0px) + (var(--tm-place-viewport-height,100dvh) + var(--tm-tg-safe-top,0px) + var(--tm-tg-content-safe-top,0px) - var(--tm-tg-safe-bottom,0px) - var(--tm-tg-content-safe-bottom,0px)) / 2); max-height:calc(var(--tm-place-viewport-height,100dvh) - 48px - var(--tm-tg-safe-top,0px) - var(--tm-tg-content-safe-top,0px) - var(--tm-tg-safe-bottom,0px) - var(--tm-tg-content-safe-bottom,0px)); }
.tm-place-close img { display:block; width:40px; height:40px; max-width:none; }

.tm-place-status { color:#abc4c3; font:400 13px/1.5 'Segoe UI',Arial,sans-serif; margin:12px 8px 0; }
.tm-place-retry { display:block; margin-top:8px; padding:4px 0; border:0; background:none; color:#eebe70; font:inherit; text-decoration:underline; cursor:pointer; }

/* Travel availability uses the existing accessible overlay pattern. */
.tm-login-dialog.tm-danger-dialog { max-width:334px; padding:52px 24px 32px; border-color:#a58f61; background:#073039; transform:none; }
.tm-danger-dialog h2 { margin:0 0 18px; color:#f7f2df; font:400 27px/1.2 Georgia,'Times New Roman',serif; letter-spacing:-.3px; }
#tm-danger-message { margin:0; color:#d3dfdc; font:400 16px/1.55 'Segoe UI',Arial,sans-serif; text-wrap:pretty; }
.tm-danger-dialog .tm-overlay-close { color:#eebe70; font:400 28px/1 Arial,sans-serif; }
@media(max-width:360px) { .tm-login-dialog.tm-danger-dialog { padding-left:18px; padding-right:18px; } .tm-danger-dialog h2 { font-size:24px; } }
