.pc-mobile .left-column,
.pc-mobile .bible-column,
.pc-mobile .resize-handle,
.pc-mobile .flex-container{
  display: none;
}

/* Stop outer-page scroll / bounce (iOS app mode) */
html.pc-mobile, body.pc-mobile,
.pc-mobile html, .pc-mobile body{
  height: 100%;
  overflow: hidden !important;
}

/* In mobile mode, body should not reserve any space */
body.pc-mobile, .pc-mobile body{
  padding: 0 !important;
  background: #fff;
  position: fixed;
  inset: 0;
  width: 100%;
}

html.pc-mobile{
  background: #fff;
}

/* ---------------------------------
   Shared safe padding for tabs + shell
   --------------------------------- */
.pc-mobile{
  --safe-pad: env(safe-area-inset-bottom, 0px);
  --tab-h: 56px;
  --pc-shell-bg: var(--pc-page-bg, #f5f7f4);
  --pc-shell-surface: var(--pc-page-surface, #ffffff);
  --pc-shell-surface-alt: var(--pc-page-surface-alt, #f6faf7);
  --pc-shell-border: var(--pc-page-border, #e4e9e6);
  --pc-shell-text: var(--pc-page-text, #1f2c26);
  --pc-shell-muted: var(--pc-page-muted, #627169);
  --pc-shell-accent: var(--pc-page-accent, #1f4d2b);
  --pc-shell-accent-strong: var(--pc-page-accent-strong, #2e6b3a);
  --pc-shell-accent-soft: var(--pc-page-accent-soft, #e8f2ea);
  --pc-shell-focus: var(--pc-page-focus, rgba(36, 93, 75, 0.28));
}

/* Mobile shell fills area ABOVE the tab bar */
#mobile-shell{
  display: none;
}

.pc-mobile #mobile-shell{
  display: block;
  position: fixed;
  top: var(--safe-top);
  left: 0;
  right: 0;
  bottom: calc(var(--tab-h) + var(--safe-pad));
  overflow: hidden;
  background: #fff;
}

/* ---------------------------------
   Experimental getting the top higher
   --------------------------------- */
.pc-mobile{
  --top-nudge: 0px; /* try -8px, -16px, -24px */
}

.pc-mobile #mobile-shell{
  top: calc(var(--safe-top) + var(--top-nudge));
}

/* Mobile iframe panes */
.mobile-pane{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 0;
}

.mobile-pane.active{
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  z-index: 1;
}

/* ---------------------------------
   Bottom Tabs (legacy)
   --------------------------------- */
.pc-mobile-tabs{
  display: none;
}

.pc-mobile .pc-mobile-tabs{
  display: none;
}

/* Tab buttons */
.pc-mobile .pc-mobile-tab{
  display: none;
}

/* ---------------------------------
   Bottom Nav (essentials + custom shortcuts)
   --------------------------------- */
.pc-mobile-nav{
  display: none;
}

.pc-mobile .pc-mobile-nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  height: calc(var(--tab-h) + var(--safe-pad));
  padding-bottom: var(--safe-pad);
  box-sizing: border-box;

  display: flex;
  align-items: flex-end;
  justify-content: space-around;

  background: var(--pc-shell-surface);
  border-top: 1px solid var(--pc-shell-border);
  z-index: 9999;
}

.pc-mobile .pc-mnav-custom-slots{
  display: contents;
}

.pc-mobile .pc-mnav-btn{
  flex: 1;
  min-width: 0;
  height: var(--tab-h);
  align-self: flex-end;

  border: none;
  background: transparent;
  color: var(--pc-shell-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.pc-mobile .pc-mnav-btn i{
  font-size: 18px;
  line-height: 1;
}

.pc-mobile .pc-mnav-label{
  font-size: 11px;
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-mobile .pc-mnav-btn.is-active{
  color: var(--pc-shell-accent-strong);
}

.pc-mobile .pc-mnav-btn.is-active i{
  color: var(--pc-shell-accent-strong);
}

.pc-mobile .pc-mnav-btn.is-active::after{
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pc-shell-accent-strong);
}

.pc-mobile .pc-mnav-btn.is-active .pc-mnav-label{
  font-weight: 600;
}

.pc-mobile .pc-mnav-btn.is-primary i{
  font-size: 20px;
}

.pc-mobile .pc-mnav-btn.is-disabled{
  color: rgba(86, 101, 92, 0.55);
  cursor: not-allowed;
}

.pc-mobile .pc-mnav-btn.is-disabled i{
  color: inherit;
}

@media (max-width: 520px){
  .pc-mobile .pc-mnav-label{
    display: block;
  }
}

/* ---------------------------------
   Overflow bottom sheet
   --------------------------------- */
.pc-overflow-overlay{
  position: fixed;
  top: 12px;
  right: 0;
  bottom: calc(var(--tab-h) + var(--safe-pad));
  left: 0;
  z-index: 9990;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

@supports (top: max(0px)){
  .pc-overflow-overlay{
    top: max(12px, env(safe-area-inset-top, 0px));
  }
}

.pc-overflow-overlay[hidden]{
  display: flex;
}

.pc-overflow-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.pc-overflow-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.pc-overflow-sheet{
  position: relative;
  width: min(100%, 520px);
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  margin: 0 auto;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--pc-shell-surface);
  border-radius: 16px 16px 0 0;
  padding: 0 0 calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.pc-overflow-heading,
.pc-overflow-customizer{
  padding: 0 16px 8px;
}

.pc-overflow-heading{
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px 10px 18px;
  background: var(--pc-shell-surface);
  border-bottom: 1px solid var(--pc-shell-border);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.pc-overflow-title{
  color: var(--pc-shell-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.pc-overflow-subtitle,
.pc-overflow-customizer-copy,
.pc-overflow-status,
.pc-shortcut-note{
  color: var(--pc-shell-muted);
  font-size: 12px;
  line-height: 1.3;
}

.pc-overflow-close{
  border: 1px solid var(--pc-shell-border);
  border-radius: 999px;
  background: var(--pc-shell-surface-alt);
  color: var(--pc-shell-accent-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font: inherit;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0 0 2px;
  -webkit-tap-highlight-color: transparent;
}

.pc-overflow-close:hover,
.pc-overflow-close:focus{
  border-color: var(--pc-shell-accent);
  background: var(--pc-shell-accent);
  color: var(--pc-shell-surface);
  outline: none;
}

.pc-overflow-group{
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-overflow-group [hidden],
.pc-overflow-group li[hidden]{
  display: none !important;
}

.pc-overflow-item{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--pc-shell-accent);
  text-align: left;
}

.pc-overflow-item:hover,
.pc-overflow-item:focus{
  background: var(--pc-shell-accent-soft);
  color: var(--pc-shell-accent-strong);
}

.pc-overflow-item.is-disabled,
.pc-overflow-item:disabled{
  color: rgba(86, 101, 92, 0.55);
  cursor: not-allowed;
}

.pc-overflow-item i{
  width: 18px;
  text-align: center;
}

.pc-overflow-divider{
  height: 1px;
  background: var(--pc-shell-border);
  margin: 6px 16px;
}

.pc-overflow-customizer-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pc-overflow-customizer-title{
  color: var(--pc-shell-text);
  font-size: 14px;
  font-weight: 800;
}

.pc-overflow-reset{
  border: 1px solid var(--pc-shell-border);
  border-radius: 999px;
  background: var(--pc-shell-surface-alt);
  color: var(--pc-shell-accent);
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
}

.pc-overflow-reset:hover,
.pc-overflow-reset:focus{
  border-color: var(--pc-shell-accent);
  background: var(--pc-shell-accent-soft);
}

.pc-overflow-shortcuts{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.pc-shortcut-choice{
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border: 1px solid var(--pc-shell-border);
  border-radius: 12px;
  background: var(--pc-shell-surface-alt);
  color: var(--pc-shell-text);
  padding: 9px;
}

.pc-shortcut-choice input{
  margin-top: 3px;
  accent-color: var(--pc-shell-accent);
}

.pc-shortcut-choice-main{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.pc-shortcut-choice-main i{
  color: var(--pc-shell-accent);
  width: 16px;
  text-align: center;
}

.pc-shortcut-label{
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-shortcut-note{
  grid-column: 1 / -1;
}

.pc-shortcut-choice.is-disabled{
  opacity: 0.55;
}

.pc-shortcut-choice.is-selected{
  border-color: var(--pc-shell-accent);
  background: var(--pc-shell-accent-soft);
}

@media (max-width: 380px){
  .pc-overflow-shortcuts{
    grid-template-columns: 1fr;
  }
}

.pc-overflow-danger .pc-overflow-item{
  color: #8b2c2c;
}

.pc-overflow-danger .pc-overflow-signin{
  color: var(--pc-shell-accent);
}

.pc-overflow-open{
  overflow: hidden !important;
}

.pc-utility-overlay{
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: block;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.pc-utility-overlay[hidden]{
  display: block;
}

.pc-utility-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.pc-utility-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.pc-utility-sheet{
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--tab-h) + var(--safe-pad));
  height: min(calc(100% - var(--tab-h) - var(--safe-pad) - 10px), 860px);
  max-height: calc(100% - var(--tab-h) - var(--safe-pad) - 10px);
  background: var(--pc-shell-surface);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.pc-utility-header{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--pc-shell-border);
  background: var(--pc-shell-surface);
}

.pc-utility-close{
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(47, 79, 58, 0.25);
  background: var(--pc-shell-surface);
  color: var(--pc-shell-accent);
}

.pc-utility-title{
  font-size: 13px;
  font-weight: 700;
  color: var(--pc-shell-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-utility-frame{
  width: 100%;
  height: calc(100% - 45px);
  border: 0;
}

body.pc-utility-open{
  overflow: hidden !important;
}

html.pc-mobile {
  background: var(--pc-shell-accent, var(--chrome));
}
