:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20242b;
  background: #fff;
  font-size: 14px;
  --border: #e4e7eb;
  --muted: #68717d;
  --green: #2563eb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
button:disabled { opacity: .5; cursor: wait; }
a { color: #2359b5; }
button, a, input, select, textarea, summary { outline-offset: 3px; }
svg { width: 17px; height: 17px; flex-shrink: 0; vertical-align: middle; }
.shell { display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 212px; padding: 26px 14px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: #fafbfc; }
.brand { padding: 0 12px; margin-bottom: 28px; font-size: 18px; font-weight: 650; line-height: 1.4; }
.brand span { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--muted); }
.nav { display: grid; gap: 4px; }
.nav button { display: flex; align-items: center; gap: 9px; text-align: left; padding: 10px 11px; background: transparent; color: #515b68; font-size: 13px; border-radius: 5px; }
.nav button:hover { background: #f0f2f5; }
.nav button.active { background: #e9eef7; color: #234b89; font-weight: 550; }
.badge { margin-left: auto; padding: 1px 5px; background: #dce4f2; border-radius: 3px; font-size: 11px; }
.sidebar-bottom { margin-top: auto; padding: 20px 12px 0; }
.text-button { background: transparent; color: #536173; padding: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.text-button:hover { color: #1e4c99; text-decoration: underline; }
.text-button svg { width: 14px; height: 14px; }
.main { grid-column: 2; min-width: 0; }
.content { max-width: 1200px; margin: 0 auto; padding: 30px 32px; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.heading h1 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -.35px; }
.heading p { margin: 7px 0 0; color: var(--muted); line-height: 1.6; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; min-height: 36px; border: 1px solid #245dcc; border-radius: 5px; background: #2563eb; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.button:hover { background: #1e56cf; }
.button svg { width: 15px; height: 15px; }
.button.secondary { background: #fff; color: #374151; border-color: #d7dce3; }
.button.secondary:hover { background: #f5f6f8; }
.button.danger { background: #fff; color: #b42318; border-color: #edc5c1; }
.status-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.status-settings { margin-left: auto; }
.dot { display: inline-block; height: 7px; width: 7px; border-radius: 50%; background: #34845a; margin-right: 6px; }
.dot.off { background: #b27a21; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.panel-head { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 0; font-size: 13px; font-weight: 600; }
.muted { color: var(--muted); font-size: 12px; }
.notice { background: #f5f7fa; border: 1px solid #e2e7ee; border-radius: 5px; padding: 12px 14px; margin: 0 0 18px; color: #536173; font-size: 13px; line-height: 1.7; }
.notice.error { color: #9a342b; border-color: #efccc8; background: #fff7f6; }
.inline-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notice .button { margin-left: 8px; }
.empty { padding: 24px 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty strong { font-size: 14px; font-weight: 550; color: #374151; }
.empty p { margin: 6px 0 14px; }
.empty p:last-child { margin-bottom: 0; }
.date-label { background: #fafbfc; padding: 10px 18px; font-size: 12px; color: var(--muted); border-bottom: 1px solid #edf0f3; }
.event { display: flex; align-items: flex-start; gap: 14px; padding: 15px 18px; border-bottom: 1px solid #edf0f3; }
.event:last-child { border-bottom: 0; }
.event-time { width: 44px; flex-shrink: 0; padding-top: 2px; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 550; }
.event-time small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 5px; overflow-wrap: anywhere; }
.event-icon { width: 20px; display: grid; place-items: center; padding-top: 2px; color: #727d8c; }
.event-body { min-width: 0; flex: 1; }
.event-body h3 { font-size: 14px; font-weight: 500; margin: 0 0 7px; line-height: 1.4; overflow-wrap: anywhere; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: var(--muted); font-size: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: #f0f2f5; color: #5c6674; padding: 3px 6px; font-size: 11px; border-radius: 3px; }
.tag svg { width: 12px; height: 12px; }
.actions { display: flex; align-items: center; gap: 3px; }
.icon-button { background: transparent; color: #627084; border-radius: 4px; padding: 6px; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; }
.icon-button:hover { background: #edf1f7; color: #234b89; }
.icon-button svg { width: 16px; height: 16px; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { padding: 8px 11px; border-radius: 4px; color: #667080; background: transparent; font-size: 13px; }
.tabs button.active { color: #234b89; background: #edf1f8; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid #d7dce3; border-radius: 5px; padding: 0 10px; color: #7b8695; }
.search input { min-width: 0; width: 170px; border: 0; padding: 9px 0; color: #374151; background: transparent; outline-offset: 0; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.group-card { padding: 18px; }
.group-card h3 { font-size: 15px; font-weight: 550; margin: 0 0 10px; }
.group-card p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 9px 0; }
.group-card .actions { margin-top: 16px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; }
.settings-card { padding: 20px; }
.settings-card h2 { font-size: 15px; font-weight: 550; margin: 0 0 13px; }
.settings-card p, .settings-card ol { font-size: 13px; line-height: 1.7; color: var(--muted); }
.settings-card ol { padding-left: 20px; }
.settings-card p { margin: 10px 0 16px; }
.settings-card summary { font-size: 14px; font-weight: 500; cursor: pointer; }
.settings-card .notice:last-child { margin-bottom: 0; }
.help { margin-top: 18px; font-size: 12px; color: var(--muted); }
.help summary { cursor: pointer; }
.help p { line-height: 1.7; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: #394352; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d5dbe3; border-radius: 5px; color: #283241; background: #fff; padding: 9px 10px; min-height: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #b3cafa; outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.field small { font-size: 12px; line-height: 1.6; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #465265; margin: 12px 0; }
.check input { accent-color: #2563eb; width: 16px; height: 16px; }
.overlay { position: fixed; inset: 0; z-index: 100; background: #11182766; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; width: 640px; max-width: 100%; max-height: 94vh; overflow: auto; border-radius: 8px; box-shadow: 0 12px 50px #11182730; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 17px; font-weight: 550; margin: 0; }
.modal-body { padding: 20px 22px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; }
.preview-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: #f5f7fa; border: 1px solid var(--border); border-radius: 5px; font-size: 14px; line-height: 1.7; }
.code { display: block; user-select: all; overflow-wrap: anywhere; font-size: 14px; padding: 12px; background: #f1f4f8; border: 1px solid var(--border); border-radius: 4px; margin: 14px 0; color: #344966; }
.history-wrap { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; text-align: left; }
.history-table th { font-size: 12px; font-weight: 500; color: var(--muted); padding: 13px 16px; border-bottom: 1px solid var(--border); background: #fafbfc; }
.history-table td { font-size: 13px; padding: 14px 16px; border-bottom: 1px solid #edf0f3; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table small { font-size: 11px; color: var(--muted); display: block; margin-top: 5px; line-height: 1.5; }
.status { display: inline-block; padding: 4px 7px; background: #edf6f0; color: #35734b; font-size: 11px; border-radius: 3px; }
.status.failed, .status.uncertain { background: #fff0ee; color: #a23930; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px; color: #7d8692; font-size: 11px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #fafbfc; }
.login-card { width: 360px; max-width: 100%; padding: 28px; }
.login .brand { padding: 0; margin: 0 0 26px; }
.login h1 { font-size: 20px; font-weight: 550; margin: 0 0 22px; }
.login .button { width: 100%; }
#login-error, #group-error { color: #b42318; font-size: 13px; }
#login-error:empty, #group-error:empty { display: none; }
#toast { display: none; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: 90vw; padding: 12px 18px; z-index: 200; background: #27313f; color: #fff; border-radius: 5px; font-size: 13px; line-height: 1.5; }
@media (max-width: 1000px) {
  .content { padding: 24px; }
  .settings-grid { grid-template-columns: 1fr; }
  .inline-notice { align-items: flex-start; }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 16px; }
  .brand { padding: 0; margin: 0; font-size: 17px; }
  .brand span { display: inline; font-size: 12px; margin-left: 5px; }
  .sidebar-bottom { grid-column: 2; grid-row: 1; padding: 0; margin: 0; align-self: center; }
  .nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  .nav button { white-space: nowrap; font-size: 12px; padding: 9px; flex-shrink: 0; }
  .content { padding: 20px 16px; }
  .heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
  .heading h1 { font-size: 20px; }
  .heading .button { font-size: 12px; padding: 8px 10px; }
  .status-strip { gap: 10px 16px; }
  .status-settings { margin-left: 0; }
  .inline-notice { flex-direction: column; }
  .notice .button { margin-left: 0; }
  .filters { align-items: stretch; flex-direction: column; }
  .search input { width: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .event { padding: 13px 12px; gap: 9px; flex-wrap: wrap; }
  .event-time { width: 38px; font-size: 12px; }
  .event-body h3 { font-size: 13px; }
  .event-meta { font-size: 11px; gap: 6px 9px; }
  .event > .actions { width: 100%; padding-left: 66px; }
  .modal { max-height: 96vh; }
  .overlay { padding: 10px; }
  .modal-head, .modal-body { padding: 16px; }
  .group-grid { grid-template-columns: 1fr; }
  .history-table th, .history-table td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* A weekly time grid. Cards mark send times, not event durations. */
.week-panel { margin-top: 24px; position: relative; }
.week-title, .week-controls { display: flex; align-items: center; gap: 12px; }
.week-controls { gap: 4px; }
.week-controls .button { min-height: 30px; padding: 5px 9px; font-size: 12px; }
.calendar-hint { padding: 10px 18px; color: var(--muted); font-size: 12px; line-height: 1.6; border-bottom: 1px solid var(--border); }
.week-scroll { max-height: 640px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.week-inner { min-width: 1040px; }
.week-header, .week-body { display: grid; grid-template-columns: 58px repeat(7,minmax(0,1fr)); }
.week-header { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--border); }
.day-header { padding: 11px 8px; min-height: 58px; position: relative; border-left: 1px solid var(--border); color: #606d80; }
.day-header span { font-size: 11px; margin-right: 5px; }
.day-header strong { font-size: 12px; font-weight: 550; }
.day-header.today { background: #f1f5ff; color: #245dcb; }
.day-header .icon-button { min-width: 23px; min-height: 23px; padding: 3px; position: absolute; right: 4px; bottom: 2px; }
.day-header .icon-button svg { width: 12px; height: 12px; }
.week-body { padding-top: 20px; padding-bottom: 58px; }
.time-axis { height: 1152px; position: relative; background: #fff; z-index: 2; }
.time-axis span { position: absolute; right: 9px; transform: translateY(-50%); font-size: 10px; color: #7b8593; font-variant-numeric: tabular-nums; }
.day-column { height: 1152px; position: relative; border-left: 1px solid var(--border); cursor: crosshair; background: repeating-linear-gradient(to bottom,#e9edf2 0px,#e9edf2 1px,transparent 1px,transparent 24px,#f3f5f7 24px,#f3f5f7 25px,transparent 25px,transparent 48px); }
.day-column.today { background-color: #fbfcff; }
.calendar-job { position: absolute; z-index: 3; height: 45px; overflow: hidden; display: flex; flex-direction: column; gap: 1px; text-align: left; padding: 3px 5px; border-radius: 4px; border: 1px solid #bed0f8; border-left: 3px solid #3c73d8; background: #eaf1fe; color: #204d94; font-size: 11px; box-shadow: 0 1px 1px #20355b0a; cursor: pointer; }
.calendar-job:hover, .calendar-job:focus-visible { z-index: 4; background: #dce8fe; border-color: #7ba2ee; }
.calendar-job.poll { background: #f1ecfc; border-color: #d7c6f2; border-left-color: #9367ca; color: #6c429c; }
.calendar-job.poll:hover { background: #e6dcf8; }
.calendar-job.paused { background: #f0f1f3; color: #7a828c; border-color: #d9dde2; border-left-color: #a0a8b2; }
.calendar-job.failed { border-left-color: #c34032; }
.calendar-time { font-size: 10px; font-weight: 650; white-space: nowrap; line-height: 12px; }
.calendar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; line-height: 13px; }
.calendar-group { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; font-size: 9px; line-height: 11px; opacity: .8; }
.now-line { position: absolute; left: 0; right: 0; height: 1px; background: #dc5353; z-index: 4; pointer-events: none; }
.now-line:before { content: ''; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #dc5353; }
.calendar-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; padding: 12px 18px; border-top: 1px solid var(--border); font-size: 11px; line-height: 1.6; color: var(--muted); }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; display: inline-block; border-radius: 2px; background: #5f8ce1; }
.legend-dot.poll { background: #9a74cc; }
.calendar-loading { padding: 10px 18px; color: var(--muted); font-size: 12px; }
.form-timezone { color: var(--muted); font-size: 12px; margin-top: -4px; margin-bottom: 16px; }
.event-details { margin-bottom: 20px; }
.event-details[open] summary { margin-bottom: 14px; }
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.guide-section { padding: 20px; }
.guide-section h2 { margin: 0 0 14px; font-size: 16px; font-weight: 550; }
.guide-section p, .guide-section li { color: #5c6776; font-size: 13px; line-height: 1.8; }
.guide-section ul, .guide-section ol { padding-left: 19px; }
.guide-section li { margin-bottom: 7px; }
.guide-section .text-button { display: inline; color: #245dcc; }
.guide-example { margin-top: 16px; padding: 14px; background: #f6f8fb; border-radius: 5px; font-size: 13px; }
.guide-example p:last-child { margin-bottom: 0; }
@media(max-width:1000px) { .guide { grid-template-columns: 1fr; } }
@media(max-width:700px) {
  .week-title { gap: 8px; flex-wrap: wrap; }
  .week-panel .panel-head { padding: 12px; }
  .week-controls { margin-left: auto; }
  .calendar-hint, .calendar-legend { padding: 10px 12px; }
  .week-scroll { max-height: 550px; }
  .guide-section { padding: 16px; }
}

.events-list { max-height: 340px; overflow-y: auto; }

/* Touch-first navigation and forms. Desktop keeps the full weekly grid. */
.mobile-nav, .mobile-header-action, .mobile-day-picker, .mobile-calendar-hint, .mobile-history { display: none; }
body.modal-open { overflow: hidden; }
.modal { display: flex; flex-direction: column; overflow: hidden; }
.modal-head { flex-shrink: 0; }
.modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.modal > .modal-footer { margin: 0; padding: 16px 22px; flex-shrink: 0; background: #fff; }
.more-menu { display: grid; gap: 4px; }
.more-menu button { display: flex; align-items: center; gap: 12px; min-height: 52px; width: 100%; padding: 12px; border-radius: 8px; background: transparent; text-align: left; color: #334155; }
.more-menu button:hover { background: #f1f5fa; }
.more-menu button span { flex: 1; }
#menu-logout { color: #a32c26; border-top: 1px solid var(--border); margin-top: 8px; }
@media(max-width:760px) {
  html { -webkit-text-size-adjust: 100%; }
  .shell { display: block; }
  .sidebar { position: sticky; top: 0; inset-inline: 0; z-index: 20; width: 100%; height: calc(58px + env(safe-area-inset-top)); padding: calc(6px + env(safe-area-inset-top)) 16px 6px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; border-right: 0; border-bottom: 1px solid var(--border); background: #fff; }
  .sidebar .brand { padding: 0; margin: 0; font-size: 17px; }
  .brand span { display: inline; font-size: 12px; margin-left: 5px; }
  .sidebar .nav, .sidebar .sidebar-bottom { display: none; }
  .mobile-header-action { display: inline-flex; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; padding: 6px max(8px,env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: #fff; box-shadow: 0 -3px 14px #172b4d08; }
  .mobile-nav button { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 8px; background: transparent; color: #647084; font-size: 10px; padding: 5px 1px; }
  .mobile-nav button svg { width: 21px; height: 21px; }
  .mobile-nav button.active { color: #2057b9; background: #edf3ff; font-weight: 600; }
  .content { padding: 20px 14px calc(96px + env(safe-area-inset-bottom)); }
  .heading { gap: 12px; flex-direction: column; align-items: stretch; }
  .heading h1 { font-size: 22px; }
  .heading > .button { width: 100%; font-size: 14px; min-height: 46px; border-radius: 8px; }
  .button { min-height: 44px; padding: 10px 14px; font-size: 14px; border-radius: 7px; white-space: normal; text-align: center; }
  .icon-button { min-width: 44px; min-height: 44px; padding: 10px; border-radius: 7px; }
  .icon-button svg { width: 19px; height: 19px; }
  .text-button { min-height: 40px; font-size: 13px; }
  .guide .text-button { min-height: auto; }
  .tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; padding: 3px; background: #f2f4f7; border-radius: 9px; gap: 3px; }
  .tabs button { min-height: 42px; padding: 8px 5px; font-size: 13px; border-radius: 6px; }
  .tabs button.active { background: #fff; color: #234b89; box-shadow: 0 1px 4px #1e293b12; }
  .filters { flex-direction: column; align-items: stretch; gap: 12px; }
  .search { min-height: 46px; border-radius: 7px; }
  .search input { width: 100%; font-size: 16px; padding: 12px 0; }
  .status-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 10px; }
  .status-strip > span { grid-column: 1 / -1; padding: 4px 0 8px; overflow-wrap: anywhere; }
  .status-strip .text-button { justify-content: flex-start; }
  .status-settings { margin: 0; }
  .panel { border-radius: 9px; }
  .panel-head { padding: 14px; }
  .empty { padding: 20px 16px; font-size: 14px; }
  .empty .button { width: 100%; }
  .notice { font-size: 13px; overflow-wrap: anywhere; }
  .inline-notice { align-items: stretch; flex-direction: column; }
  .event { padding: 16px 12px; gap: 10px; flex-wrap: wrap; }
  .event-time { width: 42px; font-size: 14px; }
  .event-icon { width: 18px; }
  .event-body h3 { font-size: 14px; line-height: 1.5; }
  .event-meta { font-size: 12px; gap: 6px 10px; }
  .event > .icon-button { margin-left: 62px; }
  .event > .actions { width: 100%; padding: 10px 0 0; margin-top: 3px; border-top: 1px solid #f0f2f5; display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
  .event > .actions .icon-button { background: #f7f8fa; }
  .events-list { max-height: none; overflow: visible; }
  .group-grid, .settings-grid, .guide { grid-template-columns: 1fr; }
  .group-card, .settings-card, .guide-section { padding: 18px 16px; }
  .group-card .actions { gap: 8px; }
  .group-card .actions .button { flex: 1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row.datetime-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .field label { font-size: 14px; }
  .field input, .field select, .field textarea { min-height: 48px; font-size: 16px; padding: 12px 10px; min-width: 0; border-radius: 7px; }
  .field textarea { min-height: 120px; }
  .field small { font-size: 12px; line-height: 1.6; }
  .check { min-height: 44px; font-size: 14px; line-height: 1.5; margin: 4px 0; }
  .check input { width: 21px; height: 21px; flex-shrink: 0; }
  summary { min-height: 44px; align-content: center; line-height: 1.5; }
  .overlay { top: var(--modal-top,0px); bottom: auto; height: var(--modal-height,100dvh); padding: 0; align-items: stretch; }
  .modal { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; box-shadow: none; }
  .modal-head { min-height: 64px; padding: 10px 12px 10px 18px; }
  .modal-head h2 { font-size: 18px; }
  .modal-body { flex: 1; padding: 20px 16px; scroll-padding: 18px; -webkit-overflow-scrolling: touch; }
  .modal > .modal-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 10px; box-shadow: 0 -3px 12px #1e293b08; }
  .modal-footer .button { flex: 1; min-height: 48px; }
  .overlay:has(.menu-sheet) { align-items: flex-end; }
  .modal.menu-sheet { height: auto; max-height: 85%; border-radius: 16px 16px 0 0; }
  .menu-sheet .modal-body { flex: initial; padding: 4px 12px calc(16px + env(safe-area-inset-bottom)); }
  .history-wrap { overflow: visible; }
  .history-table { display: none; }
  .mobile-history { display: block; }
  .history-card { padding: 16px; border-bottom: 1px solid var(--border); }
  .history-card:last-child { border-bottom: 0; }
  .history-card > strong { display: block; font-size: 14px; line-height: 1.5; font-weight: 550; overflow-wrap: anywhere; }
  .history-meta { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 7px 0 10px; }
  .history-error { color: #a23930; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
  .history-card .button { margin-top: 12px; width: 100%; }
  .week-panel { margin-top: 20px; }
  .week-panel .panel-head { display: grid; gap: 12px; padding: 14px 12px; }
  .week-title { justify-content: space-between; width: 100%; }
  .week-controls { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; width: 100%; margin: 0; }
  .week-controls .button { min-height: 44px; font-size: 13px; }
  .calendar-hint { padding: 10px 12px; }
  .desktop-calendar-hint { display: none; }
  .mobile-calendar-hint { display: inline; }
  .mobile-day-picker { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); padding: 8px 4px; gap: 2px; border-bottom: 1px solid var(--border); }
  .mobile-day-picker button { min-height: 62px; padding: 7px 0 5px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: transparent; border-radius: 8px; color: #637085; }
  .mobile-day-picker button > span { font-size: 11px; }
  .mobile-day-picker button > strong { font-size: 17px; font-weight: 550; }
  .mobile-day-picker button.today > strong { color: #2563eb; }
  .mobile-day-picker button.active { background: #2563eb; color: #fff; }
  .mobile-day-picker button.active > strong { color: #fff; }
  .day-indicator { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
  .day-indicator.has-events { background: #7093ca; }
  .active .day-indicator.has-events { background: #fff; }
  .week-inner { min-width: 0; width: 100%; }
  .week-header, .week-body { grid-template-columns: 48px minmax(0,1fr); }
  .week-header .day-header, .week-body .day-column { display: none; }
  .week-header .day-header.selected-day, .week-body .day-column.selected-day { display: block; }
  .day-header { min-height: 52px; padding: 16px 10px; }
  .day-header > span, .day-header > strong { font-size: 13px; }
  .day-header .icon-button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; right: 4px; bottom: 4px; padding: 10px; }
  .day-header .icon-button svg { width: 18px; height: 18px; }
  .week-scroll { max-height: min(60dvh,580px); overflow-x: hidden; scrollbar-gutter: auto; }
  .calendar-job { height: 46px; padding: 3px 7px; border-radius: 5px; }
  .calendar-time { font-size: 12px; line-height: 12px; }
  .calendar-text { font-size: 13px; line-height: 14px; }
  .calendar-group { font-size: 10px; line-height: 10px; }
  .calendar-legend { font-size: 11px; padding: 12px; }
  .time-axis span { right: 7px; font-size: 10px; }
  .login { min-height: 100dvh; padding: max(20px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom)); }
  .login-card { padding: 26px 22px; }
  #toast { bottom: calc(82px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 24px); }
  .modal-open #toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.emoji-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 5px 7px; background: transparent; border-radius: 5px; color: #65738a; font-size: 12px; flex-shrink: 0; }
.emoji-toggle:hover, .emoji-toggle[aria-expanded=true] { color: #245dcc; background: #edf3ff; }
.emoji-panel { border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: #fff; }
.emoji-toolbar { display: flex; gap: 6px; align-items: center; }
.emoji-toolbar input { flex: 1; min-width: 0; height: 38px; }
.emoji-categories { display: flex; flex-wrap: wrap; gap: 4px; padding: 9px 0; }
.emoji-categories button { padding: 7px 8px; border-radius: 5px; background: transparent; color: #66758a; font-size: 11px; }
.emoji-categories button.active { background: #edf3ff; color: #245dcc; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(38px,1fr)); gap: 2px; max-height: 210px; overflow-y: auto; overscroll-behavior: contain; }
.emoji-cell { display: grid; place-items: center; height: 38px; padding: 3px; font-size: 25px; line-height: 1; background: transparent; border-radius: 6px; font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; }
.emoji-cell:hover { background: #f0f4fa; }
.emoji-empty { grid-column: 1/-1; font-size: 13px; color: var(--muted); padding: 12px; margin: 0; }
@media(max-width:760px) {
  .emoji-toggle { min-width: 44px; min-height: 44px; font-size: 12px; padding: 8px; }
  .emoji-panel { padding: 8px; }
  .emoji-grid { grid-template-columns: repeat(auto-fill,minmax(42px,1fr)); max-height: 220px; }
  .emoji-cell { height: 44px; font-size: 27px; }
  .emoji-categories button { min-height: 40px; padding: 8px; font-size: 12px; }
  .emoji-toolbar input { font-size: 16px; min-height: 44px; }
}
.chat-switcher { margin: 20px 0 16px; min-width: 0; }
.chat-switcher label { display: block; color: var(--muted); font-size: 12px; margin: 0 8px 7px; }
.chat-switcher select { width: 100%; min-width: 0; padding: 10px 8px; font-size: 13px; text-overflow: ellipsis; }
.delivery-switch { display: flex; gap: 4px; padding: 4px; background: #f0f2f5; border-radius: 8px; width: fit-content; max-width: 100%; margin: 0 0 20px; }
.delivery-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 14px; border-radius: 6px; color: #657085; background: transparent; font-size: 13px; }
.delivery-switch .active { color: #244f9c; background: #fff; box-shadow: 0 1px 3px #182b4514; }
.delivery-switch .active.sent { color: #237149; }
.scope-hint { margin: -4px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.event.event-sent { border: 1px solid #9bccaf; border-left: 3px solid #6cad86; border-radius: 6px; margin: 8px; background: #fcfefc; }
.calendar-job.sent { background: #edf8f0; color: #276c43; border-color: #79b690; }
.delivery-sent { background: #fcfefc; box-shadow: inset 3px 0 #79b690; }
.history-table .delivery-sent td { border-bottom-color: #d7e9dd; }
.history-table small { display: block; margin-top: 5px; color: var(--muted); }
@media(max-width:760px) {
 .sidebar { height: auto; flex-wrap: wrap; padding-bottom: 10px; }
 .sidebar .brand { flex: 1; }
 .chat-switcher { flex: 0 0 100%; margin: 0; }
 .chat-switcher label { display: none; }
 .chat-switcher select { height: 44px; padding: 8px 10px; font-size: 16px; background: #fafbfc; }
 .delivery-switch { width: 100%; margin-bottom: 16px; }
 .delivery-switch button { flex: 1; min-height: 44px; padding: 9px 5px; font-size: 13px; }
 .scope-hint { font-size: 12px; margin-bottom: 14px; }
 .history-card.delivery-sent { border: 1px solid #a7cfb6; border-radius: 7px; margin: 8px; }
}
/* Kropsoft website assets: Actay, original logo and neutral brand palette. */
@font-face { font-family:Actay; src:url('/fonts/actay-regular.otf') format('opentype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:Actay; src:url('/fonts/actay-bold.otf') format('opentype'); font-weight:700; font-style:normal; font-display:swap; }
:root { font-family:Actay,Arial,sans-serif; color:#191919; background:#f4f4f4; --border:#dedede; --muted:#737373; --brand-orange:#e26600; }
button, select, input, textarea { transition:background-color .15s,border-color .15s,box-shadow .15s; }
a { color:#4c4c4c; text-underline-offset:3px; }
:focus-visible { outline:2px solid #888; outline-offset:3px; }
.sidebar { background:#e9e9e9; border-color:#d5d5d5; }
.brand { padding:0 12px; border:0; margin-bottom:28px; }
.brand img { display:block; width:142px; height:auto; max-width:100%; }
.brand span { display:block; margin:9px 0 0; font-size:12px; font-weight:400; color:#737373; letter-spacing:.02em; }
.nav { gap:6px; }
.nav button { min-height:44px; border-radius:10px; color:#626262; border:1px solid transparent; font-size:13px; }
.nav button:hover { background:#f2f2f2; }
.nav button.active { background:#fff; color:#191919; border-color:#d5d5d5; font-weight:400; box-shadow:0 2px 4px #19191904; }
.badge { background:#ededed; color:#626262; border-radius:5px; }
.sidebar-bottom { padding:20px 0 0; }
.global-menu-button { display:flex; width:100%; align-items:center; gap:10px; padding:13px 11px; border:1px solid #d5d5d5; border-radius:11px; background:#f4f4f4; color:#626262; font-size:13px; text-align:left; }
.global-menu-button span { flex:1; }
.global-menu-button svg:last-child { width:14px; }
.global-menu-button:hover, .global-menu-button.active { color:#191919; background:#fff; border-color:#bdbdbd; }
.chat-switcher select, .field select { appearance:none; -webkit-appearance:none; border:1px solid #d5d5d5; border-radius:11px; padding-right:36px; background-color:#fff; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23737373' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; cursor:pointer; box-shadow:0 1px 2px #19191904; }
.chat-switcher select:hover, .field select:hover { border-color:#b5b5b5; background-color:#fdfdfd; }
.chat-switcher select:focus-visible { outline:2px solid #b5b5b5; outline-offset:2px; }
.heading h1 { font-size:24px; font-weight:700; letter-spacing:-.6px; }
.heading p, .scope-hint { line-height:1.75; }
.button { background:#fff; color:#191919; border:1px solid #cdcdcd; border-radius:11px; box-shadow:0 2px 4px #19191906; font-weight:400; }
.button:hover { background:#f1f1f1; border-color:#a8a8a8; }
.button.secondary { background:#fafafa; color:#4c4c4c; border-color:#dedede; box-shadow:none; }
.button.secondary:hover { background:#f0f0f0; border-color:#bdbdbd; }
.button.danger { background:#fff; color:#a63227; border-color:#e7bfb9; }
.panel { border-radius:14px; border-color:#dedede; box-shadow:0 2px 8px #19191903; }
.panel-head { border-bottom-color:#e5e5e5; }
.field input, .field textarea, .search { border-color:#d5d5d5; border-radius:11px; }
.field input, .field textarea { background:#fff; color:#191919; }
.field input:focus, .field select:focus, .field textarea:focus { outline:2px solid #d5d5d5; outline-offset:1px; border-color:#aaa; }
.search:focus-within { border-color:#aaa; box-shadow:0 0 0 3px #19191908; }
.search input { outline:none; color:#191919; }
.field label, .check { color:#4c4c4c; font-weight:400; }
.check input { accent-color:#737373; }
.delivery-switch { background:#e8e8e8; border:1px solid #e0e0e0; border-radius:12px; }
.delivery-switch button { border-radius:8px; color:#737373; }
.delivery-switch .active { color:#191919; background:#fff; box-shadow:0 2px 4px #19191909; }
.delivery-switch .active.sent { color:#237149; }
.tabs button { border-radius:8px; color:#737373; }
.tabs button.active { color:#191919; background:#e8e8e8; }
.icon-button { border-radius:8px; color:#737373; }
.icon-button:hover { color:#191919; background:#ededed; }
.text-button { color:#626262; }
.text-button:hover { color:#191919; }
.notice, .preview-text { background:#f6f6f6; border-color:#e2e2e2; color:#626262; border-radius:11px; }
.tag { background:#f0f0f0; color:#737373; border-radius:5px; }
.event { border-bottom-color:#ebebeb; }
.event-body h3 { color:#191919; font-weight:400; }
.modal { border-radius:18px; box-shadow:0 24px 90px #19191933; }
.overlay { background:#19191940; backdrop-filter:blur(5px); }
.modal-head { background:#fafafa; }
.modal-head h2 { font-weight:700; letter-spacing:-.25px; }
.more-menu button { color:#4c4c4c; border-radius:11px; }
.more-menu button:hover { color:#191919; background:#f0f0f0; }
.menu-sheet { max-width:400px; }
.history-table th, .date-label { background:#fafafa; color:#737373; }
.settings-card h2, .panel-head h2 { font-weight:700; }
.calendar-job { background:#f0f0f0; border-color:#bdbdbd; color:#4c4c4c; }
.calendar-job.poll { background:#f7f7f7; border-color:#aaa; border-style:dashed; color:#4c4c4c; }
.calendar-job.sent { background:#edf8f0; border-color:#79b690; color:#276c43; }
.calendar-job.paused:not(.sent) { background:#eee; color:#888; border-color:#ccc; }
.legend-dot.message { background:#b5b5b5; }
.legend-dot.poll { background:#fff; border:1px dashed #888; }
.day-header.today { background:#f0f0f0; color:#191919; }
.now-line, .now-line::before { background:#e26600; }
.emoji-toggle:hover, .emoji-toggle[aria-expanded=true], .emoji-categories button.active { color:#191919; background:#eee; }
.emoji-cell:hover { background:#eee; }
.emoji-panel { border-color:#ddd; border-radius:12px; }
.login { background:#e9e9e9; }
.login-card { box-shadow:0 12px 44px #19191909; border-radius:18px; }
@media(max-width:760px) {
 .sidebar { background:#f4f4f4; }
 .sidebar .brand { padding:0; margin:0; }
 .sidebar .brand img { width:124px; }
 .sidebar .brand span { display:block; margin:5px 0 0; font-size:10px; }
 .chat-switcher select { background-color:#fff; padding-right:36px; border-radius:11px; }
 .mobile-nav { grid-template-columns:repeat(3,minmax(0,1fr)); background:#fafafa; border-color:#dedede; }
 .mobile-nav button { color:#737373; border-radius:11px; }
 .mobile-nav button.active { color:#191919; background:#eaeaea; font-weight:400; }
 .tabs { background:#e8e8e8; }
 .tabs button.active { color:#191919; background:#fff; }
 .mobile-day-picker button.active { background:#e8e8e8; color:#191919; }
 .mobile-day-picker button.today > strong { color:#191919; }
 .mobile-day-picker button.active > strong { color:#191919; }
 .day-indicator.has-events, .active .day-indicator.has-events { background:#888; }
 .modal { border-radius:0; }
 .modal.menu-sheet { border-radius:20px 20px 0 0; width:100%; max-width:100%; }
 .event .actions .icon-button { background:#f5f5f5; }
}
.guide-section .text-button { color:#4c4c4c; text-decoration:underline; text-underline-offset:3px; }
/* Compact dialogs: calm surfaces, grouped controls and accessible switches. */
.modal { width:560px; max-height:calc(100dvh - 48px); border:1px solid #ffffff99; border-radius:20px; }
.modal-head { min-height:60px; padding:14px 20px; background:#fff; border-bottom-color:#eee; }
.modal-head h2 { font-size:17px; }
.modal-head .icon-button { width:32px; height:32px; min-width:32px; min-height:32px; border-radius:50%; background:#f5f5f5; }
.modal-body { padding:18px 20px; }
.modal .field { margin-bottom:14px; gap:6px; }
.modal .field label { font-size:13px; }
.modal .field input, .modal .field select, .modal .field textarea { padding:10px 12px; border-radius:10px; min-height:40px; }
.modal .field textarea { min-height:76px; line-height:1.5; }
.modal .field small { font-size:11px; line-height:1.5; color:#858585; }
.modal .field-label-row { min-height:28px; }
.modal .emoji-toggle { min-height:28px; padding:4px 6px; font-size:11px; }
.modal .emoji-toggle svg { width:15px; height:15px; }
.modal #message { height:100px; }
.modal .is-poll #message { height:76px; }
.modal #options { height:90px; min-height:90px; line-height:1.7; }
.event-type-picker { display:grid; grid-template-columns:1fr 1fr; gap:4px; border:1px solid #e8e8e8; border-radius:12px; padding:4px; background:#f4f4f4; }
.event-type-picker button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:7px 10px; border:1px solid transparent; border-radius:8px; background:transparent; color:#888; font-size:13px; }
.event-type-picker button.active { color:#191919; background:#fff; border-color:#e2e2e2; box-shadow:0 1px 3px #19191908; }
.event-type-picker button:hover:not(.active) { color:#4c4c4c; }
.event-type-picker svg { width:15px; height:15px; }
.poll-settings { display:grid; margin-top:6px; border:1px solid #e8e8e8; border-radius:12px; padding:0 12px; }
.modal .check { display:flex; align-items:center; gap:10px; min-height:42px; margin:0; cursor:pointer; font-size:13px; line-height:1.4; }
.modal .check input[type=checkbox] { appearance:none; -webkit-appearance:none; position:relative; flex:0 0 34px; width:34px; height:20px; min-height:20px; padding:0; margin:0; border:1px solid #d9d9d9; border-radius:999px; background:#e5e5e5; cursor:pointer; transition:background .15s,border-color .15s; }
.modal .check input[type=checkbox]::after { content:""; position:absolute; width:14px; height:14px; top:2px; left:2px; background:#fff; border-radius:50%; box-shadow:0 1px 3px #19191925; transition:transform .15s; }
.modal .check input[type=checkbox]:checked { background:#777; border-color:#777; }
.modal .check input[type=checkbox]:checked::after { transform:translateX(14px); }
.modal .check input[type=checkbox]:focus-visible { outline:2px solid #aaa; outline-offset:3px; }
.modal .setting-row { justify-content:space-between; gap:16px; min-height:58px; }
.modal .setting-row + .setting-row { border-top:1px solid #eee; }
.setting-copy { display:block; }
.setting-copy small { display:block; margin-top:4px; font-size:11px; color:#888; }
.schedule-fields { padding:12px 14px; border:1px solid #e8e8e8; background:#fafafa; border-radius:12px; }
.modal .schedule-fields .field-row { gap:12px; }
.modal .schedule-fields .field { margin-bottom:6px; }
.modal .form-timezone { margin:2px 0 7px; font-size:11px; color:#888; }
.modal .schedule-fields > .check { flex-direction:row-reverse; justify-content:space-between; }
.modal .schedule-fields > .check span { flex:1; }
.modal .event-details { margin-top:3px; border-top:1px solid #e8e8e8; padding-top:4px; }
.modal .event-details summary { min-height:32px; font-size:12px; line-height:1.5; }
.modal .event-details .field { padding-top:6px; }
.modal > .modal-footer { padding:12px 20px; gap:8px; background:#fff; border-top-color:#eee; }
.modal-footer .button { min-height:38px; padding:9px 18px; font-size:13px; }
.modal-footer .button[type=submit] { border-color:#bbb; background:#f4f4f4; }
.modal-footer .button[type=submit]:hover { background:#eaeaea; }
.modal-footer .button.secondary { border-color:transparent; background:transparent; box-shadow:none; color:#888; }
.modal-footer .button.secondary:hover { color:#191919; background:#f5f5f5; }
@media(max-width:760px) {
 .modal { width:100%; height:100%; max-height:none; border:0; border-radius:0; }
 .modal-head { min-height:58px; padding:10px 16px; }
 .modal-head .icon-button { min-height:40px; min-width:40px; }
 .modal-body { padding:14px 16px; }
 .modal .field input, .modal .field select, .modal .field textarea { font-size:16px; min-height:44px; padding:10px 11px; }
 .modal .field textarea { min-height:76px; }
 .modal .field small { font-size:11px; }
 .modal .field-label-row { min-height:36px; }
 .modal .emoji-toggle { min-height:36px; min-width:36px; }
 .event-type-picker button { min-height:40px; }
 .modal .setting-row { min-height:58px; }
 .modal .check input[type=checkbox] { min-height:20px; }
 .modal .schedule-fields > .check { min-height:44px; }
 .modal > .modal-footer { padding:10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow:0 -3px 12px #19191904; }
 .modal-footer .button { min-height:44px; }
 .modal.menu-sheet { max-height:85%; }
}
.repeat-field { margin:8px 0 4px; }
.repeat-label { display:block; font-size:12px; color:#737373; margin-bottom:8px; }
.repeat-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; padding:3px; background:#ececec; border:1px solid #e5e5e5; border-radius:10px; }
.repeat-picker button { min-height:34px; padding:7px 4px; font-size:11px; line-height:1.4; border:1px solid transparent; border-radius:7px; color:#888; background:transparent; }
.repeat-picker button.active { color:#191919; background:#fff; border-color:#ddd; box-shadow:0 1px 3px #19191906; }
.repeat-picker button:hover:not(.active) { color:#4c4c4c; }
@media(max-width:760px) { .repeat-picker button { min-height:40px; font-size:11px; } }
@media(max-width:380px) { .modal .schedule-fields { padding-inline:10px; } .modal .schedule-fields .datetime-fields { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:8px; } }
.global-delivery-action { display:flex; align-items:center; justify-content:flex-start; gap:8px; background:transparent; color:#777; font-size:11px; min-height:38px; width:100%; padding:8px 10px; margin-bottom:7px; border-radius:9px; }
.global-delivery-action:hover { background:#e2e2e2; color:#191919; }
.global-delivery-action svg { width:14px; height:14px; }
.mobile-delivery-action { display:none; }
.pause-banner { display:flex; align-items:center; gap:12px; border:1px solid #d8d8d8; border-radius:12px; background:#f9f9f9; padding:12px 14px; margin:0 0 22px; }
.pause-banner > svg { color:#888; }
.pause-banner > div { flex:1; }
.pause-banner strong { display:block; font-size:13px; font-weight:400; }
.pause-banner small { display:block; margin-top:4px; color:#888; font-size:11px; }
.pause-banner .button { min-height:34px; font-size:11px; padding:7px 10px; }
.delivery-confirm { padding:2px 0 6px; }
.delivery-confirm-icon { display:grid; place-items:center; background:#f2f2f2; border:1px solid #e5e5e5; border-radius:12px; height:44px; width:44px; margin-bottom:14px; color:#777; }
.delivery-confirm-icon svg { width:20px; height:20px; }
.delivery-confirm p { font-size:13px; line-height:1.8; margin:10px 0; }
.delivery-confirm p.muted { color:#888; font-size:12px; }
@media(max-width:760px) {
 .mobile-delivery-action { display:flex; flex:0 0 40px; width:40px; height:44px; min-height:44px; margin:0; padding:10px; justify-content:center; }
 .mobile-delivery-action span { display:none; }
 .mobile-delivery-action svg { width:18px; height:18px; }
 .pause-banner { gap:9px; padding:12px; flex-wrap:wrap; }
 .pause-banner > div { min-width:180px; }
 .pause-banner .button { min-height:40px; width:100%; }
 .modal:has(.delivery-confirm) { height:auto; max-height:90%; border-radius:20px 20px 0 0; }
 .overlay:has(.delivery-confirm) { align-items:flex-end; }
 .modal:has(.delivery-confirm) .modal-body { flex:initial; }
}
.repeat-picker { grid-template-columns:repeat(4,minmax(0,1fr)); }
.weekday-presets { display:flex; justify-content:flex-end; gap:8px; margin:7px 0 4px; }
.weekday-presets button { background:transparent; color:#737373; font-size:11px; padding:6px; border-radius:6px; min-height:30px; }
.weekday-presets button:hover { color:#191919; background:#eee; }
.weekday-picker { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; margin-bottom:10px; }
.weekday-picker button { min-height:34px; border-radius:8px; border:1px solid #e1e1e1; color:#999; background:#fff; font-size:12px; padding:4px 0; }
.weekday-picker button.active { color:#191919; background:#e8e8e8; border-color:#bdbdbd; }
.exception-summary { padding-top:4px; border-top:1px solid #e8e8e8; margin-top:7px; }
.exception-summary summary { font-size:12px; }
.exception-summary ul { list-style:none; padding:0; max-height:160px; overflow:auto; }
.exception-summary li { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px solid #eee; font-size:12px; }
.exception-summary p { font-size:11px; line-height:1.6; }
.calendar-job.skipped { color:#999; border-color:#ddd; background:#fafafa; opacity:.85; }
.calendar-job.skipped .calendar-time, .calendar-job.skipped .calendar-text { text-decoration:line-through; }
.occurrence-text { font-size:14px; line-height:1.6; overflow-wrap:anywhere; margin:0 0 7px; }
.occurrence-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; padding:4px; background:#f1f1f1; border:1px solid #e8e8e8; border-radius:11px; margin:16px 0; }
.occurrence-picker button { min-height:38px; border:1px solid transparent; border-radius:7px; background:transparent; color:#888; padding:7px 4px; font-size:12px; }
.occurrence-picker button.active { color:#191919; background:#fff; border-color:#ddd; }
.edit-series-button { margin-top:12px; min-height:38px; font-size:12px; }
@media(max-width:760px) { .repeat-picker button { min-height:44px; font-size:11px; } .weekday-picker button { min-height:38px; } .weekday-presets button { min-height:36px; } .occurrence-picker button { min-height:44px; font-size:11px; } }

@media(max-width:380px) { .repeat-picker { grid-template-columns:repeat(2,minmax(0,1fr)); } .repeat-picker button { min-height:38px; font-size:12px; } }
