/* Заеднички пристапни контроли и завршна презентација на клиентските текови. */
.portal-theme-dhost { line-height: 1.6; }
.portal-theme-dhost :is(button,input,select,textarea) { font-family: inherit; }
.portal-theme-dhost :is(input:where(:not([type=hidden]):not([type=checkbox]):not([type=radio])),select,textarea) { min-height: var(--portal-control); }
.portal-theme-dhost :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea) { font-size: var(--portal-text-base); border: 1px solid var(--portal-input-border); color: #17243a; background: #fff; border-radius: 10px; padding: 11px 14px; }
.portal-theme-dhost :is(input,textarea)::placeholder { color: #64748b; opacity: 1; }
.portal-theme-dhost :is(label,.form-label,.form-group > label) { font-size: var(--portal-text-label); font-weight: 600; color: #24364d; line-height: 1.5; margin-bottom: 9px; }
.portal-theme-dhost :is(button,a.btn,.portal-button,.btn-check-domain,.new-service-btn,.new-order-btn) { min-height: 42px; font-size: var(--portal-text-label); line-height: 1.45; }
.portal-theme-dhost .portal-button.is-icon { min-height: 36px; min-width: 36px; width: 36px; }
.portal-theme-dhost .portal-button.is-icon .portal-line-icon { width: 18px; height: 18px; }
.portal-theme-dhost :is(button,a.btn,.portal-button)[aria-busy=true] { cursor: wait; }
.portal-theme-dhost :is(button,input,select,textarea):disabled { opacity: 1; color: #526278; background: #e8edf4; border-color: #b4c0d1; cursor: not-allowed; }
.portal-theme-dhost :is(input[type=checkbox],input[type=radio]) { accent-color: #145fca; min-width: 19px; min-height: 19px; }
.portal-theme-dhost :focus-visible { outline: 3px solid #145fca !important; outline-offset: 3px; }
.portal-theme-dhost .portal-configured-logo { display: block; width: auto; max-width: 204px; max-height: 44px; object-fit: contain; }
.portal-logo-frame { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 7px 11px; max-width: 100%; }
.portal-theme-dhost .portal-logo-frame .portal-configured-logo { max-width: 190px; max-height: 36px; }
.portal-theme-dhost .language-switcher { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #99abc3; border-radius: 10px; background: #fff; margin: 0; width: auto; flex-shrink: 0; }
.portal-theme-dhost .language-switcher .lang-btn { min-width: 36px; width: auto; min-height: 34px; height: auto; padding: 6px 8px; color: #42536b; border: 1px solid transparent; background: transparent; border-radius: 7px; font-size: 14px; font-weight: 650; text-decoration: none; }
.portal-theme-dhost .language-switcher .lang-btn.active { color: #fff; border-color: #104fab; background: #145fca; }
.portal-theme-dhost .language-switcher .lang-btn:hover:not(.active) { color: #0f4494; background: #e7effb; border-color: #bac9de; }
.portal-theme-dhost .portal-search input { font-size: 16px; min-height: 44px; height: 44px; padding-left: 40px; }
.portal-theme-dhost .portal-search input:not([type=hidden]):not([type=checkbox]):not([type=radio]) { padding-left: 42px; }
.portal-neutral-badge { gap: 5px; }
.portal-search > .portal-line-icon { top: 14px; }
.portal-theme-dhost .portal-icon-link { width: 44px; height: 44px; flex-shrink: 0; border-color: #9aabc1; }
.portal-notification-count { min-width: 21px; height: 21px; line-height: 17px; font-size: 12px; background: #b42318; }
.portal-count { min-width: 24px; height: 24px; padding: 0 6px; font-size: 12px; }
.portal-theme-dhost .portal-nav > a { min-height: 44px; font-size: 15px; }
.portal-theme-dhost .portal-nav > a > .portal-line-icon { width: 20px; height: 20px; }
.portal-theme-dhost .portal-topbar-account small { font-size: 13px; }
.portal-theme-dhost .portal-menu-button { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; border: 1px solid #99abc3; border-radius: 10px; background: #fff; color: #354d6b; }
.portal-mobile-brand { display: none; }
.portal-theme-dhost > .language-switcher { display: none; }
.portal-theme-dhost :is(.portal-quick-button,.portal-table-actions .portal-button) { font-size: 14px; }
.portal-theme-dhost .portal-table-actions .portal-button { min-height: 36px; }
.portal-theme-dhost .portal-button.is-icon { color: #475569; }
.portal-theme-dhost :is(.portal-metric-badge,.status-sent,.status-open,.status-answered,.badge-info,.announcement-badge) { color: #1155ae; }
.portal-theme-dhost .portal-quick-button.is-primary small { color: #fff; }
.portal-theme-dhost table th { color: #475569; }
.portal-theme-dhost :is(.warning-box,.danger-zone,.danger-notice,.warning-note,.service-warning) strong { color: #a12720 !important; }
.portal-theme-dhost .alert-warning { color: #825009; }
.portal-theme-dhost :is(.upload-area,.file-upload-area,.proof-upload-area,.payment-instructions,.instructions,.tips-card,.auth-footer,.login-link,.register-link,.footer,.site-footer) :is(p,li,small,span) { color: #475569; }
.portal-theme-dhost :is(.pending-message,.check-spam,.verification-message,.auth-header p,.forgot-header p) { color: #475569; }
.portal-theme-dhost .total-box, .portal-theme-dhost .total-box :is(span,strong,p) { color: #fff; }
.portal-theme-dhost .order-summary .summary-row, .portal-theme-dhost .order-summary .summary-row span { color: #fff; }
.portal-theme-dhost .announcement-badge { font-size: 13px; }
.portal-theme-dhost .portal-quick-card.is-featured small { color: #fff; }
.portal-theme-dhost :is(.breadcrumb,.register-footer,.login-header,.file-upload-label,.upload-label,.upload-text) :is(p,span,small) { color: #475569; }
.portal-theme-dhost [style*="color: #dc3545"] { color: #a12720 !important; }
.portal-theme-dhost.portal-page-pay-order .payment-note p { color: #475569; }
.portal-theme-dhost .portal-payment-state p { color: #42536b; }
.portal-theme-dhost :is(.file-upload,.proof-upload-section) p { color: #475569; }
.portal-theme-dhost .proof-uploaded p { color: #365d45; }
.portal-theme-dhost :is(.category-card,.product-card,.price-option,.payment-method,.tld-price-card) { border-color: #7c8ea7; }
.portal-theme-dhost :is(.product-card.selected,.price-option.selected,.payment-method.selected) { border-color: #145fca; }
.portal-theme-dhost.portal-page-cpanel-panel :is(.label,.quick-link span,.quick-action span) { color: #475569; font-size: 14px; }
.portal-theme-dhost .portal-data-table :is(td,th) { padding-left: 16px; padding-right: 16px; }
.portal-theme-dhost .portal-data-table td { font-size: 15px; line-height: 1.55; }
.portal-theme-dhost .portal-data-table th { font-size: 13px; color: #4c5e77; }
.portal-theme-dhost :is(.status-badge,.service-status,.order-status,.invoice-status,.priority-badge) { font-size: 13px; line-height: 1.45; padding: 5px 10px; }
.portal-theme-dhost .portal-segments button { min-height: 38px; font-size: 14px; }
.portal-theme-dhost .portal-record-copy small { font-size: 13px; color: #526278; }
.portal-theme-dhost .portal-metric-label { font-size: 13px; line-height: 1.5; }
.portal-theme-dhost .portal-metric-badge { font-size: 13px; }
.portal-theme-dhost .portal-dark-card { background: #17263e; }
.portal-theme-dhost .portal-dark-card :is(p,small) { color: #e2eaf6; }
.portal-theme-dhost :is(.product-card,.category-card,.pricing-card,.tld-price-card,.profile-form,.info-card,.discord-card,.service-overview,.ticket-header) :is(p,li,small) { color: #42536b; }
.portal-theme-dhost :is(.product-features .feature,.features-list li,.plan-features li,.category-description,.product-description,.product-category,.tld-price,.price-period,.payment-method small) { color: #42536b; font-size: 15px; line-height: 1.65; }
.portal-theme-dhost :is(.category-title h3,.product-title h3,.plan-name,.pricing-card h3) { font-size: 19px; line-height: 1.4; }
.portal-theme-dhost :is(.product-price,.price-amount,.plan-price) { color: #13243c; font-size: 26px; font-weight: 700; line-height: 1.4; }
.portal-theme-dhost :is(.category-card,.product-card,.price-option,.payment-method,.tld-price-card) { border: 1px solid #b4c3d8; border-radius: 14px; background: #fff; }
.portal-theme-dhost :is(.product-card.selected,.price-option.selected,.payment-method.selected) { border: 2px solid #145fca; background: #f1f6ff; box-shadow: 0 0 0 2px #145fca12; }
.portal-theme-dhost :is(.category-card,.product-card,.price-option,.payment-method,.tld-price-card):hover { border-color: #145fca; }
.portal-theme-dhost .domain-section { background: #fff; border: 1px solid #bfccdf; padding: 28px; border-radius: 16px; }
.portal-theme-dhost .domain-search { align-items: stretch; gap: 12px; }
.portal-theme-dhost .domain-input-group { gap: 12px; }
.portal-theme-dhost .tld-price-card { padding: 16px 12px; }
.portal-theme-dhost .tld-name { color: #183f76; font-size: 18px; }
.portal-theme-dhost .domain-result { padding: 16px; font-size: 16px; border-radius: 10px; }
.portal-theme-dhost .domain-result.available { color: #075d3f; background: #edf9f2; border: 1px solid #6faf91; }
.portal-theme-dhost .domain-result.unavailable { color: #9b251b; background: #fff1f0; border: 1px solid #d3918b; }
.portal-theme-dhost .domain-result.taken { color: #9b251b; background: #fff1f0; border: 1px solid #d3918b; }
.portal-theme-dhost #cpanelDomainValidation[data-portal-validation=valid] { color: #075d3f !important; background: #edf9f2 !important; border-color: #6faf91 !important; }
.portal-theme-dhost #cpanelDomainValidation[data-portal-validation=invalid] { color: #9b351b !important; background: #fff4eb !important; border-color: #c39c80 !important; }
.portal-theme-dhost .portal-order-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; padding: 16px 20px; background: #fff; border: 1px solid #ccd6e4; border-radius: 12px; }
.portal-order-steps span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #526278; }
.portal-order-steps b { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #8497b3; color: #354d6b; border-radius: 50%; font-size: 13px; }
.portal-order-steps .is-current { color: #164f9f; font-weight: 650; }
.portal-order-steps .is-current b { background: #145fca; color: #fff; border-color: #145fca; }
.portal-theme-dhost .portal-checkout-summary { border: 1px solid #a4b6d0; border-radius: 14px; background: #fff; padding: 24px; margin: 28px 0 20px; }
.portal-checkout-summary h2 { font-size: 18px; margin: 0 0 16px; }
.portal-checkout-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; margin: 0; }
.portal-checkout-summary dt { color: #475569; font-size: 15px; }
.portal-checkout-summary dd { margin: 0; color: #17243a; font-size: 16px; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.portal-checkout-summary p { margin: 18px 0 0; font-size: 14px; color: #42536b; }
.portal-theme-dhost .portal-checkout-summary .portal-summary-total { border-top: 1px solid #ccd6e4; padding-top: 14px; font-size: 19px; font-weight: 700; }
.portal-theme-dhost .terms-wrapper, .portal-theme-dhost .privacy-wrapper { width: 100%; max-width: 900px; margin: 30px auto; }
.portal-theme-dhost :is(.terms-section,.privacy-section) { padding: 44px 48px; border: 1px solid #ccd6e4; border-radius: 16px; background: #fff; box-shadow: none; }
.portal-theme-dhost :is(.terms-content,.privacy-content) { max-width: 74ch; margin: 24px auto 0; color: #334155; font-size: 16px; line-height: 1.75; }
.portal-theme-dhost :is(.terms-content,.privacy-content) :is(p,li) { color: #334155; font-size: 16px; line-height: 1.75; margin-bottom: 18px; }
.portal-theme-dhost :is(.terms-content,.privacy-content) h2 { font-size: 20px; line-height: 1.45; color: #142740; padding-bottom: 12px; margin: 32px 0 16px; border-bottom: 1px solid #d5deea; }
.portal-theme-dhost :is(.terms-content,.privacy-content) :is(ul,ol) { padding-left: 24px; }
.portal-theme-dhost .profile-layout { grid-template-columns: minmax(0,1.7fr) minmax(330px,1fr); gap: 28px; align-items: start; }
.portal-theme-dhost .profile-form { padding: 30px; }
.portal-theme-dhost :is(.profile-form,.info-card,.discord-card,.profile-card) h3 { font-size: 19px; margin-bottom: 22px; color: #17243a; }
.portal-theme-dhost .form-row { gap: 20px; }
.portal-theme-dhost .form-group { margin-bottom: 24px; }
.portal-theme-dhost :is(.profile-card,.info-card,.discord-card) { background: #fff; color: #24364d; border: 1px solid #ccd6e4; border-radius: 16px; padding: 26px; }
.portal-theme-dhost .discord-card :is(.info-label,.info-value,p) { color: #42536b !important; }
.portal-theme-dhost :is(.discord-pill.unlinked,.info-value.unverified) { color: #8b2c22; background: #fff2ef; }
.portal-theme-dhost .profile-sidebar { display: grid; gap: 22px; }
.portal-theme-dhost .profile-sidebar > * { margin: 0; }
.portal-theme-dhost :is(.service-overview,.service-main > .card,.service-sidebar > .card) { padding: 26px; }
.portal-theme-dhost :is(.service-overview h2,.service-main h3,.service-sidebar h3,.card-header h3) { font-size: 19px; color: #17243a; }
.portal-theme-dhost :is(.stat-item,.resource-stat,.vps-stat,.info-box) { padding: 18px; }
.portal-theme-dhost :is(.info-label,.detail-label,.resource-label,.stat-label) { font-size: 14px; color: #475569; }
.portal-theme-dhost :is(.info-value,.detail-value,.sftp-value,.resource-value) { font-size: 16px; color: #17243a; overflow-wrap: anywhere; }
.portal-theme-dhost :is(.vps-controls,.service-actions,.actions-bar) { gap: 12px; flex-wrap: wrap; }
.portal-theme-dhost .service-sidebar .btn { width: 100%; }
.portal-theme-dhost .order-card > .order-header { border-bottom: 1px solid #d4deeb; padding-bottom: 22px; }
.portal-theme-dhost :is(.order-details,.product-info) { background: #fff; color: #24364d; }
.portal-theme-dhost :is(.order-details .detail-item,.product-info .price-row) { padding-top: 12px; padding-bottom: 12px; border-color: #d4deeb; }
.portal-theme-dhost .ticket-meta { padding: 0; border: 0; box-shadow: none; }
.portal-theme-dhost .ticket-header { padding: 24px 28px; align-items: flex-start; }
.portal-theme-dhost .ticket-card { padding: 0; overflow: hidden; }
.portal-theme-dhost .ticket-card .ticket-header { margin: 0; border: 0; border-radius: 0; gap: 22px; flex-wrap: wrap; }
.portal-theme-dhost .ticket-card .ticket-info { flex: 1; min-width: min(100%,320px); padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.portal-theme-dhost .ticket-card .ticket-info h2 { font-size: 20px; line-height: 1.5; margin: 0 0 12px; }
.portal-theme-dhost .ticket-card .ticket-meta { background: transparent; padding: 0; margin: 0; gap: 12px 20px; font-size: 13px; }
.portal-theme-dhost .ticket-card .ticket-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.portal-theme-dhost .ticket-subject { font-size: 20px; line-height: 1.5; }
.portal-theme-dhost .ticket-details { font-size: 14px; gap: 16px; }
.portal-theme-dhost .conversation-container { background: #fff; border: 1px solid #cbd6e6; border-radius: 16px; }
.portal-theme-dhost .conversation-header { padding: 22px 28px; }
.portal-theme-dhost .conversation-header h3 { font-size: 18px; }
.portal-theme-dhost .conversation-body { max-height: none; padding: 24px; display: grid; gap: 20px; background: #f3f6fb; }
.portal-theme-dhost .conversation-message { margin: 0 44px 0 0; padding: 22px 24px; background: #fff; border: 1px solid #cbd6e6; border-left: 3px solid #8295b3; border-radius: 14px; transition: none; }
.portal-theme-dhost .conversation-message.original-message, .portal-theme-dhost .conversation-message.user-message { background: #fff; border-color: #c4d1e3; border-left-color: #8295b3; }
.portal-theme-dhost .conversation-message.staff-message { margin: 0 0 0 44px; background: #edf3ff; border: 1px solid #9db7de; border-left: 3px solid #145fca; }
.portal-theme-dhost .message-meta { gap: 18px; margin-bottom: 16px; align-items: flex-start; }
.portal-theme-dhost .author-name { color: #172b46; font-size: 15px; font-weight: 650; }
.portal-theme-dhost :is(.author-role,.message-timestamp) { color: #526278; font-size: 13px; }
.portal-theme-dhost .author-avatar { width: 40px; height: 40px; background: #e2eaf6; color: #1c477c; font-size: 15px; }
.portal-theme-dhost .staff-message .author-avatar { background: #145fca; color: #fff; }
.portal-theme-dhost .message-body { padding: 0; background: transparent; color: #24364d; font-size: 16px; line-height: 1.75; border: 0; border-radius: 0; overflow-wrap: anywhere; }
.portal-theme-dhost .message-attachment-box { padding: 12px 16px; background: #fff; border: 1px solid #9aacc5; border-radius: 10px; }
.portal-theme-dhost .message-attachment-box a { font-size: 15px; color: #0f4d9b; text-decoration: underline; }
.portal-theme-dhost .reply-form { padding: 0; border: 1px solid #cbd6e6; overflow: hidden; }
.portal-theme-dhost .reply-form-header { padding: 22px 28px; }
.portal-theme-dhost .reply-form-header h3 { font-size: 18px; }
.portal-theme-dhost .reply-form form { padding: 24px 28px; }
.portal-theme-dhost :is(.reply-form,.reply-form-container) textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.portal-theme-dhost :is(.attachment-image,.attachment-image img) { max-width: 100%; height: auto; }
.portal-page-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.portal-page-intro h1 { margin: 0 0 8px; }
.portal-page-intro p { color: #475569; margin: 0; font-size: 16px; }
.portal-notification-row { display: flex; align-items: flex-start; gap: 18px; padding: 20px 24px; border-left: 3px solid transparent; border-bottom: 1px solid #dce3ed; background: #fff; }
.portal-notification-row:last-child { border-bottom: 0; }
.portal-notification-row.unread { border-left-color: #145fca; background: #f8fbff; }
.portal-notification-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid #a6bbda; border-radius: 12px; background: #eaf1fc; color: #164f99; }
.portal-notification-icon .portal-line-icon { width: 22px; height: 22px; }
.portal-notification-icon-warning, .portal-notification-icon-error { color: #9b351b; background: #fff2e9; border-color: #d3aa91; }
.portal-notification-icon-success { color: #075d3f; background: #eaf8ef; border-color: #9ec6af; }
.portal-notification-content { flex: 1; min-width: 0; }
.portal-notification-content h3 { font-size: 16px; line-height: 1.5; color: #16283f; margin: 4px 0; font-weight: 650; }
.portal-notification-content p { margin: 0; color: #34465f; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.portal-notification-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: #526278; font-size: 13px; }
.portal-notification-meta > span { font-weight: 600; color: #315c95; }
.portal-notification-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.portal-theme-dhost .portal-text-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; border: 0; background: transparent; color: #114f9e; font-size: 14px; font-weight: 600; min-height: 34px; cursor: pointer; text-decoration: none; }
.portal-text-button .portal-line-icon { width: 17px; height: 17px; }
.portal-theme-dhost .portal-text-button:hover { text-decoration: underline; }
.portal-notification-read-state { display: flex; align-items: center; gap: 8px; color: #526278; font-size: 13px; padding-top: 3px; }
.portal-notification-empty { text-align: center; padding: 56px 24px; }
.portal-notification-empty > span { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid #b3c5df; color: #315c95; background: #edf3fc; border-radius: 50%; margin: 0 auto 20px; }
.portal-notification-empty h3 { font-size: 19px; margin-bottom: 10px; }
.portal-notification-empty p { font-size: 15px; color: #526278; }
.portal-notification-menu { position: relative; }
.portal-notification-dropdown { position: absolute; top: calc(100% + 14px); right: 0; width: 420px; max-width: calc(100vw - 24px); border: 1px solid #a7b8cf; border-radius: 16px; background: #fff; box-shadow: 0 14px 40px #14223b20; overflow: hidden; }
.portal-notification-dropdown-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #d5deea; padding: 16px 20px; }
.portal-notification-dropdown-heading h2 { font-size: 17px; margin: 0; }
.portal-theme-dhost .portal-notification-dropdown-heading .portal-text-button { font-size: 13px; }
#portal-notification-preview { max-height: min(470px,65vh); overflow-y: auto; }
.portal-notification-preview-row { padding: 18px 20px; border-bottom: 1px solid #e0e7f0; }
.portal-notification-preview-row[data-portal-status=unread] { background: #f1f6ff; }
.portal-notification-preview-row strong { display: block; font-size: 15px; color: #172b46; }
.portal-notification-preview-row p { color: #42536b; font-size: 14px; line-height: 1.6; margin: 6px 0; }
.portal-notification-preview-row time { font-size: 13px; color: #526278; }
.portal-notification-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.portal-theme-dhost .portal-notification-preview-actions .portal-button { min-height: 34px; font-size: 13px; }
.portal-theme-dhost .portal-notification-view-all { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; font-size: 14px; border-top: 1px solid #d5deea; color: #114f9e; font-weight: 600; }
.portal-notification-placeholder { padding: 24px 20px; color: #42536b; font-size: 15px; text-align: center; }
.portal-notification-feedback { position: fixed; bottom: 24px; right: 24px; max-width: min(480px,calc(100vw - 32px)); z-index: 2400; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid #82b49b; border-radius: 12px; background: #effaf4; color: #15583c; box-shadow: 0 8px 30px #14223b16; font-size: 15px; }
.portal-notification-feedback.is-error { border-color: #c27e75; color: #94251c; background: #fff2ef; }
.portal-notification-feedback button { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
@media(max-width:1200px) { .portal-theme-dhost .profile-layout { grid-template-columns: minmax(0,1.4fr) minmax(300px,1fr); } .portal-theme-dhost .portal-data-table td { font-size: 14px; } }
@media(max-width:1023px) { .portal-theme-dhost .profile-layout { grid-template-columns: 1fr; } .portal-theme-dhost .profile-sidebar { order: initial; grid-template-columns: repeat(2,minmax(0,1fr)); } .portal-theme-dhost .profile-card { grid-column: 1/-1; } }
@media(min-width:1024px) {
    .portal-sidebar-collapsed { padding-left: 92px; }
    .portal-sidebar-collapsed .portal-sidebar { width: 92px; }
    .portal-sidebar-collapsed .portal-topbar { left: 92px; }
    .portal-sidebar-collapsed .portal-brand { padding: 14px 8px; }
    .portal-sidebar-collapsed .portal-brand .portal-logo-frame { padding: 5px; }
    .portal-sidebar-collapsed .portal-brand .portal-configured-logo { max-width: 66px; max-height: 38px; }
    .portal-sidebar-collapsed .portal-brand > span:not(.portal-brand-mark):not(.portal-logo-frame), .portal-sidebar-collapsed .portal-nav-heading, .portal-sidebar-collapsed .portal-nav > a > span:not(.portal-count), .portal-sidebar-collapsed .portal-nav > .portal-help { display: none; }
    .portal-sidebar-collapsed .portal-nav { padding: 20px 14px; }
    .portal-sidebar-collapsed .portal-nav > a { justify-content: center; position: relative; padding: 12px; min-height: 48px; margin-bottom: 8px; }
    .portal-sidebar-collapsed .portal-count { position: absolute; top: 0; right: -4px; min-width: 20px; height: 20px; font-size: 11px; }
    .portal-sidebar-collapsed .portal-account-row { flex-direction: column; padding: 16px 8px; }
    .portal-sidebar-collapsed .portal-account-row > a:nth-child(2) { display: none; }
    .portal-sidebar-collapsed .portal-account-row > .portal-avatar { display: none; }
}
@media(max-width:650px) {
    .portal-theme-dhost :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea) { font-size: 16px; }
    .portal-theme-dhost :is(.portal-button,button,a.btn,.btn-check-domain) { min-height: 44px; }
    .portal-theme-dhost .portal-button.is-icon { min-width: 40px; width: 40px; }
    .portal-theme-dhost .portal-toolbar { align-items: stretch; }
    .portal-theme-dhost .portal-panel-heading { flex-wrap: wrap; }
    .portal-theme-dhost .portal-data-table { min-width: 720px; }
    .portal-theme-dhost .portal-data-table td { font-size: 15px; }
    .portal-theme-dhost .portal-public-header { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
    .portal-theme-dhost .portal-public-header .portal-brand { min-height: 44px; padding: 0; }
    .portal-theme-dhost .portal-public-header nav { width: 100%; flex-wrap: wrap; gap: 12px; font-size: 14px; }
    .portal-public-header nav .language-switcher { margin-left: auto; }
    .portal-theme-dhost .portal-public-header .portal-configured-logo { max-width: 180px; max-height: 40px; }
    .portal-theme-dhost .language-switcher .lang-btn { width: auto; min-width: 32px; height: auto; min-height: 34px; padding: 5px 7px; font-size: 13px; }
    .portal-theme-dhost .portal-topbar .language-switcher { gap: 0; }
    .portal-theme-dhost .portal-icon-link { width: 40px; height: 40px; }
    .portal-theme-dhost .portal-search input { font-size: 16px; }
    .portal-theme-dhost .portal-topbar { height: 116px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; grid-template-rows: 44px 44px; gap: 8px 10px; padding: 8px 12px; }
    .portal-account { padding-top: 116px; }
    .portal-theme-dhost .portal-search { grid-row: 2; grid-column: 1/-1; width: 100%; max-width: none; }
    .portal-theme-dhost .portal-search input { height: 44px; }
    .portal-theme-dhost .portal-mobile-brand { display: inline-flex; width: fit-content; max-width: 100%; }
    .portal-theme-dhost .portal-mobile-brand .portal-logo-frame { padding: 5px 7px; border-radius: 7px; }
    .portal-theme-dhost .portal-mobile-brand .portal-configured-logo { max-width: 88px; max-height: 30px; }
    .portal-theme-dhost .portal-topbar-actions { gap: 8px; margin-left: 0; }
    .portal-search-results { top: 114px; }
    .portal-theme-dhost .domain-section, .portal-theme-dhost :is(.profile-form,.info-card,.profile-card,.discord-card) { padding: 22px; }
    .portal-theme-dhost .domain-search { flex-direction: column; }
    .portal-theme-dhost .domain-input-group { flex-wrap: wrap; }
    .portal-theme-dhost .domain-input-group > * { flex-basis: 100%; min-width: 0; }
    .portal-theme-dhost .profile-sidebar { grid-template-columns: 1fr; }
    .portal-theme-dhost :is(.terms-section,.privacy-section) { padding: 26px 22px; }
    .portal-theme-dhost :is(.terms-content,.privacy-content) h2 { font-size: 19px; margin-top: 28px; }
    .portal-theme-dhost .ticket-header { padding: 22px; }
    .portal-theme-dhost .conversation-body { padding: 16px; gap: 16px; }
    .portal-theme-dhost :is(.conversation-message,.conversation-message.staff-message) { margin: 0; padding: 18px; }
    .portal-theme-dhost .message-meta { flex-wrap: wrap; gap: 8px; }
    .portal-theme-dhost .message-timestamp { margin-left: 52px; }
    .portal-theme-dhost .reply-form form, .portal-theme-dhost .reply-form-header { padding: 22px; }
    .portal-notification-row { padding: 20px 18px; gap: 12px; flex-wrap: wrap; }
    .portal-notification-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .portal-notification-content { min-width: calc(100% - 52px); }
    .portal-notification-read-state { margin-left: 48px; }
    .portal-notification-actions { gap: 16px; }
    .portal-notification-dropdown { position: fixed; top: 118px; left: 12px; right: 12px; width: auto; }
    .portal-notification-feedback { right: 16px; bottom: 16px; }
    .portal-theme-dhost .portal-checkout-summary { padding: 22px; }
}
.portal-notification-preview-category { display: inline-block; font-size: var(--portal-text-xs); font-weight: 600; color: #1558a8; margin-bottom: 7px; }
.portal-notification-preview-state { float: right; font-size: var(--portal-text-xs); color: var(--portal-muted); }
.portal-notification-preview-row > strong { display: block; clear: both; }
@media print { .portal-notification-menu,.portal-notification-feedback,.portal-order-steps { display: none !important; } }
