:root { color-scheme: dark; }
:root[data-theme="paper"], :root[data-theme="frost"], :root[data-theme="harbor-light"] { color-scheme: light; }
[hidden] { display: none !important; }

.drydock-guest-topbar { gap: 1rem; }
.drydock-guest-topbar .smc-std-left { flex-wrap: wrap; }

.smc-standard-topbar #smcGlobalThemeControl {
  position: relative;
  inset: auto;
  z-index: auto;
}
.smc-standard-topbar .smc-global-theme-toggle.smc-btn {
  width: auto;
  min-height: 32px;
  padding-inline: .7rem;
  font-size: var(--smc-type-compact, 13px);
  line-height: 1.2;
  box-shadow: none;
  background: var(--bg-input);
}
.smc-standard-topbar .smc-global-theme-panel {
  top: calc(100% + .5rem);
  max-height: calc(100dvh - 92px);
  overflow: auto;
}
.drydock-text-size {
  margin-top: .65rem;
  padding-top: .55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  border-top: 1px solid var(--border);
  font-size: var(--smc-type-compact, 13px);
  font-weight: 700;
}
.drydock-text-size input { width: 52%; accent-color: var(--accent); }

@media (max-width: 980px) {
  .smc-standard-topbar .smc-std-right { flex-wrap: wrap; }
  .smc-standard-topbar #smcGlobalThemeControl { position: static; }
  .smc-standard-topbar .smc-global-theme-panel {
    right: 10px;
    max-height: 65dvh;
  }
}
@media (max-width: 600px) {
  .smc-standard-topbar .smc-global-theme-toggle.smc-btn { min-height: 38px; }
}
@media print {
  .smc-standard-topbar { display: none !important; }
}
