:root{
  --tp-bg0:#070a14;
  --tp-bg1:#0b1024;
  --tp-card:#0f1635cc;
  --tp-border:#2b3a7a;
  --tp-text:#eaf0ff;
  --tp-muted:#b8c2ea;
  --tp-accent:#7c5cff;
  --tp-accent2:#2ee9a6;
  --tp-danger:#ff6b6b;
  --tp-shadow: 0 18px 60px rgba(0,0,0,.45);
  --tp-radius: 18px;
  --tp-radius-sm: 12px;
  --tp-max: 980px;
  --tp-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: var(--tp-font);
  color: var(--tp-text);
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(124,92,255,.35), transparent 55%),
    radial-gradient(900px 600px at 90% 30%, rgba(46,233,166,.22), transparent 55%),
    radial-gradient(700px 500px at 50% 95%, rgba(124,92,255,.18), transparent 60%),
    linear-gradient(180deg, var(--tp-bg0), var(--tp-bg1));
  min-height:100vh;
}

.tp-loading{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.tp-loading-card{
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(15,22,53,.95);
  box-shadow: var(--tp-shadow);
  padding: 16px;
}

.tp-loading-text{
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.tp-loading-sub{
  margin-top: 10px;
  color: var(--tp-muted);
  font-size: 13px;
}

.tp-progress{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow:hidden;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}

.tp-progress-bar{
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tp-accent), var(--tp-accent2));
  animation: tp-indeterminate 1.1s ease-in-out infinite;
}

@keyframes tp-indeterminate{
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.tp-page{
  max-width: var(--tp-max);
  margin: 0 auto;
  padding: 44px 16px 18px;
}

.tp-hero{
  text-align:center;
  margin-bottom: 18px;
}

.tp-badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 6px 12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--tp-muted);
  font-size: 13px;
}

.tp-title{
  margin: 14px 0 8px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tp-subtitle{
  margin: 0 auto;
  max-width: 60ch;
  color: var(--tp-muted);
  font-size: 16px;
  line-height: 1.5;
}

.tp-card{
  margin: 18px auto 18px;
  padding: 18px;
  border-radius: var(--tp-radius);
  border: 1px solid rgba(255,255,255,.14);
  background: var(--tp-card);
  box-shadow: var(--tp-shadow);
  backdrop-filter: blur(10px);
}

.tp-backlink{
  display:inline-block;
  margin-bottom: 10px;
  color: var(--tp-text);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.tp-backlink:hover{
  border-bottom-color: rgba(46,233,166,.65);
}

.tp-detail-title{
  margin: 6px 0 6px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.tp-detail-meta{
  color: var(--tp-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.tp-detail-text{
  line-height: 1.55;
  white-space: pre-wrap;
}

.tp-detail-h2{
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--tp-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.tp-detail-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tp-detail-field{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.tp-detail-field h4{
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tp-muted);
}
.tp-detail-field p{ margin:0; white-space: pre-wrap; line-height: 1.45; }

.tp-detail-block{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.tp-detail-block h3{
  margin: 0 0 10px;
  font-size: 14px;
}
.tp-detail-block p{ margin:0; color: var(--tp-text); line-height: 1.55; white-space: pre-wrap; }
.tp-detail-block ul{ margin: 0; padding-left: 18px; }

.tp-form{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.tp-history{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}

.tp-history-row{
  display:flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.tp-label{
  font-weight: 650;
  font-size: 13px;
  color: var(--tp-muted);
  letter-spacing: .02em;
}

.tp-input,
.tp-textarea{
  width:100%;
  border-radius: var(--tp-radius-sm);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(3,7,20,.55);
  color: var(--tp-text);
  padding: 12px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.tp-input:focus,
.tp-textarea:focus{
  border-color: rgba(124,92,255,.7);
  box-shadow: 0 0 0 4px rgba(124,92,255,.18);
}

.tp-textarea{
  resize: vertical;
  min-height: 86px;
}

.tp-row{
  display:flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.tp-col{
  flex: 1 1 220px;
}

.tp-actions{
  display:flex;
  justify-content: flex-end;
}

.tp-button{
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 750;
  color: #0b1024;
  background: linear-gradient(135deg, var(--tp-accent), var(--tp-accent2));
  box-shadow: 0 12px 30px rgba(124,92,255,.20);
  cursor: pointer;
  min-width: 160px;
}

.tp-button[disabled]{
  opacity: .65;
  cursor:not-allowed;
}

.tp-button-secondary{
  background: rgba(255,255,255,.10);
  color: var(--tp-text);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
  min-width: auto;
}

.tp-status{
  min-height: 22px;
  font-size: 14px;
  color: var(--tp-muted);
}

.tp-status.tp-error{ color: var(--tp-danger); }

.tp-result{
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--tp-radius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}

.tp-cover{
  margin-top: 12px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}

.tp-cover img{
  width:100%;
  height: 220px;
  object-fit: cover;
  display:block;
}

.tp-photo-credit{
  padding: 10px 12px;
  font-size: 12px;
  color: var(--tp-muted);
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
}

.tp-photo-credit a{
  color: var(--tp-text);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.tp-photo-credit a:hover{
  border-bottom-color: rgba(46,233,166,.65);
}

.tp-result-header{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.tp-result-title{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.tp-result-meta{
  margin-top: 6px;
  color: var(--tp-muted);
  font-size: 13px;
}

.tp-result-buttons{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

.tp-days{
  margin-top: 14px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.tp-day{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}

.tp-day summary{
  list-style:none;
  cursor:pointer;
  padding: 12px 12px;
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items:center;
}
.tp-day summary::-webkit-details-marker{ display:none; }

.tp-day-title{
  font-weight: 800;
}

.tp-day-location{
  color: var(--tp-muted);
  font-size: 13px;
  margin-left: 8px;
}

.tp-day-body{
  padding: 0 12px 12px;
  color: var(--tp-text);
}

.tp-day-media{
  padding: 0 12px 12px;
}

.tp-day-media-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tp-day-media-item{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}

.tp-day-media-item img{
  width:100%;
  height: 160px;
  object-fit: cover;
  display:block;
}

.tp-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tp-item{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.tp-item h4{
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tp-muted);
}

.tp-item p{
  margin:0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.tp-item-link{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.tp-item-link:hover{
  border-bottom-color: rgba(46,233,166,.65);
}

.tp-item-media{
  margin-top: 10px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tp-thumb{
  width: 180px;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
}

.tp-thumb-link{
  display:block;
}

.tp-thumb img{
  width:100%;
  height: 108px;
  object-fit: cover;
  display:block;
}

.tp-thumb-credit{
  padding: 8px 10px;
  font-size: 11px;
  color: var(--tp-muted);
}
.tp-thumb-credit a{
  color: var(--tp-text);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.tp-thumb-credit a:hover{
  border-bottom-color: rgba(124,92,255,.6);
}

.tp-media-hint{
  margin-top: 10px;
  color: var(--tp-muted);
  font-size: 12px;
}

.tp-tips{
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 12px;
}

.tp-tips h3{
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--tp-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.tp-tips ul{
  margin: 0;
  padding-left: 18px;
  color: var(--tp-text);
}

.tp-footer{
  max-width: var(--tp-max);
  margin: 0 auto;
  padding: 16px 16px 30px;
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--tp-muted);
  font-size: 13px;
}

.tp-footer a{
  color: var(--tp-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.tp-footer a:hover{
  border-bottom-color: rgba(46,233,166,.65);
}

.tp-dot{ opacity:.7; }

@media (min-width: 760px){
  .tp-grid{ grid-template-columns: 1fr 1fr; }
  .tp-day-media-grid{ grid-template-columns: repeat(3, 1fr); }
  .tp-cover img{ height: 260px; }
  .tp-detail-grid{ grid-template-columns: 1fr 1fr; }
}
