.poll-builder { max-width: 1280px; margin: 0 auto; padding-bottom: 95px; }
.poll-builder [hidden] { display: none !important; }
.poll-details-panel > label:first-child { margin-top: 0; }
.poll-details-panel #poll_title { font-size: 22px; padding: 14px; }
.poll-detail-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.poll-detail-buttons button { border-radius: 22px; }
.poll-calendar-panel { padding: 0; overflow: hidden; }
.poll-calendar-heading { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.poll-calendar-heading h2 { margin: 0 0 5px; font-size: 20px; }
.poll-calendar-heading p { margin: 0; }
.poll-view-switch { display: flex; border: 1px solid var(--border); padding: 4px; border-radius: 10px; flex-shrink: 0; }
.poll-view-switch button { border: 0; background: transparent !important; }
.poll-view-switch button[aria-pressed=true] { background: #e4efec !important; color: #225b51 !important; }
.poll-duration-bar { border-block: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 24px; }
.poll-duration-bar > div { display: flex; gap: 8px; flex-wrap: wrap; }
.poll-duration-bar button { padding: 8px 17px; border-radius: 22px; }
.poll-duration-bar button[aria-pressed=true] { background: #e5f2ee !important; color: #23665a !important; border-color: #398476 !important; box-shadow: inset 0 0 0 1px #398476; }
.poll-calendar-error { color: #a33333; padding: 0 24px; }
.poll-calendar-error:empty { display: none; }
.poll-calendar-workspace { display: grid; grid-template-columns: minmax(340px, .95fr) minmax(350px, 1.3fr); }
.poll-calendar-picker { padding: 22px; min-width: 0; }
.poll-month-navigation { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.poll-month-navigation h3 { font-size: 19px; margin: 0; text-align: center; }
.poll-month-navigation button { border-radius: 50%; width: 38px; height: 38px; font-size: 24px; padding: 0; }
.poll-month-weekdays, .poll-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.poll-month-weekdays { margin-bottom: 8px; }
.poll-weekday { background: transparent; color: #73838a; border: 0; padding: 6px 0; font-size: 12px; font-weight: 500; }
.poll-weekday:hover { color: var(--accent); background: #eaf3ef; }
.poll-month-grid { border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.poll-calendar-day { position: relative; color: #314b50; background: white; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0; height: 54px; padding: 0; font-size: 15px; font-weight: 500; }
.poll-calendar-day:hover { background: #eef5f2; }
.poll-calendar-day.outside-month { color: #adb6bc; background: #f9fbfa; }
.poll-calendar-day[aria-pressed=true] { background: #e2f1eb; color: #225e4e; box-shadow: inset 0 0 0 2px #71a897; font-weight: 700; }
.poll-calendar-day[aria-current=date]::after { content: ''; position: absolute; bottom: 7px; left: calc(50% - 2px); width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.poll-today-button { width: 100%; margin-top: 16px; border-radius: 20px; }
.poll-calendar-help { font-size: 11px; margin-bottom: 0; }
.poll-selected-dates { border-left: 1px solid var(--border); max-height: 610px; overflow-y: auto; min-width: 0; }
.poll-calendar-empty { text-align: center; display: grid; align-content: center; justify-items: center; min-height: 420px; padding: 45px; }
.poll-empty-icon { font-size: 40px; color: #7ba496; }
.poll-calendar-empty h3 { margin: 12px 0 0; }
.poll-date-group { display: flex; gap: 20px; padding: 24px; border-bottom: 1px solid var(--border); }
.poll-date-badge { border: 1px solid var(--border); border-radius: 9px; width: 55px; min-width: 55px; height: 65px; text-align: center; overflow: hidden; }
.poll-date-badge span { display: block; background: #f4f7f6; font-size: 12px; line-height: 24px; border-bottom: 1px solid var(--border); }
.poll-date-badge strong { font-size: 24px; line-height: 37px; }
.poll-date-times { min-width: 0; flex: 1; }
.poll-time-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.poll-time-line input, .poll-time-line select { width: 140px !important; min-width: 0; max-width: 42%; font-size: 15px; }
.poll-time-line select { flex: 1; }
.poll-remove-slot { font-size: 22px; line-height: 28px; padding: 0 6px; margin-left: auto; }
.poll-day-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.poll-day-actions > button:first-child { border-radius: 20px; font-weight: 500; }
.poll-day-actions .quiet { font-size: 11px; }
.poll-all-day-label { padding: 13px 0; font-weight: 600; }
.poll-zone-bar { border-top: 1px solid var(--border); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #fbfcfc; }
.poll-zone-bar > div { max-width: 50%; }
.poll-zone-bar label { margin-top: 0; }
.poll-zone-bar small { font-size: 11px; max-width: 380px; }
.poll-zone-bar select { min-width: 240px; }
.poll-builder-footer { position: sticky; bottom: 14px; z-index: 8; background: #fff; border: 1px solid #ccdcd6; box-shadow: 0 5px 20px #183c361f; border-radius: 14px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.poll-builder-footer > span { color: #667e76; font-weight: 600; }
.poll-setting-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border); gap: 24px; }
.poll-setting-row:last-child { border: 0; padding-bottom: 0; }
.poll-setting-row p { margin: 4px 0 0; }
.poll-setting-row label { margin: 0; font-size: 14px; }
.poll-setting-row select { max-width: 240px; }
.poll-setting-row input[type=checkbox] { appearance: none; flex-shrink: 0; width: 38px; height: 23px; border-radius: 16px; background: #d8e0de; position: relative; margin: 0; cursor: pointer; }
.poll-setting-row input[type=checkbox]::after { content: ''; position: absolute; top: 3px; left: 3px; background: white; border-radius: 50%; width: 17px; height: 17px; box-shadow: 0 1px 3px #0002; transition: transform .15s; }
.poll-setting-row input[type=checkbox]:checked { background: var(--accent); }
.poll-setting-row input[type=checkbox]:checked::after { transform: translateX(15px); }
.poll-setting-row input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.poll-comment { padding: 18px 0; border-bottom: 1px solid var(--border); }
.poll-viewer-zone { margin-bottom: 24px; }
.poll-calendar-workspace.is-week { display: block; }
.is-week .poll-selected-dates { border-left: 0; border-top: 1px solid var(--border); max-height: 380px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.poll-week-headers, .poll-week-body { display: grid; grid-template-columns: 50px repeat(7, minmax(50px, 1fr)); min-width: 560px; }
.poll-week-headers { border: 1px solid var(--border); border-bottom: 0; padding-right: 15px; align-items: center; }
.poll-week-headers > span { font-size: 9px; color: #7a8a90; text-align: center; }
.poll-week-heading { padding: 10px 2px; border: 0; border-left: 1px solid var(--border); border-radius: 0; background: #f7faf9; color: #425f59; font-size: 11px; }
.poll-week-heading[aria-pressed=true] { background: #d9eee4; }
.poll-week-scroll { height: 430px; overflow: auto; border: 1px solid var(--border); }
.poll-week-hours, .poll-week-column { height: 1152px; position: relative; }
.poll-week-hours { display: flex; flex-direction: column; }
.poll-week-hours span { height: 48px; font-size: 9px; color: #81918f; padding: 5px 4px; text-align: right; }
.poll-week-column { border-left: 1px solid var(--border); touch-action: none; }
.poll-week-half-hour { display: block; height: 24px; padding: 0; width: 100%; background: white; border: 0; border-bottom: 1px dashed #e9efec; border-radius: 0; }
.poll-week-half-hour:nth-child(2n) { border-bottom: 1px solid #e0e8e4; }
.poll-week-half-hour:hover, .poll-week-half-hour:focus-visible { background: #edf5f1; }
.poll-week-event, .poll-week-ghost { position: absolute; left: 2px; right: 2px; background: #d9eee3; border: 1px solid #71a38c; border-radius: 4px; color: #28593f; font-size: 10px; padding: 3px 4px; min-height: 12px; overflow: hidden; cursor: grab; user-select: none; }
.poll-week-ghost { background: #b5d7c6cc; border-style: dashed; pointer-events: none; z-index: 5; }
.poll-week-resize { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; height: 12px; line-height: 8px; cursor: ns-resize; background: #74a88933; }
.poll-week-help { font-size: 11px; }
@media (max-width: 850px) {
  .poll-calendar-workspace { grid-template-columns: 1fr; }
  .poll-calendar-heading { flex-wrap: wrap; }
  .poll-selected-dates { border-left: 0; border-top: 1px solid var(--border); max-height: 450px; }
  .poll-duration-bar { align-items: start; flex-direction: column; }
  .poll-zone-bar { flex-direction: column; align-items: stretch; gap: 20px; }
  .poll-zone-bar > div { max-width: none; }
  .poll-calendar-picker { overflow-x: auto; padding: 16px; }
  .poll-calendar-day { height: 45px; }
  .poll-calendar-empty { min-height: 200px; padding: 25px; }
  .poll-builder-footer { flex-direction: column; align-items: stretch; bottom: 6px; padding: 12px; gap: 10px; }
  .poll-builder-footer .actions { gap: 8px; }
  .poll-builder-footer input[type=submit] { white-space: normal; }
  .poll-date-group { gap: 10px; padding: 18px 12px; }
  .poll-time-line { gap: 5px; }
  .poll-time-line input, .poll-time-line select { font-size: 12px; padding-inline: 5px !important; }
  .is-week .poll-selected-dates { grid-template-columns: 1fr; }
}

.poll-invitation-status { display:inline-block; margin-top:5px; padding:3px 8px; border-radius:5px; background:#e4f0e9; color:#365e4b; font-size:11px; font-weight:600; }
.poll-existing-people { background:#f5f9f6; border:1px solid #dbe8df; border-radius:8px; padding:10px; margin-bottom:20px; }

.poll-contact-picker { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:20px 0 28px; }
.poll-contact-column { min-width:0; border:1px solid #dce6e0; border-radius:10px; overflow:hidden; }
.poll-contact-heading { padding:18px; background:#f7faf8; border-bottom:1px solid #dce6e0; min-height:126px; }
.poll-contact-heading h3 { margin:0 0 12px; font-size:17px; }
.poll-contact-heading h3 > span { display:inline-block; margin-left:6px; padding:2px 8px; border-radius:12px; background:#e2eee7; font-size:13px; }
.poll-contact-heading p { font-size:12px; margin:0; }
.poll-contact-heading input[type=search] { margin:0; width:100%; }
.poll-contact-list { max-height:360px; overflow-y:auto; }
.poll-contact-row { display:flex; align-items:center; gap:12px; padding:14px 18px; margin:0; border-bottom:1px solid #e8eee9; cursor:pointer; }
.poll-contact-row:hover { background:#f4f8f5; }
.poll-contact-row[hidden],.poll-invitation-status[hidden],.poll-picker-empty[hidden] { display:none; }
.poll-contact-row input[type=checkbox] { flex:0 0 auto; width:18px; height:18px; margin:0; }
.poll-contact-avatar { display:flex; align-items:center; justify-content:center; flex:0 0 36px; height:36px; border-radius:50%; background:#e9f0ec; color:#567364; font-size:12px; }
.poll-contact-details { min-width:0; }
.poll-contact-details > strong { display:block; font-size:14px; font-weight:500; }
.poll-contact-details > small { display:block; font-size:11px; color:#839087; margin-top:3px; }
.poll-picker-empty { padding:16px 18px; font-size:13px; }
.poll-selected-column { border-color:#bbd3c5; }
.poll-selected-column .poll-contact-heading { background:#edf5ef; }
.poll-delivery-settings { padding-top:20px; border-top:1px solid #dce6e0; }
@media(max-width:700px) { .poll-contact-picker { grid-template-columns:1fr; } .poll-contact-heading { min-height:0; } .poll-contact-list { max-height:280px; } }
