* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3D3D3D;
  --primary-light: #555555;
  --accent: #6B7B3A;
  --accent-hover: #5A6930;
  --accent-soft: #f0f3e8;
  --accent-border: #d4dbb8;
  --text: #333;
  --text-muted: #666;
  --text-light: #999;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --bg: #f5f6f8;
  --bg-white: #fff;
  --success: #6B7B3A;
  --warning: #dc6b00;
  --danger: #dc3545;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --sidebar-w: 280px;
  --header-h: 56px;
  --radius: 6px;
  --radius-lg: 10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════
   LAYOUT
   ══════════════════════════════════ */

.wp-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Header ── */
.wp-header {
  background: var(--primary);
  color: #fff;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.wp-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wp-header h1 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.wp-header h1::before {
  content: 'Kanzlei Tieben \00b7 ';
  font-weight: 400;
  opacity: 0.7;
}

.wp-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-header-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all 0.15s;
  border: 1px solid transparent;
}

.wp-header-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
}

.wp-header-btn {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.1px;
}

.wp-header-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.wp-header-btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.55);
}

.wp-header-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* ── Mobile Sidebar Toggle ── */
.mobile-sidebar-toggle {
  display: none;
  width: 100%;
  padding: 11px 20px;
  background: var(--bg-white);
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.mobile-sidebar-toggle::before {
  content: '\25BC  ';
  font-size: 9px;
  vertical-align: 1px;
}

/* ══════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════ */

.wp-main {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── Sidebar ── */
.wp-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.wp-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.wp-sidebar-header h2 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-new-chat {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-white);
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-new-chat:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.wp-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
}

/* Sidebar date group headers */
.wp-sidebar-date {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 10px 6px;
}

.wp-sidebar-date:first-child {
  padding-top: 4px;
}

.wp-chat-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 2px;
  transition: all 0.1s;
  position: relative;
  border: 1px solid transparent;
}

.wp-chat-item:hover {
  background: var(--bg);
}

.wp-chat-item.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.wp-chat-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 24px;
  line-height: 1.4;
}

.wp-chat-item-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
}

.wp-chat-item-delete {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
}

.wp-chat-item:hover .wp-chat-item-delete {
  display: flex;
}

.wp-chat-item-delete:hover {
  background: #fce8e6;
  color: var(--danger);
}

.wp-empty-sidebar {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.6;
}

/* ══════════════════════════════════
   CHAT AREA
   ══════════════════════════════════ */

.wp-chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
}

/* ── Setup Panel ── */
.wp-setup {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

/* Only show scrollbar when actually needed (Firefox + WebKit) */
.wp-setup { scrollbar-gutter: stable; }

.wp-setup-row {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

.wp-setup-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  flex: 1;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}

.wp-setup-card:hover {
  border-color: #ccc;
}

.wp-setup-card-sm {
  flex: 0 0 280px;
}

.wp-setup-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ── Upload Zone ── */
.wp-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.wp-upload-zone:hover,
.wp-upload-zone.dragover {
  border-color: var(--accent);
  background: #f8faf0;
}

.wp-upload-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.7;
}

.wp-upload-text {
  font-size: 13px;
  color: var(--text-muted);
}

.wp-upload-file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
}

.wp-upload-file span {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-upload-remove {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-light);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.wp-upload-remove:hover {
  color: var(--danger);
}

/* ── Form Elements ── */
.wp-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--bg-white);
  color: var(--text);
  appearance: auto;
  transition: border-color 0.15s;
}

.wp-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,123,58,0.1);
}

.wp-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  background: var(--bg-white);
  color: var(--text);
  transition: border-color 0.15s;
}

.wp-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,123,58,0.1);
}

.wp-prompt-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wp-prompt-editor-header .wp-setup-label {
  margin-bottom: 0;
}

/* ── Prompt Selector Row ── */
.wp-prompt-selector {
  display: flex;
  gap: 8px;
}

.wp-prompt-selector .wp-select {
  flex: 1;
}

/* ══════════════════════════════════
   MIC BUTTON
   ══════════════════════════════════ */

.wp-btn-mic {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
  flex-shrink: 0;
}

.wp-btn-mic:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.wp-btn-mic.recording {
  background: #fce8e6;
  border-color: var(--danger);
  color: var(--danger);
  animation: mic-pulse 1.5s infinite;
}

.wp-btn-mic.transcribing {
  background: #eef2ff;
  border-color: #6366f1;
  color: #4338ca;
  cursor: progress;
  animation: mic-spin 1s linear infinite;
}

@keyframes mic-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,53,69,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(220,53,69,0); }
}

.wp-mic-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--danger);
  font-weight: 500;
}

.wp-mic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: mic-pulse-dot 1s infinite;
}

@keyframes mic-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════ */

.wp-btn-send {
  width: 100%;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(107,123,58,0.25);
  letter-spacing: 0.2px;
}

.wp-btn-send:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(107,123,58,0.3);
  transform: translateY(-1px);
}

.wp-btn-send:active {
  transform: translateY(0);
}

.wp-btn-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.wp-btn-ghost-sm {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 500;
}

.wp-btn-ghost-sm:hover {
  text-decoration: underline;
}

.wp-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════
   MESSAGES
   ══════════════════════════════════ */

.wp-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  scroll-behavior: smooth;
}

.wp-message {
  margin-bottom: 24px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.wp-message-user {
  display: flex;
  justify-content: flex-end;
}

.wp-message-user .wp-message-bubble {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 14px 14px 4px 14px;
  max-width: 80%;
}

.wp-message-ai {
  display: flex;
  justify-content: flex-start;
}

.wp-message-ai .wp-message-bubble {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  max-width: 92%;
  box-shadow: var(--shadow-sm);
}

.wp-message-bubble {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.wp-message-bubble p { margin-bottom: 10px; }
.wp-message-bubble p:last-child { margin-bottom: 0; }
.wp-message-bubble ul, .wp-message-bubble ol { margin: 8px 0; padding-left: 24px; }
.wp-message-bubble li { margin-bottom: 4px; }
.wp-message-bubble li > ul, .wp-message-bubble li > ol { margin: 4px 0 6px 0; padding-left: 22px; }
.wp-message-bubble li p { display: inline; margin: 0; }
.wp-message-bubble strong { font-weight: 600; }
.wp-message-bubble h1, .wp-message-bubble h2, .wp-message-bubble h3,
.wp-message-bubble h4, .wp-message-bubble h5, .wp-message-bubble h6 {
  margin: 16px 0 8px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}
.wp-message-bubble h1 { font-size: 1.3em; }
.wp-message-bubble h2 { font-size: 1.2em; }
.wp-message-bubble h3 { font-size: 1.1em; }

.wp-message-bubble pre {
  background: #f4f5f7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  overflow-x: auto;
  font-size: 12px;
  margin: 10px 0;
  line-height: 1.5;
}

.wp-message-bubble code {
  background: #f4f5f7;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.88em;
}

.wp-message-bubble pre code {
  background: none;
  padding: 0;
}

.wp-message-bubble blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  color: var(--text-muted);
  margin: 10px 0;
  font-style: italic;
}

.wp-message-bubble table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
  font-size: 13px;
}

.wp-message-bubble th, .wp-message-bubble td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.wp-message-bubble th {
  background: var(--bg);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Typing Indicator ── */
.wp-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  max-width: 780px;
  margin: 0 auto;
}

.wp-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-light);
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.wp-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.wp-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ══════════════════════════════════
   INPUT BAR
   ══════════════════════════════════ */

.wp-input-bar {
  padding: 14px 24px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  flex-shrink: 0;
}

.wp-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  transition: border-color 0.15s;
}

.wp-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,123,58,0.08);
}

.wp-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  resize: none;
  max-height: 120px;
  min-height: 22px;
  color: var(--text);
}

.wp-input:focus {
  outline: none;
}

.wp-btn-send-sm {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.wp-btn-send-sm:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}

.wp-btn-send-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ══════════════════════════════════
   PROMPT MANAGEMENT MODAL
   ══════════════════════════════════ */

.wp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px;
  overflow-y: auto;
  backdrop-filter: blur(2px);
}

.wp-modal-overlay.visible {
  display: flex;
}

.wp-modal {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  animation: modalSlide 0.2s ease-out;
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.wp-modal-header h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
}

.wp-modal-close {
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}

.wp-modal-close:hover {
  background: #fce8e6;
  color: var(--danger);
  border-color: transparent;
}

.wp-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* ── Prompt Form ── */
.wp-prompt-form {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  display: none;
}

.wp-prompt-form.visible {
  display: block;
}

.wp-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.wp-form-field {
  margin-bottom: 14px;
}

.wp-form-field:last-child {
  margin-bottom: 0;
}

.wp-form-field-grow {
  flex: 1;
}

.wp-form-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.wp-input-field {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--bg-white);
  transition: border-color 0.15s;
}

.wp-input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,123,58,0.1);
}

.wp-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.wp-btn-accent {
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.wp-btn-accent:hover {
  background: var(--accent-hover);
}

.wp-btn-accent-sm {
  padding: 7px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.wp-btn-accent-sm:hover {
  background: var(--accent-hover);
}

.wp-btn-ghost {
  padding: 10px 22px;
  background: var(--bg-white);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.wp-btn-ghost:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--text);
}

/* ══════════════════════════════════
   PROMPT EDITOR VIEW (in main area)
   ══════════════════════════════════ */

.wp-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

.wp-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-white);
}

.wp-editor-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.wp-btn-danger-outline-sm {
  padding: 7px 14px;
  background: #fff;
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.wp-btn-danger-outline-sm:hover {
  background: #fce8e6;
  border-color: var(--danger);
}

.wp-editor-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.wp-editor-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.wp-editor-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wp-editor-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Editor fields */
.wp-ef {
  display: flex;
  flex-direction: column;
}

.wp-ef-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.wp-ef-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.wp-ef-label-row .wp-ef-label {
  margin-bottom: 0;
}

.wp-btn-link {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 4px;
}

.wp-btn-link:hover {
  text-decoration: underline;
}

.wp-ef-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--bg-white);
  color: var(--text);
  transition: all 0.15s;
}

.wp-ef-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,123,58,0.1);
}

.wp-ef-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  background: var(--bg-white);
  color: var(--text);
  transition: all 0.15s;
  min-height: 180px;
}

.wp-ef-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,123,58,0.1);
}

/* Breadcrumb */
.wp-breadcrumb {
  padding: 9px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wp-breadcrumb-seg {
  color: var(--text);
}

.wp-breadcrumb-seg-sep {
  color: var(--text-light);
  margin: 0 2px;
}

.wp-breadcrumb-empty {
  color: var(--text-light);
  font-style: italic;
}

/* Upload zone */
.wp-ef-upload {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-white);
}

.wp-ef-upload:hover,
.wp-ef-upload.dragover {
  border-color: #3b82f6;
  background: #f0f7ff;
}

.wp-ef-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wp-ef-upload-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.wp-ef-upload-hint {
  font-size: 11px;
  color: var(--text-light);
}

.wp-ef-doc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.wp-ef-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}

.wp-ef-doc-icon {
  color: var(--text-light);
  flex-shrink: 0;
}

.wp-ef-doc-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-ef-doc-size {
  font-size: 11px;
  color: var(--text-light);
  flex-shrink: 0;
}

.wp-ef-doc-remove {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 18px;
  line-height: 1;
}

.wp-ef-doc-remove:hover {
  color: var(--danger);
  background: #fce8e6;
}

/* Settings toggles */
.wp-ef-settings {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.wp-ef-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.wp-ef-toggle-row:last-child {
  border-bottom: none;
}

.wp-ef-toggle-row:hover {
  background: var(--bg);
}

.wp-ef-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.wp-ef-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wp-ef-toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 22px;
  transition: background 0.2s;
  cursor: pointer;
}

.wp-ef-toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.wp-ef-toggle input:checked + .wp-ef-toggle-slider {
  background: #3b82f6;
}

.wp-ef-toggle input:checked + .wp-ef-toggle-slider::before {
  transform: translateX(18px);
}

/* Side cards */
.wp-ef-side-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.wp-ef-placeholders {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.wp-ef-chip {
  padding: 5px 10px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  color: #4338ca;
  cursor: pointer;
  transition: all 0.15s;
}

.wp-ef-chip:hover {
  background: #c7d2fe;
  border-color: #818cf8;
}

.wp-ef-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
}

.wp-ef-preview {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  min-height: 120px;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 240px;
  overflow-y: auto;
}

.wp-ef-preview-empty {
  color: var(--text-light);
  font-style: italic;
}

.wp-ef-preview strong {
  color: var(--text);
}

.wp-btn-primary {
  width: 100%;
  padding: 10px 16px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}

.wp-btn-primary:hover {
  background: #2563eb;
}

.wp-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  flex-shrink: 0;
}

/* Category picker list (for Kategorie aendern) */
.wp-cat-picker-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  padding: 6px;
}

.wp-cat-picker-item {
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-cat-picker-item:hover {
  background: #e7f0fd;
  color: #1e40af;
}

.wp-cat-picker-num {
  font-size: 11px;
  color: var(--text-light);
  min-width: 32px;
  font-variant-numeric: tabular-nums;
}

/* Mobile responsiveness for editor */
@media (max-width: 900px) {
  .wp-editor-grid {
    grid-template-columns: 1fr;
  }
  .wp-editor-scroll {
    padding: 14px;
  }
  .wp-editor-header,
  .wp-editor-footer {
    padding: 12px 14px;
  }
}

/* Small ghost button for sidebar secondary action */
.btn-ghost-small {
  background: transparent !important;
  color: var(--text-muted) !important;
  border: 1px dashed var(--border) !important;
  font-size: 11px !important;
  padding: 6px 10px !important;
}

.btn-ghost-small:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  background: var(--bg) !important;
}

.wp-sidebar-panel .wp-sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Sidebar tabs (Verlauf / Prompts) ── */
.wp-sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.wp-sidebar-tab {
  flex: 1;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.15s;
}

.wp-sidebar-tab:hover {
  color: var(--text);
}

.wp-sidebar-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--bg);
}

.wp-sidebar-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.wp-sidebar-panel .wp-sidebar-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  display: block;
}

.wp-sidebar-panel .btn-new-chat {
  width: 100%;
  height: auto;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  border: 1px dashed var(--border);
  color: var(--accent);
  text-align: center;
}

.wp-sidebar-panel .btn-new-chat:hover {
  background: var(--accent);
  color: #fff;
  border-style: solid;
  border-color: var(--accent);
}

/* ── Sidebar prompt tree ── */
.wp-sidebar-tree {
  padding: 6px 8px;
}

/* Prompt leaf node in sidebar */
.wp-stree-prompt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: var(--indent, 0);
  transition: background 0.1s;
  user-select: none;
  border: 1px solid transparent;
}

.wp-stree-prompt:hover {
  background: var(--bg);
}

.wp-stree-prompt.active {
  background: #f0f3e8;
  border-color: #d4dbb8;
}

.wp-stree-prompt-number {
  font-size: 10px;
  color: var(--text-light);
  min-width: 32px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.wp-stree-prompt-icon {
  flex-shrink: 0;
  color: var(--text-light);
}

.wp-stree-prompt.active .wp-stree-prompt-icon {
  color: var(--accent);
}

.wp-stree-prompt-label {
  flex: 1;
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.wp-stree-prompt.active .wp-stree-prompt-label {
  color: var(--accent);
  font-weight: 500;
}

/* Hover actions on sidebar rows */
.wp-stree-actions {
  display: none;
  gap: 2px;
  flex-shrink: 0;
}

.wp-stree-prompt:hover .wp-stree-actions,
.wp-ctree-row.cat:hover .wp-stree-actions {
  display: flex;
}

.wp-stree-action {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--text-light);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.wp-stree-action:hover {
  background: var(--bg-white);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border);
}

.wp-stree-action.delete:hover {
  background: #fce8e6;
  color: var(--danger);
}

/* ── Category Tree Section (in Prompts verwalten modal) ── */
.wp-modal-lg {
  max-width: 780px !important;
}

.wp-cat-section {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.wp-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wp-cat-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.wp-cat-header-actions {
  display: flex;
  gap: 6px;
}

.wp-cat-tree {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 460px;
  overflow-y: auto;
  padding: 4px;
}

/* Nested tree rows */
.wp-ctree-node {
  display: flex;
  flex-direction: column;
}

.wp-ctree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 13px;
  user-select: none;
  border: 1px solid transparent;
  transition: background 0.1s;
}

.wp-ctree-row.cat {
  background: var(--bg-white);
  cursor: pointer;
  font-weight: 500;
}

.wp-ctree-row.cat:hover {
  background: #fafbfc;
  border-color: var(--border-light);
}

.wp-ctree-row.prompt {
  cursor: pointer;
}

.wp-ctree-row.prompt:hover {
  background: var(--bg);
}

.wp-ctree-caret {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform 0.15s;
  cursor: pointer;
}

.wp-ctree-caret.expanded {
  transform: rotate(90deg);
}

.wp-ctree-caret.empty {
  visibility: hidden;
}

.wp-ctree-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.wp-ctree-icon.cat-icon { color: #eab308; }
.wp-ctree-icon.prompt-icon { color: var(--text-light); }

.wp-ctree-number {
  font-size: 11px;
  color: var(--text-light);
  min-width: 38px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.wp-ctree-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.wp-ctree-row.prompt .wp-ctree-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 400;
}

.wp-ctree-count {
  font-size: 10px;
  color: var(--text-light);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
}

.wp-ctree-actions {
  display: none;
  gap: 2px;
  flex-shrink: 0;
}

.wp-ctree-row:hover .wp-ctree-actions {
  display: flex;
}

.wp-ctree-action {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-light);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.wp-ctree-action:hover {
  background: var(--bg-white);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border);
}

.wp-ctree-action.delete:hover {
  background: #fce8e6;
  color: var(--danger);
  box-shadow: 0 0 0 1px #fecaca;
}

.wp-ctree-action.move:hover {
  background: #eef2ff;
  color: #1e40af;
  box-shadow: 0 0 0 1px #c7d2fe;
}

.wp-ctree-children {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 20px;
}

.wp-cat-tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  background: var(--bg-white);
  border: 1px solid transparent;
  font-size: 13px;
  transition: border-color 0.15s;
}

.wp-cat-tree-row.sub {
  margin-left: 24px;
  background: transparent;
  border-color: var(--border-light);
}

.wp-cat-tree-row:hover {
  border-color: var(--border);
}

.wp-cat-tree-number {
  font-size: 11px;
  color: var(--text-light);
  min-width: 24px;
  font-weight: 500;
}

.wp-cat-tree-icon {
  color: #eab308;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.wp-cat-tree-row.sub .wp-cat-tree-icon {
  color: #ca8a04;
}

.wp-cat-tree-name {
  flex: 1;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-cat-tree-count {
  font-size: 11px;
  color: var(--text-light);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 10px;
}

.wp-cat-tree-actions {
  display: none;
  gap: 2px;
}

.wp-cat-tree-row:hover .wp-cat-tree-actions {
  display: flex;
}

.wp-cat-tree-action {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-light);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.wp-cat-tree-action:hover {
  background: var(--bg);
  color: var(--text);
}

.wp-cat-tree-action.delete:hover {
  background: #fce8e6;
  color: var(--danger);
}

.wp-cat-tree-empty {
  padding: 18px;
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
}

.wp-cat-group-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 2px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wp-cat-group-header:first-child {
  padding-top: 2px;
}

.wp-cat-group-number {
  color: var(--text-light);
  font-weight: 600;
}

/* ── Prompt List ── */
.wp-prompt-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.wp-prompt-list-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.wp-prompt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wp-prompt-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  transition: all 0.15s;
}

.wp-prompt-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.wp-prompt-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.wp-prompt-item-title {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--primary);
}

.wp-prompt-item-category {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.wp-prompt-item-preview {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

.wp-prompt-item-actions {
  display: flex;
  gap: 6px;
}

.wp-prompt-item-actions button {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-white);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}

.wp-prompt-item-actions button:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--text);
}

.wp-prompt-item-actions button.move-btn:hover {
  border-color: #3b82f6;
  color: #1e40af;
  background: #eef2ff;
}

.wp-prompt-item-actions button.delete-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: #fce8e6;
}

.wp-empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 13px;
}

/* ══════════════════════════════════
   TOAST
   ══════════════════════════════════ */

.wp-toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.wp-toast {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toastIn 0.2s ease-out;
  max-width: 360px;
}

.wp-toast.error { border-left-color: var(--danger); }
.wp-toast.fadeout { animation: toastOut 0.25s ease-in forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}

/* ══════════════════════════════════
   RESPONSIVE / MOBILE
   ══════════════════════════════════ */

@media (max-width: 900px) {
  :root {
    --sidebar-w: 100%;
    --header-h: 52px;
  }

  .wp-header {
    padding: 0 14px;
  }

  .wp-header h1 {
    font-size: 14px;
  }

  .wp-header h1::before {
    display: none;
  }

  .wp-header-right {
    gap: 6px;
  }

  .wp-header-link {
    display: none;
  }

  .wp-header-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .mobile-sidebar-toggle {
    display: block;
  }

  .wp-main {
    flex-direction: column;
  }

  .wp-sidebar {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .wp-sidebar.open {
    max-height: 50vh;
    overflow-y: auto;
  }

  .wp-chat-area {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .wp-setup {
    padding: 16px;
    flex: none;
    overflow: visible;
  }

  .wp-setup-row {
    flex-direction: column;
    gap: 0;
  }

  .wp-setup-card {
    padding: 16px;
    border-radius: 8px;
  }

  .wp-setup-card-sm {
    flex: 1;
  }

  .wp-messages {
    padding: 16px;
  }

  .wp-message-user .wp-message-bubble {
    max-width: 90%;
  }

  .wp-message-ai .wp-message-bubble {
    max-width: 98%;
  }

  .wp-input-bar {
    padding: 10px 14px 14px;
  }

  .wp-modal {
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }

  .wp-modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .wp-form-row {
    flex-direction: column;
    gap: 0;
  }

  .wp-prompt-item-header {
    flex-wrap: wrap;
  }

  .wp-btn-send {
    font-size: 14px;
    padding: 13px 20px;
  }

  /* Prevent iOS zoom on inputs */
  input, select, textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 380px) {
  .wp-header-btn {
    padding: 5px 8px;
    font-size: 10px;
  }

  .wp-header h1 {
    font-size: 13px;
  }
}
