/* Simple first screen: one action, recipient rows, history folded by default. */
.telegram-daybot-panel{background:var(--surface,#fff);border:1px solid var(--line,#ded6cc);border-radius:12px;padding:14px 18px;max-width:1160px;margin:0 0 16px;font-size:16px;line-height:1.5}
.telegram-daybot-head{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.telegram-daybot-head h2{font-size:19px;line-height:1.25;margin:0 0 4px}
.telegram-daybot-head p{color:var(--muted,#6b665f);margin:0}
.telegram-daybot-panel button{min-height:44px;font-size:15px}
.telegram-daybot-panel button:focus-visible,.telegram-daybot-panel input:focus-visible,.telegram-daybot-panel summary:focus-visible{outline:3px solid var(--color-accent,#80624b);outline-offset:2px}
.telegram-action-message:empty{display:none}
.telegram-action-message{padding:8px 0;margin:12px 0 0;font-weight:600}
.telegram-action-message[data-kind="error"]{color:#9b332b}
.telegram-action-message[data-kind="success"]{color:#286c48}
.telegram-targets{margin:12px 0 0;border-top:1px solid var(--line,#ded6cc)}
.telegram-target{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line,#ded6cc);padding:9px 0}
.telegram-target-info{min-width:0;display:flex;flex-direction:column;gap:3px}
.telegram-target-info>b{font-size:16px}
.telegram-target-summary{font-size:14px;color:var(--muted,#6b665f)}
.telegram-target-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}
.telegram-empty{border:1px dashed var(--line,#ded6cc);border-radius:10px;margin:18px 0;padding:24px;background:var(--surface,#fff)}
.telegram-empty p{margin:4px 0 0;color:var(--muted,#6b665f)}
.telegram-form{border:1px solid var(--line,#ded6cc);border-radius:12px;max-width:900px;margin:12px 0;padding:14px;display:flex;flex-direction:column;gap:12px}
.telegram-editor-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.telegram-editor-title h2{font-size:20px;margin:0}
.telegram-form-intro{margin:0;color:var(--muted,#6b665f)}
.telegram-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.telegram-input-grid label{display:flex;flex-direction:column;gap:5px;min-width:0;font-weight:600}
.telegram-input-grid label:last-child{grid-column:1/-1}
.telegram-input-grid input,.telegram-buyer-chooser input[type="search"]{width:100%;min-width:0;min-height:44px;box-sizing:border-box;padding:9px 12px;font:inherit;font-weight:400}
.telegram-field-help,.telegram-help{color:var(--muted,#6b665f);font-size:13px;font-weight:400;margin:0}
.telegram-field-error{color:#9b332b;font-size:14px;font-weight:600}
.telegram-field-error:empty{display:none}
.telegram-simple-fieldset{border:1px solid var(--line,#ded6cc);border-radius:10px;padding:12px 14px;min-width:0;margin:0}
.telegram-simple-fieldset legend{font-size:17px;font-weight:700;padding:0 5px}
.telegram-choice{display:flex;align-items:flex-start;gap:12px;padding:6px 5px;cursor:pointer}
.telegram-choice input,.telegram-buyer-option input{width:21px;height:21px;flex-shrink:0;margin:2px 0;accent-color:var(--color-accent,#80624b)}
.telegram-choice span,.telegram-buyer-option span{display:flex;flex-direction:column;gap:2px;min-width:0}
.telegram-choice small,.telegram-buyer-option small{font-size:13px;color:var(--muted,#6b665f)}
.telegram-buyer-chooser{padding:14px 10px 6px;margin:6px 0 0;border-top:1px solid var(--line,#ded6cc)}
.telegram-buyer-chooser[hidden],.telegram-buyer-option[hidden]{display:none!important}
.telegram-buyer-chooser>label{font-weight:600;display:block;margin-bottom:6px}
.telegram-buyer-options{max-height:232px;overflow:auto;margin-top:8px;border:1px solid var(--line,#ded6cc);border-radius:9px;padding:6px}
.telegram-buyer-option{display:flex;gap:12px;align-items:flex-start;padding:9px;border-bottom:1px solid var(--line,#eee);cursor:pointer;min-height:44px}
.telegram-buyer-option:last-child{border-bottom:0}
.telegram-enable{border-top:1px solid var(--line,#ded6cc)}
.telegram-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.telegram-delete-button{margin-left:auto}
.telegram-form-message{margin:0;font-weight:600}
.telegram-form-message:empty{display:none}
.telegram-form-message[data-kind="error"]{color:#9b332b}
.telegram-form-message[data-kind="success"]{color:#286c48}
.telegram-form [aria-invalid="true"]{outline:2px solid #9b332b;outline-offset:2px}
.telegram-history{border-top:1px solid var(--line,#ded6cc);margin-top:16px}
.telegram-history>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;padding:16px 0;min-height:44px}
.telegram-history>summary::-webkit-details-marker{display:none}
.telegram-history>summary:before{content:'▸';font-size:16px;margin-right:4px}
.telegram-history[open]>summary:before{content:'▾'}
.telegram-history>summary span:first-of-type{display:flex;flex-direction:column;flex:1}
.telegram-history>summary small,.telegram-history-count{font-size:13px;color:var(--muted,#6b665f);font-weight:400}
.telegram-history-inner{padding:10px 0 4px}
.telegram-history-stats{display:flex;gap:18px;flex-wrap:wrap;padding:4px 0 12px}
.telegram-history-row{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:12px 0;border-top:1px solid var(--line,#ded6cc);font-size:14px}
.telegram-history-row>span:first-child{overflow-wrap:anywhere}
.telegram-history-row small{display:block;color:var(--muted,#6b665f)}
.telegram-history-delivery{display:block;max-width:400px}
.telegram-footer{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:14px}
.telegram-footer span{font-size:14px;color:#9b332b}
.settings-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px;border-bottom:1px solid var(--line,#ddd);padding:0 0 12px}
.settings-nav a{display:inline-flex;align-items:center;text-decoration:none;border:1px solid var(--line,#ddd);border-radius:9px;padding:10px 14px;color:inherit;min-height:42px;font-weight:600}
.settings-nav a[aria-current="page"]{background:var(--color-bg-secondary,#f3efea);border-color:var(--color-accent,#80624b)}
.settings-landing{display:grid;gap:12px;max-width:880px}
.settings-landing a{display:block;padding:16px;text-decoration:none;border:1px solid var(--line,#ddd);border-radius:12px;color:inherit}
.settings-landing a span{display:block;color:var(--muted,#6b7280);font-size:13px;margin-top:5px}
@media(max-width:720px){.telegram-daybot-panel{padding:15px}.telegram-daybot-head{align-items:stretch}.telegram-daybot-head>button{width:100%}.telegram-target{flex-direction:column;align-items:stretch}.telegram-target-actions{width:100%}.telegram-target-actions button{flex:1}.telegram-form{padding:14px}.telegram-input-grid{grid-template-columns:1fr}.telegram-input-grid label:last-child{grid-column:auto}.telegram-history-row{flex-direction:column;gap:6px}.telegram-delete-button{margin-left:0}}

/* V545: accessible, compact report controls; no wall of checkboxes on first screen. */
.telegram-report-options{border-top:1px solid var(--line,#ded6cc);margin:10px 0 0;padding:12px 4px 2px}
.telegram-report-options[hidden],.telegram-report-preview[hidden]{display:none!important}
.telegram-report-options>b{display:block;margin-bottom:6px;font-size:15px}
.telegram-report-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto;line-height:1.45;font-size:14px;border:1px solid var(--line,#ded6cc);border-radius:9px;padding:14px;margin:10px 0;background:var(--surface,#fff)}
