/* Smartphone styles (loaded via media query in index.html) */

body::before,
body::after {
  display: none;
}

.site-header {
  padding: 0.88rem 0.95rem;
  position: static;
  top: auto;
}

.site-header h1 {
  font-size: clamp(1.2rem, 6vw, 1.55rem);
}

.header-main {
  gap: 0.65rem;
  align-items: flex-start;
}

.header-image {
  height: 72px;
}

.header-actions {
  width: 100%;
  gap: 0.45rem;
}

.header-user {
  width: 100%;
  text-align: left;
}

.site-link-bar-inner {
  padding: 0.5rem 0.75rem;
  gap: 0.4rem;
}

.site-link-bar {
  position: static;
  top: auto;
  left: auto;
  right: auto;
}

.site-link-chip {
  min-height: 2.2rem;
}

.layout {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0.75rem;
  margin-top: 0;
}

.layout.layout-menu-right {
  display: flex;
  flex-direction: column;
}

.layout.layout-menu-right .menu-panel {
  order: 1;
}

.layout.layout-menu-right .content-panel {
  order: 2;
}

.layout > .view-section {
  order: 2;
}

.menu-panel {
  order: 1;
  position: sticky;
  top: 0;
  z-index: 18;
  max-height: min(58vh, 25rem);
  overflow: auto;
  background: color-mix(in srgb, var(--menu-panel-bg, var(--panel-bg)) 94%, transparent);
  backdrop-filter: blur(10px);
}

.content-panel {
  order: 2;
}

.menu-panel,
.content-panel,
.users-panel,
.mailshots-panel,
.editor-panel,
.config-panel,
.contact-panel,
.campaign-content {
  border-radius: 8px;
  padding: 0.82rem;
}

.bg-controls {
  grid-template-columns: 1fr;
}

.link-bar-bg-controls {
  grid-template-columns: 1fr;
}

.config-save-sticky-wrap {
  top: 0.5rem;
}

.config-save-sticky-btn {
  width: 100%;
  min-width: 0;
}

.page-save-sticky-wrap {
  top: calc(var(--mobile-menu-sticky-height, 0px) + 0.5rem);
  z-index: 17;
}

.page-save-sticky-btn {
  width: 100%;
  min-width: 0;
}

#editor-panel #editor-toolbar {
  top: calc(var(--mobile-menu-sticky-height, 0px) + 3.65rem);
  z-index: 16;
}

.gradient-angle-picker {
  width: 88px;
  height: 88px;
}

.menu-header {
  margin-bottom: 0.55rem;
}

.menu-filter-panel {
  margin-bottom: 0.62rem;
}

.page-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem 0.5rem;
  max-height: none;
  overflow: visible;
}

.page-list li {
  display: inline-flex;
}

.page-list button {
  width: auto;
  min-height: 2.05rem;
  margin: 0;
  padding: 0.32rem 0.12rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
  text-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-list button:hover:not(:disabled),
.page-list button:focus-visible {
  transform: none;
  filter: none;
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 85, 0.14);
}

.page-list button:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: none;
}

.page-list button.active {
  background: transparent;
  border: 0;
  color: #17352f;
  box-shadow: none;
  font-weight: 800;
  text-shadow: none;
  text-decoration-thickness: 2px;
}

.page-list-meta {
  display: none;
}

.menu-position-options {
  gap: 0.75rem;
}

.dialog-actions,
.editor-actions {
  flex-direction: column;
}

.image-dialog {
  padding: 0.78rem;
}

.page-image-popout {
  padding: 0.8rem;
}

.users-action-buttons {
  flex-direction: column;
}

.mailshots-grid {
  grid-template-columns: 1fr;
}

.mailshot-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mailshot-tab {
  flex: 0 0 auto;
}

.editor-actions button,
.small-btn {
  width: 100%;
}

.site-header .header-actions button {
  width: auto;
  min-height: 1.8rem;
  margin: 0;
  padding: 0.16rem 0.08rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  filter: none;
  text-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header .header-actions button:hover:not(:disabled),
.site-header .header-actions button:focus-visible {
  transform: none;
  background: transparent;
  color: #f6d28d;
  box-shadow: 0 0 0 3px rgba(246, 210, 141, 0.18);
}

.site-header .header-actions button:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: none;
}

.site-header .header-actions .nav-btn-active {
  color: #f6d28d;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.search-row .small-btn {
  width: auto;
}

.site-footer-inner {
  flex-direction: column;
  align-items: flex-start;
}

.site-footer-text {
  text-align: left;
}
