/* Professional operational components – forms, data tables and empty states.
 * Scope matches semantic feature containers; no backend contract changes.
 */
.app-page .publish-shell .publish-completeness{
 display:grid;gap:10px;padding:15px 16px;margin-bottom:15px;
 border-radius:13px;background:var(--ui-soft);border:1px solid var(--ui-line)
}
.app-page .publish-shell .publish-completeness-copy{
 display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap
}
.app-page .publish-shell .publish-completeness-copy strong{color:var(--ui-text);font-size:12px}
.app-page .publish-shell .publish-completeness-copy span{color:var(--ui-muted);font-size:11px;line-height:1.7}
.app-page .publish-shell #publish-completeness-bar{
 height:5px;border-radius:99px;overflow:hidden;background:var(--ui-line)
}
.app-page .publish-shell #publish-completeness-fill{
 height:100%;display:block;background:var(--ui-brand);
 transition:width .2s ease;width:0;border-radius:inherit
}
.app-page .publish-shell .publisher-form :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea){
 min-height:47px;border-radius:11px;outline-offset:1px;
 border:1px solid var(--ui-line);background:var(--ui-soft);color:var(--ui-text)
}
.app-page .publish-shell .publisher-form :is(input,textarea):focus-visible{
 outline:2px solid var(--ui-brand);border-color:var(--ui-brand)
}
.app-page .publish-shell #publish-text{min-height:190px;resize:vertical;line-height:2}
.app-page .publish-shell .publish-mode-choice span{display:flex;align-items:center;justify-content:center;min-height:54px}
.app-page .publish-shell .selection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.app-page .publish-shell .selection-card{
 position:relative;min-width:0;min-height:82px;align-items:center;
 border-radius:12px;background:var(--ui-surface);
 transition:border-color .18s,box-shadow .18s
}
.app-page .publish-shell .selection-card:hover{border-color:var(--ui-brand)}
.app-page .publish-shell .selection-card:has(input:checked){
 box-shadow:inset 3px 0 0 var(--ui-brand);border-color:var(--ui-brand)
}
.app-page .publish-shell .selection-card input{width:17px;height:17px;accent-color:var(--ui-brand);flex:none}
.app-page .publish-shell .selection-copy{min-width:0;overflow-wrap:anywhere}
.app-page .publish-shell .selection-copy strong{font-size:12px}
.app-page .publish-shell .selection-copy small{font-size:10px;color:var(--ui-muted);line-height:1.8}
.app-page .publish-shell #publish-submit:disabled{opacity:.56;cursor:not-allowed}
.app-page .publish-shell .composer-actions{gap:12px}
.app-page .publish-shell .publish-history-table-wrap,
.app-page .downloads-library-shell .downloads-history-table-wrap{
 border:1px solid var(--ui-line);border-radius:13px;overflow:hidden
}
.app-page .publish-shell .publish-history-table-head,
.app-page .downloads-library-shell .downloader-history-table-head{
 background:var(--ui-soft);padding:14px 16px;border-bottom:1px solid var(--ui-line);
 color:var(--ui-muted);font-size:11px
}
.app-page .downloads-library-shell .downloads-list,
.app-page .publish-shell .publish-history-table{gap:0}
.app-page .downloads-library-shell .operational-download-row,
.app-page .publish-shell .publish-history-row{
 background:var(--ui-surface);border:0;
 border-bottom:1px solid var(--ui-line);border-radius:0;box-shadow:none;
 margin:0;padding:14px 16px;min-width:0
}
.app-page .downloads-library-shell .operational-download-row:last-child,
.app-page .publish-shell .publish-history-row:last-child{border-bottom:0}
.app-page .downloads-library-shell .operational-download-row:hover,
.app-page .publish-shell .publish-history-row:hover{
 background:color-mix(in srgb,var(--ui-brand) 5%,var(--ui-surface))
}
.app-page .downloads-library-shell .download-row-title h3,
.app-page .publish-shell .publish-history-content>a{
 color:var(--ui-text);font-size:12px;font-weight:750;line-height:1.8;
 overflow-wrap:anywhere
}
.app-page .downloads-library-shell .download-row-title .download-row-meta,
.app-page .publish-shell .publish-history-excerpt{color:var(--ui-muted);font-size:10px}
.app-page .downloads-library-shell .download-row-progress progress{
 height:6px;accent-color:var(--ui-brand);width:100%;min-width:0
}
.app-page .downloads-library-shell .download-row-actions,
.app-page .publish-shell .publish-history-actions{
 display:flex;gap:6px;flex-wrap:wrap;align-items:center
}
.app-page .downloads-library-shell .download-row-actions .button,
.app-page .publish-shell .publish-history-actions .button{min-height:36px;border-radius:9px;padding:7px 10px;font-size:10px}
.app-page .downloads-library-shell .history-tools{
 display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;
 padding:13px;border:1px solid var(--ui-line);background:var(--ui-soft);
 border-radius:12px;margin:0 0 10px
}
.app-page .downloads-library-shell .history-search{min-width:min(100%,240px);flex:1}
.app-page .downloads-library-shell .history-search input{
 min-height:43px;border-radius:10px;border:1px solid var(--ui-line);
 background:var(--ui-surface);color:var(--ui-text)
}
.app-page .downloads-library-shell .history-filters{
 display:flex;gap:5px;overflow-x:auto;max-width:100%;padding:3px;scrollbar-width:thin
}
.app-page .downloads-library-shell [data-download-filter]{
 flex:none;min-height:37px;padding:7px 11px;border-radius:9px;font-size:11px
}
.app-page .downloads-library-shell [data-download-filter].is-selected{
 background:var(--ui-brand-soft);border-color:var(--ui-brand);color:var(--ui-brand)
}
.app-page .downloads-library-shell .downloads-toolbar-meta{
 display:flex;align-items:center;justify-content:space-between;gap:9px;
 font-size:11px;color:var(--ui-muted);padding:10px 0
}
.app-page .downloads-library-shell .downloads-results-count{color:var(--ui-text)}
/* Reusable purposeful, permission-aware empty states. */
.app-page .operational-empty{
 display:grid;place-items:center;align-content:center;text-align:center;
 gap:10px;min-height:225px;padding:22px 17px;border:1px dashed var(--ui-line);
 background:var(--ui-soft);border-radius:14px;min-width:0
}
.app-page .operational-empty .operational-empty-symbol{
 display:grid;place-items:center;height:49px;width:49px;border-radius:14px;
 background:var(--ui-brand-soft);color:var(--ui-brand);
 font-size:24px;line-height:1
}
.app-page .operational-empty strong{color:var(--ui-text);font-size:13px}
.app-page .operational-empty p{
 color:var(--ui-muted);max-width:360px;margin:0;
 font-size:11px;line-height:2
}
.app-page .operational-empty .button{min-height:37px;margin-top:5px}
.app-page .operational-empty-compact{min-height:167px}
.app-page .publish-shell .operational-empty{grid-column:1/-1}
.app-page .publish-shell .publish-history-table-wrap:has(.operational-empty) .publish-history-table-head{display:none}
.app-page .team-shell .operational-team-empty{padding:25px;min-height:200px}
.app-page .team-shell .team-member-row{background:var(--ui-surface);border-bottom:1px solid var(--ui-line)}
.app-page .team-shell .team-member-row:hover{background:var(--ui-soft)}
.app-page .team-shell .team-role-select{min-height:39px}
.app-page .team-shell .team-member-actions{display:flex;flex-wrap:wrap;gap:7px}
.app-page .channels-page-shell .channel-card,
.app-page .channels-page-shell .service-bot-card{transition:border-color .2s,background .2s}
.app-page .channels-page-shell .channel-card:hover,
.app-page .channels-page-shell .service-bot-card:hover{background:var(--ui-brand-soft)}
.app-page .transfer-shell .transfer-status-row{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 border:1px solid var(--ui-line);border-radius:11px;
 padding:12px 15px;background:var(--ui-surface);min-width:0
}
.app-page .transfer-shell .transfer-status-row+ .transfer-status-row{margin-top:6px}
.app-page .transfer-shell .transfer-status-row strong{color:var(--ui-text);font-size:12px}
.app-page .transfer-shell .transfer-status-row small{color:var(--ui-muted);font-size:10px}
.app-page .transfer-shell .transfer-status-summary{
 border-inline-start:3px solid var(--ui-brand);border-radius:11px
}
@media(max-width:760px){
 .app-page .publish-shell .selection-grid{grid-template-columns:1fr}
 .app-page .publish-shell .publish-completeness{padding:12px}
 .app-page .publish-shell .publish-completeness-copy{align-items:flex-start;flex-direction:column;gap:5px}
 .app-page .downloads-library-shell .history-tools{padding:10px}
 .app-page .downloads-library-shell .history-search{flex:1 0 100%}
 .app-page .downloads-library-shell .downloads-list .operational-download-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  gap:10px;align-items:start;padding:15px;border:0;
  border-bottom:1px solid var(--ui-line);border-radius:0
 }
 .app-page .downloads-library-shell .operational-download-row .download-row-title{grid-column:1/-1;min-width:0}
 .app-page .downloads-library-shell .operational-download-row .download-row-source{
  grid-column:1;grid-row:2;min-width:0
 }
 .app-page .downloads-library-shell .operational-download-row .download-row-status{
  grid-column:2;grid-row:2;white-space:nowrap
 }
 .app-page .downloads-library-shell .operational-download-row .download-row-progress{
  grid-column:1/-1;grid-row:3;min-width:0
 }
 .app-page .downloads-library-shell .operational-download-row .download-row-actions{
  grid-column:1/-1;grid-row:4;justify-content:flex-start
 }
 .app-page .downloads-library-shell .downloads-history-table-wrap .downloader-history-table-head,
 .app-page .publish-shell .publish-history-table-head{display:none}
 .app-page .publish-shell .publish-history-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;
  padding:14px;border-bottom:1px solid var(--ui-line)
 }
 .app-page .publish-shell .publish-history-content{grid-column:1/-1;min-width:0}
 .app-page .publish-shell .publish-history-actions{grid-column:1/-1;justify-content:flex-start}
 .app-page .publish-shell .publish-history-destinations{min-width:0}
 .app-page .team-shell .team-member-row{
  padding:13px 11px;grid-template-columns:minmax(0,1fr) auto
 }
 .app-page .team-shell .team-members-table-head{display:none}
 .app-page .team-shell .team-member-username{overflow-wrap:anywhere}
 .app-page .team-shell .team-member-actions{grid-column:1/-1}
 .app-page .transfer-shell .transfer-status-row{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
 .app-page .publish-shell #publish-completeness-fill,
 .app-page .publish-shell .selection-card{transition:none}
}
/* The channel list is a working console, with client-side search/filter only. */
.app-page .channels-page-shell .channel-workbench-tools{
 display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;
 border:1px solid var(--ui-line);background:var(--ui-soft);
 border-radius:12px;margin:0 0 14px
}
.app-page .channels-page-shell .channel-search-label{flex:1 1 200px;min-width:0}
.app-page .channels-page-shell #channel-search{
 width:100%;min-height:42px;border:1px solid var(--ui-line);
 background:var(--ui-surface);color:var(--ui-text);
 font:inherit;font-size:12px;border-radius:10px;padding:8px 12px
}
.app-page .channels-page-shell .channel-filter-actions{
 display:flex;gap:5px;overflow-x:auto;max-width:100%;scrollbar-width:thin
}
.app-page .channels-page-shell .channel-filter-actions button{
 flex:none;min-height:37px;padding:7px 11px;border-radius:9px;
 font:inherit;font-size:11px;color:var(--ui-muted);
 background:var(--ui-surface);border:1px solid var(--ui-line);cursor:pointer
}
.app-page .channels-page-shell .channel-filter-actions button.is-active{
 background:var(--ui-brand-soft);border-color:var(--ui-brand);color:var(--ui-brand)
}
.app-page .channels-page-shell .channel-filter-count{
 color:var(--ui-muted);font-size:11px;white-space:nowrap
}
.app-page .channels-page-shell .channels-grid>.operational-empty{grid-column:1/-1}
.app-page .transfer-shell .operational-transfer-empty{border:0;background:var(--ui-soft);min-height:187px}
@media(max-width:760px){
 .app-page .channels-page-shell .channel-workbench-tools{padding:10px}
 .app-page .channels-page-shell .channel-search-label{flex:1 0 100%}
 .app-page .channels-page-shell .channel-filter-actions{width:100%}
 .app-page .channels-page-shell .channel-filter-count{width:100%}
}

/* PERSONAL CONNECTIONS – connection state, controls and security-sensitive forms. */
.app-page .accounts-connections-shell .connected-platform-tab{
 position:relative;align-items:center;justify-content:center;gap:8px;
 border-radius:11px;min-height:63px;background:var(--ui-surface);
 transition:background .16s,border-color .16s
}
.app-page .accounts-connections-shell .connected-platform-tab[aria-selected=true]{
 border-color:var(--ui-brand);background:var(--ui-brand-soft);
 box-shadow:inset 0 -3px 0 var(--ui-brand)
}
.app-page .accounts-connections-shell .connected-platform-pane:not([hidden]){
 display:grid;gap:14px;min-width:0
}
.app-page .accounts-connections-shell .connected-account-heading,
.app-page .accounts-connections-shell .telegram-account-heading{
 display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;
 padding-bottom:17px;margin-bottom:18px;border-bottom:1px solid var(--ui-line)
}
.app-page .accounts-connections-shell .connected-account-panel,
.app-page .accounts-connections-shell .telegram-account-panel{
 box-shadow:none;border-radius:15px
}
.app-page .accounts-connections-shell .connected-account-form,
.app-page .accounts-connections-shell .telegram-login-form{
 max-width:560px;width:100%;padding:19px;border:1px solid var(--ui-line);
 background:var(--ui-soft);border-radius:13px;gap:13px
}
.app-page .accounts-connections-shell .connected-account-form input,
.app-page .accounts-connections-shell .telegram-login-form input{
 font-size:15px;min-height:48px;border:1px solid var(--ui-line);
 background:var(--ui-surface);border-radius:10px
}
.app-page .accounts-connections-shell .connected-account-form input:focus-visible,
.app-page .accounts-connections-shell .telegram-login-form input:focus-visible{
 outline:2px solid var(--ui-brand)
}
.app-page .accounts-connections-shell .connected-destination-row,
.app-page .accounts-connections-shell .telegram-dialog-row{
 display:flex;align-items:center;gap:13px;padding:13px 16px;
 border-radius:11px;min-width:0;background:var(--ui-surface)
}
.app-page .accounts-connections-shell .connected-destination-row strong,
.app-page .accounts-connections-shell .telegram-dialog-row strong{color:var(--ui-text);font-size:12px}
.app-page .accounts-connections-shell .connected-destinations-panel,
.app-page .accounts-connections-shell .telegram-destinations-panel{
 padding:19px;border-radius:15px
}
.app-page .accounts-connections-shell :is(.connected-destinations-panel,.telegram-destinations-panel) input[type=search]{
 min-height:43px;border:1px solid var(--ui-line);border-radius:10px;
 background:var(--ui-surface);color:var(--ui-text);font-size:13px
}
/* AUTOMATION WIZARD – readable rules and touch-safe review actions. */
.app-page .automation-shell .auto-editor{
 display:grid;gap:14px;min-width:0
}
.app-page .automation-shell .auto-editor>.auto-steps{margin-bottom:3px}
.app-page .automation-shell .auto-fields,.app-page .automation-shell .auto-two-column{
 gap:13px;min-width:0
}
.app-page .automation-shell .auto-field{min-width:0}
.app-page .automation-shell .auto-field label{font-size:12px;font-weight:750;color:var(--ui-text)}
.app-page .automation-shell .auto-field input:not([type=checkbox]):not([type=radio]),
.app-page .automation-shell .auto-field select,
.app-page .automation-shell .auto-field textarea{
 width:100%;min-width:0;min-height:46px;padding:10px 12px;
 background:var(--ui-surface);border:1px solid var(--ui-line);
 border-radius:10px;color:var(--ui-text);font-size:13px
}
.app-page .automation-shell .auto-field textarea{resize:vertical;line-height:1.85;min-height:110px}
.app-page .automation-shell .auto-field :is(input,select,textarea):focus-visible{
 outline:2px solid var(--ui-brand);border-color:var(--ui-brand)
}
.app-page .automation-shell details.auto-section{
 overflow:visible;border:1px solid var(--ui-line);
 border-radius:13px;background:var(--ui-surface);padding:18px
}
.app-page .automation-shell details.auto-section>summary{
 cursor:pointer;line-height:1.8;font-size:14px;font-weight:800
}
.app-page .automation-shell details.auto-section[open]>summary{
 margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--ui-line)
}
.app-page .automation-shell .auto-rule-description,.app-page .automation-shell .auto-meta{
 font-size:11px;line-height:2;color:var(--ui-muted)
}
.app-page .automation-shell .auto-word-chips{display:flex;flex-wrap:wrap;gap:7px}
.app-page .automation-shell .auto-word-chips>*{
 border-radius:100px;background:var(--ui-brand-soft);color:var(--ui-brand);
 border:1px solid var(--ui-line);min-height:30px
}
.app-page .automation-shell .auto-replacement-row{
 background:var(--ui-soft);border:1px solid var(--ui-line);border-radius:11px;padding:13px
}
.app-page .automation-shell .auto-review{
 border-inline-start:3px solid var(--ui-brand);padding:16px;border-radius:11px
}
.app-page .automation-shell .auto-sticky{
 position:sticky;bottom:0;z-index:5;display:flex;align-items:center;
 gap:10px;flex-wrap:wrap;padding:14px 17px;
 border:1px solid var(--ui-line);background:var(--ui-surface);
 border-radius:13px;box-shadow:0 -5px 25px #00000010
}
.app-page .automation-shell .auto-sticky .button{min-height:42px;border-radius:9px}
.app-page .automation-shell .auto-preview-result{
 padding:13px;background:var(--ui-soft);border:1px solid var(--ui-line);border-radius:12px
}
/* WALLET – actionable plan comparison and readable ledger. */
.app-page .billing-shell #automation-plans .auto-plan-grid{gap:12px}
.app-page .billing-shell #automation-plans .auto-plan,
.app-page .automation-shell .auto-plan{
 border:1px solid var(--ui-line);border-radius:15px;
 padding:22px;background:var(--ui-surface);min-width:0;
 transition:border-color .16s,background .16s
}
.app-page .billing-shell #automation-plans .auto-plan:hover,
.app-page .automation-shell .auto-plan:hover{
 border-color:var(--ui-brand);background:var(--ui-soft)
}
.app-page .billing-shell #automation-plans .auto-plan.auto-gold{
 border:2px solid color-mix(in srgb,var(--ui-brand) 55%,var(--ui-line))
}
.app-page .billing-shell #automation-plans .auto-plan h2{font-size:17px;color:var(--ui-text)}
.app-page .billing-shell #automation-plans .auto-price{font-size:27px;color:var(--ui-brand)}
.app-page .billing-shell #automation-plans .auto-plan li{font-size:11px;line-height:2.1}
.app-page .billing-shell #automation-plans .plan-wallet-form{
 display:grid;gap:10px;min-width:0
}
.app-page .billing-shell #automation-plans .plan-wallet-form select{
 min-height:44px;border:1px solid var(--ui-line);
 background:var(--ui-soft);color:var(--ui-text);border-radius:10px
}
.app-page .billing-shell #automation-plans .plan-wallet-form .button{min-height:45px;width:100%;border-radius:10px}
.app-page .billing-shell :is(.billing-table-wrap,#wallet-ledger .billing-table-wrap){
 max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;
 border:1px solid var(--ui-line);border-radius:12px
}
.app-page .billing-shell .billing-table{
 border-collapse:separate;border-spacing:0;min-width:660px;width:100%
}
.app-page .billing-shell .billing-table th{
 background:var(--ui-soft);font-size:11px;font-weight:750;
 color:var(--ui-muted);border-bottom:1px solid var(--ui-line)
}
.app-page .billing-shell .billing-table td{font-size:12px;line-height:1.8;vertical-align:middle}
.app-page .billing-shell .billing-table tbody tr:hover td{
 background:color-mix(in srgb,var(--ui-brand) 5%,var(--ui-surface))
}
/* MANAGEMENT – table actions and form groups are separate from the pricing CTA. */
.app-page .billing-shell .billing-form{
 display:grid;gap:13px;min-width:0
}
.app-page .billing-shell .billing-form p{display:grid;gap:6px;margin:0}
.app-page .billing-shell .billing-form :is(input:not([type=checkbox]),textarea,select){
 max-width:100%;min-height:44px;border-radius:10px;
 background:var(--ui-soft);border:1px solid var(--ui-line);
 color:var(--ui-text);font-size:13px;padding:9px 12px
}
.app-page .billing-shell .billing-form label{color:var(--ui-text);font-size:12px;font-weight:750}
.app-page .billing-shell .billing-form .button{justify-self:start;min-height:43px;border-radius:10px}
.app-page .billing-shell .billing-table a{
 color:var(--ui-brand);text-decoration:underline;text-underline-offset:3px
}
.app-page .billing-shell .billing-columns .billing-card{
 border:1px solid var(--ui-line);background:var(--ui-surface);border-radius:14px
}
.app-page .billing-shell .billing-columns .billing-card h2{
 padding-bottom:10px;margin-bottom:14px;border-bottom:1px solid var(--ui-line)
}
@media(max-width:760px){
 .app-page .accounts-connections-shell .connected-platform-tab{min-height:60px}
 .app-page .accounts-connections-shell .connected-account-panel,
 .app-page .accounts-connections-shell .telegram-account-panel{padding:17px}
 .app-page .accounts-connections-shell .connected-account-form,
 .app-page .accounts-connections-shell .telegram-login-form{padding:15px}
 .app-page .accounts-connections-shell .connected-account-actions{flex-wrap:wrap}
 .app-page .accounts-connections-shell .connected-account-actions .button{flex:1 1 160px;min-height:44px}
 .app-page .automation-shell .auto-fields,.app-page .automation-shell .auto-two-column{grid-template-columns:1fr}
 .app-page .automation-shell details.auto-section{padding:15px}
 .app-page .automation-shell .auto-sticky{bottom:calc(75px + env(safe-area-inset-bottom));padding:11px}
 .app-page .automation-shell .auto-sticky .button{flex:1 1 120px}
 .app-page .billing-shell #automation-plans .auto-plan-grid{grid-template-columns:1fr}
 .app-page .billing-shell .billing-form{gap:10px}
 .app-page .billing-shell .billing-form .button{width:100%}
 .app-page .billing-shell .billing-table{min-width:610px}
}
