select { width: 100%; padding: 10px 11px; border: 1px solid #cfd4cd; border-radius: 7px; background: #fff; font: 14px inherit; color: #152319; }
.mode-toggle { display: flex; gap: 5px; }
.toggle, .row-action { border: 1px solid #cfd4cd; border-radius: 6px; padding: 5px 7px; background: #fff; color: #4b5850; font: 700 10px inherit; cursor: pointer; }
.toggle.active { border-color: #1f6b4e; background: #e1f0e7; color: #1f6b4e; }
.row-action { display: block; margin: 0 0 4px; white-space: nowrap; }
.row-action.delete { color: #a7463f; }
.row-action:disabled { opacity: .4; cursor: not-allowed; }
.completed-link { margin-left: auto; margin-right: 18px; }
.metrics .booked { border-color: #b9dec6; background: #f4fbf5; }
.completed-list { display: grid; gap: 9px; margin-top: 18px; }
.playbook-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 0 0 7px; border-radius: 50%; background: #e8f0e9; color: #38634b; font-size: 11px; font-weight: 800; vertical-align: middle; }
.playbook-icon.urgent { background: #fde8e6; color: #ae3b32; }
.playbook-icon.standard { background: #e5eff8; color: #23639b; }
.playbook-icon.high { background: #fff1d7; color: #9a6518; }
.archive-links { display: flex; align-items: center; margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.header-action,.account-chip { border: 0; border-radius: 7px; padding: 7px 9px; background: transparent; color: var(--muted); font: 700 12px inherit; cursor: pointer; }
.header-action:hover,.account-chip:hover { background: var(--green-soft); color: var(--green); }
.account-chip { color: var(--ink); }
.header-actions .mode { gap: 6px; padding: 6px 8px; border-left: 1px solid var(--line); }
.header-actions .theme-toggle { padding: 6px 9px; }
.header-menu { position: relative; }
.header-menu .menu-popup { top: 38px; }
.header-menu .menu-popup a { display: block; border-radius: 5px; padding: 9px 10px; color: var(--ink); text-decoration: none; font: 700 12px inherit; }
.header-menu .menu-popup a:hover { background: var(--green-soft); color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.automation-mode-summary { color: var(--muted); font-size: 12px; }
.automation-mode-summary strong { color: var(--ink); }
.connection-indicator { align-items: center; }
.connection-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.connection-status.disconnected { color: #a45c19; background: #fff1db; }
.connection-status.connected { color: #176447; background: #e1f0e7; }
.pipeline-actions { display: flex; align-items: center; gap: 14px; }
.playbook-group { display: grid; gap: 8px; margin: 16px 0; }
.playbook-group > strong { font-size: 12px; }
.playbook-title-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.playbook-title-fields input { padding: 8px 9px; font-size: 12px; }
.plan-limit { margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 700; }
.playbook-group > small { color: var(--muted); font-size: 11px; }
.schedule-inputs { display: flex; flex-wrap: wrap; gap: 8px; }
.schedule-point { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.schedule-point span { display: flex; }
.schedule-point input { width: 54px; min-width: 0; border-radius: 7px 0 0 7px; }
.schedule-point select { width: 72px; border-left: 0; border-radius: 0 7px 7px 0; padding: 8px 5px; font-size: 12px; }
.add-followup { align-self: end; min-height: 37px; border: 1px dashed #9eaee5; border-radius: 7px; padding: 0 10px; background: transparent; color: var(--green); font: 700 12px inherit; cursor: pointer; }
.add-followup:hover { background: var(--green-soft); }

/* Keep subscription-locked playbooks discoverable without suggesting they are editable. */
.playbook-group.plan-locked {
  position: relative;
  opacity: .5;
  filter: grayscale(.3);
}

.playbook-group.plan-locked::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent);
  border-radius: 10px;
  pointer-events: none;
}

.playbook-group.plan-locked input:disabled,
.playbook-group.plan-locked select:disabled,
.playbook-group.plan-locked button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 84%, var(--muted));
  border-color: color-mix(in srgb, var(--muted) 38%, transparent);
}

.plan-lock-note {
  justify-self: start;
  margin: 2px 0 0;
  color: #9aa5b5;
  font-size: 11px;
  line-height: 1;
  opacity: .72;
  filter: grayscale(1);
  font-variant-emoji: text;
}
.automation-tools { display: flex; align-items: center; gap: 14px; }
.overflow-menu { position: relative; }
.menu-button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--muted); font: 800 20px/1 sans-serif; cursor: pointer; }
.menu-button:hover { color: var(--ink); border-color: #aeb9e5; }
.menu-popup { position: absolute; z-index: 4; right: 0; top: 38px; min-width: 166px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: 0 12px 30px #17213a22; }
.menu-popup button { width: 100%; border: 0; border-radius: 5px; padding: 9px 10px; background: transparent; color: var(--ink); text-align: left; font: 700 12px inherit; cursor: pointer; }
.menu-popup button:hover { background: var(--green-soft); color: var(--green); }
.approval-actions { display: flex; gap: 7px; margin-top: 12px; }
.approval-actions button { border: 1px solid #bdd6c4; border-radius: 6px; padding: 7px 9px; background: #fff; color: #1f6b4e; font: 700 12px inherit; cursor: pointer; }
.approval-actions button[data-reject] { border-color: #e5c2be; color: #a7463f; }
.action-spacer { width: 12px; }
.draft-body { margin-top: 16px; }
.draft-body textarea { min-height: 72px; line-height: 1.45; }
.draft-result textarea { min-height: 190px; line-height: 1.45; }
dialog textarea { height: auto; overflow: hidden; resize: none; }
#draftForm textarea { min-height: 190px; line-height: 1.45; }
.form-grid select { width: 100%; padding: 10px 11px; border: 1px solid #cfd4cd; border-radius: 7px; background: #fff; color: #152319; font: 14px inherit; outline: none; }
.form-grid select:focus { border-color: var(--green); box-shadow: 0 0 0 3px #1f6b4e1d; }
.email-connect { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: -8px; padding: 14px; border: 1px solid #d9e7dc; border-radius: 8px; background: #f5faf5; }
.email-connect strong { font-size: 13px; }
.email-connect p { margin: 3px 0 0; color: #6e786f; font-size: 12px; line-height: 1.4; }
.email-connect .button { flex: 0 0 auto; padding: 8px 11px; font-size: 12px; }
.brand-mark { background: linear-gradient(135deg, #1f6b4e, #2f8563); box-shadow: 0 5px 14px #1f6b4e33; }
.brand { color: #10261b; }
.intro .eyebrow { color: #1f6b4e; }
.incoming-message { margin: 0 0 16px; padding: 12px; border-left: 3px solid #c9dccd; background: #f5faf5; color: #405047; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.response-label { margin-top: 20px; }
.hidden { display: none; }
.draft-result { margin-top: 16px; }
#headerDeliveryMode { width: auto; padding: 2px 18px 2px 2px; border: 0; background: transparent; color: #566158; font: 13px inherit; font-weight: 650; cursor: pointer; }
