:root {
  --wm-blue: #2563eb;
  --wm-blue-dark: #1d4ed8;
  --wm-ink: #172033;
  --wm-muted: #697386;
  --wm-line: #e6eaf0;
  --wm-soft: #f6f8fb;
  --wm-white: #fff;
  --wm-danger: #dc2626;
  --wm-radius: 14px;
  --wm-shadow: 0 14px 36px rgba(15, 23, 42, .09);
}

* { box-sizing: border-box; }
html, body.wm-tc-standalone-page { margin: 0 !important; min-height: 100%; background: #f4f7fb; color: var(--wm-ink); }
body.wm-tc-standalone-page { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.wm-tc-standalone-page #wpadminbar { position: fixed; }
.wm-tc-page-shell { min-height: 100vh; }
.wm-tc-page-shell > p { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
body.wm-tc-modal-open { overflow: hidden; }

.wm-tc-app { min-height: 100vh; }
.wm-tc-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.wm-tc-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #fff; border-right: 1px solid var(--wm-line); padding: 22px 18px; z-index: 20; }
.admin-bar .wm-tc-sidebar { top: 32px; height: calc(100vh - 32px); }
.wm-tc-brand { display: flex; align-items: center; gap: 11px; padding: 0 5px 20px; }
.wm-tc-brand-mark { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #2563eb, #1e40af); color: #fff; font-weight: 900; font-size: 20px; box-shadow: 0 8px 18px rgba(37, 99, 235, .25); }
.wm-tc-brand strong, .wm-tc-brand span { display: block; line-height: 1.15; }
.wm-tc-brand strong { font-size: 15px; letter-spacing: -.02em; }
.wm-tc-brand span { color: var(--wm-muted); font-size: 12px; margin-top: 3px; }
.wm-tc-user-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--wm-line); background: var(--wm-soft); padding: 11px; border-radius: 13px; margin-bottom: 23px; }
.wm-tc-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #dbeafe; color: #1d4ed8; font-weight: 800; }
.wm-tc-user-copy { min-width: 0; }
.wm-tc-user-copy strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.wm-tc-membership { display: block; font-size: 11px; color: var(--wm-muted); margin-top: 2px; }
.wm-tc-sidebar-section { margin-bottom: 20px; }
.wm-tc-section-heading { display: flex; align-items: center; justify-content: space-between; color: #505a6e; text-transform: uppercase; font-weight: 800; font-size: 11px; letter-spacing: .08em; padding: 0 5px 7px; }
.wm-tc-icon-btn { appearance: none; border: 0; background: transparent; width: 29px; height: 29px; border-radius: 9px; display: inline-grid; place-items: center; color: #475569; font-size: 20px; line-height: 1; }
.wm-tc-icon-btn:hover { background: #eef2f7; color: var(--wm-blue); }
.wm-tc-icon-bordered { border: 1px solid var(--wm-line); background: #fff; }
.wm-tc-class-row-wrap, .wm-tc-unit-card { position: relative; display: flex; align-items: center; }
.wm-tc-nav-row { width: 100%; min-width: 0; border: 0; background: transparent; color: #394257; border-radius: 10px; padding: 9px 34px 9px 10px; display: flex; align-items: center; gap: 10px; text-align: left; font-size: 13px; }
.wm-tc-nav-row:hover { background: #f3f6fb; }
.wm-tc-nav-row.is-active { background: #eaf1ff; color: #1746a2; font-weight: 750; }
.wm-tc-class-dot { --dot: #2563eb; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: 0 0 auto; }
.wm-tc-all-dot { background: conic-gradient(#2563eb 0 25%, #f59e0b 0 50%, #dc2626 0 75%, #059669 0); }
.wm-tc-row-copy { min-width: 0; }
.wm-tc-row-copy > span, .wm-tc-row-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-tc-row-copy small { color: var(--wm-muted); font-size: 10px; margin-top: 2px; font-weight: 500; }
.wm-tc-row-menu { position: absolute; right: 4px; border: 0; background: transparent; color: #94a3b8; padding: 5px; border-radius: 7px; font-size: 12px; letter-spacing: -2px; }
.wm-tc-row-menu:hover { background: #e8edf4; color: #334155; }
.wm-tc-unit-list { display: grid; gap: 5px; }
.wm-tc-unit-card { border: 1px solid var(--wm-line); border-radius: 11px; background: #fff; }
.wm-tc-unit-card:hover { border-color: #cbd5e1; box-shadow: 0 3px 10px rgba(15, 23, 42, .04); }
.wm-tc-unit-open { display: grid; grid-template-columns: 5px minmax(0, 1fr); gap: 9px; align-items: stretch; width: 100%; border: 0; background: transparent; padding: 8px 34px 8px 8px; text-align: left; }
.wm-tc-unit-color { --unit: #2563eb; display: block; border-radius: 8px; background: var(--unit); }
.wm-tc-unit-open strong, .wm-tc-unit-open small { display: block; }
.wm-tc-unit-open strong { color: #334155; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-tc-unit-open small { color: var(--wm-muted); font-size: 10px; margin-top: 3px; }
.wm-tc-empty-mini { color: #8791a3; font-size: 11px; line-height: 1.45; padding: 8px 6px; }
.wm-tc-sidebar-actions { display: grid; gap: 8px; padding-top: 4px; }

.wm-tc-main { min-width: 0; padding: 24px 28px 34px; }
.wm-tc-topbar { display: flex; align-items: center; gap: 18px; justify-content: space-between; margin-bottom: 20px; }
.wm-tc-topbar h1 { margin: 0; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; }
.wm-tc-topbar p { margin: 5px 0 0; color: var(--wm-muted); font-size: 13px; }
.wm-tc-top-actions { display: flex; gap: 9px; flex: 0 0 auto; }
.wm-tc-mobile-menu { display: none; border: 1px solid var(--wm-line); background: #fff; border-radius: 10px; width: 40px; height: 40px; }
.wm-tc-btn { appearance: none; border: 1px solid transparent; border-radius: 10px; min-height: 38px; padding: 8px 13px; font-weight: 750; font-size: 12px; transition: .15s ease; }
.wm-tc-btn-primary { color: #fff; background: var(--wm-blue); border-color: var(--wm-blue); box-shadow: 0 5px 13px rgba(37, 99, 235, .18); }
.wm-tc-btn-primary:hover { background: var(--wm-blue-dark); transform: translateY(-1px); }
.wm-tc-btn-soft { color: #3b465c; border-color: var(--wm-line); background: #fff; }
.wm-tc-btn-soft:hover { border-color: #c9d1dc; background: #f8fafc; }
.wm-tc-btn-soft.is-active, .wm-tc-quick-toggle.is-active { color: #1746a2; border-color: #93b4f7; background: #eaf1ff; }
.wm-tc-btn-danger-ghost { color: var(--wm-danger); background: #fff; border-color: #fecaca; }
.wm-tc-btn-danger-ghost:hover { background: #fff1f2; }
.wm-tc-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.wm-tc-month-controls { display: flex; align-items: center; gap: 8px; }
.wm-tc-month-controls h2 { font-size: 18px; margin: 0 0 0 5px; min-width: 180px; letter-spacing: -.02em; }
.wm-tc-toolbar-right { display: flex; align-items: center; gap: 12px; }
.wm-tc-toolbar-right select { min-width: 170px; border: 1px solid var(--wm-line); background: #fff; border-radius: 10px; padding: 9px 34px 9px 11px; color: #334155; font-weight: 650; font-size: 12px; }
.wm-tc-drag-hint { color: #7a8496; font-size: 11px; }
.wm-tc-quick-bar { display: grid; grid-template-columns: minmax(230px, 1.5fr) minmax(145px, .7fr) minmax(160px, .8fr) auto auto; gap: 12px; align-items: end; border: 1px solid #a9c3f7; background: linear-gradient(135deg, #edf4ff, #f8fbff); border-radius: 13px; padding: 12px 14px; margin: 0 0 12px; box-shadow: 0 6px 18px rgba(37, 99, 235, .08); }
.wm-tc-quick-copy { align-self: center; }
.wm-tc-quick-copy strong, .wm-tc-quick-copy span { display: block; }
.wm-tc-quick-copy strong { color: #1746a2; font-size: 13px; }
.wm-tc-quick-copy span { color: #5f6f87; font-size: 10px; line-height: 1.4; margin-top: 3px; }
.wm-tc-quick-bar > label:not(.wm-tc-quick-check) { display: grid; gap: 5px; color: #536079; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.wm-tc-quick-bar select { width: 100%; min-height: 38px; border: 1px solid #c8d7f2; border-radius: 9px; background: #fff; color: #334155; padding: 7px 30px 7px 9px; font-size: 11px; font-weight: 650; text-transform: none; letter-spacing: normal; }
.wm-tc-quick-check { min-height: 38px; display: flex; align-items: center; gap: 7px; color: #42516b; font-size: 10px; font-weight: 700; white-space: nowrap; padding: 0 3px; }
.wm-tc-quick-check input { accent-color: var(--wm-blue); }
.wm-tc-calendar-card { background: #fff; border: 1px solid var(--wm-line); border-radius: 15px; overflow: hidden; box-shadow: 0 8px 25px rgba(15, 23, 42, .045); }
.wm-tc-weekdays, .wm-tc-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wm-tc-weekdays { background: #f8fafc; border-bottom: 1px solid var(--wm-line); }
.wm-tc-weekdays > div { padding: 11px 9px; color: #7a8496; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; text-align: center; }
.wm-tc-day { position: relative; min-width: 0; min-height: 128px; border-right: 1px solid var(--wm-line); border-bottom: 1px solid var(--wm-line); padding: 7px; background: #fff; transition: background .12s, box-shadow .12s; }
.wm-tc-day:nth-child(7n) { border-right: 0; }
.wm-tc-day:nth-last-child(-n+7) { border-bottom: 0; }
.wm-tc-day.is-other-month { background: #fafbfc; }
.wm-tc-day.is-weekend { background: #f8fafc; }
.wm-tc-day.is-blocked { background-image: linear-gradient(135deg, rgba(100, 116, 139, .035) 25%, transparent 25%, transparent 50%, rgba(100, 116, 139, .035) 50%, rgba(100, 116, 139, .035) 75%, transparent 75%, transparent); background-size: 12px 12px; }
.wm-tc-day.is-drop-target { background: #eaf2ff; box-shadow: inset 0 0 0 2px #3b82f6; }
.wm-tc-day.is-quick-markable { background: #f8fbff; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18); }
.wm-tc-day.is-quick-markable:hover { background: #edf4ff; box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .45); }
.wm-tc-day.is-quick-markable .wm-tc-day-number { background: #dbeafe; color: #1746a2; }
.wm-tc-quick-mark-day { width: 100%; border: 1px dashed #8fb0ef; background: rgba(255,255,255,.82); color: #1d4ed8; border-radius: 7px; padding: 5px 4px; font-size: 9px; font-weight: 800; }
.wm-tc-quick-mark-day:hover { border-style: solid; background: #fff; }
.wm-tc-day-head { display: flex; justify-content: space-between; align-items: center; min-height: 25px; margin-bottom: 4px; }
.wm-tc-day-head > span { color: #2563eb; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.wm-tc-day-number { border: 0; background: transparent; width: 26px; height: 26px; border-radius: 50%; color: #5f697b; font-size: 12px; font-weight: 700; padding: 0; }
.wm-tc-day-number:hover { background: #eaf1ff; color: #1746a2; }
.wm-tc-day.is-today .wm-tc-day-number { background: var(--wm-blue); color: #fff; }
.wm-tc-day.is-other-month .wm-tc-day-number { color: #b4bbc7; }
.wm-tc-day-items { display: grid; gap: 4px; }
.wm-tc-event { --event: #2563eb; position: relative; width: 100%; min-width: 0; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 4px; border: 0; border-left: 3px solid var(--event); border-radius: 6px; background: color-mix(in srgb, var(--event) 10%, white); padding: 4px 5px 4px 3px; color: #273248; text-align: left; font-size: 10px; line-height: 1.15; }
.wm-tc-event:hover { filter: saturate(1.15); box-shadow: 0 2px 7px rgba(15, 23, 42, .1); z-index: 2; }
.wm-tc-event.is-draggable { cursor: grab; }
.wm-tc-event.is-dragging { opacity: .35; }
.wm-tc-event.is-complete { opacity: .62; }
.wm-tc-event.is-complete .wm-tc-event-title { text-decoration: line-through; }
.wm-tc-event-icon { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; background: var(--event); color: #fff; font-weight: 900; font-size: 9px; }
.wm-tc-event-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 750; }
.wm-tc-event-title small { display: block; color: #6b7280; font-size: 8px; font-weight: 550; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-tc-duration { color: #64748b; font-size: 8px; font-weight: 800; }
.wm-tc-nonclass-event { border-left-style: dashed; background: #eef1f5; }

.wm-tc-modal-backdrop { position: fixed; inset: 0; z-index: 999999; background: rgba(15, 23, 42, .54); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 22px; }
.wm-tc-modal { width: min(560px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; background: #fff; border-radius: 17px; box-shadow: 0 30px 80px rgba(15, 23, 42, .28); overflow: hidden; animation: wmModalIn .17s ease-out; }
.wm-tc-modal-wide { width: min(900px, 100%); }
@keyframes wmModalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.wm-tc-modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 15px; border-bottom: 1px solid var(--wm-line); }
.wm-tc-modal h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.wm-tc-modal header p { margin: 5px 0 0; color: var(--wm-muted); font-size: 12px; line-height: 1.45; }
.wm-tc-modal-x { width: 33px; height: 33px; border: 0; border-radius: 9px; background: #f1f5f9; color: #64748b; font-size: 21px; line-height: 1; }
.wm-tc-modal-body { overflow-y: auto; padding: 19px 22px 22px; }
.wm-tc-modal > footer { flex: 0 0 auto; padding: 13px 22px; border-top: 1px solid var(--wm-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fbfcfd; }
.wm-tc-modal > footer > div { display: flex; gap: 8px; }
.wm-tc-event-footer-left { display: flex; gap: 8px; }
.wm-tc-form { display: grid; gap: 15px; }
.wm-tc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.wm-tc-unit-meta { grid-template-columns: minmax(0, 1fr) 100px; }
.wm-tc-field { display: grid; gap: 6px; color: #3e485c; font-weight: 750; font-size: 11px; }
.wm-tc-field > span small { color: #8992a3; font-weight: 550; }
.wm-tc-field input, .wm-tc-field select, .wm-tc-field textarea { width: 100%; border: 1px solid #d9dee7; background: #fff; color: #263247; border-radius: 9px; min-height: 41px; padding: 9px 11px; outline: none; font-size: 13px; font-weight: 500; }
.wm-tc-field textarea { resize: vertical; min-height: 72px; }
.wm-tc-field input[type="color"] { padding: 4px; }
.wm-tc-field input:focus, .wm-tc-field select:focus, .wm-tc-field textarea:focus { border-color: #80a7f8; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.wm-tc-check { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--wm-line); background: #f8fafc; padding: 12px; border-radius: 11px; }
.wm-tc-check input { margin-top: 3px; accent-color: var(--wm-blue); }
.wm-tc-check strong, .wm-tc-check small { display: block; }
.wm-tc-check strong { color: #354057; font-size: 12px; }
.wm-tc-check small { color: var(--wm-muted); font-size: 10px; line-height: 1.45; margin-top: 3px; }
.wm-tc-builder-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 3px; }
.wm-tc-builder-heading strong, .wm-tc-builder-heading span { display: block; }
.wm-tc-builder-heading strong { font-size: 13px; }
.wm-tc-builder-heading span { color: var(--wm-muted); font-size: 10px; margin-top: 2px; }
.wm-tc-unit-builder { display: grid; gap: 7px; }
.wm-tc-unit-row { display: grid; grid-template-columns: 23px minmax(180px, 1fr) 125px 100px 30px 30px 30px; gap: 6px; align-items: center; border: 1px solid var(--wm-line); padding: 7px; border-radius: 10px; background: #fbfcfe; }
.wm-tc-unit-row input, .wm-tc-unit-row select { width: 100%; min-width: 0; min-height: 36px; border: 1px solid #d9dee7; border-radius: 8px; background: #fff; padding: 7px 9px; color: #334155; font-size: 11px; }
.wm-tc-drag-handle { color: #a3adba; text-align: center; letter-spacing: -2px; }
.wm-tc-days-input { display: flex; align-items: center; gap: 4px; }
.wm-tc-days-input input { width: 54px; }
.wm-tc-days-input span { color: #697386; font-size: 10px; }
.wm-tc-row-arrow, .wm-tc-row-remove { border: 0; border-radius: 7px; width: 30px; height: 30px; background: #eef2f7; color: #64748b; }
.wm-tc-row-arrow:hover { background: #dbeafe; color: #1d4ed8; }
.wm-tc-row-remove:hover { background: #fee2e2; color: #b91c1c; }
.wm-tc-sequence-preview { display: grid; gap: 6px; border: 1px solid var(--wm-line); background: #f8fafc; padding: 10px; border-radius: 11px; }
.wm-tc-sequence-preview > div { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 8px; align-items: center; background: #fff; border: 1px solid #edf0f4; border-radius: 8px; padding: 7px; }
.wm-tc-sequence-preview > div > span { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #eaf1ff; color: #1d4ed8; font-size: 10px; font-weight: 800; }
.wm-tc-sequence-preview strong { font-size: 11px; }
.wm-tc-sequence-preview small { color: var(--wm-muted); font-size: 9px; }
.wm-tc-sequence-preview p { margin: 3px; color: var(--wm-muted); font-size: 10px; text-align: center; }
.wm-tc-detail-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--wm-line); background: #f8fafc; border-radius: 12px; padding: 14px; }
.wm-tc-detail-dot { --dot: #64748b; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); margin-top: 3px; }
.wm-tc-detail-card strong { font-size: 13px; }
.wm-tc-detail-card p { color: var(--wm-muted); font-size: 11px; line-height: 1.5; margin: 4px 0 0; }

#wm-tc-toast-root { position: fixed; right: 24px; bottom: 24px; z-index: 1000000; display: grid; gap: 8px; pointer-events: none; }
.wm-tc-toast { max-width: min(390px, calc(100vw - 32px)); border-radius: 11px; background: #173b2b; color: #fff; box-shadow: 0 14px 35px rgba(15, 23, 42, .22); padding: 12px 15px; font-size: 12px; font-weight: 650; opacity: 0; transform: translateY(8px); transition: .2s ease; }
.wm-tc-toast.is-error { background: #7f1d1d; }
.wm-tc-toast.is-visible { opacity: 1; transform: translateY(0); }
.wm-tc-loading, .wm-tc-error-card, .wm-tc-login-card { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 30px; }
.wm-tc-loading p { color: var(--wm-muted); font-size: 13px; }
.wm-tc-spinner { justify-self: center; width: 38px; height: 38px; border: 4px solid #dbeafe; border-top-color: var(--wm-blue); border-radius: 50%; animation: wmSpin .8s linear infinite; }
@keyframes wmSpin { to { transform: rotate(360deg); } }
.wm-tc-error-card > *, .wm-tc-login-card > * { margin-left: auto; margin-right: auto; }
.wm-tc-error-card p, .wm-tc-login-card p { color: var(--wm-muted); }

@media (max-width: 1180px) {
  .wm-tc-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .wm-tc-sidebar { padding-left: 12px; padding-right: 12px; }
  .wm-tc-main { padding-left: 18px; padding-right: 18px; }
  .wm-tc-drag-hint { display: none; }
  .wm-tc-quick-bar { grid-template-columns: 1fr 1fr 1fr; }
  .wm-tc-quick-copy { grid-column: 1 / -1; }
  .wm-tc-day { min-height: 113px; }
}

@media (max-width: 860px) {
  .wm-tc-layout { display: block; }
  .wm-tc-sidebar { position: fixed; left: 0; top: 0; width: min(300px, 88vw); height: 100vh; transform: translateX(-105%); box-shadow: 18px 0 45px rgba(15, 23, 42, .18); transition: transform .2s ease; }
  .admin-bar .wm-tc-sidebar { top: 46px; height: calc(100vh - 46px); }
  .wm-tc-sidebar.is-open { transform: translateX(0); }
  .wm-tc-mobile-menu { display: inline-grid; place-items: center; flex: 0 0 auto; }
  .wm-tc-main { padding: 16px 12px 26px; }
  .wm-tc-topbar { align-items: flex-start; }
  .wm-tc-topbar p, .wm-tc-top-actions .wm-tc-btn-soft { display: none; }
  .wm-tc-calendar-toolbar { align-items: flex-start; }
  .wm-tc-quick-bar { grid-template-columns: 1fr 1fr; }
  .wm-tc-quick-copy, .wm-tc-quick-check { grid-column: 1 / -1; }
  .wm-tc-toolbar-right select { min-width: 140px; }
  .wm-tc-calendar-card { overflow-x: auto; }
  .wm-tc-weekdays, .wm-tc-calendar-grid { min-width: 760px; }
  .wm-tc-unit-row { grid-template-columns: 22px minmax(180px, 1fr) 110px 85px 28px 28px 28px; }
}

@media (max-width: 620px) {
  .wm-tc-topbar h1 { font-size: 22px; }
  .wm-tc-top-actions .wm-tc-btn { min-height: 37px; padding-inline: 10px; }
  .wm-tc-calendar-toolbar { display: grid; }
  .wm-tc-month-controls { flex-wrap: wrap; }
  .wm-tc-month-controls h2 { order: -1; flex: 0 0 100%; margin: 0 0 4px; }
  .wm-tc-toolbar-right { width: 100%; flex-wrap: wrap; }
  .wm-tc-toolbar-right select, .wm-tc-toolbar-right .wm-tc-quick-toggle { width: 100%; }
  .wm-tc-quick-bar { grid-template-columns: 1fr; align-items: stretch; }
  .wm-tc-quick-copy, .wm-tc-quick-check { grid-column: auto; }
  .wm-tc-form-grid, .wm-tc-unit-meta { grid-template-columns: 1fr; }
  .wm-tc-modal-backdrop { padding: 8px; align-items: end; }
  .wm-tc-modal { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .wm-tc-modal > footer { align-items: stretch; flex-direction: column; }
  .wm-tc-modal > footer > div, .wm-tc-event-footer-left { display: grid; grid-template-columns: 1fr 1fr; }
  .wm-tc-modal > footer > .wm-tc-btn { width: 100%; }
  .wm-tc-unit-builder { overflow-x: auto; }
  .wm-tc-unit-row { min-width: 720px; }
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
  .wm-tc-event { background: #f3f6fb; }
}
