/* Group meeting overview screen — uses CRM theme tokens from base.css/utilities.css */
.gm-page{--gm-gap:var(--sp-4,16px);color:var(--text);background:var(--bg);min-height:100vh;padding-bottom:90px}
.gm-page *{box-sizing:border-box}
/* App port: the design hid every .theme-toggle on the page; scoped so the CRM shell keeps its toggle. */
.gm-page .theme-toggle{display: none;}
#gm-member-chips{display: flex;flex-wrap: wrap; gap: 7px;}
.gm-topbar{display:grid;grid-template-columns:220px minmax(360px,1fr) 90px;align-items:start;gap:24px;padding:18px 24px 14px;border-bottom:1px solid var(--border);background:var(--surface)}
.gm-page-name,.gm-step-count{font-size:13px;font-weight:650;color:var(--text)}
.gm-step-count{text-align:right;white-space:nowrap}
.gm-progress{display:flex;align-items:flex-start;justify-content:space-between;gap:0;padding:0 6px}
.gm-progress-step{display:flex;min-width:82px;flex-direction:column;align-items:center;gap:5px;color:var(--text-muted);font-size:12px;font-weight:600;white-space:nowrap}
.gm-progress-dot{display:grid;place-items:center;width:22px;height:22px;border:2px solid var(--border-strong);border-radius:50%;background:var(--surface);color:var(--text-muted);font-size:10px}
.gm-progress-step.is-current .gm-progress-dot,.gm-progress-step.is-complete .gm-progress-dot{border-color:var(--brand,var(--brand-ink));color:var(--brand,var(--brand-ink))}
.gm-progress-step.is-current .gm-progress-dot{background:var(--surface)}
.gm-progress-step.is-complete .gm-progress-dot{background:var(--brand,var(--brand-ink));color:#fff}
.gm-progress-step.is-current,.gm-progress-step.is-complete{color:var(--text)}
.gm-progress-line{height:2px;flex:1;margin:10px 8px 0;background:var(--border-strong)}
.gm-workspace{width:min(1090px,calc(100% - 48px));margin:36px auto 0;display:grid;grid-template-columns:minmax(0,520px) minmax(360px,520px);gap:52px;align-items:start}
.gm-form-column h1{font-size:19px;line-height:1.35;font-weight:650;margin:0 0 28px;color:var(--text)}
.gm-field{position:relative;margin-bottom:20px}
.gm-field>label,.gm-field>div>label{display:block;margin:0 0 7px;font-size:13px;font-weight:650;color:var(--text)}
.gm-required{color:var(--brand,var(--brand-ink))}
.gm-info{display:inline-block;margin-left:4px;color:var(--text-subtle);font-size:12px;cursor:help}
.gm-help{font-size:13px;line-height:1.45;color:var(--text-muted);margin:10px 0}
.gm-organizer-help{margin:-3px 0 5px;font-weight:550}
.gm-field input:not([type=checkbox]),.gm-field select{width:100%;height:39px;border:1px solid var(--border-strong);border-radius:6px;padding:0 13px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;outline:none}
.gm-field select:disabled{background:var(--surface-2);color:var(--text-muted);opacity:1}
.gm-field input:focus,.gm-field select:focus,.gm-editable:focus{border-color:var(--brand-ink);box-shadow:0 0 0 3px var(--focus-ring,rgba(36,86,230,.15));outline:none}
.gm-toggle-field{display:flex;align-items:center;justify-content:space-between;gap:18px}
.gm-toggle-field>div>label{margin-bottom:6px}
.gm-switch{position:relative;display:inline-flex;flex:0 0 48px;width:48px;height:25px;margin:0;cursor:pointer}
.gm-switch input{position:absolute;width:1px;height:1px;opacity:0}
.gm-switch span{position:absolute;inset:0;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface-2);transition:background .15s}
.gm-switch span:before{content:"";position:absolute;left:1px;top:1px;width:21px;height:21px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);transition:transform .15s}
.gm-switch input:checked+span{background:var(--brand-ink);border-color:var(--brand-ink)}
.gm-switch input:checked+span:before{transform:translateX(22px);border-color:var(--surface)}
.gm-switch input:focus-visible+span{outline:2px solid var(--brand-ink);outline-offset:2px}
.gm-editor{position:relative;min-height:75px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);overflow:visible}
.gm-editable{min-height:40px;padding:12px 12px 42px;border-radius:6px;color:var(--text);font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.gm-editable:empty:before{content:attr(data-placeholder);color:var(--text-subtle);pointer-events:none}
.gm-editor-actions{position:absolute;right:8px;bottom:6px}
.gm-editor-toolbar{position:absolute;left:8px;right:8px;bottom:6px;display:flex;align-items:center;gap:10px}
.gm-editor-toolbar>button:not(.gm-text-button){border:0;background:transparent;padding:2px;color:var(--text-muted);font-size:15px;cursor:pointer}
.gm-toolbar-divider{height:19px;width:1px;background:var(--border)}
.gm-text-button{border:0;background:transparent;color:var(--text);font-size:13px;font-weight:650;padding:4px 5px;cursor:pointer}
.gm-text-button span{color:var(--text-muted)}
.gm-description-editor .gm-editable{min-height:72px;padding-bottom:43px}
.gm-cancel-default{margin:10px 12px 12px;font-size:14px;color:var(--text)}
.gm-cancel-default p{margin:0 0 4px}.gm-cancel-default ul{margin:0;padding-left:22px}.gm-cancel-default li{padding:2px 0}
.gm-link-token{display:inline-block;padding:2px 7px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface-2);font-size:12px}
.gm-preview-column{position:sticky;top:24px;padding-top:42px}
.gm-browser{border:1px solid var(--border);border-radius:5px;overflow:hidden;background:var(--surface)}
.gm-browser-top{height:30px;display:flex;align-items:center;gap:5px;padding:0 13px;border-bottom:1px solid var(--border-strong)}
.gm-browser-top span{width:7px;height:7px;border-radius:50%;background:var(--text)}
.gm-browser-address{height:27px;margin:5px 8px;border:1px solid var(--border-strong);border-radius:18px}
.gm-preview-canvas{position:relative;isolation:isolate;display:flex;align-items:center;min-height:325px;margin:5px 16px 16px;padding:32px;background:var(--surface);border:1px solid var(--border);border-radius:3px;overflow:hidden}
.gm-preview-grid{position:absolute;inset:0;z-index:-1;background-image:linear-gradient(to right,var(--surface-3) 1px,transparent 1px),linear-gradient(to bottom,var(--surface-3) 1px,transparent 1px);background-size:20% 20%;opacity:.65}
.gm-preview-event{position:relative;width:240px;min-height:180px;padding:18px 16px;border-radius:5px;background:var(--surface);box-shadow:0 3px 12px rgba(16,24,40,.15);font-size:12px}
.gm-preview-event-title{font-size:13px;line-height:1.6;font-weight:650;margin-bottom:12px;overflow-wrap:anywhere}
.gm-token{display:inline-block;margin:0 2px 2px 0;padding:1px 5px;border-radius:4px;background:var(--brand-soft);color:var(--brand-ink);font-weight:600;font-size: 13px;}
.gm-preview-person{display:flex;align-items:center;gap:9px;margin-bottom:14px;color:var(--text)}
.gm-avatar{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--brand-soft);color:var(--brand-ink)}
.gm-preview-person strong,.gm-preview-person small{display:block}.gm-preview-person strong{font-size:12px}.gm-preview-person small{margin-top:2px;color:var(--text-muted);font-size:11px}
.gm-preview-detail{display:flex;gap:10px;margin-top:12px;color:var(--text-subtle);font-size:13px}.gm-preview-detail span{color:var(--text-muted)}
.gm-preview-block{position:absolute;right:12%;top:39%;width:21%;height:82px;border-radius:4px;background:var(--surface-3);border:1px solid var(--border)}
.gm-footer{position:fixed;z-index:20;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:12px 24px;border-top:1px solid var(--border-strong);background:var(--surface)}
.gm-footer-actions{display:flex;gap:10px}
.gm-footer-cancel{border:0;background:transparent;color:var(--brand-ink);font-size:13px;font-weight:650;cursor:pointer}
.gm-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:38px;padding:0 18px;border:1px solid transparent;border-radius:20px;font-size:13px;font-weight:650;cursor:pointer}
.gm-btn-primary{background:var(--brand-ink);color:var(--brand-contrast,#fff)}
.gm-btn-primary:disabled{background:var(--surface-3);color:var(--text-subtle);cursor:not-allowed}
.gm-btn-outline{border-color:var(--border-strong);background:var(--surface);color:var(--text)}
.gm-token-popover{position:fixed;z-index:1500;top:42%;left:50%;width:min(370px,calc(100vw - 24px));padding:22px;border:1px solid var(--border);border-radius:15px;background:var(--surface);color:var(--text);box-shadow:0 16px 50px rgba(16,24,40,.22);transform:translate(-50%,-50%)}
.gm-token-popover[hidden]{display:none!important}
.gm-popover-caret{position:absolute;top:-8px;left:22px;width:15px;height:15px;background:var(--surface);border-top:1px solid var(--border);border-left:1px solid var(--border);transform:rotate(45deg)}
.gm-token-popover h2{margin:0 0 20px;font-size:16px}.gm-token-popover label{display:block;margin-bottom:8px;font-size:13px;font-weight:650}
.gm-token-popover input,.gm-token-popover select{width:100%;border:1px solid var(--border-strong);border-radius:7px;padding:10px;background:var(--surface);color:var(--text);font:inherit;font-size:13px}
.gm-token-popover select{margin-top:8px;height:125px}
.gm-popover-actions{display:flex;gap:10px;margin-top:16px}
@media(max-width:1000px){.gm-topbar{grid-template-columns:1fr auto;gap:16px}.gm-progress{grid-column:1/-1;grid-row:2}.gm-step-count{grid-column:2;grid-row:1}.gm-workspace{grid-template-columns:minmax(0,1fr);gap:24px;width:min(650px,calc(100% - 32px));margin-top:28px}.gm-preview-column{position:static;padding-top:0}.gm-preview-canvas{min-height:260px}.gm-form-column h1{margin-bottom:22px}}
@media(max-width:600px){.gm-page{padding-bottom:78px}.gm-topbar{padding:14px 14px 12px;grid-template-columns:1fr auto}.gm-page-name{font-size:12px}.gm-step-count{font-size:11px}.gm-progress{padding:0;overflow:hidden}.gm-progress-step{min-width:64px;font-size:10px}.gm-progress-dot{width:20px;height:20px}.gm-progress-line{margin-top:9px;margin-left:3px;margin-right:3px}.gm-workspace{width:calc(100% - 28px);margin-top:22px}.gm-form-column h1{font-size:18px}.gm-field{margin-bottom:17px}.gm-preview-canvas{min-height:230px;padding:18px}.gm-preview-event{width:min(240px,78%);padding:14px}.gm-footer{min-height:58px;padding:9px 14px}.gm-token-popover{top:50%;padding:18px}.gm-token-popover select{height:110px}}

/* Screenshot-aligned popovers and custom controls */
.gm-info svg{width:14px;height:14px;display:inline-block;vertical-align:-2px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.gm-editor-toolbar>button svg{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.gm-editor-toolbar>button:first-child svg{fill:none;stroke-width:1.5}
.gm-token-popover,.gm-link-popover{position:fixed;z-index:1600;transform:none;top:0;left:0;visibility:visible;}
.gm-token-popover{width:min(370px,calc(100vw - 24px));padding:22px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 12px 38px rgba(16,24,40,.18)}
.gm-token-popover h2,.gm-link-popover h2{font-size:16px;font-weight:650;margin:0 0 22px;color:var(--text)}
.gm-token-popover input[type=search]{height:40px;border:1px solid var(--border-strong);border-radius:22px;padding:0 16px;margin:0;}
.gm-token-popover input[type=search]:focus,.gm-link-popover input:focus{outline:2px solid var(--brand-ink);outline-offset:0;border-color:var(--brand-ink);box-shadow:none}
.gm-token-popover select{display:block;width:100%;height:180px;margin-top:4px;padding:8px 0;border:1px solid var(--border);border-radius:14px;background:var(--surface);overflow:auto}
.gm-token-popover select option{padding:10px 14px;min-height:36px}
.gm-token-popover select option:checked{background:var(--surface-3);color:var(--text)}
.gm-popover-caret,.gm-link-caret{position:absolute;top:-8px;width:15px;height:15px;background:var(--surface);border-top:1px solid var(--border);border-left:1px solid var(--border);transform:rotate(45deg)}
.gm-link-popover{width:min(330px,calc(100vw - 24px));padding:22px 24px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 12px 38px rgba(16,24,40,.18)}
.gm-link-popover h2{margin-bottom:20px}
.gm-link-popover>label:not(.gm-link-newtab){display:block;margin:0 0 7px;font-size:13px;font-weight:650}
.gm-link-popover>input{width:100%;height:40px;margin:0 0 16px;padding:0 12px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);font:inherit;font-size:14px}
.gm-link-newtab{display:flex;align-items:center;gap:9px;margin:0;font-size:13px;color:var(--text)}
.gm-link-newtab input{width:18px;height:18px;accent-color:var(--brand-ink)}
.gm-link-popover .gm-popover-actions{margin-top:16px}
.gm-select-wrap{position:relative;width:100%}
.gm-field .gm-native-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.gm-select-trigger{width:100%;height:39px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 13px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;text-align:left;cursor:pointer}
.gm-select-trigger svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.gm-select-trigger:focus-visible{outline:2px solid var(--brand-ink);outline-offset:2px}
.gm-select-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:1400;max-height:220px;overflow:auto;padding:4px 0;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 12px 28px rgba(16,24,40,.12)}
.gm-select-menu[hidden]{display:none!important}
.gm-select-option{display:block;width:100%;padding:12px 16px;border:0;background:transparent;color:var(--text);font:inherit;font-size:14px;text-align:left;cursor:pointer}
.gm-select-option:hover,.gm-select-option:focus-visible{background:var(--surface-3);outline:none}
@media(max-width:600px){.gm-token-popover,.gm-link-popover{max-width:calc(100vw - 24px);padding:18px}.gm-token-popover select{height:150px}.gm-link-popover{width:calc(100vw - 24px)}}

/* Final screenshot-matching details: SVG-only controls, native-looking tooltip and grouped token picker. */
.gm-info{position:relative;display:inline-flex;align-items:center;vertical-align:middle}
.gm-info:hover:after,.gm-info:focus-visible:after{content:attr(title);position:absolute;z-index:1700;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);width:230px;padding:10px 12px;border-radius:7px;background:#151515;color:#fff;font-size:13px;font-weight:500;line-height:1.45;white-space:normal;box-shadow:0 8px 24px rgba(0,0,0,.18);pointer-events:none}
.gm-info:hover:before,.gm-info:focus-visible:before{content:"";position:absolute;z-index:1701;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%);border:6px solid transparent;border-top-color:#151515;pointer-events:none}
.gm-text-button{display:inline-flex;align-items:center;gap:5px}
.gm-text-button svg,.gm-btn svg{width:14px;height:14px;display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.gm-avatar svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.gm-preview-detail svg{flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.gm-link-token{color:var(--text);text-decoration:none;cursor:pointer}
.gm-token-list{height:245px;max-height:245px;overflow:auto;margin-top:4px;border:1px solid var(--border);border-radius:14px;background:var(--surface);padding:8px 0}
.gm-token-group{padding:0 0 5px}
.gm-token-group[hidden],.gm-token-option[hidden]{display:none!important}
.gm-token-group>strong{display:block;padding:14px 20px 7px;font-size:13px;font-weight:700;color:var(--text)}
.gm-token-option{display:block;width:100%;min-height:38px;padding:9px 18px 9px 36px;border:0;background:transparent;color:var(--text);font:inherit;font-size:13px;text-align:left;cursor:pointer}
.gm-token-option:hover,.gm-token-option.is-selected{background:var(--surface-3)}
.gm-token-option:focus-visible{outline:2px solid var(--brand-ink);outline-offset:-2px}
.gm-token-empty{margin:0;padding:14px 20px;font-size:13px;color:var(--text-muted)}
.gm-select-menu{border-radius:16px;padding:4px 0}
.gm-select-option{padding:12px 16px}
.gm-select-option:hover,.gm-select-option:focus-visible{background:var(--surface-3)}
@media(max-width:600px){.gm-info:hover:after,.gm-info:focus-visible:after{left:0;transform:none;width:min(230px,calc(100vw - 40px))}.gm-info:hover:before,.gm-info:focus-visible:before{left:7px}}

/* Popup scroll and caret-direction fix */
.gm-token-popover, .gm-link-popover { max-height: min(460px, calc(100dvh - 24px)); overflow: visible; }
.gm-token-list { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.gm-popover-caret, .gm-link-caret { z-index: 1; pointer-events: none; }
.gm-token-popover[data-placement="above"] .gm-popover-caret,
.gm-link-popover[data-placement="above"] .gm-link-caret { top: auto; bottom: -8px; }
.gm-token-popover[data-placement="below"] .gm-popover-caret,
.gm-link-popover[data-placement="below"] .gm-link-caret { top: -8px; bottom: auto; }

/* Keep generated cancel/reschedule links within the description editor frame. */
.gm-description-editor .gm-editable { padding-bottom: 48px; }
.gm-description-editor .gm-generated-cancel-links { margin: 0; }
.gm-description-editor .gm-generated-cancel-links p { margin: 0 0 4px; }
.gm-description-editor .gm-generated-cancel-links ul { margin: 0; padding-left: 22px; }
.gm-description-editor .gm-generated-cancel-links li { padding: 2px 0; }
.gm-description-editor .gm-generated-cancel-links a { display: inline-block; padding: 2px 8px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text); background: var(--surface-2); text-decoration: none; }

/* Event-title personalization chips match the reference screenshot. */
.gm-editable .gm-token,
.gm-preview-event-title .gm-token {
  display:inline-flex;
  align-items:center;
  gap:5px;
  max-width:100%;
  margin:1px 3px 2px 0;
  padding:1px 6px;
  border:1px solid #ff704d;
  border-radius:7px;
  background:#fff0eb;
  color:#202b3c;
  font-size:14px;
  line-height:17px;
  font-weight:500;
  white-space:normal;
  vertical-align:baseline;
}
.gm-editable .gm-token svg,
.gm-preview-event-title .gm-token svg {
  width:13px;
  height:13px;
  flex:0 0 13px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.35;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.gm-editable .gm-token--company,
.gm-preview-event-title .gm-token--company {
  border-color:#69b8ff;
  background:#e6f3ff;
}
.gm-editable .gm-token--host,
.gm-preview-event-title .gm-token--host {
  border-color:#ff704d;
  background:#fff0eb;
}

/* Personalization dropdown: visible grouped list beneath the search trigger when opened. */
.gm-token-popover { overflow: visible; }
.gm-token-popover #gm-token-search {
  display:block;
  width:100%;
  height:40px;
  border:1px solid var(--border-strong);
  border-radius:8px;
  padding:0 16px;
  margin:0;
  background:var(--surface);
  color:var(--text);
}
.gm-token-popover #gm-token-search:focus {
  outline:2px solid var(--brand-ink);
  outline-offset:0;
  border-color:var(--brand-ink);
  box-shadow:none;
}
.gm-token-list {
  display:block;
  height:245px;
  max-height:245px;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  margin-top:8px;
  padding:8px 0;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface);
}
.gm-token-group>strong { padding:14px 20px 7px; }
.gm-token-option { padding-left:36px; }
.gm-token-option.is-selected { background:var(--surface-3); }

/* Screenshot-accurate token dropdown state and theme-native popup buttons. */
#gm-token-select.gm-token-list { display:none; }
#gm-token-select.gm-token-list.is-open {
  display:block;
  position:relative;
  z-index:2;
  margin-top:8px;
  height:245px;
  max-height:245px;
  overflow-y:auto;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface);
  box-shadow:0 8px 20px rgba(16,24,40,.08);
}
.gm-token-popover .gm-popover-actions .gm-btn {
  min-height:38px;
  padding:0 18px;
  border-radius:8px;
  font:inherit;
  font-size:13px;
  font-weight:650;
}
.gm-token-popover .gm-popover-actions .btn-crm--primary {
  background:var(--brand-ink);
  color:var(--brand-contrast, #fff);
  border-color:var(--brand-ink);
}
.gm-token-popover .gm-popover-actions .btn-crm--outline {
  background:var(--surface);
  color:var(--text);
  border-color:var(--border-strong);
}
.gm-token-popover .gm-popover-actions { gap:10px; margin-top:16px; }

/* Match reference: keep token dropdown collapsed until the Search field is clicked. */
.gm-token-list { display:none; }
.gm-token-popover.is-token-list-open .gm-token-list { display:block; }
.gm-token-popover.is-token-list-open { z-index:1601; }
.gm-token-popover:not(.is-token-list-open) .gm-popover-actions { margin-top:16px; }
.gm-token-popover.is-token-list-open .gm-popover-actions { margin-top:16px; }

/* Use the CRM's existing button system for popup actions. */
.gm-token-popover .gm-btn,
.gm-link-popover .gm-btn {
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  min-height:38px;
  padding:0 18px;
  border-radius:var(--btn-radius, 20px);
}
.gm-token-popover .gm-btn-primary,
.gm-link-popover .gm-btn-primary {
  background:var(--brand-ink);
  color:var(--brand-contrast, #fff);
  border-color:var(--brand-ink);
}
.gm-token-popover .gm-btn-outline,
.gm-link-popover .gm-btn-outline {
  background:var(--surface);
  color:var(--text);
  border-color:var(--border-strong);
}
/* Hide theme switch/toggle only on the create-meeting screen, if present in its header. */
.gm-page .theme-toggle,
.gm-page [data-theme-toggle],
.gm-page .theme-toggle-button,
.gm-page button[aria-label*="theme" i],
.gm-page button[title*="theme" i] { display:none !important; }

/* Reference-matched personalization token dropdown: collapsed until Search is activated. */
.gm-token-list { display:none; }
.gm-token-list.is-open { display:block; }
.gm-token-popover { z-index:1600; }
.gm-token-popover .gm-btn,
.gm-link-popover .gm-btn {
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  min-height:38px;
  padding:0 18px;
  border-radius:var(--btn-radius, 20px);
}
.gm-token-popover .gm-btn-primary,
.gm-link-popover .gm-btn-primary {
  background:var(--brand-ink);
  color:var(--brand-contrast, #fff);
  border-color:var(--brand-ink);
}
.gm-token-popover .gm-btn-outline,
.gm-link-popover .gm-btn-outline {
  background:var(--surface);
  color:var(--text);
  border-color:var(--border-strong);
}
/* Hide the theme-toggle icon only within this screen if the shared header exposes one. */
.gm-page .theme-toggle,
.gm-page [data-theme-toggle],
.gm-page .theme-toggle-button,
.gm-page button[aria-label*="theme" i],
.gm-page button[title*="theme" i] { display:none !important; }

/* Match the compact closed state in the reference; list opens only when Search is clicked. */
.gm-token-list { display:none; }
.gm-token-list.is-open { display:block; }
.gm-token-popover .gm-btn,
.gm-link-popover .gm-btn {
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  min-height:38px;
  padding:0 18px;
  border-radius:8px;
}
.gm-token-popover .gm-btn-primary,
.gm-link-popover .gm-btn-primary {
  background:var(--brand-ink);
  color:var(--brand-contrast, #fff);
  border-color:var(--brand-ink);
}
.gm-token-popover .gm-btn-outline,
.gm-link-popover .gm-btn-outline {
  background:var(--surface);
  color:var(--text);
  border-color:var(--border-strong);
}
/* Hide theme-toggle controls on this screen only. */
.gm-page .theme-toggle,
.gm-page [data-theme-toggle],
.gm-page .theme-toggle-button,
.gm-page button[aria-label*="theme" i],
.gm-page button[title*="theme" i] { display:none !important; }

/* Step 2: Team members and Step 3: Scheduling — reference-matched workflow */
.gm-step-view[hidden], .gm-members-drawer[hidden], .gm-drawer-backdrop[hidden], .gm-consent-backdrop[hidden] {display:none!important}
.gm-step-view{width:100%;min-height:calc(100vh - 150px);background:var(--bg);color:var(--text)}
.gm-step-content{width:min(1090px,calc(100% - 48px));margin:34px auto 80px}
.gm-step-content h1,.gm-scheduling-form h1{font-size:19px;line-height:1.4;font-weight:650;margin:0 0 22px}
.gm-team-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:25px}
.gm-team-intro p{margin:0;font-size:14px;color:var(--text)}
.gm-team-intro .btn-crm,.gm-consent-actions .btn-crm{border-radius:8px;white-space:nowrap}
.gm-team-table{width:100%;border-collapse:collapse}
.gm-team-table-head{padding:0 22px 10px;border-bottom:1px solid var(--text-muted);font-size:13px;color:var(--text-muted)}
.gm-team-row{display:flex;align-items:center;gap:12px;padding:15px 22px;font-size:14px}
.gm-team-avatar{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;background:var(--surface-3);color:var(--text)}
.gm-team-row strong{display:block;font-weight:650}
.gm-team-row small{display:block;margin-top:3px;color:var(--text-muted);font-size:13px}
.gm-connected-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#078544;margin-right:5px}
.gm-footer-left{display:flex;align-items:center;gap:12px}
#gm-back svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.6}
.gm-members-drawer{position:fixed;z-index:2202;top:0;right:0;bottom:0;width:min(500px,100vw);display:flex;flex-direction:column;background:var(--surface);border-left:1px solid var(--border);box-shadow:-10px 0 35px rgba(16,24,40,.12);color:var(--text)}
.gm-members-drawer>header{height:72px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid var(--border)}
.gm-members-drawer h2{font-size:19px;font-weight:650;margin:0}
.gm-members-drawer>header button,.gm-consent-modal header button{border:0;background:transparent;color:var(--text);font-size:25px;cursor:pointer}
.gm-drawer-body{padding:34px 40px;overflow:auto;flex:1}
.gm-drawer-label{display:block;font-size:14px;font-weight:650;margin:0 0 8px}
.gm-member-modes{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:30px}
.gm-member-modes button{height:44px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);font:inherit;font-weight:500;display:flex;align-items:center;justify-content:center;gap:14px}
.gm-member-modes button.is-active{background:var(--surface-3);border-color:var(--text)}
.gm-member-modes button span{font-size:20px}
.gm-member-select{height:40px;display:flex;align-items:center;gap:5px;padding:3px 8px 3px 14px;border:1px solid var(--brand-ink);border-radius:5px;box-shadow:0 0 0 1px var(--brand-ink);position:relative}
.gm-member-select input{min-width:10px;flex:1;height:30px;border:0!important;outline:none!important;background:transparent;color:var(--text);font:inherit}
.gm-member-select>button{border:0;background:transparent;color:var(--text);font-size:19px;position: absolute;
    right: 8px;
    top: 0px;}
.gm-member-chip{display:inline-flex;align-items:center;gap:7px;padding:3px 7px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface-3);white-space:nowrap;font-size:12px}
.gm-member-chip>span{font-size:9px;color:var(--text-muted)}
.gm-member-chip button{border:0;background:transparent;color:var(--text-muted);padding:0;cursor:pointer}
.gm-member-options{position:relative;z-index:2;max-height:230px;overflow:auto;border:1px solid var(--border);border-radius:0 0 15px 15px;background:var(--surface);box-shadow:0 8px 18px rgba(16,24,40,.08);margin-top:6px}
.gm-member-options button{display:block;width:100%;padding:12px 16px;text-align:left;border:0;background:transparent;color:var(--text);font:inherit;cursor:pointer}
.gm-member-options button:hover{background:var(--surface-3)}
.gm-members-drawer>footer{flex:none;padding:24px 40px 12px;border-top:1px solid var(--border);min-height:76px}
.gm-members-drawer>footer .btn-crm{min-width:106px;}
.gm-drawer-backdrop{position:fixed;z-index:2201;inset:0;background:rgba(16,24,40,.06)}
.gm-scheduling-layout{width:min(1200px,calc(100% - 48px));margin:28px auto 100px;display:grid;grid-template-columns:minmax(0,560px) minmax(360px,470px);gap:52px;align-items:start}
.gm-scheduling-form{min-width:0}
.gm-schedule-link-row{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:12px;align-items:end;margin-bottom:28px}
.gm-schedule-link-label label,.gm-scheduling-form>label,.gm-schedule-panel>label{display:block;font-size:13px;font-weight:650;margin-bottom:8px}
.gm-base-url{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-bottom:8px}
.gm-schedule-link-row>input,.gm-schedule-input{width:100%;height:39px;padding:0 12px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);color:var(--text);font:inherit;font-size:13px}
.gm-schedule-panel textarea.gm-schedule-input{height:auto;padding:10px;resize:vertical}
.gm-schedule-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px}
.gm-schedule-toggle-row strong,.gm-option-line strong{font-size:13px;font-weight:650}
.gm-schedule-toggle-row p,.gm-option-line p{font-size:13px;line-height:1.45;color:var(--text-muted);margin:6px 0 0}
.gm-schedule-tabs{display:grid;grid-template-columns:repeat(4,1fr); overflow-x: auto;overflow-y: hidden;
    border-bottom: 1px solid var(--border-strong);
    margin-bottom: var(--sp-5);}
.gm-schedule-tabs button{    padding: 12px 22px;
    margin-bottom: -1px;
    border: 1px solid var(--border-strong);
    border-left-width: 0;border-radius: 0px!important;
    border-bottom-width: 1px;
    background: var(--surface-2);
    color: var(--text-muted);}

.gm-schedule-tabs button:last-child {
    border-top-right-radius: var(--radius-sm)!important;
}
.gm-schedule-tabs button:first-child {
    border-left-width: 1px;
    border-top-left-radius: var(--radius-sm)!important;
}

.gm-schedule-tabs button.is-active{background: var(--bg);
    color: var(--text);
    border-bottom-color: var(--bg);
    font-weight: 600;border-bottom: 1px solid var(--border-strong);}
.gm-schedule-tabs button.is-active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--surface)}
.gm-schedule-panel>label{margin-top:0}
.gm-schedule-panel>.gm-schedule-input,.gm-schedule-panel>.gm-multi-select{margin-bottom:28px}
.gm-multi-select{position:relative}
.gm-multi-select .gm-select-trigger{height:39px;border-radius:5px}
.gm-multi-select .gm-select-trigger small{margin-left:5px;padding:1px 5px;border:1px solid var(--border-strong);border-radius:4px}
.gm-multi-menu{position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;max-height:200px;overflow:auto;padding:10px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 10px 22px rgba(16,24,40,.12)}
.gm-multi-menu[hidden]{display:none}
.gm-multi-menu label{display:block;padding:7px;font-size:13px}
.gm-availability-rows{display:grid;gap:12px}
.gm-availability-row{display:grid;grid-template-columns:130px 30px minmax(95px,1fr) 20px minmax(95px,1fr) 22px;align-items:center;gap:7px;margin-bottom:2px;font-size:13px}
.gm-availability-row select{height:38px;min-width:0;width:100%;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);color:var(--text);font:inherit;padding:0 8px}
.gm-icon-action{display:grid;place-items:center;border:0;background:transparent;color:var(--text-muted);padding:2px;cursor:pointer}
.gm-icon-action svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4}
.gm-inline-action{border:0;background:transparent;color:var(--brand-ink);font:inherit;font-size:13px;font-weight:600;padding:0;cursor:pointer}
.gm-setting-divider{height:1px;background:var(--border);margin:24px 0}
.gm-option-line{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:22px 0;border-bottom:1px solid var(--border)}
.gm-option-line>div{min-width:0;flex:1}
.gm-inline-fields{display:flex;gap:12px;padding:12px 0}.gm-inline-fields label{flex:1;font-size:13px}
.gm-small-select{width:140px;height:34px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);color:var(--text);padding:0 8px}
.gm-question-row{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:16px;align-items:center;margin-bottom:10px}
.gm-question-row>input{height:39px;padding:0 12px;border:1px solid var(--border-strong);border-radius:5px;background:var(--surface);color:var(--text);font:inherit;font-size:13px}
.gm-question-row label{font-size:13px;color:var(--text-muted)}
.gm-question-actions{display:flex;gap:22px;margin:18px 0 28px}
.gm-consent-actions{display:flex;gap:10px;margin-top:18px}
.gm-additional-settings{padding:22px 0;border-bottom:1px solid var(--border);font-weight:650}.gm-additional-settings summary{cursor:pointer}.gm-additional-settings label{display:block;}
.gm-scheduling-preview{position:sticky;top:24px;padding-top:0}
.gm-scheduling-preview .gm-browser{border-color:var(--border-strong);border-radius:5px}
.gm-scheduling-preview .gm-browser-address{height:28px;display:flex;align-items:center;padding:0 12px;font-size:10px;white-space:nowrap;overflow:hidden}
.gm-scheduling-preview-card{display:grid;grid-template-columns:1fr 1fr;min-height:430px;margin:8px;border:1px solid var(--border);border-radius:7px;overflow:hidden}
.gm-scheduling-preview-left{background:#405a72;color:white;padding:26px 16px;text-align:center}
.gm-preview-r-avatar{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 14px;border-radius:50%;background:#f1f3f5;color:#405a72;font-size:24px}
.gm-scheduling-preview-left h3{font-size:16px;line-height:1.4;font-weight:600;margin:0 0 14px; color: #ffffff;}
.gm-scheduling-preview-left p{font-size:13px}
.gm-calendar-mini{font-size:9px;margin:24px 0 18px;white-space:nowrap}
.gm-calendar-dates{font-size:12px;}.gm-calendar-dates b{display:inline-block;background:white;color:#405a72;border-radius:50%;padding:2px 6px}
.gm-scheduling-preview-right{padding:24px 14px;background:var(--surface);font-size:11px}
.gm-scheduling-preview-right strong{display:block;font-size:12px;margin-bottom:8px}
.gm-preview-duration{display:block;text-align:center;background:var(--surface-3);border:1px solid var(--border-strong);border-radius:4px;padding:6px;margin-bottom:18px}
.gm-scheduling-preview-right p{line-height:1.4;color:var(--text-muted)}
.gm-preview-time{padding:9px 6px;border:1px solid var(--border);border-radius:5px;text-align:center;margin:7px 0;font-size:12px}
.gm-consent-backdrop{position:fixed;z-index:2300;inset:0;background:rgba(16,24,40,.4);display:grid;place-items:center;padding:20px}
.gm-consent-modal{width:min(560px,100%);background:var(--surface);color:var(--text);border-radius:10px;box-shadow:0 20px 60px rgba(16,24,40,.25)}
.gm-consent-modal header{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid var(--border)}
.gm-consent-modal h2{font-size:18px;margin:0}.gm-consent-modal nav{display:flex;gap:18px;padding:14px 26px;border-bottom:1px solid var(--border)}
.gm-consent-modal nav button{border:0;background:transparent;color:var(--text-muted);padding:7px 0}.gm-consent-modal nav button.is-active{color:var(--brand-ink);border-bottom:2px solid var(--brand-ink)}
.gm-consent-content{display:grid;gap:9px;padding:22px 26px;font-size:13px}.gm-consent-content textarea,.gm-consent-content>input{width:100%;border:1px solid var(--border-strong);border-radius:5px;padding:10px;background:var(--surface);color:var(--text);font:inherit}
.gm-consent-modal footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 26px;border-top:1px solid var(--border)}
@media(max-width:1100px){.gm-scheduling-layout{grid-template-columns:minmax(0,1fr);max-width:680px}.gm-scheduling-preview{position:static;max-width:500px}.gm-schedule-link-row{grid-template-columns:minmax(0,1fr) 210px}}
@media(max-width:650px){.gm-step-content,.gm-scheduling-layout{width:calc(100% - 28px);margin-top:22px}.gm-team-intro{align-items:flex-start;flex-direction:column}.gm-members-drawer>header{padding:0 22px}.gm-drawer-body{padding:24px 22px}.gm-members-drawer>footer{padding:18px 22px}.gm-schedule-link-row{grid-template-columns:1fr}.gm-schedule-link-row>input{max-width:100%}.gm-availability-row{grid-template-columns:1fr 26px 1fr 18px 1fr 20px;gap:4px}.gm-availability-row select{font-size:11px;padding:0 4px}.gm-scheduling-preview-card{grid-template-columns:1fr}.gm-schedule-tabs button{font-size:13px}.gm-question-row{grid-template-columns:minmax(0,1fr) 105px}}

.gm-workspace[hidden]{display:none!important}.gm-progress-dot svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.gm-progress-line.is-complete{background:var(--brand,var(--brand-ink))}


/* Scheduling tab — detailed reference-matched controls */
.gm-schedule-panel[data-schedule-panel="schedule"] { max-width: 100%; }
.gm-schedule-panel[data-schedule-panel="schedule"] > label { display:block; margin:18px 0 7px; font-size:15px; font-weight:650; color:var(--text); }
.gm-schedule-panel[data-schedule-panel="schedule"] > label:first-child { margin-top:0; }
.gm-duration-select { position:relative; margin-bottom:6px; }
.gm-duration-select .gm-select-trigger { min-height:40px; height:auto; padding:6px 12px; gap:10px; }
.gm-duration-chips { display:flex; flex-wrap:wrap; align-items:center; gap:5px; flex:1; min-width:0; }
.gm-duration-chip { display:inline-flex; align-items:center; gap:7px; padding:3px 7px; border:1px solid var(--border-strong); border-radius:5px; background:var(--surface-3); font-size:12px; white-space:nowrap; }
.gm-duration-chip button { border:0; padding:0; background:transparent; color:var(--text-muted); cursor:pointer; font-size:14px; line-height:1; }
.gm-duration-select > .gm-select-trigger > svg { flex:0 0 16px; }
.gm-multi-menu { position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:1450; border:1px solid var(--border); border-radius:16px; background:var(--surface); box-shadow:0 12px 28px rgba(16,24,40,.15); overflow:hidden; }
.gm-multi-menu[hidden] { display:none!important; }
.gm-dropdown-search { position:relative; padding:10px 12px; border-bottom:1px solid var(--border); }
.gm-dropdown-search input { width:100%; height:39px; border:1px solid var(--brand-ink); border-radius:22px; padding:0 38px 0 15px; background:var(--surface); color:var(--text); font:inherit; font-size:13px; outline:none; box-shadow:0 0 0 1px var(--brand-ink); }
.gm-dropdown-search svg { position:absolute; right:25px; top:22px; width:15px; height:15px; fill:none; stroke:var(--text-muted); stroke-width:1.4; }
.gm-duration-options { max-height:220px; overflow:auto; overscroll-behavior:contain; padding:0 0 4px; }
.gm-duration-options label { display:flex; align-items:center; gap:10px; min-height:40px; padding:8px 16px; margin:0; font-size:13px; font-weight:400; cursor:pointer; }
.gm-duration-options label:hover { background:var(--surface-3); }
.gm-duration-options input { width:19px; height:19px; accent-color:var(--brand-ink); }
.gm-add-custom-duration { display:block; width:100%; padding:12px 18px; border-top:1px solid var(--border); text-align:left; font-weight:650; }
.gm-search-select-wrap { position:relative; min-width:0; width:100%; }
.gm-native-select { position:absolute!important; width:1px!important; height:1px!important; opacity:0!important; pointer-events:none!important; overflow:hidden!important; }
.gm-search-select-trigger { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; min-width:0; height:40px; padding:0 12px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface); color:var(--text); font:inherit; font-size:13px; text-align:left; cursor:pointer; }
.gm-search-select-trigger span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gm-search-select-trigger svg { width:15px; height:15px; flex:0 0 15px; fill:none; stroke:currentColor; stroke-width:1.5; }
.gm-search-select-trigger[aria-expanded="true"] { border-color:var(--brand-ink); box-shadow:0 0 0 1px var(--brand-ink); }
.gm-search-select-menu { position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:1450; overflow:hidden; border:1px solid var(--border); border-radius:16px; background:var(--surface); box-shadow:0 12px 28px rgba(16,24,40,.14); }
.gm-search-select-menu[hidden] { display:none!important; }
.gm-search-select-options { max-height:205px; overflow:auto; overscroll-behavior:contain; padding:0 0 4px; }
.gm-search-select-option { display:block; width:100%; min-height:40px; padding:10px 16px; border:0; background:transparent; color:var(--text); font:inherit; font-size:13px; text-align:left; cursor:pointer; }
.gm-search-select-option:hover,.gm-search-select-option:focus-visible { background:var(--surface-3); outline:none; }
.gm-availability-row { display:grid; grid-template-columns:minmax(112px,1fr) auto minmax(112px,1fr) auto minmax(112px,1fr) 24px; align-items:center; gap:8px; margin:8px 0; }
.gm-availability-row > span { font-size:12px; color:var(--text-muted); }
.gm-availability-row .gm-search-select-trigger { height:38px; }
.gm-availability-row .gm-search-select-menu { min-width:160px; }
.gm-availability-row .gm-icon-action { border:0; background:transparent; color:var(--text-muted); padding:4px; cursor:pointer; }
.gm-availability-row .gm-icon-action svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.3; }
.gm-working-hours { margin-top:20px; padding:0 0 20px; border-bottom:1px solid var(--border); }
.gm-working-hours p { margin:5px 0 0; font-size:12px; line-height:1.5; color:var(--text-muted); }
.gm-additional-settings { margin-top:20px; border-top:1px solid var(--border); padding-top:16px; }
.gm-additional-settings summary { cursor:pointer; font-size:15px; font-weight:650; color:var(--text); list-style:none; }
.gm-additional-settings summary:before { content:"⌄"; display:inline-block; margin-right:9px; }
.gm-additional-settings[open] summary:before { content:"⌃"; }
.gm-additional-body { padding-top:14px; }
.gm-setting-block { margin:0 0 18px; }
.gm-setting-block > strong,.gm-setting-block > label > strong { display:block; margin-bottom:6px; font-size:14px; font-weight:650; color:var(--text); }
.gm-setting-block small { display:block; margin:2px 0 6px; font-size:11px; line-height:1.4; color:var(--text-muted); }
.gm-radio-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; margin-top:8px; }
.gm-radio-row label { display:inline-flex; align-items:center; gap:7px; margin:0; font-size:14px; font-weight:400; cursor:pointer; }
.gm-radio-row input { accent-color:var(--brand-ink); }
.gm-custom-image { display:flex; align-items:center; gap:12px; margin-top:10px; }
.gm-upload-avatar { display:grid; place-items:center; width:58px; height:58px; border-radius:50%; background:var(--surface-3); color:var(--text-muted); overflow:hidden; }
.gm-upload-avatar svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.6; }
.gm-upload-avatar img { width:100%; height:100%; object-fit:cover; }
.gm-upload-button { padding:7px 12px; border:1px solid var(--border-strong); border-radius:20px; font-size:12px; cursor:pointer; }
.gm-rolling-range { display:grid; grid-template-columns:118px minmax(150px,1fr); gap:10px; margin-top:8px; }
.gm-rolling-range input,.gm-custom-range input { height:38px; min-width:0; width:100%; border:1px solid var(--border-strong); border-radius:6px; padding:0 10px; background:var(--surface); color:var(--text); font:inherit; font-size:13px; }
.gm-custom-range { display:flex; align-items:center; gap:10px; margin-top:8px; }
.gm-custom-range label { flex:1; min-width:0; }
.gm-date-input-wrap { display:flex; align-items:center; gap:6px; padding-left:10px; border:1px solid var(--border-strong); border-radius:6px; }
.gm-date-input-wrap svg { width:14px; height:14px; flex:0 0 14px; fill:none; stroke:var(--text-muted); stroke-width:1.2; }
.gm-date-input-wrap input { border:0; padding-left:0; }
.gm-modal-backdrop { position:fixed; inset:0; z-index:2200; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(0,0,0,.42); }
.gm-modal-backdrop[hidden] { display:none!important; }
.gm-standard-modal { width:min(550px,100%); max-height:calc(100vh - 48px); overflow:auto; border:1px solid var(--border); border-radius:16px; background:var(--surface); color:var(--text); box-shadow:0 18px 48px rgba(16,24,40,.25); }
.gm-standard-modal > header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 28px; border-bottom:1px solid var(--border); }
.gm-standard-modal > header h2 { margin:0; font-size:20px; font-weight:650; }
.gm-standard-modal > header button { display:grid; place-items:center; width:28px; height:28px; padding:4px; border:0; background:transparent; color:var(--text-muted); cursor:pointer; }
.gm-standard-modal > header button svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.4; }
.gm-standard-modal-body { padding:24px 28px; font-size:14px; line-height:1.55; }
.gm-standard-modal-body h3 { margin:0 0 8px; font-size:15px; font-weight:650; }
.gm-standard-modal-body ul { margin:0 0 20px; padding-left:22px;list-style: disc;}
.gm-standard-modal-body li { margin:3px 0; }
.gm-standard-modal-body p { margin:22px 0 4px; }
.gm-standard-modal > footer { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:16px 28px 24px; }
.gm-standard-modal > footer .btn-crm { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:0 20px; border-radius:24px; font-size:13px; text-decoration:none; }
.gm-custom-duration-modal { width:min(450px,100%); }
.gm-custom-duration-modal .gm-standard-modal-body > strong { display:block; margin-bottom:12px; font-size:13px; color:var(--text-muted); }
.gm-custom-duration-fields { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.gm-custom-duration-fields label { display:flex; align-items:center; gap:8px; margin:0; }
.gm-custom-duration-fields input { width:100px; height:40px; padding:0 12px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface); color:var(--text); font:inherit; }
.gm-custom-duration-modal > footer { padding-top:0; }
.gm-custom-duration-modal #gm-save-custom-duration:disabled { opacity:.5; cursor:not-allowed; }
@media(max-width:650px) {
 .gm-availability-row { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:7px;  display: flex;flex-wrap: wrap;}
 .gm-availability-row > span:nth-of-type(2) { display:none; }
 .gm-availability-row .gm-search-select-wrap:nth-of-type(3) { grid-column:3; }
 .gm-availability-row .gm-icon-action { grid-column:3; justify-self:end; }
 .gm-radio-row { gap:10px 14px; }
 .gm-standard-modal > header,.gm-standard-modal-body,.gm-standard-modal > footer { padding-left:18px; padding-right:18px; }
}


/* Form tab layout and consent side panel matching the supplied references */
.gm-form-panel h2 { margin:0 0 4px; font-size:14px; font-weight:700; }
.gm-form-intro { margin:0 0 18px; max-width:380px; font-size:11px; line-height:1.45; color:var(--text); }
.gm-form-questions { margin:0 0 14px; }
.gm-form-panel .gm-question-row { grid-template-columns:minmax(0,1fr) 86px; gap:12px; margin-bottom:5px; }
.gm-form-panel .gm-question-row>input { height:27px; padding:0 10px; border-color:var(--border); border-radius:4px; font-size:10px; }
.gm-form-panel .gm-question-row>input:disabled { opacity:1; background:var(--surface); color:var(--text); cursor:not-allowed; }
.gm-form-panel .gm-question-row label { display:flex; align-items:center; gap:5px; font-size:10px; color:var(--text-muted); white-space:nowrap; }
.gm-form-panel .gm-question-row label input { width:13px; height:13px; accent-color:var(--text-muted); }
.gm-question-row-added { grid-template-columns:minmax(0,1fr) 86px 20px!important; }
.gm-question-remove { border:0; background:transparent; color:var(--text-muted); cursor:pointer; font-size:17px; }
.gm-contact-property-editor,.gm-custom-question-editor { margin:16px 10px 12px; }
.gm-contact-property-editor>label,.gm-custom-question-editor>label { display:block; margin-bottom:5px; font-size:10px; font-weight:650; }
.gm-contact-property-select-wrap { position:relative; }
.gm-contact-property-trigger { display:flex; align-items:center; justify-content:space-between; width:100%; height:28px; padding:0 10px; border:1px solid var(--border-strong); border-radius:4px; background:var(--surface); color:var(--text); font:inherit; font-size:10px; text-align:left; }
.gm-contact-property-trigger svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.4; }
.gm-contact-property-menu { position:absolute; z-index:1600; top:calc(100% + 4px); left:-4px; right:-4px; border:1px solid var(--border); border-radius:14px; background:var(--surface); box-shadow:0 10px 25px rgba(16,24,40,.15); overflow:hidden; }
.gm-contact-property-menu[hidden],.gm-contact-property-editor[hidden],.gm-custom-question-editor[hidden],.gm-domain-entry[hidden],.gm-custom-image[hidden],.gm-custom-range[hidden],.gm-rolling-range[hidden] { display:none!important; }
.gm-contact-property-options { max-height:180px; overflow:auto; }
.gm-contact-property-options button { display:block; width:100%; min-height:32px; padding:8px 12px; border:0; background:transparent; color:var(--text); font:inherit; font-size:10px; text-align:left; cursor:pointer; }
.gm-contact-property-options button:hover { background:var(--surface-3); }
.gm-inline-editor-actions { display:flex; gap:8px; margin-top:9px; }
.gm-inline-editor-actions .btn-crm { min-height:22px; padding:2px 10px; border-radius:18px; font-size:10px; }
.gm-inline-editor-actions .btn-crm:disabled { opacity:.45; cursor:not-allowed; }
.gm-custom-question-editor textarea { display:block; width:100%; min-height:28px; border:1px solid var(--brand-ink); border-radius:4px; padding:6px 9px; background:var(--surface); color:var(--text); font:inherit; font-size:10px; }
.gm-form-panel .gm-question-actions { gap:18px; margin:18px 0 22px; }
.gm-form-panel .gm-inline-action { padding:0; border:0; background:transparent; color:var(--brand-ink); font:inherit; font-size:10px; cursor:pointer; text-decoration:none; }
.gm-form-panel .gm-setting-divider { margin:0 0 12px; }
.gm-form-setting { align-items:flex-start; gap:12px; padding:10px 0 12px; margin:0; border-bottom:1px solid var(--border); }
.gm-form-setting>div { flex:1; min-width:0; }
.gm-form-setting strong { display:block; margin:0 0 3px; font-size:10px; font-weight:700; line-height:1.4; }
.gm-form-setting p { margin:0; font-size:10px; line-height:1.45; color:var(--text); }
.gm-form-setting .gm-switch { flex:0 0 auto; margin-top:2px; }
.gm-form-setting .gm-consent-actions { gap:8px; margin-top:9px; }
.gm-form-setting .gm-consent-actions .btn-crm { min-height:25px; padding:3px 12px; font-size:10px; }
.gm-domain-entry { margin-top:10px; }
.gm-domain-entry>label { display:block; margin-bottom:5px; font-size:10px; }
.gm-domain-add-row { display:flex; align-items:center; gap:10px; }
.gm-domain-add-row input { flex:1; min-width:0; height:28px; padding:0 10px; border:1px solid var(--border-strong); border-radius:4px; background:var(--surface); color:var(--text); font:inherit; font-size:10px; }
.gm-domain-add-row .btn-crm { min-height:28px; font-size:10px; }
.gm-domain-reveal { display:block; margin-top:7px!important; }
.gm-blocked-domain { display:flex; justify-content:space-between; align-items:center; padding:5px 8px; margin-top:5px; border:1px solid var(--border); border-radius:4px; font-size:10px; }
.gm-blocked-domain button { border:0; background:transparent; color:var(--text-muted); cursor:pointer; }
.gm-form-additional-settings { margin-top:0; padding:12px 0; border-bottom:0; }
.gm-form-additional-settings summary { font-size:11px; }
.gm-form-additional-settings summary:before { content:"⌄"; }
.gm-form-additional-settings[open] summary:before { content:"⌃"; }
.gm-form-additional-item { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); }
.gm-form-additional-item>div { flex:1; }
.gm-form-additional-item strong { display:block; font-size:10px; line-height:1.45; }
.gm-form-additional-item p { margin:4px 0 0; font-size:10px; line-height:1.45; font-weight:400; }
.gm-form-additional-item .gm-switch { flex:0 0 auto; margin-top:2px; }
.gm-consent-backdrop { position:fixed; z-index:2300; inset:0; padding:0; display:flex; justify-content:flex-end; align-items:stretch; background:rgba(16,24,40,.42); }
.gm-consent-modal { display:flex; flex-direction:column; width:min(490px,100%); height:100%; max-height:100vh; border-radius:0; box-shadow:-8px 0 28px rgba(16,24,40,.16); overflow:hidden; }
.gm-consent-modal header { flex:0 0 auto; padding:14px 28px; min-height:48px; }
.gm-consent-modal h2 { font-size:14px; font-weight:700; }
.gm-consent-modal header button { font-size:20px; }
.gm-consent-modal nav { flex:0 0 auto; gap:0; padding:14px 28px 0; border-bottom:1px solid var(--border); }
.gm-consent-modal nav button { min-width:66px; padding:9px 14px; border:1px solid transparent; font-size:10px; color:var(--text); }
.gm-consent-modal nav button.is-active { border:1px solid var(--brand-ink); border-bottom-color:var(--surface); color:var(--text); }
.gm-consent-content { display:block; flex:1 1 auto; overflow:auto; padding:12px 28px 26px; font-size:10px; }
.gm-consent-modal footer { flex:0 0 auto; justify-content:flex-start; padding:14px 28px; border-top:1px solid var(--border); }
.gm-consent-modal footer .btn-crm { min-height:28px; padding:3px 14px; border-radius:18px; font-size:10px; }
.gm-consent-settings-link { text-align:right; margin:0 0 10px; font-size:9px; color:var(--text-muted); }
.gm-consent-settings-link a { color:var(--brand-ink); }
.gm-consent-field-label { display:block; margin:0 0 10px; font-size:10px; font-weight:650; }
.gm-consent-field-label select,.gm-consent-field-label textarea { display:block; width:100%; margin-top:5px; border:1px solid var(--border-strong); border-radius:4px; background:var(--surface); color:var(--text); font:inherit; font-size:10px; font-weight:400; }
.gm-consent-field-label select { height:28px; padding:0 10px; }
.gm-consent-field-label textarea { min-height:55px; resize:vertical; padding:9px 10px 26px; }
.gm-rich-toolbar { display:flex; align-items:center; gap:9px; margin-top:-30px; margin-bottom:10px; padding:0 10px 0; position:relative; pointer-events:none; }
.gm-rich-toolbar button { border:0; background:transparent; color:var(--text-muted); font:inherit; font-size:10px; cursor:pointer; pointer-events:auto; }
.gm-consent-section-label { margin:18px 0 8px; font-size:10px; font-weight:650; }
.gm-consent-checkbox-card { padding:14px; margin-bottom:14px; border:1px solid var(--border); border-radius:12px; }
.gm-consent-checkbox-card .gm-consent-field-label { margin-bottom:12px; }
.gm-consent-required { display:flex; align-items:center; gap:6px; font-size:10px; font-weight:400; }
.gm-consent-required input { accent-color:var(--brand-ink); }
.gm-consent-add-checkbox { margin:0 0 22px; }
.gm-consent-preview-card { border:2px solid var(--border-strong); padding:14px; margin:0 0 10px; font-size:10px; line-height:1.7; }
.gm-consent-preview-card p { margin:0 0 12px; }
.gm-consent-preview-card input { accent-color:var(--brand-ink); }
@media(max-width:650px) {
	
 .gm-consent-modal { width:100%; }
 .gm-consent-modal header,.gm-consent-modal nav,.gm-consent-content,.gm-consent-modal footer { padding-left:18px; padding-right:18px; }
 .gm-form-panel .gm-question-row { grid-template-columns:minmax(0,1fr) 76px; gap:8px; }
}


/* Final typography, button and Confirmation tab refinements */
.gm-form-panel h2 { font-size:15px; }
.gm-form-intro { font-size:12px; max-width:410px; margin-bottom:20px; }
.gm-form-panel .gm-question-row>input { height:31px; font-size:12px; }
.gm-form-panel .gm-question-row label { font-size:12px; }
.gm-form-panel .gm-form-setting strong { font-size:12px; }
.gm-form-panel .gm-form-setting p { font-size:12px; }
.gm-form-panel .gm-inline-action { font-size:12px; }
.gm-form-panel .gm-question-actions { gap:20px; margin:18px 0 24px; }
.gm-form-panel .gm-consent-actions .btn-crm { min-height:34px; padding:5px 15px; font-size:12px; }
.gm-inline-editor-actions .btn-crm { min-height:28px; padding:4px 12px; font-size:12px; }
.gm-contact-property-trigger,.gm-contact-property-options button,.gm-custom-question-editor textarea { font-size:12px; }
.gm-contact-property-trigger { height:32px; }
.gm-contact-property-options button { min-height:36px; }
.gm-domain-entry>label,.gm-domain-add-row input,.gm-domain-add-row .btn-crm { font-size:12px; }
.gm-domain-add-row input,.gm-domain-add-row .btn-crm { height:34px; min-height:34px; }
.gm-form-additional-settings summary,.gm-form-additional-item strong,.gm-form-additional-item p { font-size:12px; }
.gm-form-setting { padding:12px 0 14px; }
.gm-form-additional-item { padding:14px 0; }
.gm-confirmation-panel h2 { display:flex; align-items:center; gap:8px; margin:0 0 12px; font-size:14px; font-weight:650; line-height:1.5; }
.gm-info { display:inline-grid; place-items:center; width:14px; height:14px; border:1px solid var(--text-muted); border-radius:50%; color:var(--text-muted); font-size:10px; line-height:1; cursor:help; flex:0 0 14px; }
.gm-confirmation-radio { display:flex; align-items:center; gap:12px; margin:10px 0; font-size:14px; font-weight:400; cursor:pointer; }
.gm-confirmation-radio input { width:19px; height:19px; margin:0; accent-color:var(--brand); flex:0 0 19px; }
.gm-confirmation-redirect { margin:16px 0 0 0; max-width:560px; }
.gm-confirmation-redirect[hidden] { display:none!important; }
.gm-confirmation-location-wrap { position:relative; }
.gm-confirmation-location-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:40px; padding:0 14px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface); color:var(--text); font:inherit; font-size:13px; text-align:left; }
.gm-confirmation-location-trigger svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.5; }
.gm-confirmation-location-menu { position:absolute; z-index:1600; top:calc(100% + 3px); left:0; right:0; border:1px solid var(--border); border-radius:16px; background:var(--surface); box-shadow:0 10px 25px rgba(16,24,40,.15); overflow:hidden; }
.gm-confirmation-location-menu[hidden] { display:none!important; }
.gm-confirmation-location-option { display:block; width:100%; padding:13px 16px; border:0; border-bottom:1px solid var(--border); background:var(--surface); color:var(--text); font:inherit; font-size:13px; text-align:left; cursor:pointer; }
.gm-confirmation-location-option:hover { background:var(--surface-3); }
.gm-confirmation-add-external { display:block; width:100%; padding:14px 18px; border:0; background:var(--surface); color:var(--brand-ink); font:inherit; font-size:13px; font-weight:650; text-align:left; cursor:pointer; }
.gm-confirmation-redirect>#gm-confirmation-url { margin-top:10px; }
.gm-external-link-backdrop { position:fixed; inset:0; z-index:2400; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(16,24,40,.45); }
.gm-external-link-backdrop[hidden] { display:none!important; }
.gm-external-link-modal { width:min(450px,100%); border:1px solid var(--border); border-radius:16px; background:var(--surface); color:var(--text); box-shadow:0 18px 48px rgba(16,24,40,.25); overflow:hidden; }
.gm-external-link-modal header { display:flex; align-items:center; justify-content:space-between; padding:18px 28px; border-bottom:1px solid var(--border); }
.gm-external-link-modal header h2 { margin:0; font-size:18px; font-weight:650; }
.gm-external-link-modal header button { border:0; background:transparent; color:var(--text-muted); font-size:24px; cursor:pointer; }
.gm-external-link-body { padding:24px 28px 28px; }
.gm-external-link-body p { margin:0 0 10px; font-size:13px; line-height:1.6; }
.gm-external-link-body input { width:100%; height:40px; padding:0 12px; border:1px solid var(--brand-ink); border-radius:5px; background:var(--surface); color:var(--text); font:inherit; font-size:13px; outline:none; }
.gm-external-link-body .btn-crm { margin-top:22px; min-height:40px; min-width:78px; border-radius:22px; font-size:13px; }
.gm-external-link-body .btn-crm:disabled { opacity:.45; cursor:not-allowed; }
.gm-url-error { margin-top:7px!important; color:#b42318; font-size:12px!important; }
@media(max-width:650px) {
 .gm-confirmation-radio { font-size:13px; }
 .gm-confirmation-panel h2 { font-size:13px; }
 .gm-external-link-modal header,.gm-external-link-body { padding-left:20px; padding-right:20px; }
}


/* UI polish pass: restore readable sizing, consistent control heights and CRM button shape */
.gm-consent-modal { font-size:14px; }
.gm-consent-modal header { min-height:58px; padding:16px 28px; }
.gm-consent-modal h2 { font-size:17px; line-height:1.35; }
.gm-consent-modal header button { width:28px; height:28px; font-size:22px; }
.gm-consent-modal nav { padding:14px 28px 0; }
.gm-consent-modal nav button { min-width:66px; padding:10px 18px; font-size:13px; line-height:1.3; }
.gm-consent-content { padding:16px 28px 30px; font-size:13px; line-height:1.45; }
.gm-consent-settings-link { margin-bottom:14px; font-size:12px; }
.gm-consent-field-label { margin:0 0 14px; font-size:13px; line-height:1.4; font-weight:650; }
.gm-consent-field-label select,
.gm-consent-field-label textarea { margin-top:7px; border:1px solid var(--border-strong); border-radius:5px; font-size:13px; line-height:1.45; }
.gm-consent-field-label select { height:40px; padding:0 12px; }
.gm-consent-field-label textarea { min-height:70px; padding:12px 12px 30px; }
.gm-rich-toolbar { gap:10px; margin-top:-31px; margin-bottom:14px; padding:0 12px; }
.gm-rich-toolbar button { font-size:12px; }
.gm-consent-section-label { margin:20px 0 10px; font-size:13px; }
.gm-consent-checkbox-card { padding:16px; margin-bottom:16px; border-radius:10px; }
.gm-consent-checkbox-card .gm-consent-field-label { margin-bottom:14px; }
.gm-consent-required { gap:8px; font-size:12px; }
.gm-consent-required input { width:15px; height:15px; }
.gm-consent-add-checkbox { margin:0 0 24px; font-size:13px!important; }
.gm-consent-preview-card { padding:18px; font-size:13px; line-height:1.65; }
.gm-consent-preview-card p { margin:0 0 14px; }
.gm-consent-modal footer { gap:10px; padding:14px 28px; }
.gm-consent-modal footer .btn-crm,
.gm-external-link-body .btn-crm,
.gm-standard-modal > footer .btn-crm,
.gm-inline-editor-actions .btn-crm,
.gm-form-setting .gm-consent-actions .btn-crm {
  min-height:38px;
  padding:8px 16px;
  border-radius:6px !important;
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.25;
  box-shadow:none;
}
.gm-consent-modal footer .btn-crm--outline,
.gm-external-link-body .btn-crm--outline,
.gm-standard-modal > footer .btn-crm--outline,
.gm-inline-editor-actions .btn-crm--outline,
.gm-form-setting .gm-consent-actions .btn-crm--outline {
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--border-strong);
}
.gm-consent-modal footer .btn-crm--primary,
.gm-external-link-body .btn-crm--primary,
.gm-standard-modal > footer .btn-crm--primary {
  background:var(--brand-ink);
  color:var(--brand-contrast,#fff);
  border:1px solid var(--brand-ink);
}
.gm-confirmation-panel { font-size:14px; }
.gm-confirmation-panel h2 { margin:0 0 16px; gap:9px; font-size:16px; line-height:1.45; }
.gm-confirmation-radio {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  margin:12px 0 !important;
  font-size:15px !important;
  font-weight:400 !important;
  line-height:1.4 !important;
  text-align:left !important;
}
.gm-confirmation-radio input {
  display:block !important;
  width:19px !important;
  height:19px !important;
  min-width:19px !important;
  margin:0 !important;
  flex:0 0 19px !important;
}
.gm-confirmation-radio span { display:block; flex:1; min-width:0; }
.gm-confirmation-redirect { margin:18px 0 0 31px; max-width:560px; }
.gm-confirmation-location-trigger { min-height:42px; padding:0 14px; border-radius:6px; font-size:14px; }
.gm-confirmation-location-menu { border-radius:10px; }
.gm-confirmation-location-option,.gm-confirmation-add-external { min-height:44px; padding:12px 16px; font-size:14px; }
.gm-external-link-modal header { padding:20px 28px; }
.gm-external-link-modal header h2 { font-size:20px; }
.gm-external-link-body { padding:26px 28px 30px; }
.gm-external-link-body p { font-size:14px; }
.gm-external-link-body input { height:42px; border-radius:5px; font-size:14px; }
.gm-external-link-body .btn-crm { margin-top:22px; min-height:40px; min-width:78px; border-radius:6px !important; font-size:14px; }
.gm-url-error { font-size:13px!important; }
.gm-form-panel .gm-question-row>input { height:36px; padding:0 12px; font-size:13px; }
.gm-form-panel .gm-question-row label { gap:7px; font-size:13px; }
.gm-form-panel .gm-form-setting strong { font-size:13px; }
.gm-form-panel .gm-form-setting p { font-size:13px; line-height:1.45; }
.gm-form-panel .gm-inline-action { font-size:13px; }
.gm-form-panel .gm-consent-actions .btn-crm { min-height:38px; padding:8px 16px; border-radius:6px!important; font-size:13px; }
.gm-contact-property-trigger { height:38px; font-size:13px; }
.gm-contact-property-options button { min-height:40px; font-size:13px; }
.gm-custom-question-editor textarea { min-height:40px; font-size:13px; }
.gm-inline-editor-actions .btn-crm { min-height:34px; padding:6px 14px; font-size:13px; }
.gm-domain-entry>label,.gm-domain-add-row input,.gm-domain-add-row .btn-crm { font-size:13px; }
.gm-domain-add-row input,.gm-domain-add-row .btn-crm { height:38px; min-height:38px; }
.gm-form-additional-settings summary,.gm-form-additional-item strong,.gm-form-additional-item p { font-size:13px; }
.gm-form-setting { padding:14px 0 16px; }
.gm-form-additional-item { padding:16px 0; }
@media(max-width:650px) {
  .gm-consent-modal h2 { font-size:16px; }
  .gm-consent-content { padding:14px 16px 24px; }
  .gm-consent-modal header,.gm-consent-modal nav,.gm-consent-modal footer { padding-left:16px; padding-right:16px; }
  .gm-consent-field-label { font-size:12px; }
  .gm-confirmation-panel h2 { font-size:14px; }
  .gm-confirmation-radio { font-size:14px!important; }
  .gm-confirmation-redirect { margin-left:0; }
}


/* Consent drawer tabs: use the same neutral tab treatment in both Edit and Preview states.
   Actions continue to use the shared CRM theme button classes (.btn-crm). */
.gm-consent-modal nav {
  display:flex;
  align-items:stretch;
  gap:0;
  padding:14px 28px 0;
  border-bottom:1px solid var(--border-strong);
}
.gm-consent-modal nav button,
.gm-consent-modal nav button:hover,
.gm-consent-modal nav button:focus {
  appearance:none;
  min-width:84px;
  min-height:50px;
  margin:0;
  padding:12px 22px;
  border:1px solid var(--border);
  border-bottom:0;
  border-radius:0;
  background:var(--surface-2);
  color:var(--text);
  font:inherit;
  font-size:13px;
  font-weight:400;
  line-height:1.3;
  box-shadow:none;
  outline-offset:-2px;
}
.gm-consent-modal nav button + button { margin-left:-1px; }
.gm-consent-modal nav button.is-active,
.gm-consent-modal nav button.is-active:hover,
.gm-consent-modal nav button.is-active:focus {
  position:relative;
  z-index:1;
  border:1px solid var(--border);
  border-bottom:1px solid var(--surface);
  background:var(--surface);
  color:var(--text);
  font-weight:500;
  box-shadow:none;
}
.gm-consent-modal nav button:focus-visible {
  outline:2px solid var(--focus-ring, var(--brand-ink));
  outline-offset:-3px;
}
.gm-consent-modal footer .btn-crm,
.gm-external-link-body .btn-crm,
.gm-form-setting .gm-consent-actions .btn-crm,
.gm-inline-editor-actions .btn-crm {
  border-radius:6px !important;
  font-family:inherit;
  box-shadow:none;
}
.gm-consent-modal footer .btn-crm--outline,
.gm-form-setting .gm-consent-actions .btn-crm--outline,
.gm-inline-editor-actions .btn-crm--outline {
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--border-strong);
}
.gm-consent-modal footer .btn-crm--primary {
  background:var(--brand-ink);
  color:var(--brand-contrast,#fff);
  border:1px solid var(--brand-ink);
}
@media(max-width:650px) {
  .gm-consent-modal nav { padding:12px 16px 0; }
  .gm-consent-modal nav button,
  .gm-consent-modal nav button:hover,
  .gm-consent-modal nav button:focus { min-height:46px; padding:10px 18px; }
}


/* Automation step: email settings cards and editable message templates */
.gm-automation-view { width:100%; }
.gm-automation-content { width:min(100%, 1240px); max-width:1240px; padding:24px 0 40px; }
.gm-automation-content>h1 { margin:0 0 20px; font-size:22px; font-weight:650; }
.gm-automation-card { width:100%; margin:0 0 18px; padding:22px 20px 20px; border:1px solid var(--border-strong); border-radius:14px; background:var(--surface); color:var(--text); }
.gm-automation-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:18px; }
.gm-automation-card-head>div { min-width:0; flex:1; }
.gm-automation-card-head h2 { margin:0 0 5px; font-size:16px; line-height:1.4; font-weight:650; }
.gm-automation-card-head p { margin:0; font-size:14px; line-height:1.5; color:var(--text); }
.gm-automation-card-head .gm-switch { flex:0 0 auto; margin-top:2px; }
.gm-email-preview-trigger { display:inline-flex; align-items:center; justify-content:center; min-height:34px; margin:0 0 18px; padding:6px 14px; border-radius:8px!important; font:inherit; font-size:13px; font-weight:500; line-height:1.3; }
.gm-automation-customize { margin-top:0; }
.gm-automation-customize summary { display:flex; align-items:center; gap:9px; width:max-content; max-width:100%; margin:0 0 18px; color:var(--text); font-size:14px; font-weight:650; cursor:pointer; list-style:none; }
.gm-automation-customize summary::-webkit-details-marker { display:none; }
.gm-automation-customize summary::before { content:"⌄"; display:inline-block; font-size:16px; font-weight:400; }
.gm-automation-customize:not([open]) summary::before { content:"›"; }
.gm-beta-badge { display:inline-flex; align-items:center; padding:3px 9px; border-radius:12px; background:var(--brand-ink); color:#fff; font-size:11px; font-weight:650; }
.gm-email-fields { padding:0 0 0 20px; }
.gm-email-field { display:block; width:min(100%, 805px); margin:0 0 22px; color:var(--text); }
.gm-email-field>span { display:block; margin:0 0 8px; font-size:14px; line-height:1.35; font-weight:650; }
.gm-email-editor-wrap { position:relative; min-height:80px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface); overflow:visible; }
.gm-email-editor { min-height:76px; padding:12px 12px 35px; outline:none; color:var(--text); font:inherit; font-size:14px; line-height:1.55; overflow-wrap:anywhere; }
.gm-email-editor:focus { box-shadow:0 0 0 1px var(--brand-ink); border-radius:6px; }
.gm-email-subject { min-height:78px; padding-bottom:36px; }
.gm-email-body-wrap { min-height:210px; }
.gm-email-body { min-height:210px; padding-bottom:42px; }
.gm-email-body p { margin:0 0 18px; }
.gm-email-body p:last-child { margin-bottom:0; }
.gm-email-personalize { position:absolute; right:12px; bottom:10px; z-index:2; padding:3px 6px; border:0; border-radius:0; background:var(--surface); color:var(--text); font:inherit; font-size:13px; font-weight:650; cursor:pointer; }
.gm-email-toolbar { position:absolute; left:10px; right:150px; bottom:8px; display:flex; align-items:center; gap:12px; min-height:22px; }
.gm-email-toolbar button { display:inline-flex; align-items:center; padding:0; border:0; background:transparent; color:var(--text); font:inherit; font-size:13px; cursor:pointer; }
.gm-email-toolbar .gm-email-personalize { right:auto; left:calc(100% + 280px); bottom:0; white-space:nowrap; }
.gm-email-image-field { display:flex; flex-wrap:wrap; align-items:center; gap:18px; width:min(100%,805px); margin:0 0 24px; padding:0; border:0; }
.gm-email-image-field legend { width:100%; margin-bottom:10px; font-size:14px; font-weight:650; }
.gm-email-image-field>label { display:inline-flex; align-items:center; gap:8px; font-size:14px; cursor:pointer; }
.gm-email-image-field input[type="radio"] { width:18px; height:18px; margin:0; accent-color:var(--text); }
.gm-custom-image-upload { width:100%; margin-top:8px; }
.gm-custom-image-upload[hidden] { display:none!important; }
.gm-reminder-label { display:block; margin:0 0 16px; font-size:14px; font-weight:650; }
.gm-reminder-rows { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-bottom:12px; }
.gm-reminder-row { display:flex; align-items:center; gap:0; width:min(100%, 290px); }
.gm-reminder-row input[type="number"] { width:60px; height:40px; padding:0 12px; border:1px solid var(--border-strong); border-radius:6px 0 0 6px; background:var(--surface); color:var(--text); font:inherit; font-size:14px; }
.gm-reminder-row select { flex:1; min-width:0; height:40px; padding:0 12px; border:1px solid var(--border-strong); border-left:0; border-radius:0 6px 6px 0; background:var(--surface); color:var(--text); font:inherit; font-size:14px; }
.gm-reminder-remove { display:grid; place-items:center; width:32px; height:36px; margin-left:8px; border:0; background:transparent; color:var(--text); font-size:17px; cursor:pointer; }
.gm-add-reminder { display:block; margin:2px 0 28px; padding:0; border:0; background:transparent; color:var(--brand-ink); font:inherit; font-size:14px; cursor:pointer; }
.gm-reminder-content.is-disabled,.gm-confirmation-email-card.is-disabled { opacity:.52; }
.gm-reminder-content.is-disabled { pointer-events:none; }
.gm-confirmation-email-card.is-disabled .gm-automation-customize,
.gm-confirmation-email-card.is-disabled .gm-email-preview-trigger { pointer-events:none; }
.gm-email-preview-backdrop { position:fixed; inset:0; z-index:2600; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(0,0,0,.42); }
.gm-email-preview-backdrop[hidden] { display:none!important; }
.gm-email-preview-modal { display:flex; flex-direction:column; width:min(540px,100%); max-height:min(92vh,900px); overflow:hidden; border:1px solid var(--border); border-radius:18px; background:var(--surface); color:var(--text); box-shadow:0 18px 50px rgba(0,0,0,.22); }
.gm-email-preview-modal>header { display:flex; align-items:center; justify-content:space-between; min-height:68px; padding:18px 28px; border-bottom:1px solid var(--border); }
.gm-email-preview-modal>header h2 { margin:0; font-size:20px; font-weight:650; }
.gm-email-preview-modal>header button { width:30px; height:30px; border:0; background:transparent; color:var(--text); font-size:24px; cursor:pointer; }
.gm-email-preview-content { flex:1; overflow:auto; padding:24px 28px; font-size:14px; }
.gm-email-preview-meta>span { display:block; margin-bottom:6px; color:var(--text-muted); }
.gm-email-preview-meta>p { margin:0 0 18px; overflow-wrap:anywhere; }
.gm-email-preview-letter { padding:18px 16px 22px; border:1px solid var(--border-strong); border-radius:16px; }
.gm-email-preview-letter h2 { margin:0 0 22px; font-size:14px; line-height:1.35; }
.gm-email-preview-avatar { display:grid; place-items:center; width:90px; height:90px; margin:0 auto 22px; border-radius:50%; background:var(--surface-3); color:var(--text); font-size:42px; }
.gm-email-preview-letter hr { border:0; border-top:1px solid var(--border); margin:0 0 22px; }
.gm-email-preview-body { overflow-wrap:anywhere; font-size:14px; line-height:1.65; }
.gm-email-preview-body p { margin:0 0 18px; }
.gm-email-preview-signature-note { margin:16px 0 0; font-size:13px; line-height:1.6; color:var(--text-muted); }
.gm-email-preview-signature-note a { color:var(--brand-ink); font-weight:650; }
.gm-email-preview-modal>footer { padding:0 28px 24px; }
.gm-email-preview-modal>footer .btn-crm { min-height:40px; padding:8px 22px; border-radius:6px!important; }
@media(max-width:760px) {
 .gm-automation-content { padding:18px 12px 30px; }
 .gm-automation-card { padding:18px 14px; }
 .gm-automation-card-head h2 { font-size:15px; }
 .gm-automation-card-head p { font-size:13px; }
 .gm-email-fields { padding-left:0; }
 .gm-email-field { width:100%; }
 .gm-email-image-field { gap:12px; }
 .gm-email-image-field>label { font-size:12px; }
 .gm-email-toolbar .gm-email-personalize { position:static; margin-left:auto; }
 .gm-email-toolbar { right:10px; }
 .gm-email-editor { font-size:13px; }
 .gm-email-preview-modal>header,.gm-email-preview-content { padding-left:18px; padding-right:18px; }
}

/* Automation editor token sizing fix: SVGs must not expand to full editor dimensions. */
.gm-email-editor .gm-token {
  display:inline-flex; align-items:center; gap:5px; max-width:100%; vertical-align:baseline;
  margin:1px 3px 2px 0; padding:1px 6px; border:1px solid #ff704d; border-radius:6px;
  background:#fff0eb; color:#202b3c; font-size:14px; line-height:18px; font-weight:500;
  white-space:normal; cursor:default; user-select:all;
}
.gm-email-editor .gm-token svg,
.gm-email-preview-body .gm-token svg,
.gm-email-preview-letter .gm-token svg {
  display:inline-block!important; width:13px!important; min-width:13px!important; max-width:13px!important;
  height:13px!important; min-height:13px!important; max-height:13px!important; flex:0 0 13px!important;
  fill:none!important; stroke:currentColor!important; stroke-width:1.35!important; stroke-linecap:round; stroke-linejoin:round;
  vertical-align:middle;
}
.gm-email-editor .gm-token--contact { border-color:#ff704d; background:#fff0eb; }
.gm-email-editor .gm-token--host { border-color:#ff704d; background:#fff0eb; }
.gm-email-editor .gm-token--meeting { border-color:#a48cff; background:#f0eaff; }
.gm-email-editor .gm-token--company { border-color:#69b8ff; background:#e6f3ff; }
.gm-email-editor .gm-token:focus { outline:2px solid var(--brand-ink); outline-offset:1px; }
.gm-reminder-remove svg { display:block; width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; }
.gm-image-picker-backdrop { position:fixed; inset:0; z-index:2700; background:rgba(16,24,40,.22); }
.gm-image-picker-backdrop[hidden] { display:none!important; }
.gm-image-picker { position:absolute; top:0; right:0; display:flex; flex-direction:column; width:min(390px,100%); height:100%; background:var(--surface); color:var(--text); border-left:1px solid var(--border); box-shadow:-12px 0 34px rgba(16,24,40,.12); }
.gm-image-picker>header { display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--border); }
.gm-image-picker>header h2 { margin:0; font-size:18px; font-weight:650; }
.gm-image-picker>header button { border:0; background:transparent; color:var(--text); font-size:24px; cursor:pointer; }
.gm-image-picker-search { padding:16px 18px; }
.gm-image-picker-search input { width:100%; height:40px; padding:0 12px; border:1px solid var(--border-strong); border-radius:20px; background:var(--surface); color:var(--text); font:inherit; font-size:13px; }
.gm-image-picker-section { padding:0 18px 20px; }
.gm-image-picker-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; font-size:13px; }
.gm-image-picker-section-head button { border:0; background:transparent; color:var(--brand-ink); font:inherit; font-size:12px; cursor:pointer; }
.gm-image-picker-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.gm-image-option { display:flex; flex-direction:column; gap:6px; min-width:0; padding:5px; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--text); text-align:left; font:inherit; font-size:12px; cursor:pointer; }
.gm-image-option[hidden] { display:none!important; }
.gm-image-option.is-selected,.gm-image-option:hover { border-color:var(--brand-ink); background:var(--brand-soft); }
.gm-image-thumb { display:grid; place-items:center; width:100%; height:78px; border:1px solid var(--border); border-radius:4px; background:var(--surface-3); color:var(--text-muted); font-size:15px; font-weight:700; }
.gm-image-thumb--logo { background:#d7d2b3; color:#625d3e; }
.gm-image-thumb--team { background:#e7e9ed; color:#6b7280; }
.gm-image-thumb--office { background:#dfe8ee; color:#526878; }
.gm-image-thumb--brand { background:#d8dbe2; color:#4f5663; }
.gm-image-folder-row { display:flex; gap:28px; }
.gm-image-folder-row>span { display:flex; flex-direction:column; gap:5px; font-size:24px; color:var(--text-muted); }
.gm-image-folder-row small { font-size:11px; color:var(--text); }
.gm-image-picker>footer { margin-top:auto; padding:14px 18px; border-top:1px solid var(--border); }
.gm-image-upload-label { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:6px 16px; border-radius:6px!important; cursor:pointer; }
.gm-custom-image-trigger { display:flex; align-items:center; gap:12px; padding:0; border:0; background:transparent; color:var(--brand-ink); font:inherit; font-size:13px; cursor:pointer; }
.gm-custom-image-avatar { display:grid; place-items:center; width:42px; height:42px; overflow:hidden; border-radius:50%; background:var(--surface-3); color:var(--text-muted); font-size:20px; background-size:cover; background-position:center; }
.gm-custom-image-avatar.has-image { color:transparent; }
@media(max-width:600px) { .gm-image-picker { width:min(360px,100%); } }
.gm-email-preview-meta .gm-token svg,
.gm-email-preview-letter h2 .gm-token svg { display:inline-block!important; width:13px!important; height:13px!important; min-width:13px!important; max-width:13px!important; flex:0 0 13px!important; fill:none!important; stroke:currentColor!important; }

/* Fixes from the latest visual review: modal scrolling, toolbars, chips, SVG controls */
html.gm-overlay-open, body.gm-overlay-open { overflow:hidden !important; overscroll-behavior:none; }
.gm-consent-backdrop,.gm-drawer-backdrop,.gm-modal-backdrop,.gm-email-preview-backdrop,.gm-external-link-backdrop { overscroll-behavior:contain; }
.gm-consent-modal { min-height:0; max-height:100dvh; }
.gm-consent-content { min-height:0; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.gm-rich-toolbar { position:static; display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:5px 0 18px; padding:0 4px; pointer-events:auto; line-height:1.4; }
.gm-rich-toolbar button { display:inline-flex; align-items:center; min-height:22px; padding:0; line-height:1.4; }
.gm-consent-field-label textarea { min-height:76px; padding:10px 12px; resize:vertical; }
.gm-consent-field-label select { height:40px; padding:0 12px; }
.gm-consent-content { font-size:13px; line-height:1.45; }
.gm-consent-field-label { font-size:13px; line-height:1.4; margin-bottom:12px; }
.gm-consent-section-label { font-size:13px; margin:18px 0 10px; }
.gm-consent-checkbox-card { padding:16px; border-radius:10px; }
.gm-consent-required { font-size:13px; }
.gm-consent-modal footer .btn-crm { min-height:38px; padding:8px 16px; border-radius:6px; font-size:13px; }
.gm-consent-modal header .modal__close,
.gm-members-drawer header .modal__close,
.gm-external-link-modal header .modal__close,
.gm-email-preview-modal header .modal__close,
.gm-standard-modal header .modal__close {width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #475467);
    background: none;
    border: 0;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;}
.gm-consent-modal header .modal__close:hover,
.gm-members-drawer header .modal__close:hover,
.gm-external-link-modal header .modal__close:hover,
.gm-email-preview-modal header .modal__close:hover,
.gm-standard-modal header .modal__close:hover{background: var(--surface-hover, #f2f4f7);
    color: var(--text, #101828);}
.gm-consent-modal header .modal__close svg,
.gm-members-drawer header .modal__close svg,
.gm-external-link-modal header .modal__close svg,
.gm-email-preview-modal header .modal__close svg,
.gm-standard-modal header .modal__close svg { width:20px; height:20px; }
.gm-members-drawer { min-height:0; overflow:hidden; }
.gm-drawer-body { min-height:0; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.gm-member-select { height:auto; min-height:40px; flex-wrap:wrap; align-content:center; gap:4px; padding:5px 8px; }
.gm-member-select input { flex:1 1 90px; min-width:90px; max-width:100%; }
.gm-member-select>button { flex:0 0 24px; margin-left:auto; }
.gm-member-chip { max-width:100%; min-width:0; white-space:nowrap; }
.gm-member-chip>span { display:inline-grid; place-items:center; width:16px; height:16px; flex:0 0 16px; border-radius:50%; background:var(--surface); }
.gm-member-chip button { display:inline-grid; place-items:center; width:16px; height:16px; flex:0 0 16px; }
.gm-member-chip button svg { display:block; width:12px; height:12px; }
.gm-availability-row .gm-remove-day { display:grid; place-items:center; min-width:24px; min-height:34px; position:relative; z-index:2; cursor:pointer; pointer-events:auto; }
.gm-availability-row .gm-remove-day svg { width:16px; height:16px; pointer-events:none; }
.gm-info { position:relative; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.gm-info-tooltip { position:absolute; z-index:3000; left:50%; bottom:calc(100% + 8px); width:max-content; max-width:min(260px,75vw); padding:9px 11px; border:1px solid var(--border); border-radius:7px; background:var(--surface); color:var(--text); box-shadow:0 6px 20px rgba(16,24,40,.15); font-size:12px; font-weight:400; line-height:1.45; white-space:normal; transform:translateX(-50%); }
.gm-info-tooltip::after { content:""; position:absolute; top:100%; left:50%; border:6px solid transparent; border-top-color:var(--border); transform:translateX(-50%); }
.gm-info.is-open { z-index:3001; }
/* Prevent legacy global token styles from turning automation tokens into oversized blocks. */
.gm-email-editor .gm-token { display:inline-flex !important; align-items:center; width:auto !important; height:auto !important; min-width:0 !important; min-height:0 !important; margin:1px 3px 2px 0 !important; padding:2px 6px !important; border:1px solid #ff704d !important; border-radius:6px !important; background:#fff0eb !important; color:#202b3c !important; font-size:13px !important; font-weight:500 !important; line-height:1.35 !important; white-space:normal !important; box-shadow:none !important; }
.gm-email-editor .gm-token--meeting { border-color:#a78bfa !important; background:#f0eaff !important; }
.gm-email-editor .gm-token::before,.gm-email-editor .gm-token::after { content:none !important; display:none !important; }
.gm-email-editor .gm-token svg { display:inline-block; width:13px; height:13px; flex:0 0 13px; }
.gm-email-editor .gm-token { overflow-wrap:anywhere; }
.gm-reminder-remove { position:relative; z-index:2; cursor:pointer; }
.gm-reminder-remove svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
@media(max-width:650px) {
  .gm-consent-content { padding:14px 18px 22px; }
  .gm-consent-field-label textarea { min-height:82px; }
  .gm-member-modes { gap:10px; }
  .gm-members-drawer>header { min-height:64px; height:64px; }
}
.gm-email-editor .gm-token>svg { display:inline-block !important; width:13px !important; height:13px !important; flex:0 0 13px !important; fill:none !important; stroke:currentColor !important; stroke-width:1.2 !important; }
.gm-email-editor .gm-token>span { display:inline !important; width:auto !important; height:auto !important; padding:0 !important; margin:0 !important; background:transparent !important; color:inherit !important; font:inherit !important; }
.gm-info>svg { width:15px; height:15px; display:block; }
.gm-members-drawer .gm-member-select { row-gap:4px; }


/* Latest screenshot fixes: eliminate blank hover tooltip, duplicate info border, dismiss dropdowns and standardize button radius. */
.gm-info:hover::after,
.gm-info:focus-visible::after,
.gm-info:hover::before,
.gm-info:focus-visible::before { content:none !important; display:none !important; }
.gm-info,.gm-info.is-open { border:0 !important; outline:0; box-shadow:none !important; background:transparent !important; }
.gm-info>svg { width:15px; height:15px; border:0 !important; outline:0; }
.gm-info-tooltip { display:block; pointer-events:none; }
.gm-member-options[hidden],.gm-search-select-menu[hidden],.gm-select-menu[hidden] { display:none !important; }
.gm-member-select { position:relative; z-index:3; margin-bottom: 15px;}
.gm-member-options { position:relative; z-index:2300; margin-top:4px; border-radius:0 0 12px 12px; }
.gm-members-drawer { overflow:hidden; }
.gm-members-drawer .gm-drawer-body { position:relative; overflow-y:auto; overflow-x:visible; }
/* Theme-compatible consistent button radius; keep close controls and tiny chip controls compact. */
.gm-page button,
.gm-members-drawer button,
.gm-consent-modal button,
.gm-standard-modal button,
.gm-external-link-modal button,
.gm-email-preview-modal button,
.gm-image-picker button,
.gm-token-popover button,
.gm-link-popover button { border-radius:8px; }
.gm-member-chip button { border-radius:4px !important; }
.gm-members-drawer .modal__close,.gm-consent-modal .modal__close,.gm-standard-modal .modal__close,.gm-email-preview-modal .modal__close,.gm-external-link-modal .modal__close { border-radius:8px; }
.gm-availability-row .gm-remove-day { border-radius:8px !important; pointer-events:auto; }
.gm-availability-row .gm-remove-day svg { pointer-events:none; }


/* Final editor alignment: keep Personalize inside every subject/body editor. */
.gm-email-editor-wrap { min-width:0; }
.gm-email-editor-wrap > .gm-email-personalize {
  position:absolute;
  right:10px;
  bottom:8px;
  left:auto;
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  max-width:calc(100% - 20px);
  white-space:nowrap;
  line-height:1.35;
}
.gm-email-toolbar {
  left:10px;
  right:10px;
  bottom:7px;
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}
.gm-email-toolbar .gm-email-personalize {
  position:static;
  left:auto;
  right:auto;
  bottom:auto;
  margin-left:auto;
  flex:0 0 auto;
  max-width:calc(100% - 12px);
  white-space:nowrap;
}
.gm-email-editor-wrap:has(.gm-email-toolbar) .gm-email-editor { padding-bottom:44px; }
.gm-email-editor-wrap:has(.gm-email-toolbar) .gm-email-body { padding-bottom:46px; }
.gm-chevron-icon {
  display:inline-block!important;
  width:13px!important;
  height:13px!important;
  min-width:13px!important;
  max-width:13px!important;
  flex:0 0 13px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.6!important;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:middle;
}
.gm-text-button .gm-chevron-icon,
.gm-email-personalize .gm-chevron-icon,
.gm-email-more .gm-chevron-icon,
.gm-member-dropdown .gm-chevron-icon { margin-left:2px; }
.gm-automation-customize summary::before { content:none!important; display:none!important; }
.gm-automation-customize summary { display:flex; align-items:center; gap:9px; }
.gm-summary-chevron {
  width:14px; height:14px; flex:0 0 14px; fill:none; stroke:currentColor;
  stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; transition:transform .15s ease;
}
.gm-automation-customize[open] .gm-summary-chevron { transform:rotate(180deg); }
.gm-automation-customize summary > span:first-of-type { min-width:0; }
.gm-automation-customize summary .gm-beta-badge { flex:0 0 auto; }
.gm-reminder-content[hidden],
.gm-automation-customize[hidden],
.gm-email-preview-trigger[hidden] { display:none!important; }
.gm-reminder-content.is-disabled { opacity:1; pointer-events:auto; }
.gm-confirmation-email-card.is-disabled { opacity:1; }
.gm-confirmation-email-card.is-disabled .gm-automation-card-head { margin-bottom:0; }
.gm-confirmation-email-card.is-disabled .gm-automation-customize,
.gm-confirmation-email-card.is-disabled .gm-email-preview-trigger { display:none!important; }

/* SVG dropdown arrows for native selects throughout the meeting flow. */
.gm-page select,
.gm-members-drawer select {
  appearance:none;
  -webkit-appearance:none;
  padding-right:34px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23475467' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 11px center;
  background-size:14px 14px;
}
.gm-page select:disabled { background-image:none; }
.gm-select-trigger > svg,
.gm-multi-select .gm-select-trigger > svg { flex:0 0 14px; }
@media(max-width:760px) {
  .gm-email-editor-wrap > .gm-email-personalize { right:8px; bottom:7px; }
  .gm-email-toolbar { left:8px; right:8px; gap:8px; }
  .gm-email-toolbar .gm-email-personalize { margin-left:auto; }
}


/* Keep personalization/link popovers positioned by their anchor coordinates.
   Avoid the fallback top-left placement being retained during page scroll. */
.gm-token-popover,
.gm-link-popover {
  position: fixed;
  right: auto;
  bottom: auto;
  transform: none;
  margin: 0;
}
.gm-token-popover[hidden],
.gm-link-popover[hidden] {
  display: none !important;
}


/* Consent text fields use the same inline rich-editor pattern as meeting email editors. */
.gm-consent-rich-wrap {
  display:block;
  margin-top:7px;
  border:1px solid var(--border-strong);
  border-radius:6px;
  background:var(--surface);
  overflow:visible;
}
.gm-consent-rich-wrap:focus-within {
  border-color:var(--brand-ink);
  box-shadow:0 0 0 2px var(--focus-ring,rgba(36,86,230,.16));
}
.gm-consent-rich-editor {
  min-height:74px;
  max-height:220px;
  overflow:auto;
  padding:10px 12px 8px;
  color:var(--text);
  background:transparent;
  font:inherit;
  font-size:13px;
  line-height:1.5;
  font-weight:400;
  outline:0;
  overflow-wrap:anywhere;
  white-space:normal;
}
.gm-consent-rich-editor:empty::before {
  content:attr(data-placeholder);
  color:var(--text-subtle);
  pointer-events:none;
}
.gm-consent-rich-editor p { margin:0 0 7px; }
.gm-consent-rich-editor ul,.gm-consent-rich-editor ol { padding-left:22px; margin:5px 0; }
.gm-consent-rich-editor a { color:var(--brand-ink); text-decoration:underline; }
.gm-consent-rich-wrap .gm-rich-toolbar {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  min-height:31px;
  margin:0;
  padding:3px 10px 6px;
  border:0;
  background:transparent;
}
.gm-consent-rich-wrap .gm-rich-toolbar button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-height:24px;
  padding:2px 1px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:var(--text-muted);
  font:inherit;
  font-size:12px;
  line-height:1.2;
  cursor:pointer;
}
.gm-consent-rich-wrap .gm-rich-toolbar button:hover,
.gm-consent-rich-wrap .gm-rich-toolbar button:focus-visible {
  color:var(--text);
  background:var(--surface-hover);
  outline:none;
}
.gm-consent-rich-wrap .gm-rich-toolbar button svg {
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.gm-consent-field-label .gm-consent-rich-wrap { font-weight:400; }
.gm-consent-preview-copy { margin:0 0 14px; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.gm-consent-preview-copy p { margin:0 0 8px; }
.gm-consent-preview-copy ul,.gm-consent-preview-copy ol { padding-left:22px; }
.gm-consent-preview-checkbox { margin:0 0 14px; }
.gm-consent-preview-card { font-size:13px; line-height:1.6; }
.gm-consent-preview-card input { vertical-align:middle; }
@media(max-width:650px) {
  .gm-consent-rich-editor { min-height:78px; }
  .gm-consent-rich-wrap .gm-rich-toolbar { gap:8px; }
}

.gm-consent-link-form { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 10px 10px; border-top:1px solid var(--border); }
.gm-consent-link-form[hidden] { display:none!important; }
.gm-consent-link-form input { flex:1 1 150px; min-width:0; height:34px; padding:0 10px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface); color:var(--text); font:inherit; font-size:13px; }
.gm-consent-link-form button { min-height:32px; padding:5px 11px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface); color:var(--text); font:inherit; font-size:12px; cursor:pointer; }
.gm-consent-link-form button[data-insert-consent-link] { border-color:var(--brand-ink); background:var(--brand-ink); color:var(--brand-contrast,#fff); }


/* Consent drawer uses the exact CRM Activity Composer editor used on record.php. */
.gm-consent-rich-wrap {
  display:block;
  margin-top:7px;
  min-width:0;
  border:1px solid var(--border-strong, #d0d5dd);
  border-radius:6px;
  background:var(--surface, #fff);
  overflow:visible;
}
.gm-consent-rich-wrap:focus-within {
  border-color:var(--brand-ink, var(--brand, #2456e6));
  box-shadow:0 0 0 1px var(--brand-ink, var(--brand, #2456e6));
}
.gm-consent-rich-wrap > .acx-editor.gm-consent-activity-editor {
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  min-height:0;
  overflow:visible;
  border:0;
  border-radius:6px;
  background:transparent;
}
.gm-consent-rich-wrap .gm-consent-rich-editor.acx-editor__area {
  display:block;
  box-sizing:border-box;
  width:100%;
  min-height:70px;
  max-height:none;
  flex:1 0 auto;
  padding:10px 12px 8px;
  overflow-y:auto;
  border:0;
  border-radius:6px 6px 0 0;
  outline:0;
  box-shadow:none;
  background:transparent;
  color:var(--text, #101828);
  font:inherit;
  font-size:13px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.gm-consent-rich-wrap .gm-consent-rich-editor.acx-editor__area:focus {
  border:0;
  outline:0;
  box-shadow:none;
}
.gm-consent-rich-wrap .acx-toolbar {
  position:relative;
  inset:auto;
  display:flex;
  flex:0 0 auto;
  flex-wrap:wrap;
  align-items:center;
  gap:2px;
  box-sizing:border-box;
  width:100%;
  min-height:38px;
  margin:0;
  padding:4px 8px;
  border:0;
  border-top:1px solid var(--border, #e4e7ec);
  border-radius:0 0 6px 6px;
  background:var(--surface, #fff);
}
.gm-consent-rich-wrap .acx-toolbar .acx-tool { min-width:28px; height:30px; padding:0 5px; }
.gm-consent-rich-wrap .acx-editor__area p { margin:0 0 8px; }
.gm-consent-rich-wrap .acx-editor__area p:last-child { margin-bottom:0; }
.gm-consent-rich-wrap .acx-editor__area a { color:var(--brand-ink, var(--brand, #2456e6)); }
.gm-consent-content .gm-consent-field-label { margin-bottom:12px; }
.gm-consent-content .gm-consent-checkbox-card .gm-consent-field-label { margin-bottom:12px; }


/* Keep Activity Composer More/link popovers above the consent right-side drawer.
   The composer appends these popovers to body, so the drawer's stacking context
   otherwise paints over them. Scope the higher layer to the consent editor only. */
html.gm-consent-editor-open .acx-pop,
body.gm-consent-editor-open .acx-pop {
  z-index: 2505 !important;
}
html.gm-consent-editor-open .acx-pop .acx-pop__arrow,
body.gm-consent-editor-open .acx-pop .acx-pop__arrow {
  z-index: 1;
}

/* Live scheduling preview states: Welcome, Schedule, Form and Confirmation. */
.gm-preview-state[hidden], .gm-schedule-panel[hidden] { display:none!important; }
.gm-scheduling-preview .gm-browser { overflow:hidden; }
.gm-scheduling-preview .gm-preview-state { min-height:430px; background:var(--surface); }
.gm-welcome-preview { min-height:400px; margin:8px; padding:28px 24px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; background:var(--surface); border:1px solid var(--border); border-radius:3px; }
.gm-welcome-illustration { width:120px; height:100px; margin-bottom:10px; }
.gm-welcome-illustration svg { width:100%; height:100%; }
.gm-welcome-preview h2 { margin:0 0 8px; font-size:23px; line-height:1.25; font-weight:500; color:var(--text); }
.gm-welcome-preview p { max-width:290px; margin:0 0 24px; font-size:12px; line-height:1.55; color:var(--text-muted); }
.gm-welcome-preview>label { align-self:stretch; text-align:left; margin:0 0 7px; font-size:11px; font-weight:650; color:var(--text); }
.gm-welcome-preview>input { width:100%; height:36px; border:1px solid var(--border-strong); border-radius:5px; background:var(--surface); color:var(--text); padding:0 10px; }
.gm-welcome-preview>button { min-height:34px; margin-top:14px; padding:0 20px; border:0; border-radius:20px; background:var(--brand-ink); color:#fff; font-size:11px; font-weight:650; cursor:pointer; }
.gm-welcome-preview>button:disabled { background:var(--surface-3); color:var(--text-subtle); cursor:not-allowed; }
.gm-calendar-dates { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; }
.gm-calendar-dates button { min-width:0; padding:5px 0; border:0; border-radius:50%; background:transparent; color:inherit; font:inherit; font-size:11px; cursor:pointer; }
.gm-calendar-dates button:hover,.gm-calendar-dates button.is-selected { background:#fff; color:#405a72; }
.gm-preview-times { max-height:270px; overflow:auto; padding-right:2px; }
.gm-preview-time { display:block; width:100%; background:var(--surface); color:var(--text-muted); cursor:pointer; }
.gm-preview-time:hover,.gm-preview-time.is-selected { border-color:var(--brand-ink); color:var(--brand-ink); box-shadow:0 0 0 1px var(--brand-ink); }
.gm-form-preview { min-height:410px; padding:26px 22px; background:var(--surface); font-size:11px; color:var(--text); }
.gm-form-preview h3 { margin:0 0 8px; font-size:14px; }
.gm-form-preview p { margin:0 0 14px; color:var(--text-muted); line-height:1.5; }
.gm-form-preview p button { padding:0; border:0; background:transparent; color:var(--brand-ink); font:inherit; cursor:pointer; }
.gm-form-preview>label,.gm-preview-question { display:block; margin:0 0 12px; font-size:11px; font-weight:600; }
.gm-form-preview input { display:block; width:100%; height:30px; margin-top:5px; padding:0 8px; border:1px solid var(--border-strong); border-radius:5px; background:var(--surface); color:var(--text); }
.gm-preview-name-fields { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:12px; }
.gm-preview-name-fields label { font-size:11px; font-weight:600; }
.gm-preview-name-fields input { width:100%; }
.gm-preview-consent { padding:10px; border:1px solid var(--border); border-radius:6px; background:var(--surface-2); }
.gm-form-preview button { min-height:29px; padding:0 12px; border:1px solid var(--border-strong); border-radius:18px; background:var(--surface); color:var(--text); font-size:11px; cursor:pointer; }
.gm-form-preview .gm-preview-confirm { float:right; border-color:var(--brand-ink); background:var(--brand-ink); color:#fff; }
.gm-booking-confirmed { min-height:410px; margin:8px; padding:34px 20px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border:1px solid var(--border); border-radius:7px; background:var(--surface); }
.gm-confirmed-icon { width:78px; height:78px; margin-bottom:20px; }
.gm-confirmed-icon svg { width:100%; height:100%; fill:none; stroke:#008f88; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.gm-confirmed-icon svg circle { fill:#e3f7f4; stroke:#008f88; }
.gm-booking-confirmed h2 { margin:0 0 10px; font-size:18px; font-weight:550; }
.gm-booking-confirmed p { margin:0 0 16px; font-size:11px; line-height:1.55; color:var(--text-muted); }
.gm-booking-confirmed strong { font-size:12px; line-height:1.6; }
.gm-welcome-panel>label { margin-top:18px; }
.gm-welcome-panel>.gm-schedule-input { margin-bottom:8px; }
.gm-welcome-panel textarea.gm-schedule-input { height:auto; min-height:76px; padding:10px 12px; resize:vertical; }
.gm-welcome-prioritize { margin:0 0 22px; padding:8px 0 20px; }
.gm-welcome-image-options { margin:12px 0 8px; }
@media(max-width:650px) { .gm-welcome-preview,.gm-form-preview,.gm-booking-confirmed { min-height:350px; padding:22px 16px; } .gm-scheduling-preview .gm-preview-state { min-height:350px; } }
.gm-welcome-company-avatar { display:grid; place-items:center; width:70px; height:70px; margin:12px auto; border-radius:50%; background:var(--surface-3); color:var(--text-muted); font-size:32px; font-weight:500; }
.gm-welcome-illustration img { width:90px; height:90px; object-fit:cover; border-radius:8px; }


/* Calendar preview: month navigation, full month grid, and past/future date states. */
.gm-calendar-month-row{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 18px}
.gm-calendar-month-row p{margin:0!important;font-size:13px!important;font-weight:600;color:#fff!important;white-space:nowrap}
.gm-calendar-month-nav{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
.gm-calendar-month-nav svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.gm-calendar-month-nav:disabled{opacity:.25;cursor:not-allowed}
.gm-calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin:0 0 8px;font-size:9px;font-weight:650;color:#fff}
.gm-calendar-weekdays span{min-width:0;text-align:center;text-transform:uppercase}
.gm-calendar-dates{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.gm-calendar-dates .gm-calendar-empty{height:29px}
.gm-calendar-dates button{width:29px;height:29px;min-width:0;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;font:inherit;font-size:11px;cursor:pointer}
.gm-calendar-dates button:disabled{opacity:.28;cursor:not-allowed}
.gm-calendar-dates button:hover:not(:disabled),.gm-calendar-dates button.is-selected{background:#fff;color:#405a72}
.gm-calendar-dates button.is-today:not(.is-selected){box-shadow:inset 0 0 0 1px rgba(255,255,255,.8)}
@media(max-width:650px){.gm-calendar-month-row{gap:5px}.gm-calendar-weekdays{font-size:8px}.gm-calendar-dates button,.gm-calendar-dates .gm-calendar-empty{height:25px}}


/* Additional settings disclosure icon: inline SVG in both Schedule and Form tabs. */
.gm-additional-settings > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
}
.gm-additional-settings > summary::-webkit-details-marker { display: none; }
.gm-additional-settings > summary::marker { content: ""; }
.gm-additional-settings > summary::before { content: none !important; }
.gm-additional-settings > summary .gm-additional-chevron {
  order: -1;
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.gm-additional-settings[open] > summary .gm-additional-chevron { transform: rotate(180deg); }


/* Additive booking-preview time-zone selector */
.gm-preview-timezone{position:relative;z-index:5;margin:0 0 12px;min-width:0}
.gm-preview-timezone-trigger{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;min-width:0;padding:0 1px;border:0;background:transparent;color:var(--text);font:inherit;font-size:10px;text-align:left;cursor:pointer}
.gm-preview-timezone-trigger span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gm-preview-timezone-trigger svg{width:12px;height:12px;flex:0 0 12px;fill:none;stroke:currentColor;stroke-width:1.5}
.gm-preview-timezone-menu{position:absolute;top:calc(100% + 7px);left:0;right:0;z-index:1800;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 10px 28px rgba(16,24,40,.18)}
.gm-preview-timezone-menu[hidden]{display:none!important}
.gm-preview-timezone-search{position:relative;padding:9px;border-bottom:1px solid var(--border)}
.gm-preview-timezone-search input{display:block;width:100%;height:30px;padding:0 30px 0 12px;border:1px solid var(--brand-ink);border-radius:18px;background:var(--surface);color:var(--text);font:inherit;font-size:10px;outline:none}
.gm-preview-timezone-search svg{position:absolute;right:19px;top:17px;width:13px;height:13px;fill:none;stroke:var(--text-muted);stroke-width:1.4}
.gm-preview-timezone-options{max-height:175px;overflow:auto;overscroll-behavior:contain}
.gm-preview-timezone-option{display:block;width:100%;padding:10px 12px;border:0;background:transparent;color:var(--text);font:inherit;font-size:10px;line-height:1.25;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.gm-preview-timezone-option:hover,.gm-preview-timezone-option.is-selected{background:var(--surface-3)}
.gm-preview-timezone-option[hidden]{display:none!important}
