/* Shared Workshop surfaces. Keep tariff price plates and brand banner intact. */
:root { --panel: #0b2146; --panel-radius: 16px; --panel-space: 20px; }
body { font-family: var(--body, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif); }
.app-shell { font-size: 15px; line-height: 1.5; }
.app-shell :is(p, li, label, input, select, textarea, small) { font-family: var(--body); font-style: normal; letter-spacing: normal; text-shadow: none; }
.app-shell :is(input, select, textarea) { font-size: 15px; line-height: 1.5; }
.app-shell :is(input:not([type="file"]):not([type="checkbox"]):not([type="radio"]), select, textarea) { border: 1px solid var(--border) !important; box-shadow: none; }
.app-shell :is(input:not([type="checkbox"]):not([type="radio"]), select) { min-height: 44px; }
.app-shell :is(p, li, label) { overflow-wrap: anywhere; }
.app-shell :is(h1, h2, h3, h4) { font-family: var(--display); font-weight: 400; font-style: normal; line-height: 1.4; text-shadow: none; overflow-wrap: anywhere; }
.app-shell :is(.section-heading h2, .content-section > h2, .support-hero h2, .support-inbox .section-heading h3, .support-email-card h3) {
    border: 0; border-image: none; padding: 0; margin: 0; min-height: 0;
    filter: none; background: none; text-transform: none; font-size: 18px; gap: 10px;
}
.app-shell .section-heading { align-items: center; gap: 12px; margin-bottom: 16px; }
.app-shell :is(.subscription-card, .payment-note, .support-inbox, .support-email-card, .support-thread, .modal, .admin-workspace) {
    min-width: 0; border: 1px solid var(--border); border-image: none; border-radius: var(--panel-radius);
    padding: var(--panel-space); background: var(--panel); background-clip: border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16); --hint: #a9bedb;
}
.app-shell :is(.shop-order-summary, .promo-admin-card, .admin-plan-settings, .admin-plan-row, .user-card-pane, .user-setting-card, .user-stat-card, .user-identity-card, .support-message) {
    border: 1px solid var(--border); border-image: none; border-radius: var(--panel-radius); background: var(--bg); box-shadow: none;
}
.app-shell :is(.admin-row, .admin-stat, .analytics-card) { background: var(--bg); border-radius: 14px; }
.app-shell :is(.muted, .form-status, .admin-row small, .admin-stat small) { font: 400 13px/1.5 var(--body); color: var(--hint); }
.app-shell :is(.admin-stat span, .user-card-tab, .shop-order-summary dd, .payment-method-title) { font-family: var(--body); font-weight: 600; }
.app-shell :is(.primary-action, .secondary-action, .danger-action, .back-button, .admin-back, .auth-button, .sbp-action, .support-button, .upload-receipt) {
    min-height: 44px; height: auto; padding: 11px 16px; font: 400 14px/1.4 var(--display);
    white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: balance; text-align: center; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.app-shell .modal { position: relative; padding-top: 48px; }
.app-shell .modal-close { display: grid; place-items: center; width: 44px; height: 44px; top: 0; right: 4px; }
.app-shell :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-shell .payment-method { border-width: 1px; border-radius: 16px; box-shadow: var(--lift-wood); }
.app-shell .payment-method:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent), var(--lift-wood); }
.app-shell .payment-method-copy :is(strong, small) { white-space: normal; overflow: visible; text-overflow: clip; }
.app-shell .payment-method-copy strong { font: 600 15px/1.5 var(--body); }
.app-shell .payment-method-copy small { font: 400 13px/1.5 var(--body); }
.app-shell .plan-card { border: 1px solid var(--border); border-image: none; border-radius: 16px; padding: 20px; background: var(--panel); box-shadow: none; }
.app-shell .plan-card.selected, .app-shell .plan-card.selected:hover { border-color: var(--accent); background: var(--panel); box-shadow: inset 0 0 0 1px var(--accent); filter: none; transform: none; }
.app-shell .plan-card:hover { filter: none; transform: none; box-shadow: none; border-color: var(--accent); }
.app-shell :is(details, .checkout-auth, .subscription-warning, .subscription-load-error, .legal-consent) { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); box-shadow: none; color: var(--text); --hint: #a9bedb; }
.app-shell .trial-offer { border: 1px solid var(--brass-edge); border-radius: 16px; box-shadow: var(--lift-wood); }
.app-shell .trial-offer :is(p, small) { color: var(--cream); }
.app-shell .legal-consent { font: 400 13px/1.5 var(--body); }
.app-shell label.legal-consent, .app-shell .legal-consent label { display: flex; align-items: start; gap: 10px; min-height: 44px; }
.app-shell #trialTerms { border: 0; background: none; padding: 0; }
.app-shell .legal-consent input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.app-shell .notification-groups fieldset, .app-shell .notification-row { background: var(--bg); border-color: var(--border); }
.app-shell .notification-groups legend { font: 400 14px/1.5 var(--display); }
.app-shell [role="switch"]:focus-visible { outline-color: var(--accent); }
.workshop-menu-icon { width: 28px; height: 28px; object-fit: contain; }
.app-shell .admin-section-button { grid-template-columns: 28px minmax(0, 1fr); min-height: 48px; color: var(--hint); font: 400 14px/1.5 var(--body); }
.app-shell .admin-section-button.active { border: 1px solid var(--accent); background: var(--accent-soft); color: var(--cream); }
.app-shell .admin-section-button:has(.admin-menu-count:not([hidden])) { grid-template-columns: 28px minmax(0, 1fr) auto; }
.app-shell .admin-section-button .admin-menu-count { grid-column: 3; grid-row: 1; justify-self: end; }
.app-shell .empty-icon { border: 0; border-radius: 0; background: center / contain no-repeat url(../assets/icons/settings-devices.svg?v=2); box-shadow: none; }
.app-shell .empty-icon svg { display: none; }
.app-shell :is(.service-details summary, .faq summary) { font: 600 15px/1.5 var(--body); }
.app-shell .analytics-axis-label { font-family: var(--body); }
.app-shell :is(.access-badge, .status-badge, .user-badge, .support-status) { font: 600 12px/1.5 var(--body); text-transform: none; letter-spacing: normal; text-shadow: none; }
.app-shell .progress-track.tone-accent { --progress-color: var(--accent); }
.app-shell .broadcast-kind label, .app-shell .broadcast-channels label { background: var(--bg); border: 1px solid var(--border); box-shadow: none; }
.app-shell .broadcast-kind label:has(input:checked), .app-shell .broadcast-channels label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.app-shell .broadcast-kind strong, .app-shell .broadcast-channels strong { font: 600 15px/1.5 var(--body); }
.app-shell .subscription-card .connection-slot { width: 44px; height: 44px; font-size: 0; background: center / contain no-repeat url(../assets/icons/settings-devices.svg?v=2); }
/* Decorative semantic symbols: the adjacent heading remains the accessible name. */
#paymentPanel > .section-heading h2::before, #connectionWizard h2::before,
.support-hero h2::before, #serviceDetailsTitle::before, #serverStatusTitle::before,
#emailLoginTitle::before, #authChoiceTitle::before, #supportCreateTitle::before,
#paymentHistory h2::before, #giftHistory h2::before, #notificationPreferences h2::before,
#referralCard h2::before, .faq h2::before, #supportEmailCard h3::before {
    content: ""; display: inline-block; width: 32px; height: 32px; flex: 0 0 32px; vertical-align: middle;
    margin-right: 8px; background: center / contain no-repeat var(--heading-icon);
}
#paymentPanel { --heading-icon: url(../assets/icons/settings-receipt.svg?v=2); }
#connectionWizard { --heading-icon: url(../assets/icons/settings-devices.svg?v=2); }
.support-hero, #supportCreateTitle { --heading-icon: url(../assets/icons/settings-support.svg?v=2); }
#serviceDetailsTitle { --heading-icon: url(../assets/icons/settings-shop.svg?v=2); }
#serverStatusTitle { --heading-icon: url(../assets/icons/settings-servers.svg?v=2); }
#emailLoginTitle, #authChoiceTitle { --heading-icon: url(../assets/icons/settings-security.svg?v=2); }
#paymentHistory { --heading-icon: url(../assets/icons/settings-receipt.svg?v=2); }
#giftHistory { --heading-icon: url(../assets/icons/settings-gift.svg?v=2); }
#notificationPreferences { --heading-icon: url(../assets/icons/settings-bell.svg?v=2); }
#referralCard { --heading-icon: url(../assets/icons/settings-referral.svg?v=2); }
.faq { --heading-icon: url(../assets/icons/settings-faq.svg?v=2); }
#supportEmailCard { --heading-icon: url(../assets/icons/settings-mail.svg?v=1); }
@media (min-width: 1100px) {
    #shopContent .shop-checkout { padding: 20px; border: 1px solid var(--border); border-radius: var(--panel-radius); background: var(--panel); box-shadow: none; }
    .app-shell .admin-workspace { padding: 24px; }
}
@media (max-width: 520px) {
    :root { --panel-space: 16px; }
    .app-shell .admin-workspace { padding: 12px; }
    .app-shell :is(.user-card-pane, .user-setting-card, .user-identity-card) { padding: 14px; }
    .app-shell .section-heading { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .app-shell *, .app-shell *::before { scroll-behavior: auto; transition: none; animation: none; } }

.app-shell button { overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: balance; }
