.confirmation-queue{overflow:hidden;align-self:start}
.queue-heading{padding:23px 24px 8px}.queue-title{display:flex;align-items:center;gap:10px}.queue-heading h2{font-size:21px;line-height:1.3}.queue-heading p{font-size:12px;color:var(--muted,#7c8975);line-height:1.6;margin-top:8px}.queue-count{background:#e8f2da;color:#4c6738;border-radius:8px;padding:4px 8px;font-size:13px;font-weight:600}
.queue-preview{padding:0 24px}.queue-date{font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted,#7c8975);margin:16px 0 2px}.queue-lesson{display:flex;align-items:center;gap:11px;padding:14px 0;border-bottom:1px solid var(--line)}.queue-person{min-width:0;flex:1}.queue-person strong{display:block;font-size:13px;overflow-wrap:anywhere;line-height:1.4}.queue-person small{display:block;font-size:10px;line-height:1.6;color:var(--muted,#7c8975);margin-top:3px}.queue-price{font-size:13px;white-space:nowrap;flex-shrink:0}.queue-preview-note{font-size:10px;line-height:1.5;color:var(--muted,#7c8975);margin:12px 24px 0}.queue-actions{display:grid;gap:9px;padding:20px 24px 17px}.queue-actions .btn{justify-content:center}.queue-actions [data-action=today]{justify-content:space-between}.queue-sync{border-top:1px solid var(--line);padding:13px 24px;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;font-size:10px;line-height:1.5;color:var(--muted,#7c8975)}.queue-sync-text{min-width:0;overflow-wrap:anywhere}.queue-sync button{flex-shrink:0;border-radius:8px;min-height:32px;min-width:32px;color:inherit;background:transparent;display:flex;align-items:center;justify-content:center;padding:6px}.queue-sync button:hover{background:#e8eedf}.queue-sync-error{color:#a44c40}.queue-sync [role=status]{display:flex;align-items:center;gap:7px}.queue-sync .sync-spinner{animation:queue-spin 1.4s linear infinite}@keyframes queue-spin{to{transform:rotate(360deg)}}
.queue-empty .queue-heading{padding-top:25px}.queue-done{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e8f2da;color:#547539;margin-bottom:14px}.queue-empty .queue-actions{padding-top:16px}
dialog.batch-dialog{width:min(540px,calc(100% - 24px));max-height:calc(100dvh - 28px - var(--safe-top) - var(--safe-bottom));overflow:hidden;padding:0}
.batch-dialog .dialog-head{flex-shrink:0;padding:20px 24px 16px}.batch-dialog .dialog-body{padding:0;display:flex;flex-direction:column;min-height:0;overflow:hidden}.batch-dialog[open]{display:flex;flex-direction:column}.batch-dialog .dialog-subtitle{line-height:1.6}.batch-dialog .dialog-body>.error-box:not(:empty){margin:10px 24px;flex-shrink:0;font-size:11px;max-height:100px;overflow:auto}.batch-dialog .dialog-body>.error-box:empty{display:none}
#batch-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.batch-select-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;border-bottom:1px solid var(--line);font-size:11px;flex-shrink:0}.batch-select-bar .check-field{margin:0;font-size:12px}.batch-select-bar [data-batch-selected]{color:var(--muted,#7c8975);white-space:nowrap}.batch-list{overflow:auto;overscroll-behavior:contain;min-height:0;padding:0 24px;-webkit-overflow-scrolling:touch}.batch-dialog .batch-row{display:block;padding:17px 0;border-bottom:1px solid var(--line);min-width:0}.batch-person{display:flex;gap:10px;align-items:center;min-width:0}.batch-pick{display:grid;place-items:center;flex-shrink:0;min-width:24px;min-height:35px}.batch-dialog input[type=checkbox]{width:18px;height:18px;accent-color:#718e4e}.batch-results{width:calc(100% - 34px);margin:10px 0 0 34px;padding:3px;gap:3px;background:#f2f5ed;border:1px solid var(--line);border-radius:9px}.batch-results .tab{padding:8px 6px;font-size:11px;min-width:0;min-height:36px;white-space:nowrap}.batch-results .tab.active{background:#d9ebc2;color:#3a5731;box-shadow:none}.batch-results [data-batch-result=cancelled].active{background:#f0dfd5;color:#885742}.batch-results button:disabled{opacity:.45;cursor:default}.batch-row.is-deferred .batch-person{opacity:.55}.batch-defer-note,.batch-changed-note{font-size:10px;line-height:1.5;margin:8px 0 0 34px;color:var(--muted,#7c8975)}.batch-changed-note{color:#9b6b2d}.batch-footer{padding:17px 24px 15px;border-top:1px solid var(--line);flex-shrink:0}.batch-total{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px}.batch-total strong{font-size:24px;white-space:nowrap}.batch-counts{font-size:10px;line-height:1.5;color:var(--muted,#7c8975);margin:7px 0 12px}.batch-footer .btn{width:100%;justify-content:center}.batch-footnote{font-size:10px;line-height:1.5;text-align:center;color:var(--muted,#7c8975);margin-top:9px}.batch-refresh{display:block;margin-top:8px;text-decoration:underline}
html[data-telegram-theme=dark] .batch-results{background:#141d16}html[data-telegram-theme=dark] .batch-results .tab.active{background:#35482c;color:#d5edc1}html[data-telegram-theme=dark] .batch-results [data-batch-result=cancelled].active{background:#4a342b;color:#f1c4ad}html[data-telegram-theme=dark] .queue-count,html[data-telegram-theme=dark] .queue-done{background:#2b3c25;color:#c5e9a6}html[data-telegram-theme=dark] .queue-sync button:hover{background:#2a352c}html[data-telegram-theme=dark] .queue-sync-error{color:#efad9f}html[data-telegram-theme=dark] .batch-changed-note{color:#d8b777}
@media(max-width:360px){.queue-heading,.queue-preview{padding-left:18px;padding-right:18px}.queue-actions,.queue-sync{padding-left:18px;padding-right:18px}.queue-preview-note{margin-left:18px;margin-right:18px}.queue-lesson .avatar{display:none}.batch-dialog .dialog-head,.batch-select-bar,.batch-footer{padding-left:16px;padding-right:16px}.batch-list{padding-left:16px;padding-right:16px}.batch-dialog .dialog-head h2{font-size:19px}.batch-total strong{font-size:21px}}
@media(prefers-reduced-motion:reduce){.queue-sync .sync-spinner{animation:none}}
