/* Presenter bar and TOR panel, added on top of every prototype screen in the offline package. */
body.pp-on { padding-bottom: 64px; }
#pp-bar { display: none; }
body.pp-on #pp-bar { display: flex; }
#pp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; height: 56px; align-items: center; gap: 16px; padding: 0 16px;
  background: linear-gradient(120deg, #06493a 0%, #0a6b52 100%); color: #fff; font-family: 'IBM Plex Sans Thai', 'K2D New', 'K2D', Tahoma, sans-serif; font-size: 14px; box-shadow: 0 -8px 24px -16px rgba(6,73,58,.6); }
#pp-bar a, #pp-bar a:hover, #pp-bar a:focus { color: #fff; text-decoration: none; }
#pp-bar .pp-sec { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32%; }
#pp-bar .pp-sec b { font-weight: 600; background: #fff; color: #06493a; border-radius: 4px; padding: 0 8px; margin-right: 4px; }
#pp-bar .pp-mid { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }
#pp-bar .pp-where { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#pp-bar .pp-tor { flex: 0 0 auto; background: none; border: 0; padding: 0; cursor: pointer; display: flex; gap: 4px; flex-wrap: nowrap; }
#pp-bar .pp-chip { border: 1px solid rgba(255,255,255,.7); color: #fff; border-radius: 4px; padding: 0 8px; font-size: 12px; white-space: nowrap; }
#pp-bar .pp-nav { flex: 0 0 auto; display: flex; gap: 8px; }
#pp-bar .pp-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border: 1px solid rgba(255,255,255,.6); border-radius: 6px; }
#pp-bar .pp-btn:hover { background: rgba(255,255,255,.12); }
#pp-bar .pp-next { background: #fff; border-color: #fff; color: #06493a; font-weight: 600; }
#pp-bar a.pp-next, #pp-bar a.pp-next:hover, #pp-bar a.pp-next:focus { color: #06493a; }
#pp-bar .pp-next:hover { background: #eaf5ee; }
#pp-bar a:focus-visible, #pp-bar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

#pp-panel { display: none; }
body.pp-on.pp-open #pp-panel { display: block; }
#pp-panel { position: fixed; right: 16px; bottom: 64px; z-index: 1999; width: 520px; max-width: calc(100% - 32px); max-height: 45vh; overflow: auto;
  background: #fff; border: 1px solid #cfe6d8; border-radius: 6px; box-shadow: 0 12px 32px -12px rgba(6,73,58,.45); padding: 12px 16px;
  font-family: 'IBM Plex Sans Thai', 'K2D New', 'K2D', Tahoma, sans-serif; font-size: 14px; color: #111827; }
#pp-panel:empty { display: none !important; }
#pp-panel .pp-tag { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid #e5e7eb; line-height: 1.4; }
#pp-panel .pp-tag:last-child { border-bottom: 0; }
#pp-panel .pp-no { flex: 0 0 auto; color: #06493a; background: #eaf5ee; border-radius: 6px; padding: 0 8px; height: 24px; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 24px; }
#pp-panel .pp-hint { color: #0a6b52; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid #eee; }
.pp-spot { outline: 3px solid #14946f; outline-offset: 4px; border-radius: 4px; }

@media (max-width: 767px) {
  #pp-bar { gap: 8px; padding: 0 8px; font-size: 14px; }
  #pp-bar .pp-name, #pp-bar .pp-tor, #pp-bar .pp-btn span { display: none; }
  #pp-bar .pp-sec { flex: 0 0 auto; max-width: none; }
  #pp-bar .pp-btn { min-width: 44px; min-height: 44px; justify-content: center; padding: 0 8px; }
  #pp-panel { right: 8px; left: 8px; width: auto; max-width: none; }
}

body.pp-on .pt-ribbon { bottom: 56px; }
