/* Shared visual finish. Presentation only: access, billing and JS hooks stay intact. */
.member-theme,.admin-workspace {
    --ink:#1c2e46;--muted:#62738b;--line:#e4eaf2;--canvas:#f6f8fc;
    --ui-accent:#bd450d;--ui-soft:#fff2e9;--ui-shadow:0 4px 6px -5px #263f6221,0 14px 32px -22px #263f6224;
    background:var(--canvas);
}
.app-shell main {padding-top:30px}
.app-shell .sidebar {border-right:1px solid var(--line);background:linear-gradient(180deg,#fff 70%,#fbfcfe)}
.app-shell .sidebar .nav-link {border-radius:11px;transition:background .18s,color .18s}
.member-theme .sidebar .nav-link.selected {background:var(--ui-soft);color:#a83f0f;box-shadow:inset 3px 0 #dc6c32}
.member-theme .sidebar .nav-link.selected>.icon {color:#c75217}
.app-shell .sidebar .nav-link:hover {background:#f1f5fa}
.app-shell .sidebar .profile {border-top-color:var(--line)}
.app-shell .avatar {border-radius:12px;background:#fff0e5;color:#ac4718;font-weight:750}
.app-shell .sidebar-wallet {background:linear-gradient(115deg,#22344e,#304965);border:1px solid #344b68;padding:12px;border-radius:12px}
.app-shell .sidebar-wallet a,.app-shell .sidebar-wallet a strong {color:#fff}
.app-shell .sidebar-wallet button {background:#ffffff15;color:#ffbc8f;border:1px solid #ffffff16;border-radius:8px}
.app-shell .topbar {border-color:#e8edf4;background:#ffffffed}
.app-shell .topbar .language-picker summary {background:#fbfcfe;border:1px solid #e6ecf3;border-radius:11px;padding:9px 11px}
.app-shell .notice-picker summary {border:1px solid #e6ecf3;border-radius:11px;background:#fbfcfe}
.app-shell .notice-menu,.app-shell .language-options {border-radius:16px;box-shadow:0 12px 42px -12px #263f6233}
.app-shell .page-heading h1 {font-weight:750;letter-spacing:-.8px;line-height:1.3}
.app-shell .page-heading .eyebrow {color:#9e501f;letter-spacing:.1em}
.app-shell .page-heading p:not(.eyebrow) {margin-top:7px}
.app-shell .section-heading h2 {font-weight:750;letter-spacing:-.3px}
.app-shell .button {border-radius:11px;transition:background .18s,border-color .18s,box-shadow .18s}
.app-shell .button.primary {background:linear-gradient(180deg,#ce4c0c,#bd4007);border-color:#bd420a;box-shadow:0 5px 12px -6px #a3452455,inset 0 1px 0 #ffffff20}
.app-shell .button.primary:hover {background:#b63e08;border-color:#ad3d09;box-shadow:0 7px 16px -7px #9d3b2455}
.app-shell .button.secondary,.app-shell .button.outline {background:#fff;border-color:#dfe6ef;color:#465d79;box-shadow:0 2px 3px #23355203}
.app-shell .button.secondary:hover,.app-shell .button.outline:hover {background:#f8fafd;border-color:#becddd}
.app-shell .button:disabled {box-shadow:none}
.app-shell .button.small {border-radius:9px}
.app-shell :is(a,button,input,textarea,select,summary):focus-visible {outline:3px solid #648cc3;outline-offset:3px}
.app-shell :is(.panel,.member-history,.package-card,.market-subscription,.key-card) {border-color:var(--line);border-radius:19px;box-shadow:var(--ui-shadow)}
.app-shell .field>label,.app-shell label.field>span {font-size:12px;font-weight:650;color:#425873;line-height:1.6}
.app-shell .field :is(input,select,textarea),.app-shell .filter-form :is(input:not([type=checkbox]),select) {border-radius:10px;border-color:#dce5ef;background:#fcfdff;transition:border-color .18s,box-shadow .18s}
.app-shell .field :is(input,select,textarea):focus {background:#fff;border-color:#91a9c8;box-shadow:0 0 0 3px #dfe9f666}
.app-shell .field input:read-only,.app-shell .field textarea:read-only {background:#f5f7fa}
.app-shell :is(.alert,.notice,.renewal-policy) {border-radius:13px;line-height:1.8;font-size:12px}
.app-shell .alert {padding:15px 18px;box-shadow:0 3px 10px -8px #24543b33}
.app-shell .badge {border-radius:7px}
.app-shell .empty-state {padding:40px 24px;background:radial-gradient(ellipse at 50% 0,#f1f5fb,transparent 65%)}
.app-shell .empty-state>.icon {box-sizing:content-box;padding:15px;border:1px solid #e2e9f2;border-radius:19px;background:#fff;color:#748ba9;width:25px;height:25px;box-shadow:0 8px 20px -13px #3f5b8755;margin-bottom:16px}
.app-shell .empty-state h3 {color:#263d59}
.app-shell .empty-state .button {margin-top:20px}
/* A quiet light welcome surface; content and actual metrics remain the focus. */
.app-shell .dashboard-welcome {background:radial-gradient(ellipse at 100% 0,#fff0e4,transparent 58%),radial-gradient(ellipse at 75% 100%,#edf3fc,transparent 55%),#fff;border:1px solid #e3e9f1;border-radius:24px;box-shadow:var(--ui-shadow);padding:32px 36px;min-height:190px}
.app-shell .dashboard-welcome:after {width:240px;height:240px;top:-153px;right:16%;border-color:#e8ded326;box-shadow:0 0 0 36px #eadbca0d,0 0 0 72px #eadbca0a}
.app-shell .dashboard-welcome .eyebrow {display:inline-flex;background:#fff;border:1px solid #efddce;border-radius:20px;color:#a74b19;padding:5px 10px;font-size:9px;letter-spacing:.1em}
.app-shell .dashboard-welcome h1 {color:#1a2d46;font-size:32px;letter-spacing:-1px}
.app-shell .dashboard-welcome p {color:#61748d;font-size:13px;max-width:510px}
.app-shell .welcome-plan {color:#657a95;gap:8px}
.app-shell .welcome-plan>.icon {color:#b66b3c}
.app-shell .welcome-actions .secondary {background:#ffffffbc;border-color:#dce5ef;color:#425c7d}
.app-shell .overview-cards {gap:18px;margin:24px 0}
.app-shell .overview-cards .stat.card {position:relative;border-radius:18px;padding:21px 22px;border-color:#e3eaf3;box-shadow:var(--ui-shadow);background:linear-gradient(145deg,#fff 75%,#fafcff)}
.app-shell .overview-cards .stat-label {font-size:12px;gap:12px;color:#61748e;line-height:1.6}
.app-shell .overview-cards .stat-value {font-size:32px;font-weight:750;letter-spacing:-1px;color:#203550;margin-top:11px}
.app-shell .stat-icon {width:38px;height:38px;border-radius:13px;border:1px solid #ffffffaa;box-shadow:inset 0 1px 0 #ffffff7a}
.app-shell .overview-cards .stat-meta {color:#70819a}
.app-shell .workspace-services>a {border-color:#e1e8f1;padding:9px 13px;box-shadow:0 2px 4px #23355203}
.app-shell .workspace-services>a:hover {background:#fff9f4;border-color:#e8c7af}
.app-shell .workspace-services>a[aria-current] {background:#fff5ed;border-color:#eac4a8;color:#a64a1d}
.app-shell .hub-composer {padding:26px;border-radius:20px;background:linear-gradient(135deg,#fff 78%,#fcfdff);box-shadow:var(--ui-shadow)}
.app-shell .hub-composer .section-title {margin-bottom:21px}
.app-shell .hub-composer h2 {font-size:18px;letter-spacing:-.35px;color:#243b58}
.app-shell .composer-brand {width:44px;height:44px;border-radius:14px;background:#fff4eb;border:1px solid #f5e1d1;box-shadow:inset 0 1px #fff}
.app-shell .link-input-wrap {background:#f8fafd;border-color:#dce5f0;border-radius:13px;padding:6px 7px 6px 12px;min-height:53px}
.app-shell .link-input-wrap:focus-within {background:#fff;border-color:#8ba6c8;box-shadow:0 0 0 3px #e6edf766}
.app-shell .paste-button {border-radius:9px;box-shadow:0 2px 5px #263f6206}
.app-shell .composer-submit {border-radius:12px;padding-inline:23px}
.app-shell .composer-access {border-radius:12px}
.app-shell .market-subscription-top {border-top:0;border-bottom:1px solid #edf1f6;padding:20px;background:linear-gradient(120deg,#fff,#fcfdff)}
.app-shell .market-subscription-top .brand-icon {width:42px;height:42px;border:1px solid #e5ebf2;border-radius:13px;background:#fff;box-shadow:0 3px 8px #263f6205}
.app-shell .market-subscription-top h3 {font-size:15px;letter-spacing:-.25px}
.app-shell .usage-compact .card-body {padding:18px 20px}
.app-shell .usage-compact .usage-available {border:1px solid #e6edf5;background:linear-gradient(120deg,#f5f8fd,#fafcff);border-radius:12px;padding:14px}
.app-shell .usage-compact .usage-amount strong {font-size:29px;color:#24415f}
.app-shell .usage-compact .usage-countdown-footer {background:#f9fbfe;border-top:1px solid #e9eef5;padding:12px 20px}
.app-shell .dashboard-recent>.section-heading {padding:21px 22px;background:linear-gradient(120deg,#fff,#fafcfe)}
.app-shell .recent-item {padding:16px 22px;transition:background .18s}
.app-shell .recent-item:hover {background:#fafcfe}
.app-shell .recent-brand {border:1px solid #e8edf4;background:#fff;border-radius:12px}
.app-shell .recent-item .icon-button {border-radius:10px;background:#fafcfe}
.app-shell .market-hero {position:relative;isolation:isolate;border-radius:22px;padding:28px 30px;background:radial-gradient(ellipse at 95% 100%,#425b7c,transparent 70%),linear-gradient(115deg,#172940,#263d5a);box-shadow:0 14px 30px -20px #1e375c88}
.app-shell .market-hero:after {display:block;content:'';position:absolute;inset:auto -90px -230px auto;width:410px;height:410px;border:1px solid #ffffff12;border-radius:50%;box-shadow:0 0 0 42px #ffffff04,0 0 0 84px #ffffff03;pointer-events:none;z-index:-1}
.app-shell .market-hero h1 {font-size:29px;letter-spacing:-.7px}
.app-shell .market-hero .brand-icon {border-radius:15px;background:#ffffff12}
.app-shell .package-card {background:linear-gradient(160deg,#fff 70%,#fafcfe);border-radius:21px;transition:border-color .18s,box-shadow .18s}
.app-shell .package-card:hover {border-color:#d5dfec;box-shadow:0 12px 35px -22px #26415a44}
.app-shell .package-emblem {border-radius:13px;background:#fff1e6;border:1px solid #f0dece;color:#b9511c}
.app-shell .package-card h2 {letter-spacing:-.5px}
.app-shell .package-price strong {font-weight:750;letter-spacing:-1.5px;color:#1d3452}
.app-shell .package-fact,.app-shell .package-services li {border-radius:11px;background:#f5f8fc;border-color:#e9eef6}
.app-shell .package-card-footer {background:transparent}
.app-shell .wallet-summary>.panel {position:relative;background:radial-gradient(ellipse at 100% 0,#fff2e7,transparent 70%),#fff;padding:24px}
.app-shell .wallet-summary strong {color:#263f60;letter-spacing:-1px}
.app-shell .key-card {background:radial-gradient(ellipse at 100% 0,#fff5ec,transparent 62%),#fff;padding:28px}
.app-shell .key-card h2 {display:flex;align-items:center;gap:12px;color:#243c5a}
.app-shell .key-card h2>.icon {box-sizing:content-box;padding:10px;border-radius:12px;background:#fff0e5;border:1px solid #f4dfcd;width:21px;height:21px;color:#b94a14}
/* Shared administration surfaces: readable tables, quieter borders, compact controls. */
.admin-workspace .app-shell .sidebar {background:linear-gradient(165deg,#1b2b42,#142239);border-color:#263a54}
.admin-workspace .sidebar .nav-link:hover {background:#ffffff0b}
.admin-workspace .sidebar .nav-link.selected {background:linear-gradient(110deg,#fff1e6,#fbe4d5);color:#963c10;box-shadow:inset 3px 0 #ef985f;border-color:#ffffff12}
.admin-workspace .sidebar .wordmark.site-wordmark {border-color:#ffffff14}
.admin-workspace .app-shell .sidebar .profile {border-color:#ffffff14}
.admin-workspace .admin-sidebar-heading,.admin-workspace .admin-return-link {border-radius:13px}
.app-shell .form-panel {border-top:1px solid var(--line);scroll-margin-top:90px}
.app-shell .admin-section-title,.app-shell details.form-panel>summary {background:linear-gradient(110deg,#f9fbfe,#fff);padding:18px 22px}
.app-shell details.form-panel>summary {border-radius:18px 18px 0 0}
.app-shell .admin-section-title h2 {font-weight:700}
.app-shell .admin-table {--bs-table-striped-bg:#fafcfe;--bs-table-hover-bg:#f3f7fc;--bs-table-border-color:#e9eef5}
.app-shell .admin-table>thead>tr>th,.app-shell .support-table th {background:#f7f9fc;color:#586e8a;border-color:#e6edf5;font-size:11px;letter-spacing:.02em}
.app-shell .admin-table>tbody>tr>td,.app-shell .support-table td {border-color:#eaf0f6}
.app-shell .support-table .support-topic {min-width:180px;max-width:380px}
.app-shell .log-metric {border-radius:18px;box-shadow:var(--ui-shadow)}
.app-shell .log-metric .metric-icon {border-radius:13px}
.app-shell .log-register-heading {background:linear-gradient(110deg,#fff,#fafcff);padding-block:17px}
.app-shell .log-state-tab {border-radius:10px}
.app-shell .log-state-tab[aria-current=page] {background:#fff4eb;border-color:#efcfb9;color:#a84b1b;box-shadow:none}
.app-shell .log-filters {border-radius:18px}
.app-shell .ui-pagination a,.app-shell .mh-pages a {border-radius:9px}
.app-shell .download-card {border-radius:18px;background:radial-gradient(ellipse at 100% 0,#eaf7f0,transparent 58%),#fff;box-shadow:0 9px 24px -18px #274b3b44}
.app-shell .support-message {border-radius:15px;background:#f7f9fc;border-color:#e4ebf4}
.app-shell .support-message.from-support {background:#fff8f2;border-color:#f0e2d5;border-left:3px solid #d8844f}
.app-shell .support-details {background:linear-gradient(140deg,#fff,#fafcff)}
/* One announcement editor and one shared member feed, never country/language tabs. */
.app-shell .announcement-editor {padding:28px;max-width:100%;overflow:hidden}
.announcement-editor-heading {display:flex;align-items:center;gap:14px;margin-bottom:23px}
.app-shell .announcement-editor-heading h2 {margin:4px 0 0;font-size:20px;letter-spacing:-.4px}
.app-shell .announcement-editor-heading .eyebrow {color:#936548;font-size:10px}
.app-shell .announcement-icon {width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#fff4eb,#ffe9da);border:1px solid #f3decc;color:#b95320;box-shadow:0 5px 12px -8px #af704255}
.announcement-audience {display:flex;align-items:flex-start;gap:12px;padding:16px 18px;background:linear-gradient(120deg,#f1f6fc,#fafcfe);border:1px solid #e1eaf5;border-radius:14px;margin:0 0 24px}
.announcement-audience>.icon {color:#587ca8;width:20px;height:20px;flex:none;margin-top:2px}
.announcement-audience strong {color:#344f72;font-size:13px;font-weight:700}
.announcement-audience p {font-size:12px;color:#5f7590;line-height:1.8;margin:5px 0 0;max-width:750px}
.announcement-compose {max-width:980px;margin-top:22px;min-width:0}
.app-shell .announcement-compose .field {gap:7px;margin-bottom:20px}
.app-shell .announcement-compose input {min-height:46px;font-size:14px}
.app-shell .announcement-compose textarea {padding:15px;min-height:180px;font-size:14px;line-height:1.9}
.announcement-compose h3 {font-size:20px;margin-bottom:15px;overflow-wrap:anywhere}
.app-shell .announcement-legacy {font-size:11px;color:#6c7e94}
.app-shell .announcement-publish {border-top:1px solid #e6edf5;padding-top:22px}
.app-shell .announcement-publish .toggle-row {max-width:600px}
.app-shell .announcement-publish .support-help {font-size:12px;max-width:750px}
.app-shell .announcement-card {padding:28px;background:radial-gradient(ellipse at 100% 0,#fff5ec,transparent 55%),#fff}
.app-shell .announcement-card header {padding-bottom:22px;border-bottom:1px solid #e9eef4;margin-bottom:22px;align-items:flex-start}
.app-shell .announcement-card h2 {font-size:21px;letter-spacing:-.4px;line-height:1.5;color:#253d59}
.app-shell .announcement-card .eyebrow {color:#9b6140;font-size:9px;letter-spacing:.08em}
.app-shell .announcement-card time {color:#70829a;font-size:11px}
.app-shell .announcement-card .support-body {max-width:1000px;color:#3e5470;font-size:14px;line-height:1.95}
.app-shell .announcement-card form {display:flex;justify-content:flex-end;border-top:1px solid #edf1f6;padding-top:18px;margin-top:24px}
.app-shell .footer {width:100%;max-width:1920px;color:#6e819a;border-top:1px solid #e8edf5;margin-top:22px;padding-top:20px}
/* Guest entry shares the same restrained finish without changing its fields. */
body.auth-portal-page {background:radial-gradient(ellipse at 8% 8%,#ffeddf,transparent 45%),radial-gradient(ellipse at 95% 100%,#e7effa,transparent 55%),#f6f8fc}
.auth-page.auth-portal {border-radius:27px;border-color:#e0e7f0;box-shadow:0 24px 70px -40px #1c355d55}
.auth-portal .auth-brand-panel {position:relative;isolation:isolate;background:radial-gradient(ellipse at 100% 0,#6b4539aa,transparent 60%),linear-gradient(155deg,#20324b,#142237)}
.auth-portal .auth-portal-badge {border-radius:20px;background:#ffffff09;border-color:#ffffff21;color:#ffc9a5}
.auth-portal .auth-service-chip {background:#ffffff07;border-color:#ffffff22}
.auth-portal .auth-main {background:linear-gradient(150deg,#fff 80%,#fafcfe)}
.auth-portal .field input {border-radius:12px;background:#fcfdff;border-color:#dce5ef}
.auth-portal .field input:focus {background:#fff;border-color:#8ea8c7;outline:3px solid #e1eaf6;outline-offset:1px}
.auth-portal .button.primary {border-radius:12px;background:linear-gradient(#ce4c0c,#bd4007);border-color:#bd420a;box-shadow:0 6px 14px -8px #aa441755}
.auth-portal .button.primary:hover {background:#b33e09}
.auth-portal .auth-create-account,.auth-portal .language-picker summary {border-radius:12px}
@media(max-width:1250px) {
    .app-shell .overview-cards {gap:12px}.app-shell .overview-cards .stat.card {padding:18px}
    .app-shell .dashboard-welcome {padding:28px}.app-shell .dashboard-welcome h1 {font-size:28px}
}
@media(max-width:760px) {
    .app-shell main {padding-top:22px}.app-shell .topbar .language-picker summary {padding:7px 8px}
    .app-shell .dashboard-welcome {padding:24px;border-radius:20px;min-height:0}
    .app-shell .dashboard-welcome h1 {font-size:26px;letter-spacing:-.6px}
    .app-shell .dashboard-welcome p {font-size:12px}
    .app-shell .overview-cards {gap:11px;margin:18px 0}.app-shell .overview-cards .stat.card {padding:15px;border-radius:16px}
    .app-shell .overview-cards .stat-label {font-size:10px;gap:5px}.app-shell .overview-cards .stat-value {font-size:28px}
    .app-shell .stat-icon {width:30px;height:30px;border-radius:10px}
    .app-shell .hub-composer {padding:19px;border-radius:18px}.app-shell .hub-composer h2 {font-size:16px}
    .app-shell .market-hero {padding:24px;border-radius:20px}.app-shell .market-hero h1 {font-size:25px}
    .app-shell .market-subscription-top {padding:18px}.app-shell .usage-compact .card-body {padding:16px 18px}
    .app-shell .announcement-editor,.app-shell .announcement-card {padding:20px}
    .app-shell .announcement-editor-heading h2,.app-shell .announcement-card h2 {font-size:18px}
    .app-shell .announcement-compose :is(input,textarea),.app-shell .field :is(input:not([type=checkbox]):not([type=hidden]),select,textarea) {font-size:16px}
    .announcement-audience {padding:14px;gap:10px}.announcement-audience p {font-size:11px}
    .app-shell .announcement-card header {gap:12px}.app-shell .announcement-card .support-body {font-size:13px}
    .app-shell .key-card {padding:21px}.app-shell .form-panel {scroll-margin-top:76px}
    .app-shell .wallet-summary>.panel {padding:20px}
    .auth-page.auth-portal {border-radius:22px}
}
@media(prefers-reduced-motion:reduce) {
    .app-shell *, .app-shell *::after,.auth-portal * {transition:none!important;animation:none!important}
}
