@font-face{font-family:Inter;src:url('/turn3d/fonts/InterVariable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{font-family:Inter,system-ui,sans-serif;color:#152628;background:#edf2f0;font-synthesis:none;font-size:16px;line-height:1.5;--teal:#02a893;--coral:#ff7868;--muted:#50655f;--line:#cedbd6}
*{box-sizing:border-box}body{margin:0}button,input,code{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #006b5d;outline-offset:4px}[hidden]{display:none!important}
.shell{max-width:1120px;margin:auto;min-height:100vh;background:#fff}header{background:#0d2222;color:#fff;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:20px}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-size:26px;font-weight:800;line-height:1.1;letter-spacing:-1px}.mark{background:var(--teal);color:#0d2222;width:40px;height:40px;border-radius:8px;display:grid;place-items:center;font-size:28px}.brand small{display:block;font-size:14px;font-weight:500;letter-spacing:0;margin-top:5px;color:#c3d5d0}.teal{color:var(--teal)}.version{font-size:14px;color:#c3d5d0}
.hero{background:#102d2c;color:#fff;padding:20px}.eyebrow{font-size:14px;color:#a6dace;font-weight:600}.hero h1{font-size:clamp(28px,5vw,40px);letter-spacing:-1px;line-height:1.15;margin:8px 0 12px}.hero em{font-style:normal;color:var(--coral)}.hero p{font-size:16px;color:#d1dfda;line-height:1.6;max-width:680px;margin:0}
.tabs{display:flex;gap:4px;padding:8px 12px 0;border-bottom:1px solid var(--line)}.tabs button{flex:1;min-width:0;border:0;border-bottom:3px solid transparent;padding:12px 4px;background:#fff;font-size:14px;font-weight:600;color:var(--muted)}.tabs button.active{color:#005e51;border-bottom-color:var(--teal);background:#edf8f4}.tabs button:hover{background:#edf8f4;color:#005e51}.tabs span{display:inline-block;min-width:20px;padding:0 4px;border-radius:4px;background:#d6eee5;color:#005e51}
.panel{display:none;padding:24px 20px 40px}.panel.active{display:block}.section-head h2{font-size:24px;letter-spacing:-.6px;line-height:1.25;margin:0 0 8px}.section-head p{font-size:14px;color:var(--muted);line-height:1.6;margin:0 0 20px;max-width:720px}
.drop{position:relative;border:2px dashed #7d9f91;background:#f4f9f6;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 16px;gap:6px;text-align:center;cursor:pointer}.drop:hover,.drop:focus-within{border-color:#006b5d;background:#eaf6f0}.drop:focus-within{outline:3px solid #006b5d;outline-offset:4px}.upload-icon{font-size:28px;line-height:1;color:#006b5d}.drop strong{font-size:16px;max-width:100%;overflow-wrap:anywhere}.drop span:not(.upload-icon),.drop small{font-size:14px;color:var(--muted)}.drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.field{display:block;margin:20px 0;font-size:14px;font-weight:600}.field input{display:block;width:100%;min-height:48px;margin-top:8px;border:1px solid #7d9f91;border-radius:8px;padding:12px;font-size:16px;color:#152628;background:#fff}.field input::placeholder{color:var(--muted);opacity:1}.primary{width:100%;min-height:48px;background:var(--teal);color:#082f2c;border:1px solid #008f7d;border-radius:8px;padding:12px 16px;font-weight:700}.primary:hover{background:#06bca4}.primary:disabled{cursor:wait;background:#d6eee5;color:#36554a;border-color:#7d9f91}.primary:disabled::after{content:' · Sedang memproses…'}.secondary{min-height:44px;border:1px solid #729b8c;background:#fff;color:#005e51;border-radius:8px;padding:9px 14px;font-weight:600}.secondary:hover{background:#eaf6f0}
#feedback{font-size:14px;line-height:1.6;color:#963a30;overflow-wrap:anywhere}#feedback:not(:empty){margin-top:16px;padding:12px 16px;background:#fff0ed;border:1px solid #df9c92;border-radius:8px}#feedback.ok{color:#005e51;background:#edf8f4;border-color:#7d9f91}#preview{margin-top:28px;border-top:1px solid var(--line);padding-top:24px}.preview-title{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:16px}.preview-title h3{font-size:20px;margin:0;overflow-wrap:anywhere}.pill{background:#e3f4eb;color:#005e51;border-radius:4px;padding:4px 8px;font-size:14px;font-weight:600}
.map{height:300px;border:1px solid #91b2a5;border-radius:8px;overflow:hidden;background:#e5efe9;font-family:Inter,sans-serif}.leaflet-container{font:14px/1.5 Inter,sans-serif}.leaflet-container .leaflet-control-attribution{font-size:14px;color:#152628;background:#fff}.leaflet-control-attribution a{color:#005e51}.leaflet-touch .leaflet-bar a{width:44px;height:44px;line-height:44px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:20px 0}.metrics div{display:flex;flex-direction:column;gap:4px;min-width:0}.metrics strong{font-size:20px;overflow-wrap:anywhere}.metrics span{font-size:14px;color:var(--muted)}.code-box{background:#edf8f4;border:1px solid #91b2a5;border-radius:8px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.code-box>span{font-size:14px;color:var(--muted)}.code-box strong{font-size:20px;letter-spacing:1px;overflow-wrap:anywhere;user-select:all}.note{font-size:14px;color:var(--muted);line-height:1.7;margin:20px 0 0}
#route-list{display:grid;gap:16px}.route-card{min-width:0;border:1px solid var(--line);border-radius:8px;padding:20px}.route-card h3{margin:0 0 8px;font-size:18px;overflow-wrap:anywhere}.route-card p{font-size:14px;color:var(--muted);margin:0 0 16px}.route-card .actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.route-card code{background:#edf8f4;padding:8px;border-radius:4px;font-size:14px;letter-spacing:1px;overflow-wrap:anywhere;user-select:all}.danger{min-height:44px;border:1px solid #d99489;border-radius:8px;background:#fff0ed;color:#963a30;padding:9px 16px;font-weight:600}.danger:hover{background:#ffdbd4}.empty{grid-column:1/-1;border:1px dashed #91b2a5;border-radius:8px;padding:32px 20px;color:var(--muted);font-size:16px}.step{display:flex;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}.step b{color:#006b5d;font-size:16px}.step strong{font-size:16px}.step p{font-size:14px;line-height:1.6;color:var(--muted);margin:8px 0 0}footer{padding:20px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;color:var(--muted);font-size:14px;border-top:1px solid var(--line)}
.shell{width:100%;max-width:480px}
.tabs{padding-inline:20px}
.hero h1{font-size:28px}
.header-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.login-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid #02A893;border-radius:8px;color:#fff;text-decoration:none;font-size:13px;font-weight:600;transition:background .2s}.login-button:hover{background:#02A893;color:#0d2222}


/* TURN3D CHECKPOINT A - BOTTOM NAV */
body {
  padding-bottom: 84px;
}
.shell {
  min-height: calc(100dvh - 84px);
}
header {
  padding: 16px 20px;
}
.brand small {
  display: none;
}
.hero {
  padding: 22px 20px;
}
.hero h1 {
  margin-bottom: 8px;
}
.hero-hint {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #b9d6cf !important;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  min-height: 72px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  background: #fff;
  border-top: 1px solid #dce7e3;
  box-shadow: 0 -8px 28px rgba(13,34,34,.08);
  z-index: 1000;
}
.bottom-nav button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 12px 3px;
  cursor: pointer;
}
.bottom-nav button.active {
  background: #e5f6f0;
  color: #007b6b;
}
.bottom-nav button span {
  display: inline-block;
  margin-left: 3px;
  font-size: 10px;
}
.account-card {
  padding: 24px;
  border: 1px solid #dce7e3;
  border-radius: 12px;
  background: #fff;
}
.account-card strong {
  display: block;
  font-size: 18px;
}
.account-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}
.account-card .login-button {
  background: #02A893;
  color: #fff;
  min-height: 44px;
}
.account-card button {
  margin-top: 12px;
}


/* TURN3D NAV ICON COLORS V1 */
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 56px;
  color: #02A893;
  background: transparent;
  transition: color .2s ease, background .2s ease;
}
.bottom-nav .turn3d-nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.bottom-nav .nav-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.bottom-nav .nav-item.active {
  color: #FF7868;
  background: rgba(255,120,104,.10);
}
.bottom-nav .nav-item:hover {
  color: #FF7868;
  background: rgba(255,120,104,.05);
}

/* TURN3D CHECKPOINT B MODAL V1 */
.route-modal[hidden] {
  display: none !important;
}
.route-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 27, 27, .76);
  box-sizing: border-box;
}
.route-modal .modal-content {
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-sizing: border-box;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.route-modal .preview-title {
  align-items: center;
}
.route-modal .modal-close {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  background: #edf8f4;
  color: #006b5d;
  font-size: 26px;
  cursor: pointer;
}
.route-modal .map {
  height: min(38dvh, 300px);
  min-height: 180px;
}
.route-modal .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.route-modal .modal-actions button {
  flex: 1;
}
body.turn3d-modal-open {
  overflow: hidden;
}
@media (max-width: 600px) {
  .route-modal {
    padding: 10px;
  }
  .route-modal .modal-content {
    max-height: calc(100dvh - 20px);
    padding: 16px;
  }
}


/* TURN3D MODAL FOOTER FIX V1 */
.route-modal {
  margin: 0 !important;
  padding: 16px !important;
  border: 0 !important;
}

.route-modal .modal-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(100%, 560px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow-y: auto;
}

.route-modal .modal-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5ece9;
  box-sizing: border-box;
}

.route-modal .modal-actions button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
}

@media (max-width: 600px) {
  .route-modal .modal-actions {
    gap: 8px;
  }
}


/* TURN3D CHECKPOINT C2B ROUTE LIBRARY */
.route-library-card{
  min-width:0;
  overflow:visible;
  border:1px solid #d7e5df;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 16px rgba(13,47,42,.045);
}
.route-library-map{
  position:relative;
  height:205px;
  overflow:hidden;
  border-radius:13px 13px 0 0;
  background:#e6f0eb;
}
.route-library-map-canvas{
  width:100%;
  height:100%;
}
.route-library-map-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  padding:20px;
  text-align:center;
  font-size:13px;
  color:#54746c;
}
.route-library-map-error{
  background:#f3f5f2;
}
.route-library-body{
  padding:18px;
}
.route-library-title{
  margin:0 0 17px;
  color:#142b29;
  font-size:18px;
  font-weight:750;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.route-library-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:19px;
}
.route-library-metric{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.route-library-metric strong{
  color:#163d38;
  font-size:16px;
  font-weight:750;
}
.route-library-metric span{
  color:#688078;
  font-size:11px;
  line-height:1.3;
}
.route-library-footer{
  display:flex;
  align-items:center;
  gap:10px;
}
.route-library-copy{
  flex:1;
  min-height:45px;
  padding:10px 12px;
  border:0;
  border-radius:9px;
  background:#02A893;
  color:white;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.route-library-copy:hover{
  background:#028e7c;
}
.route-library-menu-wrap{
  position:relative;
  flex:none;
}
.route-library-menu-button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:45px;
  height:45px;
  border:1px solid #d5e4dd;
  border-radius:9px;
  background:white;
  color:#173e37;
  font-size:25px;
  line-height:1;
  cursor:pointer;
}
.route-library-menu{
  position:absolute;
  right:0;
  bottom:calc(100% + 7px);
  z-index:1000;
  min-width:145px;
  padding:5px;
  border:1px solid #d7e5df;
  border-radius:10px;
  background:white;
  box-shadow:0 8px 25px rgba(0,0,0,.13);
}
.route-library-menu[hidden]{
  display:none!important;
}
.route-library-menu button{
  display:block;
  width:100%;
  padding:11px 12px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#173e37;
  font:inherit;
  font-size:13px;
  text-align:left;
  cursor:pointer;
}
.route-library-menu button:hover{
  background:#eef8f4;
}
.route-library-menu .route-library-delete{
  color:#bd443c;
}


/* TURN3D C3C ACCOUNT PROFILE */
.turn3d-profile {
  padding: 0;
  overflow: hidden;
}
.turn3d-profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px 24px;
  background: linear-gradient(155deg, rgba(2,168,147,.11), rgba(255,120,104,.07) 85%);
}
.turn3d-profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: #02A893;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 15px;
}
.turn3d-profile-hero h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.turn3d-profile-email {
  margin: 6px 0 14px !important;
  color: #64748b;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.turn3d-profile-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(2,168,147,.1);
  color: #087f70;
  font-size: 12px;
  font-weight: 700;
}
.turn3d-profile-description {
  padding: 0 20px;
  margin: 18px 0 !important;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  text-align: center;
}
.turn3d-profile-details {
  margin: 0 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
}
.turn3d-profile-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
}
.turn3d-profile-field + .turn3d-profile-field {
  border-top: 1px solid #e5e7eb;
}
.turn3d-profile-field span {
  font-size: 12px;
  color: #64748b;
}
.turn3d-profile-field strong {
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.turn3d-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
.turn3d-profile-manage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 12px;
  background: #02A893;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.turn3d-profile-actions .secondary {
  width: 100%;
  min-height: 44px;
}
.turn3d-profile [hidden] {
  display: none !important;
}


/* TURN3D C3D HOME ONLY HERO */
.shell:has(.panel.active:not(#upload)) .hero {
  display: none;
}
