/* Roadbook Studio — visual/UX layer only.
   No layout hooks, IDs, event targets or application logic are changed. */
:root{
  --bg0:#05070a;
  --bg1:#0a0e14;
  --bg2:#101721;
  --glass:#0c121a;
  --border:rgba(255,255,255,.11);
  --border-soft:rgba(255,255,255,.08);
  --text:#fffaf2;
  --sub:#bec5ce;
  --muted:#7f8996;
  --gold:#ff9f0a;
  --gold2:#d88613;
  --goldSoft:#ffc45d;
  --gold-dim:#bd7614;
  --onGold:#140c03;
  --grn:#42d98b;
  --red:#ff6858;
  --blu:#4ccfff;
  --r-md:16px;
}
html{background:var(--bg0)}
body{
  min-height:100vh;
  background:
    radial-gradient(780px 430px at 83% -8%,rgba(255,120,0,.14),transparent 68%),
    radial-gradient(680px 430px at -8% 40%,rgba(0,187,255,.075),transparent 70%),
    var(--bg0);
  font-size:16px;
  line-height:1.65;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.2;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(circle at 50% 18%,#000,transparent 78%);
}
.wrap{position:relative;max-width:1120px;padding-bottom:96px}

/* Primary app spine */
.topbar{
  padding:0!important;
  background:rgba(5,7,10,.78)!important;
  border-bottom:1px solid rgba(255,255,255,.09)!important;
  box-shadow:0 18px 46px rgba(0,0,0,.28);
  backdrop-filter:blur(24px) saturate(1.35)!important;
}
.topbar .in{
  max-width:1120px!important;
  min-height:72px;
  padding:11px 18px!important;
  gap:10px!important;
}
.brand{font-size:17px;letter-spacing:-.02em}
.brand img{width:32px;height:32px;border-radius:10px;box-shadow:0 0 24px rgba(255,159,10,.2)}
.tbtn{
  min-height:48px;
  padding:11px 17px!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.045)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  color:var(--text)!important;
  font-size:14.5px!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035);
}
.tbtn:hover{border-color:rgba(255,159,10,.45)!important;background:rgba(255,159,10,.07)!important}
.tbtn.on,.tbtn.cta{
  background:linear-gradient(135deg,#ffc553,#ff8a00)!important;
  border-color:transparent!important;
  color:var(--onGold)!important;
  box-shadow:0 13px 32px -14px rgba(255,118,0,.8),inset 0 1px rgba(255,255,255,.42);
}
.tbtn.more{width:48px!important;min-width:48px}

/* Route identity */
.hero{padding:42px 22px 24px}
.hero::before{background:radial-gradient(75% 120% at 88% -20%,rgba(255,128,0,.20),transparent 65%)}
.hero h1{font-family:var(--font);font-size:clamp(34px,5.6vw,60px);font-weight:900;letter-spacing:-.055em;line-height:.98;margin:13px 0 12px}
.kick{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 11px;
  border:1px solid rgba(255,159,10,.28);
  border-radius:999px;
  background:rgba(255,159,10,.07);
  color:var(--goldSoft);
}
.hero .sub{font-size:13px;letter-spacing:.15em}
.hero .dates,.flights{font-size:15px}
.metrics{gap:12px;margin-top:22px}
.met{
  min-width:105px;
  padding:14px 17px;
  border-radius:18px;
  background:linear-gradient(145deg,rgba(18,25,35,.92),rgba(8,12,18,.85));
  border-color:rgba(255,255,255,.10);
  box-shadow:0 22px 50px -35px #000,inset 0 1px rgba(255,255,255,.04);
}
.met b{font-family:var(--font);font-size:29px;font-weight:850;letter-spacing:-.04em}
.met span{font-size:13px}

/* Navigation: unmistakable thumb targets */
.daynav{max-width:1120px;padding:16px 18px 5px;gap:12px}
.daynav .arw{
  width:54px;height:54px;
  border-radius:16px;
  background:linear-gradient(145deg,#121a24,#0a0f16);
  border-color:rgba(255,255,255,.12);
  box-shadow:0 12px 30px -20px #000;
}
.dayhead{
  min-height:64px;
  padding:10px 18px;
  border-radius:18px;
  background:linear-gradient(145deg,rgba(18,25,35,.96),rgba(8,12,18,.92));
  border-color:rgba(255,255,255,.12);
  box-shadow:0 20px 46px -32px #000;
}
.dayhead .n{font-size:34px;color:var(--goldSoft)}
.dayhead .m .t{font-family:var(--font);font-weight:800;font-size:18px}
.dayhead .m .d{font-size:13px}

.mapwrap{max-width:1120px;padding:0 18px;margin-top:13px}
#map{height:390px;border-radius:24px;border-color:rgba(255,255,255,.12);box-shadow:0 36px 80px -45px #000}
.map-btns{inset-inline-end:29px;top:12px;gap:9px}
.mbtn{width:46px;height:46px;border-radius:14px;background:rgba(6,9,13,.86);border-color:rgba(255,159,10,.28);backdrop-filter:blur(12px)}

.sidetabs{max-width:1120px;gap:12px;margin-top:15px;padding:0 18px}
.stab{
  min-height:82px;
  padding:14px 15px;
  border-radius:19px;
  background:linear-gradient(145deg,rgba(18,25,35,.9),rgba(8,12,18,.85));
  border-color:rgba(255,255,255,.11);
  box-shadow:0 20px 40px -30px #000;
}
.stab .ic{font-size:24px}
.stab .lb{font-family:var(--font);font-size:17px;font-weight:850}
.stab .sub{font-size:12.5px}
.stab.on{background:linear-gradient(145deg,rgba(255,159,10,.17),rgba(255,115,0,.055));border-color:rgba(255,159,10,.72);box-shadow:0 18px 40px -26px rgba(255,112,0,.7),inset 0 1px rgba(255,255,255,.06)}

/* Content surface */
.dayview{max-width:1120px}
.sec{padding:18px 18px 4px}
.shead{margin-bottom:15px}
.shead h3{font-family:var(--font);font-size:18px;font-weight:850}
.card-wrap,.fxwrap,.card,.block,.foot,.editor,.gbox{
  background:linear-gradient(145deg,rgba(17,24,34,.92),rgba(7,11,16,.88));
  border-color:rgba(255,255,255,.10);
  box-shadow:0 28px 64px -46px #000,inset 0 1px rgba(255,255,255,.045);
}
.card{margin:13px 18px 0;border-radius:24px;border-top:1px solid rgba(255,159,10,.62)}
.stage{padding:19px 20px;gap:15px}
.stage .big{font-size:42px;color:var(--goldSoft)}
.stage .tag{padding:4px 10px;border-radius:999px;font-size:12.5px}
.stage h2{font-family:var(--font);font-size:22px;font-weight:850}
.body{padding:18px 20px;gap:15px}
.block{border-radius:17px;padding:15px}
.bh{font-size:16px}
.stop{gap:14px}
.sdot,.tdot{width:38px;height:38px}
.sname{font-size:16px}.swhy{font-size:14.5px}
.snav{min-height:38px;display:inline-flex;align-items:center;padding:6px 12px;border-radius:11px;color:var(--text)}
.odo .o,.fxc{padding:13px;border-radius:15px}

/* Buttons and form controls */
.btn{
  min-height:58px!important;
  padding:13px 20px;
  border-radius:17px;
  font-size:16px;
  font-weight:850;
  box-shadow:0 14px 34px -24px #000;
}
.btn.gps,#ai-go,.ai-describe .adx-go,.ask-send,.a2btn,.db-go{
  background:linear-gradient(135deg,#ffc553,#ff8700)!important;
  color:var(--onGold)!important;
  box-shadow:0 18px 40px -18px rgba(255,115,0,.78),inset 0 1px rgba(255,255,255,.42)!important;
}
.btn.gpx{background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.13)}
.btn.wa{box-shadow:0 18px 38px -24px rgba(37,211,102,.65)}
.mini{
  min-height:46px!important;
  padding:10px 15px!important;
  border-radius:13px!important;
  font-size:14px!important;
}
input,select,textarea{
  min-height:52px;
  padding:12px 14px!important;
  border-radius:14px!important;
  background:#070b10!important;
  border:1px solid rgba(255,255,255,.13)!important;
  color:var(--text)!important;
  font-size:16px!important;
}
textarea{min-height:96px}
input:focus,select:focus,textarea:focus{
  outline:none!important;
  border-color:rgba(255,159,10,.78)!important;
  box-shadow:0 0 0 4px rgba(255,159,10,.12);
}
.fld{gap:7px;margin-bottom:13px}
.fld>label{font-size:13px;font-weight:800;color:var(--sub)}
.editor{margin:14px 18px 0;padding:20px;border-radius:22px}
.ed-grid{gap:12px}
.mode-pick,.modes,.vibe-row{gap:11px}
.mode-pick button,.modes button,.vibe-row button,.stops-row button{
  min-height:74px;
  border-radius:16px!important;
  border-color:rgba(255,255,255,.11)!important;
  background:linear-gradient(145deg,#101721,#090e14)!important;
}
.mode-pick button.on,.modes button.on,.vibe-row button.on,.stops-row button.on{
  border-color:rgba(255,159,10,.72)!important;
  background:linear-gradient(145deg,rgba(255,159,10,.16),rgba(255,110,0,.055))!important;
  box-shadow:0 15px 34px -24px rgba(255,112,0,.8);
}
.ai-describe{border-radius:20px;border-color:rgba(255,159,10,.42);background:linear-gradient(145deg,rgba(255,159,10,.14),rgba(255,105,0,.03))}
.ai-describe .adx-top{padding:18px}
.ai-describe .adx-lead{font-family:var(--font);font-weight:850;font-size:18px}
.ai-describe .adx-go{min-height:62px;font-size:17px}

/* Sheets and modals */
.box,.ns-box,.askbox,.gem-b,.gw-bar{
  background:linear-gradient(155deg,#111923,#080c12)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:24px!important;
  box-shadow:0 44px 110px rgba(0,0,0,.72)!important;
}
.modal{backdrop-filter:blur(14px)}
.rb-sheet{background:linear-gradient(180deg,#121923,#080c12);border-color:rgba(255,255,255,.12);border-radius:28px 28px 0 0}
.rb-item{min-height:82px;border-radius:17px;background:linear-gradient(145deg,#121a24,#090e14);border-color:rgba(255,255,255,.11)}
.rb-item.on{border-color:var(--gold);background:rgba(255,159,10,.10)}
.demobar{border-radius:18px;padding:13px 15px;background:rgba(7,10,14,.94);backdrop-filter:blur(18px)}

@media(max-width:680px){
  .wrap{padding-bottom:88px}
  .topbar .in{min-height:64px;padding:9px 11px!important}
  .brand{font-size:0;gap:0}
  .brand img{width:36px;height:36px}
  .tbtn{min-height:46px;padding:9px 12px!important;font-size:13.5px!important}
  .tbtn .tx{display:none}
  .hero{padding:29px 15px 18px}
  .hero h1{font-size:36px}
  .metrics{display:grid;grid-template-columns:repeat(2,1fr)}
  .met{min-width:0}
  .daynav{padding:12px 11px 4px;gap:8px}
  .daynav .arw{width:50px;height:54px}
  .dayhead{min-height:58px;padding:8px 11px}
  .dayhead .n{font-size:29px}
  .dayhead .m .t{font-size:15.5px}
  .mapwrap{padding:0 11px;margin-top:10px}
  #map{height:330px;border-radius:20px}
  .map-btns{inset-inline-end:20px}
  .sidetabs{padding:0 11px;gap:8px}
  .stab{min-height:78px;padding:12px 7px}
  .stab .lb{font-size:15.5px}
  .stab .sub{font-size:11px}
  .sec{padding-inline:11px}
  .card{margin-inline:11px}
  .stage{padding:16px}
  .body{padding:15px}
  .editor{margin-inline:11px;padding:15px}
  .ed-grid{grid-template-columns:1fr}
  .btnrow{gap:10px}
  .btnrow>*{min-width:100%;flex-basis:100%}
  .btn{min-height:60px;width:100%}
  .modes,.mode-pick{grid-template-columns:1fr 1fr}
  .vibe-row,.stops-row{grid-template-columns:repeat(3,1fr)}
  .demobar{inset-inline:8px;bottom:8px}
}

@media(min-width:900px){
  .editor.show{display:grid;grid-template-columns:1fr;max-width:1084px;margin-inline:auto}
  .panel.on{padding-bottom:10px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* True handset layout: no desktop shrink-to-fit, no horizontal page canvas. */
@media(max-width:680px){
  html,body{
    width:100%;
    max-width:100%;
    overflow-x:hidden!important;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }
  body{font-size:17px;line-height:1.65}
  .wrap,.topbar .in,.hero,.daynav,.mapwrap,.sidetabs,.dayview{
    width:100%;
    max-width:100%!important;
    min-width:0!important;
  }
  .topbar{width:100%;overflow:hidden}
  .topbar .in{
    min-height:68px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    padding-inline:10px!important;
  }
  .topbar .in>*{flex-shrink:0}
  .topbar .tb-sp{flex:1 1 8px;min-width:8px}
  .tbtn{min-width:48px;min-height:48px;font-size:15px!important}

  .hero{padding:28px 14px 20px}
  .hero h1{font-size:clamp(36px,11vw,46px);line-height:1.02}
  .hero .dates,.flights{font-size:16px}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .met{width:100%;padding:13px 12px}
  .met b{font-size:30px}
  .met span{font-size:14px}

  .daynav{padding-inline:10px;align-items:stretch}
  .daynav .arw{width:50px;min-width:50px;height:auto;min-height:62px}
  .dayhead{min-width:0;min-height:62px}
  .dayhead .m{min-width:0}
  .dayhead .m .t{font-size:16px}
  .dayhead .m .d{font-size:13px}
  .dayhead .chev{display:none}

  .mapwrap{padding-inline:10px}
  #map{width:100%!important;height:340px;border-radius:18px}
  .sidetabs{padding-inline:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .stab{min-width:0;min-height:84px}
  .stab .lb{font-size:16px}
  .stab .sub{font-size:12px;white-space:normal}

  .sec{padding-inline:10px}
  .card,.editor{width:auto;max-width:calc(100% - 20px);margin-inline:10px}
  .stage,.body,.editor{padding:16px}
  .stage{align-items:flex-start}
  .stage .meta{min-width:0}
  .stage h2{font-size:23px}
  .body,.block,.sbody{min-width:0}
  .sname{font-size:17px}
  .swhy{font-size:16px}

  .btnrow{display:grid;grid-template-columns:1fr;gap:10px}
  .btnrow>*{width:100%;min-width:0!important}
  .btn,.mini,.ai-describe .adx-go{
    width:100%;
    min-height:58px!important;
    justify-content:center;
    font-size:17px!important;
  }
  input,select,textarea{width:100%;max-width:100%;font-size:17px!important}
  .ed-grid{grid-template-columns:minmax(0,1fr)!important}
  .modes,.mode-pick{grid-template-columns:repeat(2,minmax(0,1fr))}
  .vibe-row,.stops-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mode-pick button,.modes button,.vibe-row button,.stops-row button{min-width:0}

  .modal{padding:10px}
  .modal .box,.box,.askbox,.gem-b{
    width:100%;
    max-width:100%!important;
    max-height:calc(100dvh - 20px);
    padding:18px 15px;
  }
  .rb-sheet,.navsheet{width:100%;max-width:100%}
}

@media(max-width:380px){
  .hero h1{font-size:34px}
  .daynav .arw{width:46px;min-width:46px}
  .dayhead{padding-inline:8px}
  .dayhead .n{font-size:27px}
  .vibe-row,.stops-row{grid-template-columns:1fr}
}
