.app [hidden] { display: none !important; }
.app { width: 100%; min-width: 0; overflow-x: clip; }
.tabs { align-items: center; flex-wrap: wrap; overflow: visible; min-width: 0; }
.tabs > button { flex: 0 1 auto; white-space: nowrap; }
.tabs > button { border-radius: 10px 10px 0 0; }
.tabs > button { padding: 12px 16px; font-size: 15px; }
.scope-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; margin: -11px 0 21px; }
.scope-tabs[hidden] { display: none; }
.scope-button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.scope-button.active { color: var(--blue); border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.scope-tabs > .all-tab { margin-left: auto; }
.group-tabs { display: contents; }
.group-tabs[hidden] { display: none; }
.group-tabs button { flex: 0 1 auto; min-width: 0; max-width: 100%; border: 0; border-radius: 999px; padding: 9px 14px; background: #2878e8; color: white; font-size: 12px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; box-shadow: 0 3px 10px #2878e82b; }
.group-tabs button.active { background: #155fc7; box-shadow: 0 0 0 2px #2878e84a; }
.row { min-width: 0; }
.row > label { min-width: 0; }
.chat-picker { position: relative; }
.chat-picker select { display: none; }
.chat-picker-trigger { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid #d6dfec; border-radius: 14px; background: #f7f9fc; color: #243247; text-align: left; font-size: 14px; font-weight: 650; }
.chat-picker-trigger:focus-visible { outline: 3px solid #2878e833; border-color: #7aaff8; }
.picker-chevron { color: #718096; font-size: 20px; line-height: 1; transition: transform .15s; }
.chat-picker-trigger[aria-expanded="true"] .picker-chevron { transform: rotate(180deg); }
.chat-picker-options { position: absolute; z-index: 20; inset: calc(100% + 6px) 0 auto; max-height: min(280px, 42dvh); overflow: auto; padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: var(--tg-theme-secondary-bg-color,#fff); box-shadow: 0 12px 32px #1722352b; }
.chat-picker-options[hidden] { display: none; }
.chat-picker-heading { padding: 8px 9px 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.chat-picker-option { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 11px; background: transparent; color: inherit; text-align: left; font-size: 13px; font-weight: 600; }
.chat-picker-option.selected { background: #edf4ff; color: #1768d1; }
.chat-option-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #e8f1ff; color: #2878e8; font-size: 14px; }
.chat-option-check { margin-left: auto; color: #2878e8; font-weight: 800; }
.time-list { display: grid; gap: 7px; }
.time-item { display: flex; align-items: center; gap: 7px; }
.time-item input { min-width: 0; }
.remove-time { width: 40px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: #d44949; font-size: 21px; }
.add-time { border: 0; background: transparent; color: var(--blue); padding: 5px 0; text-align: left; font-size: 12px; font-weight: 700; }
.add-time[hidden] { display: none; }
.interval-row { display: flex; align-items: end; gap: 9px; }
.interval-row label { flex: 1; }
.interval-row > span { padding-bottom: 27px; color: var(--muted); font-size: 13px; }
.repeat-select { min-height: 44px; }
.card-top .time { max-width: 48%; flex: 0 1 auto; white-space: normal; text-align: right; line-height: 1.35; font-size: 14px; overflow-wrap: anywhere; }
select { appearance: none; -webkit-appearance: none; min-height: 48px; padding: 12px 42px 12px 14px; border: 1px solid #d6dfec; border-radius: 14px; background-color: #f7f9fc; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7b91' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; font-weight: 600; }
.tabs button, .group-tabs button { cursor: pointer; }
.subtabs { display: flex; gap: 8px; margin: 16px 0; border-bottom: 1px solid var(--line); }
.subtabs button { border: 0; background: none; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid transparent; font-weight: 650; }
.subtabs button.active { color: var(--blue); border-color: var(--blue); }
.admin-user { background: var(--tg-theme-secondary-bg-color,#fff); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-user + .admin-user { margin-top: 8px; }
.admin-user-name { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.admin-user-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.admin-user-count { flex: 0 0 auto; text-align: center; min-width: 62px; border-radius: 12px; padding: 7px; background: #edf4ff; color: var(--blue); }
.admin-user-count b { display: block; font-size: 18px; line-height: 1.1; }
.admin-user-count small { font-size: 9px; }
.field-hint { color: var(--muted); font-size: 11px; font-weight: 500; }
.quick-options { display: flex; flex-wrap: wrap; gap: 5px; }
.quick-options button { border: 1px solid var(--line); border-radius: 9px; background: var(--tg-theme-secondary-bg-color,#fff); color: var(--blue); padding: 6px 8px; font-size: 11px; font-weight: 650; }
.secondary { width: 100%; margin-top: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--blue); font-weight: 700; }
.history-check { color: #18794e; background: #e6f6ed; width: 26px; height: 26px; border-radius: 50%; text-align: center; line-height: 26px; flex: 0 0 auto; }
@media (max-width: 500px) { .tabs { gap: 3px; } .tabs > button { padding: 11px 10px; font-size: 14px; } .scope-tabs { gap: 6px; } .scope-button { padding: 8px 10px; font-size: 11px; } .scope-tabs > .all-tab { margin-left: 0; } .group-tabs button { max-width: 100%; padding: 8px 11px; } .section-head { align-items: flex-start; } .admin-user { padding: 11px; } }

html[data-theme="dark"] .admin-user { background: var(--tg-theme-secondary-bg-color,#1c2633); }
html[data-theme="dark"] .admin-user-count { background: #233e60; color: #9bc7ff; }
html[data-theme="dark"] .quick-options button { background: #263241; color: #9bc7ff; }
html[data-theme="dark"] .secondary { color: #9bc7ff; }
