/* ===== TOAST NOTIFICATIONS ===== */
.gwp_toast{position:fixed;bottom:24px;right:24px;padding:12px 20px;border-radius:8px;font-size:13px;font-weight:500;z-index:99999;display:flex;align-items:center;gap:8px;box-shadow:0 4px 12px rgba(0,0,0,0.15);animation:gwp_toast_in 0.3s ease-out;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;}
.gwp_toast i{font-size:16px;}
.gwp_toast_success{background:#dcfce7;color:#166534;border:1px solid #86efac;}
.gwp_toast_error{background:#fef2f2;color:#991b1b;border:1px solid #fca5a5;}
.gwp_toast_info{background:#eff6ff;color:#d62e00;border:1px solid #93c5fd;}
.gwp_toast_out{opacity:0;transform:translateY(10px);transition:all 0.3s ease-in;}
@keyframes gwp_toast_in{from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);}}

/* ===== SETTINGS PAGE ===== */
.gwp_filtersettings .select_tabmcontainer > .select_tabmdropdown { width: 160px; }

/* ── Connections Hub ── */
.gwp_conn_section { margin-bottom: 12px; }
.gwp_conn_section_header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.gwp_conn_section_header span {
  font-size: 13px; font-weight: 600; color: #374151;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.gwp_conn_list {
  display: flex; flex-direction: column; gap: 6px;
}
.gwp_conn_card {
  display: flex !important; align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fafbfc; transition: border-color 0.15s;
}
.gwp_conn_card:hover { border-color: #d1d5db; }
.gwp_conn_card_icon {
  width: 40px; height: 40px; border-radius: 8px; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gwp_conn_card_info { flex: 1; min-width: 0; }
.gwp_conn_card_title {
  font-size: 14px; font-weight: 600; color: #1f2937;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.gwp_conn_card_sub {
  font-size: 11px; color: #9ca3af; font-family: monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
}
.gwp_conn_card_actions {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.gwp_conn_card_remove {
  background: none; border: none; color: #9ca3af; cursor: pointer;
  font-size: 16px; padding: 4px; border-radius: 4px; transition: all 0.15s;
}
.gwp_conn_card_remove:hover { color: #dc2626; background: #fef2f2; }
.gwp_conn_badge {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 3px; font-weight: 500;
}
.gwp_conn_badge_ok { background: #dcfce7; color: #16a34a; }
.gwp_conn_badge_pending { background: #fef3c7; color: #d97706; }
.gwp_conn_help { margin-top: 12px; }
.gwp_conn_help details summary {
  cursor: pointer; font-size: 13px; color: #6b7280;
}
.gwp_conn_help details[open] summary { margin-bottom: 4px; }

/* ── Setup Wizards ── */
.gwp_wiz_popup { max-width: 520px !important; width: 520px !important; }
.gwp_wiz_steps {
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 16px; padding: 0 10px;
}
.gwp_wiz_step, .gwp_wiz_step_active, .gwp_wiz_step_done {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.gwp_wiz_step_num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; transition: all 0.2s;
}
.gwp_wiz_step .gwp_wiz_step_num { background: #f1f5f9; color: #9ca3af; }
.gwp_wiz_step_active .gwp_wiz_step_num { background: #F83600; color: #fff; }
.gwp_wiz_step_done .gwp_wiz_step_num { background: #16a34a; color: #fff; }
.gwp_wiz_step_label {
  font-size: 10px; color: #9ca3af; white-space: nowrap;
}
.gwp_wiz_step_active .gwp_wiz_step_label { color: #F83600; font-weight: 600; }
.gwp_wiz_step_done .gwp_wiz_step_label { color: #16a34a; }
.gwp_wiz_step_line {
  width: 32px; height: 2px; background: #e5e7eb;
  margin: 0 4px; margin-bottom: 18px; flex-shrink: 0;
}
.gwp_wiz_step_line_done { background: #16a34a; }
.gwp_wiz_body { text-align: left; }
.gwp_wiz_text { font-size: 13px; color: #4b5563; line-height: 1.6; margin: 0 0 10px; }
.gwp_wiz_list {
  font-size: 13px; color: #4b5563; line-height: 1.9;
  margin: 0 0 10px; padding-left: 20px;
}
.gwp_wiz_list a { color: #F83600; }
.gwp_wiz_list code { font-size: 11px; background: #f1f5f9; padding: 1px 4px; border-radius: 3px; }
.gwp_wiz_tip {
  background: #fefce8; border: 1px solid #fef08a; border-radius: 6px;
  padding: 8px 12px; font-size: 12px; color: #854d0e; margin: 10px 0 0;
}
.gwp_wiz_tip i { color: #eab308; margin-right: 4px; }
.gwp_wiz_uri_box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px;
  padding: 10px 12px; margin: 8px 0 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: border-color 0.15s;
}
.gwp_wiz_uri_box:hover { border-color: #F83600; }
.gwp_wiz_uri_box code { font-size: 11px; word-break: break-all; color: #d62e00; }
.gwp_wiz_copy_hint { font-size: 11px; color: #6b7280; white-space: nowrap; flex-shrink: 0; }
.gwp_wiz_fields { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.gwp_wiz_label {
  font-size: 11px; font-weight: 600; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: -4px;
}
.gwp_wiz_input {
  margin: 0 !important; width: 100% !important; box-sizing: border-box !important;
  font-size: 13px !important;
}
.gwp_wiz_check { font-size: 13px; color: #374151; margin: 2px 0; display: flex; align-items: center; gap: 6px; }

/* Override nav_btn to inline-flex inside settings cards */
.gwp_settingframe .gwp_nav_btn,
.gwp_settingframe .gwp_nav_btn.gwp_nav_btn_primary {
  display: inline-flex;
}

/* Remove button container (inline) */
.gwp_removecontainer {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

.wrotas_settings_frame {
  margin-top: 16px;
  margin-right: 12px;
  margin-bottom: 20px;
}

/* Section cards */
.gwp_settingframe {
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 24px 28px;
  background-color: #ffffff;
  transition: box-shadow 0.15s;
}

.gwp_settingframe:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gwp_settingframe h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.gwp_settingsframe {
  margin-top: 16px;
  margin-left: 10px;
  margin-right: 10px;
}

.gwp_cur_defblocks_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 16px;
  margin-top: 12px;
}
.gwp_cur_defblocks_opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.gwp_cur_defblocks_opt input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent1, #2a9d8f);
  cursor: pointer;
}

.gwp_bsettingsframe {
  margin-top: 40px;
  margin-right: 10px;
}

/* Top bar */
.gwp_stopbuttonbar {
  width: 100%;
  top: 0px;
  margin-top: 33px;
  margin-right: 100px;
  padding: 10px 16px;
  background-color: #ffffff;
  position: fixed;
  border-bottom: 1px solid #e5e7eb;
  z-index: 10;
}

.gwp_scalheader {
  top: 0px;
  margin-top: 33px;
  padding-right: 40px;
  margin-right: 500px;
  position: fixed;
  width: 100%;
}

/* Primary save button */
.gwp_ssave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 20px;
  font-weight: 500;
  font-size: 13px;
  background-color: #ffffff;
  color: var(--accent1);
  border: 1px solid var(--accent1);
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
  user-select: none;
}

.gwp_ssave:hover {
  background-color: var(--accent1);
  color: #ffffff;
  border-color: var(--accent1);
}

/* Standard button */
.gwp_sbutton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 13px;
  background-color: #ffffff;
  color: var(--accent1);
  border: 1px solid var(--accent1);
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
  user-select: none;
}

.gwp_sbutton:hover {
  background-color: var(--accent1);
  color: #ffffff;
  border-color: var(--accent1);
}

/* Small button (legacy - now gwp_nav_btn in settings) */
.gwp_sbuttonsmall {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-weight: 500;
  font-size: 13px;
  background-color: #ffffff;
  color: var(--accent1);
  border: 1px solid var(--accent1);
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
  user-select: none;
}

.gwp_sbuttonsmall:hover {
  background-color: var(--accent1);
  color: #ffffff;
  border-color: var(--accent1);
}

/* Edit icon button */
.gwp_seditsmall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-weight: 500;
  background-color: transparent;
  color: #aaa;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
  user-select: none;
}

.gwp_seditsmall:hover {
  background-color: color-mix(in srgb, var(--accent1) 12%, transparent);
  color: var(--accent1);
}

/* Square button (template remove) */
.gwp_sbuttonsquare {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-weight: 600;
  background-color: #ffffff;
  color: #ef4444;
  border: 1px solid #fecaca;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.15s;
  user-select: none;
}

.gwp_sbuttonsquare:hover {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Status icons */
.gwp_ytcs {
  display: inline-block;
}

.gwp_sicon {
  color: #22c55e;
}

.gwp_ficon {
  color: #ef4444;
}

/* URL hover links */
.gwp_urlhover {
  color: var(--accent1);
  transition: opacity 0.12s;
}

.gwp_urlhover:hover {
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.8;
}

/* Email subjects and messages */
.wrotas_rc_subject,
.wrotas_cr_subject,
.wrotas_ac_subject,
.wrotas_uc_subject {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}

.wrotas_rc_message,
.wrotas_cr_message,
.wrotas_ac_message,
.wrotas_uc_message {
  width: 100%;
  min-height: 300px;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}

/* Input widths */
.wrotas_uusersinput {
  width: 100%;
}

.wrotas_admininput {
  width: 100%;
}

.wrotas_groupinput {
  width: 95% !important;
  display: inline-block;
  vertical-align: middle;
}

.select_dropdown {
  max-width: 800px;
}

/* Template rows */
.template {
  margin-bottom: 10px;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wrotas_label {
  padding-top: 5px;
  display: block;
  margin-bottom: 4px;
}

/* Field titles and labels */
.gwp_stitle {
  display: inline-block;
  margin-right: 10px;
  vertical-align: baseline;
}

.gwp_sstitle {
  margin: 5px;
}

.gwp_cgtitle {
  cursor: pointer;
}

/* Action button (inline) */
.gwp_sabutton {
  background-color: transparent;
  color: var(--accent1);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: inherit;
  vertical-align: baseline;
  transition: all 0.15s;
}

.gwp_sabutton:hover {
  background-color: var(--accent1);
  color: #ffffff;
  border-color: var(--accent1);
  cursor: pointer;
}

/* Field title */
.gwp_sfieldtitle {
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 15px;
  color: #444;
}

/* Inline field title */
.gwp_sfieldtitlealt {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 15px;
  color: #444;
}

/* Inline field value */
.gwp_sfieldinputalt {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  vertical-align: middle;
}

/* Page mapping pill field */
.gwp_pm_pill {
  display: inline-flex;
  align-items: stretch;
  height: 30px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gwp_pm_pill_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  background: #f5f5f5;
  border-right: 1px solid #ddd;
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}
.gwp_pm_pill_value {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
  color: #333;
  min-width: 60px;
  cursor: pointer;
  white-space: nowrap;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  outline: none !important;
  height: 100%;
}
.gwp_pm_pill_value.gwp_urlhover {
  color: var(--accent1, #0085ba);
}
.gwp_pm_pill_value.gwp_urlhover:hover {
  text-decoration: underline;
}
.gwp_pm_pill_input,
.gwp_menuname_input {
  width: 120px;
  padding: 0 10px;
  font-size: 13px;
  color: #333;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  height: 100%;
}
.gwp_pm_pill:focus-within {
  border-color: var(--accent1, #0085ba);
  box-shadow: 0 0 0 1px var(--accent1, #0085ba);
}
.gwp_pm_headrow {
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
  margin-bottom: 2px;
}

/* Taxonomy inline */
.gwp_utaxonomy {
  display: inline-block;
  margin: 0px 2px 0px 10px;
  padding: 0px !important;
}

#wpfooter {
  display: none;
}

.gwp_syncbutton {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== API SETTINGS ===== */

.gwp_outgoingapi,
.gwp_incomingapi {
  margin-bottom: 16px;
}

.gwp_oapilist,
.gwp_iapilist {
  margin-top: 12px;
  margin-bottom: 12px;
}

.gwp_oapiitem,
.gwp_iapiitem {
  margin-bottom: 8px;
  padding: 10px 14px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gwp_itemcnt {
  display: inline-block;
  margin-right: 10px;
  vertical-align: top;
}

.gwp_itemframe {
  display: inline-block;
  background-color: #ffffff;
  margin-right: 10px;
}

.gwp_itemfieldtitle {
  display: inline-block;
  margin-left: 10px;
  margin-right: 5px;
  vertical-align: middle;
  font-size: 15px;
  padding-top: 7px;
  color: #444;
}

.gwp_itemswitch {
  display: inline-block;
  vertical-align: top;
}

.gwp_iapicode,
.gwp_oapicode {
  display: inline-block;
}

.gwp_iapicode {
  display: inline-block;
  width: 70%;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  background: #fafafa;
}

.gwp_idomaincode {
  display: inline-block;
  width: 80%;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  background: #fafafa;
}

.gwp_apicode {
  display: inline-block;
  width: 30%;
}

.gwp_oapicode:hover {
  cursor: pointer;
}

.gwp_domains {
  width: 50%;
}

/* ===== HOLIDAY / CALENDAR SETTINGS ===== */

.gwp_hyear {
  padding: 10px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.gwp_hyear:last-child {
  border-bottom: none;
}

.gwp_hsdate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gwp_hedate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gwp_hsdate>input,
.gwp_hedate>input {
  margin-left: 5px;
  font-family: inherit;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
}

/* External calendar URLs */
.gwp_ecal {
  background-color: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.gwp_ecal>div:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gwp_calname {
  margin-left: 5px;
  cursor: pointer;
}

.gwp_calname>h4 {
  margin-top: 0;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 15px;
}

.gwp_calurl {
  margin-left: 10px;
  font-size: 14px;
  color: #666;
  word-break: break-all;
}

.gwp_caldelete {
  margin-left: 10px;
}

/* External calendar events (edit popup) */
.gwp_ecalevent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.gwp_ecalevent:last-child {
  border-bottom: none;
}

.gwp_ecaltitle {
  font-weight: 500;
  flex: 1;
  min-width: 120px;
}

.gwp_ecebutton {
  display: inline-flex;
}

/* ===== CONTACT FIELDS ===== */

.gwp_cfieldinfo {
  background-color: #f8f9fa;
  margin-bottom: 6px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #333;
  display: block;
  font-size: 14px;
}

.gwp_cfield {
  background-color: #ffffff;
}

.gwp_ctoggleoptions {
  display: none;
}

.gwp_sort {
  font-size: 20px;
  color: #999;
  cursor: grab;
}

#gwp_oaddapi,
#gwp_iaddapi {
  margin-top: 8px;
}

/* Contact field builder */
.gwp_parentframe {
  background-color: #ffffff;
  padding: 12px;
}

.gwp_ctitle {
  display: inline-block;
  width: 90%;
}

.gwp_formframe {
  background-color: #ffffff;
  margin: 4px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 12px;
  min-height: 500px;
}

/* Draggable field types */
.draggablefield {
  width: 250px;
  background-color: var(--accent1);
  color: #ffffff;
  margin: 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-size: 14px;
  cursor: grab;
  transition: opacity 0.12s;
}

.draggablefield:hover {
  opacity: 0.9;
}

.draggablefield:active {
  cursor: grabbing;
  opacity: 0.8;
}

.mousefollow {
  width: 250px;
  background-color: var(--accent1);
  color: #ffffff;
  margin: 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 14px;
}

.sdraggablefield {
  width: 250px;
  background-color: var(--accent1);
  color: #ffffff;
  margin: 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 14px;
  opacity: 0.6;
}

/* ===== GROUP PERMISSIONS / INVITES ===== */

.gwp_rpermission {
  margin-left: 16px;
  margin-bottom: 10px;
}

.gwp_settings_btn_row {
  margin: 10px 0;
}

.gwp_rinvite {
  background-color: #fafafa;
  border: 1px solid #f0f0f0;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
}

.gwp_rinviteheader {
  width: 100%;
  margin: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gwp_rinvitelink {
  cursor: pointer;
  color: var(--accent1);
}

.gwp_rinvitelink:hover {
  text-decoration: underline;
}

.gwp_removepermission {
  margin-left: auto;
  transition: all 0.15s;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: #ef4444;
  cursor: pointer;
  opacity: 0.7;
}

.gwp_removepermission:hover {
  opacity: 1;
}

.gwp_rinvitedata {
  background-color: transparent;
  margin: 5px;
}

.gwp_rinvitetitle {
  font-weight: 600;
  font-size: 14px;
  color: #444;
}

.gwp_rinvitetitle,
.gwp_rinvitedata {
  display: inline-block;
  margin-left: 5px;
}

/* ===== YouTube OAuth Channel Card ===== */
.gwp_yt_channel_card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 8px;
}
.gwp_yt_channel_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.gwp_yt_channel_title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.gwp_yt_channel_sub {
    font-size: 12px;
    color: #6b7280;
    font-family: monospace;
}

/* YouTube settings sections */
.gwp_yt_section_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.gwp_yt_section_header span {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gwp_yt_items_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gwp_yt_item_row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fafbfc;
}
.gwp_yt_item_row:hover {
    border-color: #d1d5db;
}
.gwp_yt_item_icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f1f5f9;
}
.gwp_yt_item_icon img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}
.gwp_yt_item_info {
    flex: 1;
    min-width: 0;
}
.gwp_yt_item_label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}
.gwp_yt_item_sub {
    font-size: 11px;
    color: #9ca3af;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gwp_yt_item_badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #6b7280;
    white-space: nowrap;
}
.gwp_yt_item_remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
}
.gwp_yt_item_remove:hover {
    color: #dc2626;
    background: #fef2f2;
}
.gwp_yt_empty {
    font-size: 12px;
    color: #9ca3af;
    padding: 8px 0;
}

/* ===== GOOGLE / API KEYS ===== */

.gwp_gversion {
  width: 50%;
}

.gwp_gkeyblock {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.gwp_gkeyblock b {
  white-space: nowrap;
  min-width: 120px;
}

.gwp_gapi {
  margin: 16px 0 10px 10px;
}

.gwp_gkey {
  display: inline-block;
  width: 50%;
  padding: 10px 14px;
  border: 1px solid #e5e7eb !important;
  background-color: #fafafa !important;
  border-radius: 6px;
  margin-left: 5px;
  font-family: monospace;
  font-size: 14px;
}

.gwp_token {
  font-size: 12px;
  font-style: italic;
  margin: 10px 5px;
  color: #888;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gwp_tokentitle {
  display: inline-block;
  font-weight: 600;
  vertical-align: top;
  margin-right: 5px;
  font-style: normal;
  color: #444;
}

.gwp_tokenvalue {
  display: inline-block;
  inline-size: 50%;
  vertical-align: top;
  word-break: break-all;
  font-family: monospace;
}

/* Filter settings tab bar */
.gwp_filtersettings {
  display: inline-block;
  font-size: 14px;
}

/* Sync alerts */
.syncalert {
  margin-left: 10px;
  display: inline-block !important;
  width: 5%;
  border-left: 3px solid #333;
}

.syncalert-box {
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.syncsuccess {
  color: #22c55e;
  text-align: center;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 8px;
  display: none;
}

.csyncsuccess {
  color: #22c55e;
  text-align: center;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 8px;
  display: none;
}

/* Mailing list settings */
.gwp_mlist {
  display: block;
  padding: 2px 0;
}

.ms_setting {
  margin-top: 16px;
  margin-bottom: 16px;
}

.gwp_mlisttitle {
  display: inline-block;
  margin-top: 2px;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 15px;
  color: #444;
}

.gwp_mlistinput {
  display: inline-block;
  margin-left: 5px;
}

/* Tab content */
.main [type=radio] {
  display: none;
}

.main {
  min-width: 320px;
  max-width: 100%;
}

.gwp_scontent {
  margin-top: 16px;
  display: none;
  padding: 16px 0 5px;
}

.tablinput {
  display: none;
}

/* Colour picker inputs */
.gwp_lcpicker {
  width: 48px;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  padding: 2px;
  vertical-align: middle;
}

@media screen and (max-width: 400px) {
  .tablabel {
    padding: 15px 10px;
  }
}

/* ===== WEBSOCKET SETTINGS TAB ===== */
.gwp_ws_env_bar {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--swp-bg-secondary, #f4f5f7);
  border: 1px solid var(--swp-border, #e0e0e0);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}
.gwp_ws_global_actions {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gwp_ws_cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.gwp_ws_card {
  background: var(--swp-bg-primary, #fff);
  border: 1px solid var(--swp-border, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
}
.gwp_ws_card_header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--swp-border, #eee);
  font-size: 15px;
}
.gwp_ws_dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gwp_ws_dot_online  { background: #00a32a; }
.gwp_ws_dot_offline { background: #d63638; }
.gwp_ws_dot_missing { background: #dba617; }
.gwp_ws_card_body {
  padding: 12px 16px;
}
.gwp_ws_row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--swp-border, #f0f0f0);
}
.gwp_ws_row:last-child { border-bottom: none; }
.gwp_ws_label {
  color: var(--swp-text-secondary, #6b7280);
  min-width: 90px;
}
.gwp_ws_bridge {
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--swp-bg-secondary, #f0f6fc);
  border-radius: 6px;
  font-size: 12px;
}
.gwp_ws_card_actions {
  padding: 10px 16px;
  border-top: 1px solid var(--swp-border, #eee);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gwp_ws_card_msg {
  font-size: 13px;
}
.gwp_ws_log {
  background: #1d2327;
  color: #c3c4c7;
  font-family: monospace;
  font-size: 11px;
  padding: 10px 16px;
  max-height: 100px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
}

/* Compliance — global default notification rules (Settings > Compliance tab) */
.gwp_cgd_row {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.gwp_cgd_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.gwp_cgd_days_wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.gwp_cgd_days {
  width: 56px;
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.gwp_cgd_del {
  color: #dc3545;
  padding: 4px 9px;
  flex-shrink: 0;
}
.gwp_cgd_resp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 10px;
}
.gwp_cgd_emails {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gwp_cgd_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gwp_cgd_add_row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.gwp_cgd_search_wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
  max-width: 240px;
}
.gwp_cgd_msearch {
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}
.gwp_cgd_msearch_results {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  margin-top: 2px;
}
.gwp_cgd_msearch_row {
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}
.gwp_cgd_msearch_row:last-child { border-bottom: none; }
.gwp_cgd_msearch_row:hover { background: #f0f7ff; }
.gwp_cgd_msearch_row_disabled { color: #aaa; cursor: default; }
.gwp_cgd_msearch_row_disabled:hover { background: none; }
.gwp_cgd_free {
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: auto;
  max-width: 180px;
  min-width: 100px;
  flex: 1;
}
.gwp_cgd_tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e3f2fd;
  color: #1565c0;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}
.gwp_cgd_tag_x {
  cursor: pointer;
  color: #999;
  font-size: 13px;
  line-height: 1;
}
.gwp_cgd_tag_x:hover {
  color: #dc3545;
}
.gwp_cgd_perm_list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}
.gwp_eap_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.gwp_eap_swatchrow {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff;
}
.gwp_eap_swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
  display: inline-block;
}
.gwp_eap_hex {
  font-size: 12px;
  font-family: monospace;
}
.gwp_eap_addrow {
  display: flex;
  align-items: center;
  gap: 10px;
}