/* Integra a interface aprovada ao WordPress sem cabeçalho, título ou limites do tema. */
html:has(body.hew-standalone), body.hew-standalone, body.hew-standalone.page { width: 100% !important; max-width: none !important; min-height: 100%; margin: 0 !important; padding: 0 !important; }
body.hew-standalone { min-width: 320px; min-height: 100vh; overflow-x: hidden; color: #173150; background: #f5f7fa; font-size: 16px; }
body.hew-standalone *, body.hew-standalone *::before, body.hew-standalone *::after { box-sizing: border-box; }
body.hew-standalone a { text-decoration: none; }
body.hew-standalone > .app.hew-portal { width: 100% !important; max-width: none !important; min-height: 100vh; margin: 0 !important; padding: 0 !important; }
.hew-portal.app { width: 100%; min-height: 100vh; display: grid; grid-template-columns: 276px minmax(0, 1fr); align-items: start; }
.hew-sidebar.sidebar { position: sticky; top: 0; width: 276px; height: 100vh; min-height: 100vh; padding: 17px 14px 15px; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; border-right: 1px solid #e5eaf0; background: #fff; z-index: 45; }
.hew-sidebar > header { min-height: 76px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; }
.hew-sidebar > header .brand { width: 100%; max-width: 220px; display: grid; justify-items: start; gap: 0; }
.hew-sidebar > header .brand-logo { width: 207px; max-width: 100%; height: 64px; object-fit: contain; object-position: left center; }
.hew-sidebar > header .brand > small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hew-menu-close { display: none; padding: 6px; border: 0; color: #173150; background: transparent; cursor: pointer; }
.hew-sidebar .profile { min-height: 66px; margin: 4px 2px 18px; padding: 9px; display: flex; align-items: center; gap: 11px; flex: 0 0 auto; border-radius: 12px; background: #f3f6f9; }
.hew-sidebar .profile > i { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: #3065a7; font-size: 13px; font-style: normal; font-weight: 800; }
.hew-user-avatar-image { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; object-position: center; }
.hew-sidebar .profile > span { min-width: 0; display: grid; gap: 3px; }
.hew-sidebar .profile b { overflow: hidden; color: #173150; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.hew-sidebar .profile small { color: #748295; font-size: 12px; }
.hew-sidebar nav { min-height: max-content; flex: 1 0 auto; display: grid; grid-auto-rows: min-content; align-content: start; gap: 3px; }
.hew-sidebar nav > small { margin: 16px 9px 6px; color: #91a0b3; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hew-sidebar nav > a { min-height: 46px; padding: 0 10px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 9px; color: #46556a; background: transparent; font-size: 15px; font-weight: 650; }
.hew-sidebar nav > a > svg { flex: 0 0 auto; color: #68788c; }
.hew-sidebar nav > a > span { min-width: 0; flex: 1 1 auto; }
.hew-sidebar nav > a > small { min-width: 23px; padding: 4px 6px; border-radius: 20px; color: #627387; background: #edf1f5; font-size: 10px; text-align: center; }
.hew-sidebar nav > a:hover { color: #3065a7; background: #f0f5fa; }
.hew-sidebar nav > a.active, .hew-sidebar nav > a.active > svg { color: #3065a7; background: #e9f1f8; font-weight: 750; }
.hew-sidebar .sidebar-dracma { flex: 0 0 auto; margin: -6px 2px 10px; }
.hew-sidebar .sidebar-dracma:hover { background: #fff3dc; }
.hew-sidebar .upgrade { flex: 0 0 auto; margin-top: 18px; }
.hew-sidebar .upgrade > a, .hew-sidebar .member-switch { display: inline-flex; align-items: center; gap: 7px; color: #3065a7; font-size: 13px; font-weight: 750; }
.hew-sidebar .member-switch { min-height: 44px; margin-top: 12px; padding: 0 9px; border-top: 1px solid #e9edf2; }
.hew-main.app-body { position: relative; min-width: 0; min-height: 100vh; padding: 0; background: #f5f7fa; }
.hew-app-header.app-header { position: sticky; top: 0; min-height: 83px; height: 83px; padding: 0 31px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5eaf0; background: #fff; z-index: 24; }
.hew-app-header > div { min-width: 0; display: flex; align-items: center; gap: 13px; }
.hew-app-header > div > span { display: grid; gap: 2px; }
.hew-app-header > div > span > small { color: #8a99aa; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hew-app-header > div > span > h1 { margin: 0; color: #173150; font-size: 23px; line-height: 1.2; }
.hew-app-header > section { min-width: 0; display: flex; align-items: center; gap: 12px; }
.hew-header-search { min-width: 0; }
.hew-header-search label { width: 260px; min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid #dce4ec; border-radius: 9px; background: #f8fafc; }
.hew-header-search input { width: 100%; min-width: 0; height: 38px; border: 0; outline: 0; color: #46556a; background: transparent; font-size: 14px; }
.hew-app-header .notification { position: relative; width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid #dfe6ed; border-radius: 9px; color: #173150; }
.hew-app-header .notification > i { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #f23b4f; }
.hew-app-header .profile-button { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: #3065a7; font-size: 12px; font-weight: 800; }
.hew-app-header .profile-button, .hew-sidebar .profile > i, .profile-hero > i, .topic-composer > i, .post > header > i, .reply-card > i, .reply-composer > i { overflow: hidden; }
.hew-mobile-menu { position: static; display: none; width: 39px; height: 39px; padding: 0; align-items: center; justify-content: center; border: 1px solid #dfe6ed; border-radius: 8px; color: #173150; background: #fff; cursor: pointer; }
.hew-content.page { width: 100%; max-width: 1470px; min-width: 0; margin: 0 auto; padding: 32px 35px 80px; }
.hew-content .hew-message { margin: 0 0 18px; padding: 13px 15px; border: 1px solid #c4e9d7; border-radius: 10px; color: #14744c; background: #ebfaf2; font-size: 14px; }
.hew-content .title-row > a, .hew-content .progress-card > a, .hew-content .community-small > a { display: inline-flex; align-items: center; gap: 6px; color: #3065a7; font-size: 13px; font-weight: 750; }
.hew-content .progress-card > a { grid-column: 2; justify-self: start; width: auto; white-space: nowrap; }
.hew-content .updates > a { min-height: 40px; margin-top: 11px; display: inline-flex; align-items: center; color: #3065a7; font-size: 13px; font-weight: 800; }
.hew-content .profile-button, .hew-content .post > header > i { font-style: normal; }
.hew-content .workspace-card, .hew-content .hew-panel { border-radius: 15px; }
.hew-content .workspace-heading h2, .hew-content .welcome h2 { letter-spacing: -.035em; }
.hew-content .dashboard-layout { align-items: start; }
.hew-related-posts { overflow: hidden; }
.hew-related-posts > h3, .hew-recommended-posts > h3 { margin: 0 0 17px; font-size: 17px; }
.hew-related-posts > a, .hew-recommended-posts > a { min-height: 69px; padding: 10px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #ecf0f4; color: #173150; }
.hew-related-posts > a:last-child, .hew-recommended-posts > a:last-child { border-bottom: 0; }
.hew-related-posts img, .hew-recommended-posts img, .hew-post-thumbnail { width: 66px; height: 53px; flex: 0 0 66px; border-radius: 8px; object-fit: cover; }
.hew-post-thumbnail { display: grid; place-items: center; color: #3065a7; background: #eaf1f8; }
.hew-related-posts a > span, .hew-recommended-posts a > span { min-width: 0; display: grid; gap: 5px; }
.hew-related-posts a strong, .hew-recommended-posts a strong { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hew-related-posts a small, .hew-recommended-posts a small { color: #748295; font-size: 11px; }
.hew-content .library-toolbar { flex-wrap: wrap; gap: 14px; }
.hew-content .library-toolbar > div { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hew-content .library-toolbar > div > a { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid #dfe6ed; border-radius: 8px; color: #657386; background: #fff; font-size: 13px; font-weight: 650; }
.hew-content .library-toolbar > div > a.active { border-color: #3065a7; color: #fff; background: #3065a7; }
.hew-content .hew-store-access-modes { margin: 15px 0 18px; padding: 12px 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; border: 1px solid #e0e8ef; border-radius: 11px; background: #fff; }
.hew-content .hew-store-access-modes > span { display: inline-flex; align-items: center; gap: 7px; color: #53667b; font-size: 13px; font-weight: 650; }
.hew-content .hew-store-access-modes > span.free { color: #16805a; }.hew-content .hew-store-access-modes > span.dracma { color: #956622; }
.hew-content .material-grid { align-items: stretch; }
.hew-content .material { min-width: 0; height: 100%; display: flex; flex-direction: column; }
.hew-content .material-cover { position: relative; overflow: hidden; }
.public-product .product-visual { min-height: 0; aspect-ratio: 1 / 1; overflow: hidden; padding: 0; background: #eef3f8; }
.enw-product-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.enw-material-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hew-content .owned-product-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 330px)); justify-content: start; gap: 20px; }
.hew-content .owned-product-grid .material-cover { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
.hew-content .owned-product-grid .enw-material-cover-image { object-fit: contain; object-position: center; }
.hew-content .owned-product-grid .material > section { padding: 16px; }
.material-cover > strong, .material-cover > i, .material-cover > span, .material-cover > .hew-card-favorite { position: relative; z-index: 2; }
.material-cover > span { position: absolute; }
.material-cover > .hew-card-favorite { position: absolute; top: 11px; right: 11px; }
.hew-card-favorite { margin: 0; }
.hew-card-favorite > button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #708198; background: rgba(255,255,255,.91); cursor: pointer; }
.hew-card-favorite > button.active { color: #f23b4f; }
.hew-content .material > section { flex: 1 1 auto; display: flex; flex-direction: column; }
.hew-content .material h3 > .enw-product-title-link { color: inherit; text-decoration: none; }
.hew-content .material h3 > .enw-product-title-link:hover { color: #3065a7; }
.hew-content .material > section > p { flex: 1 1 auto; }
.hew-content .material > section > footer { min-height: 56px; gap: 9px; }
.hew-content .material > section > footer > span { min-width: 0; }
.hew-content .product-action { min-height: 39px; max-width: 145px; padding: 0 10px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px; color: #3065a7; background: #eaf1f8; font-size: 13px; font-weight: 800; text-align: center; white-space: nowrap; }
.hew-content .product-action.free { color: #17855d; background: #e7f7ef; }
.hew-content .product-action.owned { color: #173150; background: #edf1f5; }
.hew-content .material-cover > span.requires-dracma { color: #8b6224; background: #fff8e9; }
.enw-product-access-note { min-height: 39px; margin: 10px 0; padding: 9px 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border: 1px solid #e4eaf0; border-radius: 9px; color: #55677b; background: #f8fafc; font-size: 12px; line-height: 1.4; }
.enw-product-access-note.dracma-required, .enw-product-access-note.dracma-alternative { border-color: #f0dfbd; color: #8b6224; background: #fff9ed; }
.enw-product-access-note.fully-free { border-color: #ccebdc; color: #167d56; background: #effaf4; }
.hew-content .hew-dracma-earn { width: 100%; min-height: 43px; margin-top: 11px; color: #8b6224; text-decoration: none; }
.hew-product-modes-guide { padding: 17px; border: 1px solid #e3e9ef; border-radius: 13px; background: #f8fafc; }
.hew-product-modes-guide > header { display: flex; align-items: center; gap: 10px; color: #3065a7; }
.hew-product-modes-guide > header > span { display: grid; gap: 4px; }
.hew-product-modes-guide > header strong { color: #173150; font-size: 15px; }
.hew-product-modes-guide > header small { color: #68798d; font-size: 13px; }
.hew-product-modes-guide > div { margin-top: 15px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.hew-product-modes-guide > div > article { min-width: 0; padding: 12px; display: grid; align-content: start; gap: 6px; border: 1px solid #e3e9ef; border-radius: 10px; background: #fff; }
.hew-product-modes-guide > div > article > b { color: #173150; font-size: 13px; }
.hew-product-modes-guide > div > article > span { color: #68798d; font-size: 12px; line-height: 1.5; }
.hew-content .hew-plan-price { min-height: 33px; margin: 5px 0 9px; display: block; color: #173150; font-size: 23px; }
.hew-content .hew-active-plan-note { margin: 6px 0 10px; padding: 9px 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #cce8d9; border-radius: 8px; color: #16754f; background: #eff9f3; font-size: 12px; font-weight: 700; }
.hew-plan-unavailable { min-height: 46px; padding: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid #e1e7ed; border-radius: 9px; color: #748296; background: #f7f9fb; font-size: 13px; text-align: center; }
.hew-content .hew-dracma-redeem { margin-top: 10px; }
.hew-content .hew-dracma-redeem .plan-dracma { width: 100%; min-height: 41px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #f0dfbd; border-radius: 9px; color: #8f621e; background: #fff8e9; cursor: pointer; }
.hew-content .hew-dracma-redeem .plan-dracma:disabled { cursor: not-allowed; opacity: .55; }
.hew-content .topic-composer { min-width: 0; }
.hew-content .topic-composer input, .hew-content .topic-composer textarea, .hew-content .topic-composer select { width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid #dfe6ed; border-radius: 8px; color: #46556a; background: #fff; font-size: 15px; }
.hew-content .topic-composer textarea { min-height: 77px; resize: vertical; }
.hew-content .thread-inline { margin-top: 8px; }
.hew-content .thread-inline summary { display: inline-flex; align-items: center; gap: 6px; color: #53667d; font-size: 13px; cursor: pointer; list-style: none; }
.hew-content .thread-inline summary::-webkit-details-marker { display: none; }
.hew-content .thread-inline[open] { padding-top: 12px; border-top: 1px solid #e8edf2; }
.hew-content .hew-favorite-form { display: inline-flex; margin: 0; }
.hew-content .hew-favorite-form > button { min-height: 34px; padding: 0 6px; display: inline-flex; align-items: center; gap: 5px; border: 0; color: #53667d; background: transparent; font-size: 12px; cursor: pointer; }
.hew-content .favorite-thread-list { display: grid; gap: 13px; }
.hew-content .favorite-thread-list > article { padding: 18px 20px; border: 1px solid #dfe6ed; border-radius: 13px; background: #fff; }
.hew-content .favorite-thread-list > article > h3 { margin: 0 0 8px; font-size: 17px; }
.hew-content .favorite-thread-list > article > p { margin: 0 0 13px; color: #627387; font-size: 14px; }
.hew-content .account-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr); align-items: start; gap: 20px; }
.hew-content .workspace-card form, .hew-content .account-form { display: grid; gap: 15px; }
.hew-content .account-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.hew-content .account-form label, .hew-content .workspace-card form > label { display: grid; gap: 7px; color: #41516a; font-size: 14px; font-weight: 650; }
.hew-content .account-form input, .hew-content .account-form textarea, .hew-content .account-form select, .hew-content .workspace-card form > label input, .hew-content .workspace-card form > label select, .hew-content .workspace-card form > label textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #dfe6ed; border-radius: 9px; color: #173150; background: #fff; font-size: 15px; }
.hew-content .account-form textarea { min-height: 104px; resize: vertical; }
.hew-content .account-form fieldset { margin: 0; padding: 13px 15px; display: grid; gap: 9px; border: 1px solid #dfe6ed; border-radius: 10px; }
.hew-content .account-form fieldset > legend { padding: 0 5px; color: #173150; font-size: 14px; font-weight: 750; }
.hew-content .hew-profile-hero-photo { align-items: center; gap: 13px; }.hew-content .hew-profile-hero-photo > div { min-width: 0; flex: 1 1 auto; }
.hew-content .hew-profile-photo-trigger { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dae5ef; border-radius: 9px; color: #3065a7; background: #f4f8fc; font-size: 13px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.hew-content .hew-profile-photo-trigger:hover { color: #fff; background: #3065a7; }
.hew-content .hew-profile-photo-field { padding: 14px; border: 1px solid #dfe7ee; border-radius: 10px; background: #f8fafc; }
.hew-content .hew-profile-photo-field > input { min-height: 43px; padding: 9px; background: #fff; }.hew-content .hew-profile-photo-field > small { color: #708095; font-size: 12px; font-weight: 450; line-height: 1.5; }
.hew-content .account-form fieldset > label, .hew-content .hew-switch { display: flex; align-items: center; gap: 9px; }
.hew-content .account-form fieldset input, .hew-content .hew-switch > input { width: auto; min-height: auto; }
.hew-content .dracma-wallet-hero a.button, .hew-content .dracma-wallet-hero a.outline { display: inline-flex; align-items: center; justify-content: center; }
.hew-content .dracma-wallet-hero a.button.outline { border: 1px solid rgba(255,255,255,.48); color: #fff !important; background: rgba(255,255,255,.1) !important; }
.hew-content .dracma-wallet-hero a.button.outline:hover { border-color: #fff; color: #173150 !important; background: #fff !important; }
.hew-content .dracma-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(260px,.65fr); align-items: start; gap: 17px; }
.hew-content .dracma-ledger-list { display: grid; gap: 10px; }
.hew-content .dracma-ledger-list > article { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #edf1f5; }
.hew-content .dracma-ledger-list > article > span { display: grid; gap: 4px; }
.hew-content .dracma-ledger-list > article small { color: #748295; font-size: 12px; }
.hew-content .dracma-ledger-list > article > b { color: #14744c; white-space: nowrap; }
.hew-content .notification-list { display: grid; gap: 0; }
.hew-content .notification-list > article { min-width: 0; min-height: 88px; position: relative; padding: 15px 0; display: grid; grid-template-columns: 39px minmax(0, 1fr) 8px; align-items: flex-start; gap: 12px; border-bottom: 1px solid #edf1f5; }
.hew-content .notification-list > article:last-child { border: 0; }
.hew-content .notification-list > article > i { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 10px; color: #3065a7; background: #eaf1f8; }
.hew-content .notification-list > article > .hew-notice-content { min-width: 0; width: auto; height: auto; display: grid; align-content: start; gap: 5px; border-radius: 0; background: transparent; }
.hew-content .notification-list .hew-notice-content > b { overflow-wrap: anywhere; color: #173150; font-size: 15px; line-height: 1.4; }
.hew-content .notification-list .hew-notice-content > p { max-width: 900px; margin: 0; overflow-wrap: anywhere; color: #5f7085; font-size: 14px; line-height: 1.6; }
.hew-content .notification-list .hew-notice-content > small { color: #748295; font-size: 12px; line-height: 1.45; }
.hew-content .notification-list > article > .hew-notice-status { width: 8px; height: 8px; align-self: center; border-radius: 50%; background: #f23b4f; }
.hew-content .hew-notice-action { display: inline-flex; width: fit-content; align-items: center; gap: 6px; margin-top: 5px; color: #3065a7; font-size: 13px; font-weight: 750; text-decoration: none; }
.hew-area-explainer { margin: 0 0 22px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.hew-area-explainer > article { min-width: 0; padding: 15px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #dfe7ee; border-radius: 12px; background: #fff; }.hew-area-explainer > article > i { width: 37px; height: 37px; flex: 0 0 37px; display: grid; place-items: center; border-radius: 9px; color: #3065a7; background: #edf3f9; }.hew-area-explainer > article > span { min-width: 0; display: grid; gap: 5px; }.hew-area-explainer b { color: #173150; font-size: 13px; }.hew-area-explainer small { color: #69798b; font-size: 12px; line-height: 1.5; }
.hew-plan-billing-guide { margin: 0 0 20px; padding: 16px 18px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid #d6e5f2; border-radius: 13px; color: #3065a7; background: #eff6fc; }.hew-plan-billing-guide > span { display: grid; gap: 5px; }.hew-plan-billing-guide b { color: #173150; font-size: 15px; }.hew-plan-billing-guide small { color: #5d7188; font-size: 13px; line-height: 1.5; }
.admin-plan-card .hew-plan-connection { display: inline-flex; align-items: center; gap: 6px; }.admin-plan-card .hew-plan-connection.connected { color: #16805a; }.admin-plan-card .hew-plan-connection.pending { color: #956622; }
.hew-plan-settings-form { gap: 22px !important; }.hew-plan-fieldset { margin: 0; padding: 18px; border: 1px solid #dce5ed; border-radius: 13px; }.hew-plan-fieldset > legend { display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; color: #173150; font-size: 16px; font-weight: 750; }.hew-plan-fieldset .form-field > small { color: #718094; font-size: 11px; font-weight: 450; line-height: 1.5; }
.hew-plan-coverage { padding: 17px; border: 1px solid #e0e7ed; border-radius: 11px; background: #f8fafc; }.hew-plan-coverage > header { display: grid; gap: 5px; }.hew-plan-coverage > header > b { color: #173150; font-size: 15px; }.hew-plan-coverage > header > small { color: #66778b; font-size: 12px; line-height: 1.5; }
.hew-plan-choice-group { margin-top: 15px; padding-top: 13px; border-top: 1px solid #e2e9ef; }.hew-plan-choice-group > h4 { margin: 0 0 9px; color: #294869; font-size: 13px; }.hew-plan-choice-group > p { margin: 0; color: #728195; font-size: 12px; }.hew-plan-choice-grid { max-height: 190px; overflow-y: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.hew-plan-choice-grid > label { min-height: 36px; padding: 7px 9px; display: flex; align-items: center; gap: 8px; border: 1px solid #e2e9ef; border-radius: 8px; color: #405168; background: #fff; font-size: 12px; }.hew-plan-choice-grid input { width: 15px; height: 15px; flex: 0 0 15px; }
.hew-product-video-help { margin: -7px 0 0; color: #63758a; font-size: 13px; line-height: 1.55; }.hew-product-video-help > code { padding: 2px 5px; border-radius: 4px; color: #244c78; background: #eaf2f8; }
.hew-front-admin-sidebar.sidebar { border-color: #243f5e; color: #d7e2ed; background: #173150; }
.hew-front-admin-sidebar > header .brand { padding: 0 5px; border-radius: 8px; background: rgba(255,255,255,.96); }
.hew-front-admin-sidebar .profile { color: #fff; background: rgba(255,255,255,.09); }
.hew-front-admin-sidebar .profile b { color: #fff; }
.hew-front-admin-sidebar .profile small, .hew-front-admin-sidebar nav > small { color: #aebdcc; }
.hew-front-admin-sidebar nav > a, .hew-front-admin-sidebar nav > a > svg { color: #d7e2ed; }
.hew-front-admin-sidebar nav > a:hover { color: #fff; background: rgba(255,255,255,.09); }
.hew-front-admin-sidebar nav > a.active, .hew-front-admin-sidebar nav > a.active > svg { color: #fff; background: #3065a7; }
.hew-front-admin-sidebar .member-switch { border-color: rgba(255,255,255,.15); color: #d7e2ed; }
.hew-admin-shortcuts { display: grid; gap: 12px; }
.hew-admin-shortcuts > a { display: flex; align-items: center; gap: 8px; color: #3065a7; font-size: 14px; font-weight: 700; }
.hew-admin-brand-preview { max-width: 260px; height: auto; margin: 8px 0; }
.hew-admin-portal .workspace-card .wrap { margin: 0; }
.hew-admin-portal .data-table td > small { display: block; color: #748295; font-size: 12px; }
.hew-admin-portal .table-wrap { overflow-x: auto; }
.hew-admin-portal .hew-manager-form { margin-top: 20px; }
.hew-admin-portal .hew-manager-form .form-grid { align-items: start; gap: 18px; }
.hew-admin-portal .hew-manager-form .form-field { display: grid; min-width: 0; gap: 8px; color: #34465c; font-size: 15px; font-weight: 650; }
.hew-admin-portal .hew-manager-form .form-field > input, .hew-admin-portal .hew-manager-form .form-field > textarea, .hew-admin-portal .hew-manager-form .form-field > select, .hew-admin-portal .hew-manager-media-card .form-field > input { width: 100%; min-height: 47px; padding: 10px 13px; border: 1px solid #dbe5ee; border-radius: 10px; color: #173150; background: #fff; font-size: 15px; line-height: 1.55; }
.hew-admin-portal .hew-manager-form .form-field > textarea { min-height: 120px; resize: vertical; }
.hew-admin-portal .hew-manager-form .form-field > input[type="file"] { padding: 9px 10px; }
.hew-admin-portal .hew-manager-fieldset { min-width: 0; margin: 0; padding: 15px 16px; border: 1px solid #dbe5ee; border-radius: 12px; }
.hew-admin-portal .hew-manager-fieldset > legend { padding: 0 7px; color: #173150; font-size: 15px; font-weight: 750; }
.hew-admin-portal .hew-manager-check-grid { display: grid; align-content: start; gap: 11px; padding-top: 5px; }
.hew-admin-portal .hew-manager-check { display: flex; align-items: center; gap: 9px; color: #46566a; font-size: 15px; line-height: 1.45; }
.hew-admin-portal .hew-manager-check input { width: 17px; height: 17px; accent-color: #3065a7; }
.hew-admin-portal .hew-manager-image-preview { max-width: 210px; align-self: end; padding: 9px; border: 1px solid #e0e8ef; border-radius: 11px; }
.hew-admin-portal .hew-manager-image-preview img { display: block; width: 100%; height: auto; border-radius: 8px; }
.hew-admin-portal .hew-manager-danger { margin-top: 22px; padding-top: 18px; border-top: 1px solid #edf1f5; }
.hew-admin-portal .hew-manager-danger form { margin-top: 0; }
.hew-admin-portal .hew-manager-danger .button { border-color: #f1d4d2; color: #a83e35; }
.hew-admin-portal .hew-manager-media-grid { margin-top: 19px; display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); align-items: start; gap: 17px; }
.hew-admin-portal .hew-manager-media-card { min-width: 0; display: grid; gap: 13px; }
.hew-admin-portal .hew-manager-media-card > h3 { margin: 0; overflow-wrap: anywhere; font-size: 17px; }
.hew-admin-portal .hew-manager-media-preview { height: 160px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: #f2f6f9; }
.hew-admin-portal .hew-manager-media-preview img { width: 100%; height: 100%; object-fit: contain; }
.hew-admin-portal .hew-manager-media-card .form-field { display: grid; gap: 7px; font-size: 14px; }
.hew-admin-portal .hew-manager-media-card .hew-manager-form { margin-top: 0; }
.hew-admin-portal .hew-manager-media-card .save-action { width: 100%; justify-content: center; }
.hew-admin-portal .hew-manager-replies { margin-top: 25px; display: grid; gap: 13px; }
.hew-admin-portal .hew-manager-replies > article { padding: 14px 16px; border: 1px solid #e1e9ef; border-radius: 10px; background: #f9fbfd; }
.hew-admin-portal .hew-manager-replies > article p { margin: 8px 0; color: #46566a; font-size: 15px; }
.hew-admin-portal .hew-manager-replies > article small { color: #6d7e92; font-size: 13px; }
.hew-admin-portal .hew-manager-ticket-message { margin: 15px 0 22px; padding: 15px 18px; border: 1px solid #e1e9ef; border-radius: 11px; background: #f8fafc; }
.hew-admin-portal .hew-manager-menu-list { display: grid; gap: 13px; }
.hew-admin-portal .hew-manager-menu-row { padding-bottom: 12px; border-bottom: 1px solid #eaf0f4; }
.hew-content .hew-member-ticket { margin-top: 10px; border-bottom: 1px solid #edf1f5; }
.hew-content .hew-member-ticket > summary { cursor: pointer; list-style: none; }
.hew-content .hew-member-ticket > summary::-webkit-details-marker { display: none; }
.hew-content .hew-member-ticket-history { padding: 10px 0 15px; color: #46566a; font-size: 14px; }
.hew-content .hew-member-ticket-history > article { margin-top: 10px; padding: 12px; border: 1px solid #e1e9ef; border-radius: 9px; background: #f8fafc; }
.hew-content .hew-member-ticket-history > article p { margin: 7px 0; }
.hew-content .hew-member-ticket-history > article small { color: #708197; }
.hew-auth-screen.login-page { min-height: 100vh; padding: 35px 18px; display: grid; place-items: center; }
.hew-auth-screen .login-card, .hew-auth-screen .register-card { width: min(100%,540px); margin: 0 auto; }
.hew-auth-screen .register-card { width: min(100%,800px); }
.hew-auth-screen .auth-logo { width: 230px; height: 74px; margin-bottom: 15px; object-fit: contain; }
.hew-auth-screen #loginform { display: grid; gap: 14px; }
.hew-auth-screen #loginform p { margin: 0; }
.hew-auth-screen #loginform label { display: grid; gap: 7px; color: #41516a; font-size: 14px; font-weight: 650; }
.hew-auth-screen #loginform input[type="text"], .hew-auth-screen #loginform input[type="password"] { min-height: 46px; padding: 10px 12px; border: 1px solid #dfe6ed; border-radius: 9px; font-size: 15px; }
.hew-auth-screen #loginform .login-remember label { display: flex; align-items: center; gap: 8px; }
.hew-auth-screen #loginform .login-submit input { width: 100%; min-height: 47px; border: 0; border-radius: 9px; color: #fff; background: #3065a7; font-size: 15px; font-weight: 750; cursor: pointer; }
.hew-auth-screen .register-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.hew-auth-screen .register-form-grid > label { display: grid; gap: 7px; color: #41516a; font-size: 14px; font-weight: 650; }
.hew-auth-screen .register-form-grid input, .hew-auth-screen .register-form-grid select { width: 100%; min-height: 45px; padding: 9px 11px; border: 1px solid #dfe6ed; border-radius: 9px; font-size: 15px; }

@media (max-width: 1280px) {
    .hew-content.page { padding-inline: 25px; }
    .hew-header-search label { width: 195px; }
    .hew-content .community-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
    .hew-content .dashboard-layout, .hew-content .account-grid, .hew-content .dracma-layout, .hew-content .admin-content-grid { grid-template-columns: 1fr; }
    .hew-content .right-column, .hew-content .admin-aside { max-width: 100%; }
}

@media (max-width: 950px) {
    .hew-portal.app { grid-template-columns: minmax(0,1fr); }
    .hew-sidebar.sidebar { position: fixed; top: 0; left: 0; width: min(300px,86vw); display: flex; transform: translateX(-105%); transition: transform .23s ease; }
    .hew-portal.menu-open .hew-sidebar { transform: translateX(0); }
    .hew-portal.menu-open::before { position: fixed; inset: 0; z-index: 40; content: ""; background: rgba(17,34,54,.48); }
    .hew-mobile-menu { display: inline-flex; }
    .hew-sidebar > header > .hew-menu-close { display: inline-flex; }
    .hew-app-header.app-header { height: 74px; min-height: 74px; padding-inline: 17px; }
    .hew-content.page { padding: 24px 17px 65px; }
}

@media (max-width: 620px) {
    .hew-header-search { display: none; }
    .hew-app-header > section { gap: 8px; }
    .hew-app-header > div > span > h1 { font-size: 19px; }
    .hew-content .material-grid, .hew-content .member-plan-grid, .hew-content .dracma-metrics, .hew-content .metric-grid, .hew-content .account-form-grid, .hew-content .hew-manager-form .form-grid, .hew-content .hew-manager-media-grid, .hew-auth-screen .register-form-grid { grid-template-columns: 1fr; }
    .hew-content .owned-product-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .hew-content .owned-product-grid .material-cover { min-height: 0; aspect-ratio: 1 / 1; }
    .hew-content .dracma-wallet-hero { padding: 23px 19px; }
    .hew-content .dracma-wallet-hero h3 { font-size: 39px; }
    .hew-content .library-toolbar > div > a { min-height: 37px; padding-inline: 10px; font-size: 12px; }
}

/* Shopping cart: keep quantity and removal controls accessible before payment. */
.hew-app-header .hew-header-cart { width: 43px; height: 43px; position: relative; display: grid; place-items: center; border: 1px solid #dce5ee; border-radius: 10px; color: #274b75; background: #fff; text-decoration: none; }
.hew-app-header .hew-header-cart > span { min-width: 19px; height: 19px; position: absolute; top: -6px; right: -5px; display: grid; place-items: center; padding-inline: 4px; border-radius: 999px; color: #fff; background: #3065a7; font-size: 11px; font-weight: 800; }
.hew-checkout-review { max-width: 1140px; margin: 0 auto 32px; padding: 24px 27px 18px; border: 1px solid #dce5ed; border-radius: 15px; color: #173150; background: #fff; }
.hew-checkout-review > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid #e8edf2; }
.hew-checkout-review > header small { color: #3065a7; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.hew-checkout-review > header h2 { margin: 4px 0; font-size: 22px; line-height: 1.2; }
.hew-checkout-review > header p { margin: 0; color: #647487; font-size: 14px; }
.hew-continue-shopping { display: inline-flex; align-items: center; gap: 7px; color: #3065a7; font-size: 14px; font-weight: 700; text-decoration: none; }
.hew-checkout-item { min-height: 92px; display: grid; grid-template-columns: minmax(0,1fr) auto auto 36px; align-items: center; gap: 20px; border-bottom: 1px solid #edf1f4; }
.hew-checkout-item-product { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hew-checkout-item-product img { width: 59px; height: 59px; border: 1px solid #e6ecf2; border-radius: 9px; object-fit: cover; }
.hew-checkout-item-product span { display: grid; gap: 3px; }
.hew-checkout-item-product b { font-size: 15px; }
.hew-checkout-item-product small { color: #667689; font-size: 13px; }
.hew-checkout-quantity { min-width: 110px; height: 40px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dce5ed; border-radius: 9px; }
.hew-checkout-quantity a,.hew-checkout-quantity>span { width: 35px; height: 100%; display: grid; place-items: center; color: #3065a7; font-size: 19px; text-decoration: none; }
.hew-checkout-quantity>span { color: #b8c3ce; }
.hew-checkout-quantity>b { min-width: 24px; text-align: center; font-size: 15px; }
.hew-checkout-item-total { min-width: 92px; text-align: right; font-size: 15px; }
.hew-checkout-remove { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; color: #b85358; text-decoration: none; }
.hew-checkout-remove:hover { background: #fff0f0; }
.hew-checkout-review>footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; color: #667589; font-size: 14px; }
.hew-checkout-review>footer>a { display: inline-flex; align-items: center; gap: 7px; color: #3065a7; font-weight: 700; text-decoration: none; }

/* Administrator invitation batches, limited to ten recipients. */
.hew-content .hew-invite-limit { color: #627387; font-size: 13px; font-weight: 650; }
.hew-content .hew-invite-list { display: grid; gap: 13px; }
.hew-content .hew-invite-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 40px; align-items: end; gap: 12px; }
.hew-content .hew-invite-row .form-field { min-width: 0; }
.hew-content .hew-invite-remove { width: 40px; height: 45px; display: grid; place-items: center; border: 1px solid #edd7da; border-radius: 9px; color: #b34a53; background: #fff; cursor: pointer; }
.hew-content .hew-invite-remove[hidden],.hew-content .hew-invite-add[hidden] { display: none; }
.hew-content .hew-invite-add { margin-top: 14px; padding: 8px 0; border: 0; color: #3065a7; background: transparent; font-size: 14px; font-weight: 750; cursor: pointer; }

/* Financial operations dashboard, built from live WooCommerce order data. */
.hew-content .hew-finance-heading { align-items: center; }
.hew-content .hew-finance-period { display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid #dce5ed; border-radius: 11px; background: #fff; }
.hew-content .hew-finance-period>a { min-width: 71px; padding: 8px 11px; border-radius: 8px; color: #627387; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.hew-content .hew-finance-period>a.active { color: #fff; background: #3065a7; }
.hew-content .hew-finance-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin: 0 0 19px; }
.hew-content .hew-finance-metric { min-width: 0; padding: 18px 18px 16px; border: 1px solid #dce5ed; border-radius: 14px; background: #fff; box-shadow: 0 7px 20px rgba(21,43,69,.035); }
.hew-content .hew-finance-metric>header { display: flex; align-items: center; gap: 10px; }
.hew-content .hew-finance-metric>header>i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #3065a7; background: #e9f1fa; }
.hew-content .hew-finance-metric.tone-green>header>i { color: #188a62; background: #e6f6ee; }
.hew-content .hew-finance-metric.tone-purple>header>i { color: #4a67a1; background: #ecf0fa; }
.hew-content .hew-finance-metric.tone-amber>header>i { color: #ad781e; background: #fff4df; }
.hew-content .hew-finance-metric>header>span { color: #66768a; font-size: 12px; font-weight: 800; letter-spacing: .055em; }
.hew-content .hew-finance-metric>strong { display: block; margin-top: 14px; color: #173150; font-size: clamp(20px,2vw,29px); line-height: 1.15; font-weight: 800; }
.hew-content .hew-finance-metric>footer { display: grid; gap: 6px; margin-top: 9px; }
.hew-content .hew-finance-metric>footer>span { color: #607085; font-size: 13px; }
.hew-content .hew-finance-metric>footer>small { color: #1b845f; font-size: 12px; font-weight: 700; }
.hew-content .hew-finance-metric.tone-amber>footer>small { color: #a37121; }
.hew-content .hew-finance-board { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(280px,.8fr); gap: 17px; margin-bottom: 18px; }
.hew-content .hew-finance-lower { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(270px,.85fr); gap: 17px; margin-bottom: 17px; }
.hew-content .hew-revenue-card,.hew-content .hew-payment-card,.hew-content .hew-transactions-card,.hew-content .hew-ranking-card { min-width: 0; margin: 0; padding: 21px; border-radius: 14px; }
.hew-content .hew-finance-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #edf1f4; }
.hew-content .hew-finance-card-title>div>small,.hew-content .hew-chart-total>small { color: #728198; font-size: 11px; font-weight: 800; letter-spacing: .065em; }
.hew-content .hew-finance-card-title h3 { margin: 5px 0 2px; color: #183457; font-size: 18px; line-height: 1.3; }
.hew-content .hew-finance-card-title>div>span { color: #748296; font-size: 13px; }
.hew-content .hew-chart-total { display: grid; gap: 5px; text-align: right; }
.hew-content .hew-chart-total>strong { color: #245183; font-size: 21px; }
.hew-content .hew-revenue-graph { height: 226px; position: relative; display: grid; grid-template-columns: repeat(var(--hew-chart-columns),minmax(0,1fr)); align-items: end; gap: clamp(3px,1vw,12px); margin: 19px 0 0; padding: 12px 3px 25px 53px; }
.hew-content .hew-chart-gridline { position: absolute; right: 0; left: 52px; border-bottom: 1px dashed #e6ecf1; color: #8390a0; font-size: 11px; line-height: 0; }
.hew-content .hew-chart-gridline.top { top: 12px; }.hew-content .hew-chart-gridline.mid { top: 106px; }.hew-content .hew-chart-gridline.base { bottom: 25px; }
.hew-content .hew-chart-gridline::first-letter { color: #8390a0; }
.hew-content .hew-chart-column { height: 185px; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.hew-content .hew-chart-bar { width: 100%; max-width: 37px; height: var(--hew-bar-height); min-height: 4px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg,#6aa7d6,#3972b0); transition: height .2s ease; }
.hew-content .hew-chart-bar.current { background: linear-gradient(180deg,#407bb7,#204a7d); }
.hew-content .hew-revenue-graph.is-empty .hew-chart-bar { background: #d9e5ef; }
.hew-content .hew-chart-column>small { height: 20px; position: absolute; right: -5px; bottom: -24px; left: -5px; color: #77869a; font-size: 11px; text-align: center; text-transform: capitalize; }
.hew-content .hew-chart-empty { margin: 10px 0 0; color: #728095; font-size: 13px; text-align: center; }
.hew-content .hew-payment-list { min-height: 169px; display: grid; align-content: start; gap: 19px; padding: 20px 0 16px; }
.hew-content .hew-payment-list>article>div { display: flex; justify-content: space-between; gap: 12px; }
.hew-content .hew-payment-list>article>div>span { display: grid; gap: 4px; }
.hew-content .hew-payment-list>article>div>span>b,.hew-content .hew-payment-list>article>div>strong { color: #223b5a; font-size: 14px; }
.hew-content .hew-payment-list>article>div>span>small { color: #718196; font-size: 12px; }
.hew-content .hew-payment-list>article>i { height: 6px; display: block; overflow: hidden; margin-top: 10px; border-radius: 8px; background: #edf1f5; }
.hew-content .hew-payment-list>article>i>span { height: 100%; display: block; border-radius: 8px; background: linear-gradient(90deg,#3872ae,#6da9d1); }
.hew-content .hew-finance-empty-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 8px auto 0; border-radius: 12px; color: #3970a8; background: #edf3f9; }
.hew-content .hew-finance-empty { margin: 0; color: #728095; font-size: 13px; text-align: center; }
.hew-content .hew-payment-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid #edf1f4; }
.hew-content .hew-payment-footer>span { color: #65758a; font-size: 13px; }.hew-content .hew-payment-footer>strong { color: #214874; font-size: 17px; }
.hew-content .hew-finance-empty-state { min-height: 167px; display: grid; place-content: center; justify-items: center; gap: 8px; color: #748398; text-align: center; }
.hew-content .hew-finance-empty-state>svg { color: #487eb2; }.hew-content .hew-finance-empty-state>b { color: #26415f; font-size: 14px; }.hew-content .hew-finance-empty-state>span { max-width: 240px; font-size: 12px; }
.hew-content .hew-finance-table th,.hew-content .hew-finance-table td { padding-inline: 9px; white-space: nowrap; font-size: 13px; }.hew-content .hew-finance-table td>b,.hew-content .hew-finance-table td>small { display: block; }.hew-content .hew-finance-table td>small { color: #728095; font-size: 12px; }
.hew-content .hew-product-ranking { display: grid; gap: 15px; padding-top: 17px; }.hew-content .hew-product-ranking>article { display: grid; grid-template-columns: 29px minmax(0,1fr) auto; align-items: center; gap: 10px; }.hew-content .hew-product-ranking>article>i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #3065a7; background: #ebf1f8; font-size: 12px; font-style: normal; font-weight: 800; }.hew-content .hew-product-ranking>article>span { min-width: 0; display: grid; gap: 4px; }.hew-content .hew-product-ranking>article>span>b { overflow: hidden; color: #223b5a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.hew-content .hew-product-ranking>article>span>small { color: #718196; font-size: 11px; }.hew-content .hew-product-ranking>article>strong { color: #244b77; font-size: 12px; }
.hew-content .hew-finance-platform { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; padding: 16px 19px; border: 1px solid #dce5ed; border-radius: 13px; background: #fff; }.hew-content .hew-finance-platform>article { display: flex; align-items: center; gap: 11px; color: #376da3; }.hew-content .hew-finance-platform>article>span { display: grid; gap: 2px; }.hew-content .hew-finance-platform>article>span>b { color: #244363; font-size: 17px; }.hew-content .hew-finance-platform>article>span>small { color: #718196; font-size: 11px; }

@media(max-width:1280px){.hew-content .hew-finance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.hew-content .hew-finance-board,.hew-content .hew-finance-lower{grid-template-columns:1fr}.hew-content .hew-payment-list{min-height:auto}}
@media(max-width:720px){.hew-checkout-review{padding:19px 15px}.hew-checkout-review>header{align-items:flex-start;flex-direction:column}.hew-checkout-item{grid-template-columns:minmax(0,1fr) 38px;gap:10px;padding:13px 0}.hew-checkout-item-product{grid-column:1/-1}.hew-checkout-item-total{grid-column:2;grid-row:2;min-width:0}.hew-checkout-remove{grid-column:2;grid-row:1;justify-self:end}.hew-checkout-review>footer{align-items:flex-start;flex-direction:column}.hew-content .hew-finance-heading{align-items:flex-start;flex-direction:column;gap:13px}.hew-content .hew-finance-summary,.hew-content .hew-finance-platform{grid-template-columns:1fr}.hew-content .hew-finance-card-title{flex-direction:column}.hew-content .hew-chart-total{text-align:left}.hew-content .hew-invite-row{grid-template-columns:1fr 38px}.hew-content .hew-invite-row>.form-field:first-child{grid-column:1/-1}.hew-app-header .header-dracma{padding-inline:8px}}

/* Área privada do cliente: detalhes do pedido, licenças e downloads. */
body.hew-order-modal-open { overflow: hidden; }
.hew-content .hew-order-trigger { border: 0; cursor: pointer; }
.hew-order-modal[hidden] { display: none !important; }
.hew-order-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 30px 18px; isolation: isolate; }
.hew-order-backdrop { position: absolute; inset: 0; background: rgba(17,37,59,.65); backdrop-filter: blur(4px); cursor: pointer; }
.hew-order-dialog { width: min(780px,100%); max-height: min(900px,calc(100vh - 60px)); position: relative; z-index: 1; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.42); border-radius: 20px; outline: 0; background: #fff; box-shadow: 0 30px 85px rgba(13,29,46,.3); }
.hew-order-header { position: relative; flex: 0 0 auto; padding: 27px 32px 25px; color: #fff; background: radial-gradient(circle at 85% 20%,rgba(99,161,216,.2),transparent 36%),linear-gradient(120deg,#183351,#3065a7); }
.hew-order-kicker { display: inline-flex; align-items: center; gap: 8px; color: #d8e7f6; font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.hew-order-header h2 { margin: 12px 0 5px; color: #fff; font-size: clamp(25px,4vw,32px); line-height: 1.18; letter-spacing: -.035em; }
.hew-order-header p { max-width: 570px; margin: 0; color: #dfeaf5; font-size: 14px; line-height: 1.55; }
.hew-order-close { width: 38px; height: 38px; position: absolute; top: 23px; right: 25px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 10px; color: #fff; background: rgba(255,255,255,.09); cursor: pointer; }
.hew-order-close:hover { background: rgba(255,255,255,.18); }
.hew-order-body { min-height: 0; padding: 23px 30px 21px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.hew-order-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; padding: 17px 15px; border: 1px solid #e1e9f0; border-radius: 13px; background: #f7f9fc; }
.hew-order-facts>article { min-width: 0; display: grid; align-content: start; gap: 6px; }
.hew-order-facts>article>span { color: #728196; font-size: 11px; font-weight: 700; }
.hew-order-facts>article>strong { overflow-wrap: anywhere; color: #173150; font-size: 13px; line-height: 1.35; }
.hew-order-facts>article>small { color: #728196; font-size: 11px; }
.hew-order-facts .hew-order-status.is-paid { color: #128057; }
.hew-order-facts .hew-order-status.is-pending { color: #a56d1a; }
.hew-order-section { margin-top: 22px; }
.hew-order-section>header { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.hew-order-section>header>i { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 39px; border-radius: 10px; color: #3065a7; background: #eaf1f8; }
.hew-order-section>header>span { display: grid; gap: 4px; }
.hew-order-section>header>span>small { color: #718297; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.hew-order-section>header>span>h3 { margin: 0; color: #183457; font-size: 16px; line-height: 1.2; }
.hew-order-featured-product { min-height: 80px; padding: 12px 13px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 13px; border: 1px solid #e1e9f0; border-radius: 12px; }
.hew-order-featured-product>i { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; color: #3065a7; background: #edf3f9; }
.hew-order-featured-product>i>img { width: 100%; height: 100%; object-fit: cover; }
.hew-order-featured-product>span { min-width: 0; display: grid; gap: 5px; }
.hew-order-featured-product>span>strong { color: #173150; font-size: 14px; line-height: 1.4; }
.hew-order-featured-product>span>small { color: #728196; font-size: 12px; }
.hew-order-featured-product>b { color: #214b78; font-size: 14px; white-space: nowrap; }
.hew-order-license-section>header>i { color: #926119; background: #fff4dc; }
.hew-order-license { padding: 14px 15px; border: 1px solid #eedfbe; border-radius: 12px; background: linear-gradient(135deg,#fffdf7,#fff9ee); }
.hew-order-license+.hew-order-license { margin-top: 11px; }
.hew-order-license-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hew-order-license-top>span { color: #765828; font-size: 12px; font-weight: 700; }
.hew-order-license-top>b { color: #128057; font-size: 12px; }
.hew-order-license-code { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 10px 12px; border: 1px solid #e6d5ae; border-radius: 9px; background: #fff; }
.hew-order-license-code>code { min-width: 0; overflow-wrap: anywhere; color: #173150; font-family: Consolas,Monaco,monospace; font-size: 14px; font-weight: 750; letter-spacing: .025em; }
.hew-order-license-code>button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 0; border-radius: 7px; color: #3065a7; background: #eef4fa; font-size: 12px; font-weight: 750; cursor: pointer; }
.hew-order-license-code>button.copied { color: #128057; background: #e8f7ef; }
.hew-order-license>small { display: block; margin-top: 9px; color: #765828; font-size: 12px; }
.hew-order-license-help { margin: 9px 0 0; color: #728196; font-size: 12px; }
.hew-order-license-external { padding: 14px; overflow-wrap: anywhere; border: 1px solid #eedfbe; border-radius: 12px; color: #173150; background: #fffaf0; font-size: 14px; }
.hew-order-license-external ul,.hew-order-license-external p { margin: 7px 0; }
.hew-order-items { border: 1px solid #e1e9f0; border-radius: 12px; }
.hew-order-items>article { min-height: 62px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.hew-order-items>article+article { border-top: 1px solid #edf1f4; }
.hew-order-items>article>span { display: grid; gap: 4px; }
.hew-order-items>article>span>strong,.hew-order-items>article>b { color: #173150; font-size: 13px; }
.hew-order-items>article>span>small { color: #728196; font-size: 11px; }
.hew-order-download-button { min-height: 52px; display: flex; align-items: center; gap: 11px; padding: 0 15px; border-radius: 10px; color: #fff !important; background: linear-gradient(105deg,#3065a7,#244c78); font-size: 14px; font-weight: 750; text-decoration: none; }
.hew-order-download-button+.hew-order-download-button { margin-top: 9px; }
.hew-order-download-button>span { min-width: 0; flex: 1 1 auto; }
.hew-order-download-button:hover { filter: brightness(1.07); }
.hew-order-download-pending { margin: 0; padding: 13px; border: 1px solid #e1e9f0; border-radius: 10px; color: #627387; background: #f8fafc; font-size: 13px; }
.hew-order-customer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e8edf2; }
.hew-order-customer>span { display: inline-flex; align-items: center; gap: 7px; color: #627387; font-size: 12px; }

@media(max-width:620px){.hew-order-modal{padding:10px}.hew-order-dialog{max-height:calc(100vh - 20px);border-radius:16px}.hew-order-header{padding:23px 20px 20px}.hew-order-close{top:17px;right:16px}.hew-order-header h2{padding-right:32px}.hew-order-body{padding:18px 16px}.hew-order-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 12px}.hew-order-featured-product{grid-template-columns:46px minmax(0,1fr)}.hew-order-featured-product>i{width:46px;height:46px}.hew-order-featured-product>b{grid-column:2}.hew-order-license-code{align-items:stretch;flex-direction:column}.hew-order-license-code>button{justify-content:center}.hew-order-customer{align-items:flex-start;flex-direction:column}}
@media(max-width:760px){.hew-product-modes-guide>div,.hew-area-explainer,.hew-plan-choice-grid{grid-template-columns:1fr}.enw-product-access-note{font-size:11px}.hew-content .hew-profile-hero-photo{flex-wrap:wrap}.hew-content .hew-profile-photo-trigger{width:100%;justify-content:center}.hew-plan-fieldset{padding:13px}.hew-plan-coverage{padding:12px}.hew-content .hew-store-access-modes{gap:10px}}

/* Administração front-end do Gerador de Licenças — o plugin original não é alterado. */
.hew-license-heading { align-items: center; }
.hew-license-connection { min-width: 205px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #cce8d9; border-radius: 12px; color: #168761; background: #eff9f3; }
.hew-license-connection > span { display: grid; gap: 3px; }
.hew-license-connection b { color: #166f50; font-size: 13px; }
.hew-license-connection small { color: #5e806f; font-size: 11px; }
.hew-license-tabs { margin: 0 0 20px; display: flex; gap: 7px; overflow-x: auto; border-bottom: 1px solid #dce4eb; }
.hew-license-tabs > a { min-height: 45px; flex: 0 0 auto; padding: 0 14px; display: inline-flex; align-items: center; border-bottom: 3px solid transparent; color: #66778c; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hew-license-tabs > a:hover { color: #3065a7; }
.hew-license-tabs > a.active { border-bottom-color: #3065a7; color: #244f80; }
.hew-license-unavailable { display: grid; justify-items: start; gap: 8px; }
.hew-license-unavailable > svg { color: #3065a7; }
.hew-license-unavailable > h3, .hew-license-unavailable > p { margin: 0; }
.hew-license-metrics .metric-card { color: inherit; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.hew-license-metrics .metric-card:hover, .hew-license-metrics .metric-card.active { border-color: #61afd2; box-shadow: 0 8px 22px rgba(48,101,167,.1); transform: translateY(-1px); }
.hew-license-metrics .metric-card > i.gold { color: #a77615; background: #fff3da; }
.hew-license-list-card { padding: 0; overflow: hidden; }
.hew-license-filters { padding: 18px; display: grid !important; grid-template-columns: minmax(270px,1fr) minmax(180px,250px) auto auto; align-items: center; gap: 10px !important; border-bottom: 1px solid #e8edf2; }
.hew-license-filters > label { min-height: 43px; padding: 0 12px; display: flex !important; align-items: center; gap: 8px; border: 1px solid #dce5ed; border-radius: 9px; color: #7a899b; background: #fff; }
.hew-license-filters > label > input { min-width: 0; height: 41px; padding: 0; border: 0; outline: 0; font-size: 13px; }
.hew-license-filters > select { min-height: 43px; padding: 0 11px; border: 1px solid #dce5ed; border-radius: 9px; color: #35485f; background: #fff; }
.hew-license-table { min-width: 1060px; }
.hew-license-table th:first-child, .hew-license-table td:first-child { padding-left: 18px; }
.hew-license-table th:last-child, .hew-license-table td:last-child { padding-right: 18px; }
.hew-license-key { display: flex; align-items: center; gap: 7px; }
.hew-license-key > code { padding: 6px 8px; border-radius: 7px; color: #284969; background: #f3f5fa; font-size: 12px; white-space: nowrap; }
.hew-license-key > button, .hew-license-current-key > button, .hew-license-copy-field > button { min-height: 32px; padding: 0 9px; border: 0; border-radius: 7px; color: #3065a7; background: #eaf2fa; font-size: 11px; font-weight: 750; cursor: pointer; }
.hew-license-key > button.copied, .hew-license-current-key > button.copied, .hew-license-copy-field > button.copied { color: #168761; background: #e5f8f0; }
.hew-license-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hew-license-actions > a { color: #3065a7; font-size: 11px; font-weight: 700; text-decoration: none; }
.hew-license-actions > a.danger { color: #d82f43; }
.hew-license-empty { min-height: 210px; display: grid; place-content: center; justify-items: center; gap: 7px; color: #7b8999; text-align: center; }
.hew-license-empty > svg { color: #61afd2; }
.hew-license-empty > b { color: #31465d; font-size: 15px; }
.status-tag.danger { color: #c72c42; background: #fff0f2; }
.hew-license-form-card { max-width: 1050px; }
.hew-license-current-key { margin-bottom: 18px; padding: 14px; display: flex; align-items: center; gap: 11px; border: 1px solid #efdfbe; border-radius: 11px; color: #7c633b; background: #fffaf0; }
.hew-license-current-key > span { font-size: 12px; font-weight: 700; }
.hew-license-current-key > code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: #173150; font-size: 15px; font-weight: 750; }
.hew-license-help { margin: 0 0 16px; color: #6a7b90; font-size: 13px; line-height: 1.6; }
.hew-license-form-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.hew-license-sites { margin-top: 24px; padding-top: 21px; border-top: 1px solid #e7edf2; }
.hew-license-sites > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hew-license-sites > header > h3 { margin: 0; font-size: 16px; }
.hew-license-sites > header > span { color: #78879a; font-size: 12px; }
.hew-license-sites > p { color: #728196; font-size: 13px; }
.hew-license-sites > div { margin-top: 12px; display: grid; gap: 9px; }
.hew-license-sites article { min-height: 61px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid #e2e9ef; border-radius: 10px; background: #f9fbfc; }
.hew-license-sites article > svg { flex: 0 0 auto; color: #168761; }
.hew-license-sites article > span { min-width: 0; display: grid; gap: 4px; }
.hew-license-sites article b { color: #284057; font-size: 13px; }
.hew-license-sites article small { color: #758496; font-size: 11px; }
.hew-license-woo-card > .card-heading > span { color: #3065a7; font-size: 12px; font-weight: 750; }
.hew-license-woo-card > form { display: block !important; }
.hew-license-woo-table { min-width: 850px; }
.hew-license-woo-table tr { transition: background .2s ease; }
.hew-license-woo-table tr.active { background: #f2faf5; }
.hew-license-woo-table td > input, .hew-license-woo-table td .hew-license-number > input { width: 100%; min-height: 40px; padding: 0 9px; border: 1px solid #dce5ed; border-radius: 8px; color: #284057; background: #fff; }
.hew-license-woo-table td:nth-child(4) input { width: 80px; }
.hew-license-woo-table td:nth-child(5) input { width: 86px; }
.hew-license-number { display: flex; align-items: center; gap: 6px; }
.hew-license-number > small { color: #78879a; font-size: 11px; }
.hew-license-switch { width: 39px; height: 23px; position: relative; display: inline-flex; }
.hew-license-switch > input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.hew-license-switch > i { width: 39px; height: 23px; position: relative; border-radius: 999px; background: #ccd5de; cursor: pointer; transition: background .2s ease; }
.hew-license-switch > i::after { width: 17px; height: 17px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(23,49,80,.18); content: ''; transition: transform .2s ease; }
.hew-license-switch > input:checked + i { background: #168761; }
.hew-license-switch > input:checked + i::after { transform: translateX(16px); }
.hew-license-settings { display: grid; gap: 17px; }
.hew-license-settings > .workspace-card { display: block; }
.hew-license-copy-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.hew-license-copy-field > input { min-width: 0; }
.hew-license-copy-field > button { min-height: 46px; padding-inline: 13px; }

@media (max-width: 900px) {
    .hew-license-filters { grid-template-columns: 1fr 1fr; }
    .hew-license-filters > label { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .hew-license-connection { width: 100%; }
    .hew-license-tabs { margin-inline: -13px; padding-inline: 13px; }
    .hew-license-filters { grid-template-columns: 1fr; padding: 14px; }
    .hew-license-filters > label { grid-column: auto; }
    .hew-license-filters > .button { width: 100%; justify-content: center; }
    .hew-license-current-key { align-items: stretch; flex-direction: column; }
    .hew-license-current-key > button { min-height: 39px; }
    .hew-license-form-actions { flex-direction: column; }
    .hew-license-form-actions > .button { width: 100%; justify-content: center; }
    .hew-license-sites > header { align-items: flex-start; flex-direction: column; }
    .hew-license-sites article { align-items: flex-start; }
    .hew-license-copy-field { grid-template-columns: 1fr; }
}

/* Responsive safety layer for every member and administrator screen. */
.hew-content .workspace-card, .hew-content .table-wrap, .hew-content form, .hew-content fieldset { min-width: 0; max-width: 100%; }
.hew-content .table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.hew-content img, .hew-content video, .hew-content iframe { max-width: 100%; }
.hew-content .workspace-heading { min-width: 0; flex-wrap: wrap; }
.hew-content .workspace-heading > div { min-width: 0; }
.hew-content .workspace-heading h2, .hew-content .workspace-heading p { overflow-wrap: anywhere; }

@media (max-width: 950px) {
    .hew-main.app-body, .hew-content.page { width: 100%; max-width: 100%; min-width: 0; }
    .hew-content .data-table { min-width: 680px; }
    .hew-content .manager-nav { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 620px) {
    .hew-app-header.app-header { padding-inline: 12px; gap: 8px; }
    .hew-app-header > div { gap: 8px; }
    .hew-app-header > div > span { min-width: 0; }
    .hew-app-header > div > span > small { display: none; }
    .hew-app-header > div > span > h1 { max-width: 118px; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
    .hew-app-header > section { flex: 0 0 auto; gap: 6px; }
    .hew-app-header .hew-header-cart, .hew-app-header .notification, .hew-app-header .profile-button, .hew-mobile-menu { width: 38px; height: 38px; }
    .hew-app-header .header-dracma { min-width: 38px; min-height: 38px; padding-inline: 7px; }
    .hew-content.page { padding: 21px 13px 70px; }
    .hew-content .workspace-card { padding: 16px; }
    .hew-content .workspace-heading { align-items: stretch; flex-direction: column; gap: 13px; }
    .hew-content .workspace-heading > .button { width: 100%; justify-content: center; }
    .hew-content .notification-list > article { min-height: 82px; grid-template-columns: 36px minmax(0, 1fr) 8px; gap: 10px; padding: 14px 0; }
    .hew-content .notification-list > article > i { width: 36px; height: 36px; }
    .hew-content .notification-list .hew-notice-content > b { font-size: 14px; }
    .hew-content .notification-list .hew-notice-content > p { font-size: 13px; line-height: 1.55; }
    .hew-content .hew-notice-action { min-height: 38px; align-items: center; }
    .hew-content .dracma-ledger-list > article { align-items: flex-start; flex-direction: column; }
    .hew-content .hew-finance-period { width: 100%; max-width: 100%; overflow-x: auto; }
    .hew-content .hew-finance-period > a { flex: 1 0 auto; }
    .hew-content input, .hew-content textarea, .hew-content select, .hew-content button { max-width: 100%; }
}

@media (max-width: 480px) {
    .hew-app-header .profile-button { display: none; }
    .hew-app-header > div > span > h1 { max-width: 104px; }
    .hew-content .data-table { min-width: 620px; }
    .hew-content .notification-list { padding: 13px; }
    .hew-content .notification-list > article { grid-template-columns: 34px minmax(0, 1fr); }
    .hew-content .notification-list > article > i { width: 34px; height: 34px; }
    .hew-content .notification-list > article > .hew-notice-status { position: absolute; top: 20px; right: 1px; }
    .hew-content .notification-list .hew-notice-content { padding-right: 13px; }
}
