/* Meeting Scheduler pages (13 Nov design: create-scheduling-page, create-meeting, meeting-details-page,
   sales-calender). Rules the pages need from design files that are not imported whole:
   - sales-workspace.css: only .sw-page / .sw-header / .sw-trophy (the rest is the Sales Workspace page)
   - meeting-details-page.css: only its own .mdp-* additions; it repeats create-meeting.css (imported)
     and its overrides of .gm-* / textarea are scoped under .mdp-page so the create wizard keeps its own. */

.sw-page {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0px;
  color: var(--text);
  min-width: 0;
  position: relative;
}
.sw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.sw-header h1 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 650;
  margin: 0;
}
.sw-header h1 > span:first-child {
  color: var(--text-subtle);
  padding: 0 5px;
}
.sw-trophy {
  font-size: 38px;
  margin-bottom: 2px;
}
.sw-trophy img,
.sw-deal-illustration img,
.sales-tasks-img {
  width: 80px;
  height: 80px;
  object-fit: scale-down;
  margin: 0 auto;
}

/* ---- meeting-details-page.css (edit a scheduling page) ---- */
.mdp-page textarea{resize: none!important;}
.mdp-page .gm-workspace{width:min(1200px,calc(100% - 48px))}
.mdp-page .gm-automation-content{width:min(100%, 1200px)}
/* Meeting Details copy page header, tabs, actions and dialogs. Original create-meeting assets remain untouched. */
.mdp-header{position:relative;background:var(--surface,#fff);border-bottom:1px solid var(--border,#e4e7ec);padding:12px max(24px,calc((100% - 1240px)/2)) 0;color:var(--text,#101828)}
.mdp-heading-row{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:28px}
.mdp-back-link{display:inline-flex;align-items:center;gap:7px;color:var(--text,#101828);font-size:14px;font-weight:600;text-decoration:none}.mdp-back-link span{font-size:21px;font-weight:400;color:var(--text-muted,#475467)}
.mdp-heading-actions{display:flex;align-items:center;gap:12px}
.mdp-actions-wrap{position:relative}
.mdp-action-button,.mdp-troubleshoot{height:38px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:22px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.mdp-action-button{border:1px solid var(--border-strong,#d0d5dd);background:var(--surface,#fff);color:var(--text,#101828)}
.mdp-action-button svg,.mdp-troubleshoot svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.mdp-troubleshoot{border:1px solid var(--brand-ink,#2456e6);background:var(--brand-ink,#2456e6);color:#fff}.mdp-troubleshoot:hover{filter:brightness(.94)}
.mdp-actions-menu{position:absolute;z-index:2200;top:calc(100% + 6px);right:0;width:146px;padding:8px 0;border:1px solid var(--border-strong,#d0d5dd);border-radius:16px;background:var(--surface,#fff);box-shadow:0 10px 28px rgba(16,24,40,.16)}
.mdp-actions-menu[hidden],.mdp-modal-backdrop[hidden],.mdp-toast[hidden]{display:none!important}
.mdp-actions-menu button{display:block;width:100%;padding:11px 20px;border:0;background:transparent;color:var(--text,#101828);text-align:left;font:inherit;font-size:14px;cursor:pointer}.mdp-actions-menu button:hover{background:var(--surface-2,#f9fafb)}
.mdp-title-row{display:flex;align-items:center;gap:9px;margin:4px 0 14px}.mdp-title-row h1{margin:0;color:var(--text,#101828);font-size:20px;line-height:1.35;font-weight:650}.mdp-default-badge{display:inline-flex;align-items:center;padding:3px 8px;border:1px solid var(--border-strong,#d0d5dd);border-radius:5px;background:var(--surface-2,#f9fafb);font-size:12px;color:var(--text,#101828)}
.mdp-notice{display:flex;align-items:center;min-height:60px;padding:14px 20px;border:1px solid var(--brand);border-radius:16px;background:var(--brand-soft);color:var(--text,#101828);font-size:14px}
.mdp-main-tabs{display:flex;align-items:stretch;gap:42px;margin:14px 0 0;padding:0 14px;border-bottom:0;min-height:50px}.mdp-main-tabs button{position:relative;display:flex;align-items:center;padding:0 14px;border:0;background:transparent;color:var(--text,#101828);font:inherit;font-size:14px;cursor:pointer}.mdp-main-tabs button:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:5px;border-radius:5px 5px 0 0;background:transparent}.mdp-main-tabs button.is-active{font-weight:600}.mdp-main-tabs button.is-active:after{background:var(--brand)}
.mdp-legacy-compat,.mdp-legacy-controls{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}
.mdp-page.gm-page{padding-bottom:0!important;min-height:calc(100vh - 120px)}.mdp-page .gm-workspace,.mdp-page .gm-step-view{margin-top:30px!important}
/* QA round 1 (BUG-01): the design's edit page (one-on-one) hid the wizard's static Welcome panel
   and tab here. The editor now shows the Welcome tab only on round robin pages, where it holds
   the HUB-662 welcome screen settings, so edit mode shows it as create mode does. */
/* App port: the design hides the wizard footer and has no save control; the edit page shows the
   footer only while there are unsaved changes (Discard / Save). */
.mdp-page .gm-footer:not(.is-dirty){display:none!important}
.mdp-toast{position:fixed;z-index:4000;top:16px;left:50%;transform:translateX(-50%);padding:16px 48px 16px 20px;border:1px solid var(--brand-ink,#2456e6);border-radius:14px;background:var(--surface,#fff);color:var(--text,#101828);box-shadow:0 8px 24px rgba(16,24,40,.12);font-size:14px;max-width:min(520px,calc(100vw - 24px))}
.mdp-modal-backdrop{position:fixed;z-index:3500;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.42);overflow:hidden}
.mdp-modal{display:flex;flex-direction:column;width:min(540px,calc(100vw - 32px));max-height:min(90vh,720px);overflow:hidden;border:1px solid var(--border,#e4e7ec);border-radius:17px;background:var(--surface,#fff);color:var(--text,#101828);box-shadow:0 18px 60px rgba(0,0,0,.22)}
.mdp-modal>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 28px;border-bottom:1px solid var(--border,#e4e7ec);flex:0 0 auto}.mdp-modal>header h2{margin:0;font-size:20px;font-weight:650}.mdp-modal-close{width:28px;height:28px;border:0;background:transparent;color:var(--text,#101828);font-size:26px;line-height:1;cursor:pointer}
.mdp-modal-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 28px;flex:1 1 auto}.mdp-modal-body>strong{font-size:15px}.mdp-modal-body>p{margin:6px 0 18px;font-size:14px;color:var(--text-muted,#475467);overflow-wrap:anywhere}.mdp-modal-body>label{display:block;margin:16px 0 6px;font-size:13px;font-weight:650}.mdp-modal-body>label span{color:#d92d20}.mdp-modal-body>label small{margin-left:4px;color:var(--text-muted,#475467)}.mdp-modal-help{margin:2px 0 6px!important;font-size:13px!important}.mdp-modal-body textarea{display:block;width:100%;height:155px;resize:vertical;padding:12px;border:1px solid var(--border-strong,#d0d5dd);border-radius:6px;background:var(--surface,#fff);color:var(--text,#101828);font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}.mdp-modal-inline-actions{display:flex;margin:10px 0 14px}.mdp-modal-inline-actions button{padding:7px 12px;border:1px solid var(--border-strong,#d0d5dd);background:var(--surface,#fff);color:var(--text,#101828);font-size:13px;cursor:pointer}.mdp-modal-inline-actions button:first-child{border-radius:18px 0 0 18px}.mdp-modal-inline-actions button:last-child{border-radius:0 18px 18px 0}.mdp-modal-body>input:not([type=checkbox]),.mdp-modal-body>select{width:100%;height:40px;padding:0 12px;border:1px solid var(--border-strong,#d0d5dd);border-radius:7px;background:var(--surface,#fff);color:var(--text,#101828);font:inherit;font-size:14px}.mdp-modal-body>input:focus{outline:2px solid var(--brand-ink,#2456e6);outline-offset:1px}.mdp-modal-body .mdp-send-message{display:block;margin-top:12px;padding:10px 18px;border:1px solid var(--border,#e4e7ec);border-radius:22px;background:var(--surface-2,#f9fafb);color:var(--text-muted,#475467);font-weight:600;cursor:pointer}.mdp-send-message:disabled{opacity:.55;cursor:not-allowed}.mdp-modal>footer{display:flex;align-items:center;gap:12px;padding:0 28px 24px;flex:0 0 auto}.mdp-primary-button,.mdp-secondary-button{min-height:40px;padding:0 22px;border-radius:22px;font:inherit;font-size:13px;font-weight:650;cursor:pointer}.mdp-primary-button{border:1px solid var(--brand-ink,#2456e6);background:var(--brand-ink,#2456e6);color:#fff}.mdp-secondary-button{border:1px solid var(--border-strong,#d0d5dd);background:var(--surface,#fff);color:var(--text,#101828)}.mdp-clone-modal{width:min(540px,calc(100vw - 32px))}.mdp-clone-modal .mdp-modal-body{padding-top:24px}.mdp-clone-help{margin:0 0 6px!important;font-weight:600!important;color:var(--text-muted,#667085)!important}.mdp-clone-modal select:disabled{background:var(--surface-2,#f9fafb);color:var(--text-muted,#667085)}.mdp-clone-error{margin:6px 0!important;color:#d92d20!important;font-weight:600}.mdp-clone-url{margin:8px 0 0!important;color:var(--text,#101828)!important}.mdp-modal-open{overflow:hidden!important}
@media(max-width:700px){.mdp-header{padding:12px 14px 0}.mdp-heading-row{align-items:flex-start}.mdp-heading-actions{gap:7px}.mdp-action-button,.mdp-troubleshoot{height:34px;padding:0 10px;font-size:12px}.mdp-troubleshoot{font-size:0}.mdp-troubleshoot svg{width:16px;height:16px}.mdp-title-row h1{font-size:17px}.mdp-notice{min-height:54px;padding:12px 14px;font-size:13px}.mdp-main-tabs{gap:12px;padding:0;min-height:48px}.mdp-main-tabs button{padding:0 10px;font-size:13px}.mdp-modal-backdrop{padding:12px}.mdp-modal{width:100%;max-height:calc(100dvh - 24px);border-radius:14px}.mdp-modal>header{padding:17px 18px}.mdp-modal-body{padding:18px}.mdp-modal>footer{padding:0 18px 18px}}


/* Embed Widget popup copied from Create scheduling page; scoped to this modal only. */
.mdp-embed-modal{width:min(540px,calc(100vw - 32px));max-height:min(90vh,720px);border-radius:17px}
.mdp-embed-modal>header{padding:16px 20px;border-bottom:1px solid var(--border);}
.mdp-embed-modal>header h2{font-size:20px;font-weight:650}
.mdp-embed-modal .mdp-modal-close{display:grid;place-items:center;width:28px;height:28px;font-size:0}
.mdp-embed-modal .mdp-modal-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.mdp-embed-modal .mdp-modal-body{padding:20px 28px 8px;overflow:auto}
.mdp-embed-meeting-title{display:block;margin:0 0 4px;font-size:15px;font-weight:700;color:var(--text)}
.mdp-embed-modal .mdp-embed-url{margin:0 0 16px;font-size:13px;color:var(--text-muted);overflow-wrap:anywhere}
.mdp-embed-modal .mdp-embed-code-label{display:block;margin:0 0 4px;font-size:13.5px;font-weight:600;color:var(--text)}
.mdp-embed-modal .mdp-embed-help{display:flex;align-items:center;gap:4px;margin:0 0 8px!important;font-size:13px!important;color:var(--text-muted)}
.mdp-embed-info{font-size:13px;color:var(--text-muted);cursor:help}
.mdp-embed-modal .mdp-modal-body textarea{height:153px;min-height:153px;resize:both;padding:12px;border-radius:8px;background:var(--surface-2);font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}
.mdp-embed-actions{display:inline-flex;margin:10px 0 14px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);overflow:hidden;background:var(--surface)}
.mdp-embed-actions button{height:34px;padding:0 16px;border:0;border-radius:0!important;background:var(--surface);color:var(--text);font-size:13px;font-weight:600;white-space:nowrap}
.mdp-embed-actions button+button{border-left:1px solid var(--border-strong)}
.mdp-embed-actions button:hover,.mdp-embed-actions button.is-active{background:var(--surface-hover)}
.mdp-embed-email-section[hidden]{display:none!important}
.mdp-embed-email-section{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:16px}
.mdp-embed-email-section input{width:100%;height:40px;padding:0 14px;border:1.5px solid var(--border-strong);border-radius:8px;background:var(--surface-2);color:var(--text);font:inherit;font-size:13.5px}
.mdp-embed-email-section input:focus{outline:2px solid var(--brand-ink);outline-offset:1px}
.mdp-embed-modal .mdp-send-message{margin:0;padding:10px 18px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text-muted);font-size:13.5px;font-weight:650}
.mdp-embed-modal .mdp-send-message:disabled{opacity:.7;cursor:not-allowed}
.mdp-embed-modal .mdp-send-message:not(:disabled){background:var(--brand-ink);border-color:var(--brand-ink);color:#fff;cursor:pointer}
.mdp-embed-modal>footer{padding:0 28px 24px}
.mdp-embed-modal>footer .mdp-primary-button{min-height:40px;padding:0 22px;border-radius:8px}
@media(max-width:700px){.mdp-embed-modal .mdp-modal-body{padding:18px 18px 8px}.mdp-embed-modal>footer{padding:0 18px 18px}.mdp-embed-actions button{padding:0 12px;font-size:12px}}

/* ---- App port additions (React controls in place of the design's script-built ones) ---- */
.gm-editor textarea.gm-editable{display:block;width:100%;border:0;resize:none;background:transparent;font:inherit;color:inherit;outline:none}
.gm-page .gm-switch.is-disabled,.gm-page .gm-editor.is-disabled,.gm-page [aria-disabled="true"]{cursor:not-allowed}
.gm-page .gm-switch.is-disabled span{opacity:.55}
.gm-page .gm-editor.is-disabled .gm-editable{background:var(--surface-2)}
.gm-page .gm-search-select-trigger:disabled,.gm-page .gm-inline-action:disabled,.gm-page .gm-email-preview-trigger:disabled{opacity:.55;cursor:not-allowed}
.gm-page .gm-search-select-option:disabled{color:var(--text-subtle);cursor:not-allowed}
.meeting-choice-card[aria-disabled="true"]:hover{border-color:var(--border-strong);box-shadow:none}
/* MT-12 (M-30): "Schedule page published!" after a new scheduling page (HubSpot). */
.mdp-published-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.mdp-published-choice{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px;border:1px solid var(--border-strong,#d0d5dd);border-radius:10px;background:var(--surface,#fff);color:var(--text,#101828);font:inherit;text-align:left;cursor:pointer}
.mdp-published-choice:hover,.mdp-published-choice:focus-visible{border-color:var(--brand-ink,#2456e6);background:var(--surface-hover,#f5f8fa);outline:none}
.mdp-published-choice strong{font-size:14px}
.mdp-published-choice span{font-size:13px;color:var(--text-muted,#475467)}
@media (max-width:560px){.mdp-published-choices{grid-template-columns:1fr}}
