      :root {
        --topbar-height: 62px;
        --module-strip-height: 38px;
        --bg: #f4f7fa;
        --surface: #ffffff;
        --surface-soft: #f8fafc;
        --line: #d7e1eb;
        --ink: #1f2b38;
        --muted: #64768a;
        --nav: #1e2631;
        --nav-2: #18202a;
        --ok: #2f9b67;
        --pending: #2f79c7;
        --expired: #c44747;
        --ok-bg: #e8f7ef;
        --pending-bg: #e8f0fd;
        --expired-bg: #fbe9e8;
      }

      * { box-sizing: border-box; }
      h1, h2, h3, h4 { margin: 0; }
      html, body {
        margin: 0;
        padding: 0;
        min-height: 100%;
        font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
        color: var(--ink);
        background: linear-gradient(180deg, #f8fbff, var(--bg));
        overflow-x: hidden;
      }

      .topbar {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 90;
        height: var(--topbar-height);
        background: linear-gradient(180deg, var(--nav), var(--nav-2));
        border-bottom: 1px solid #111820;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        transition: transform 0.22s ease, opacity 0.22s ease;
      }

      .top-left { display: flex; align-items: center; gap: 10px; }
      .top-right { margin-left: auto; display: flex; align-items: center; }

      .module-strip {
        position: sticky;
        top: var(--topbar-height);
        z-index: 24;
        width: 100%;
        background: #f2f6fb;
        border-bottom: 1px solid #d6e0ea;
        padding: 8px 12px;
        min-height: var(--module-strip-height);
        transition: transform 0.2s ease, opacity 0.2s ease;
      }

      .module-strip-title {
        font-size: 12px;
        line-height: 1.2;
        font-weight: 800;
        letter-spacing: 0.02em;
        color: #304256;
      }

      body.module-strip-hidden .module-strip {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
      }

      .menu-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.09);
        color: #edf3fb;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
      }

      .brand { display: flex; align-items: center; gap: 10px; }
      .brand-link {
        border: 0;
        padding: 0;
        background: transparent;
        cursor: pointer;
        text-align: left;
        text-decoration: none;
        color: inherit;
        font: inherit;
      }

      .brand-link:focus-visible {
        outline: 2px solid #7da1c6;
        outline-offset: 4px;
        border-radius: 12px;
      }
      .logo {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        display: grid;
        place-items: center;
        font-weight: 900;
        font-size: 12px;
        color: #2a3f54;
        border: 1px solid #bdccd9;
        background: linear-gradient(135deg, #f4f7fb, #dce7f2);
      }

      .brand h1 {
        margin: 0;
        font-size: 18px;
        color: #edf3fa;
      }

      .brand h1 span { color: #9db8d4; }

      .env-pill {
        font-size: 11px;
        color: #d8e6f4;
        border: 1px solid rgba(157, 183, 210, 0.5);
        border-radius: 999px;
        padding: 6px 9px;
      }

      .layout {
        display: flex;
        min-height: calc(100vh - (var(--topbar-height) + var(--module-strip-height)));
        position: relative;
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
      }

      .layout.sidebar-open::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 32, 0.45);
        z-index: 15;
      }

      .sidebar {
        width: 280px;
        max-width: 86vw;
        background: linear-gradient(180deg, #2a3441, #212b37);
        border-right: 1px solid #17212b;
        color: #d2deeb;
        padding: 14px;
        position: relative;
        z-index: 80;
        transition: transform 0.24s ease;
        box-shadow: 10px 0 24px rgba(0, 0, 0, 0.17);
      }

      .sidebar.hidden {
        transform: translateX(-100%);
        position: absolute;
        z-index: 80;
        height: calc(100vh - 62px);
      }

      .menu-title {
        margin: 3px 0 9px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 11px;
        color: #edf5fd;
      }

      .sidebar-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
      }

      .admin-pill {
        margin: 8px 0 12px;
        padding: 10px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.06);
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
      }

      .admin-pill:hover {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(255, 255, 255, 0.12);
      }

      .admin-avatar {
        width: 34px;
        height: 34px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
        object-fit: cover;
        flex: 0 0 auto;
      }

      .admin-meta {
        min-width: 0;
        display: grid;
        gap: 2px;
      }

      .admin-name {
        font-size: 13px;
        font-weight: 800;
        color: #f2f7fd;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .admin-email {
        font-size: 12px;
        color: rgba(210, 222, 235, 0.9);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .menu-item {
        width: 100%;
        text-align: left;
        border: 0;
        border-radius: 10px;
        margin-bottom: 8px;
        padding: 12px;
        font-size: 14px;
        font-weight: 600;
        color: #c5d3e1;
        background: transparent;
        cursor: pointer;
      }

      .menu-item.active {
        background: #3d556b;
        color: #f7fcff;
      }
      .menu-item:hover {
        background: #344b60;
        color: #f7fcff;
      }

      .content {
        flex: 1;
        min-width: 0;
        width: 100%;
        padding: 12px;
        display: grid;
        gap: 8px;
      }

      .view-section {
        display: grid;
        gap: 8px;
        min-width: 0;
        width: 100%;
      }

      .card {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 16px;
        min-width: 0;
      }

      .head h2 {
        margin: 0;
        font-size: 24px;
      }

      .head p {
        margin: 4px 0 0;
        color: var(--muted);
        font-size: 14px;
      }

      .meta { color: var(--muted); font-size: 13px; }
      .selector-picker {
        position: relative;
      }

      .selector-picker-btn {
        width: 100%;
        border: 1px solid #ccd7e1;
        border-radius: 10px;
        background: #fff;
        padding: 8px 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: #1f2c39;
        cursor: pointer;
      }

      .picker-caret {
        font-size: 16px;
        line-height: 1;
      }

      .selector-icon-only .selector-picker-btn {
        width: 56px;
        padding: 8px 7px;
        justify-content: center;
      }

      .selector-icon-only .picker-left {
        gap: 0;
      }

      .picker-left {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
      }

      .picker-logo {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        border: 1px solid #c7d6e4;
        object-fit: cover;
        background: #f2f6fb;
      }

      .picker-label {
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .selector-picker-menu {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 95;
        border: 1px solid #d3dde7;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 12px 24px rgba(12, 22, 32, 0.12);
        padding: 6px;
        display: grid;
        gap: 4px;
      }

      .picker-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 4px 6px 6px;
      }

      .icon-btn {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        border: 1px solid #cbd6e2;
        background: #fff;
        color: #2a3949;
        font-size: 14px;
        line-height: 1;
        cursor: pointer;
      }
      .selector-icon-only .selector-picker-menu {
        left: auto;
        right: 0;
        width: max-content;
        min-width: 220px;
      }

      .selector-option {
        border: 0;
        border-radius: 8px;
        background: transparent;
        text-align: left;
        padding: 7px 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        white-space: nowrap;
        cursor: pointer;
      }

      .selector-option:hover { background: #f2f6fb; }
      .selector-option.active {
        background: #e6f0fb;
        box-shadow: inset 0 0 0 1px #cbddef;
      }

      .metrics { padding: 10px; }
      .metrics-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 10px;
      }

      .metric {
        border: 1px solid #e1e8f0;
        border-radius: 12px;
        background: var(--surface-soft);
        padding: 10px;
      }

      .metric .label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--muted);
      }

      .metric .value {
        margin-top: 5px;
        font-size: 20px;
        font-weight: 800;
        color: #203142;
      }

      .search { padding: 9px 10px; }
      .search-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
      }
      .search-input-row {
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .search-input-row input {
        flex: 1;
        min-width: 0;
      }
      .search-close-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 18px;
      }
      #view-subscribers .search {
        position: sticky;
        top: calc(var(--topbar-height) + var(--module-strip-height) + 8px);
        z-index: 26;
        overflow: hidden;
      }
      #view-subscribers .search::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 3px;
        opacity: 0;
        background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(65, 133, 197, 0.95) 45%, rgba(0,0,0,0) 100%);
        transform: translateX(-70%);
        pointer-events: none;
      }
      body.is-loading #view-subscribers .search::after {
        opacity: 1;
        animation: search-sweep 0.75s ease-in-out infinite;
      }
      @keyframes search-sweep {
        0% { transform: translateX(-70%); }
        50% { transform: translateX(70%); }
        100% { transform: translateX(-70%); }
      }
      #view-subscribers .search.is-fixed {
        position: fixed;
        z-index: 50;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
      }

      body.search-fixed-active #view-subscribers {
        padding-top: var(--search-fixed-height, 0px);
      }

      body.search-collapsed .filter-row,
      body.search-collapsed .search-helper,
      body.search-collapsed .search .actions {
        display: none;
      }
      .row {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .field {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-top: 6px;
      }

      .field label {
        font-size: 12px;
        font-weight: 700;
        color: #46596d;
      }

      .field input,
      .field select {
        border: 1px solid #ccd7e1;
        border-radius: 10px;
        padding: 11px;
        font-size: 16px;
        outline: none;
        background: #fff;
        color: #1f2c39;
      }

      .field input:focus,
      .field select:focus {
        border-color: #89abc9;
        box-shadow: 0 0 0 3px rgba(86, 134, 182, 0.14);
      }

      .search-helper {
        margin-top: 10px;
        border: 1px solid #dae4ee;
        border-radius: 10px;
        background: #f8fbfd;
        padding: 8px 10px;
      }

      .filter-row {
        margin-top: 10px;
        display: grid;
        gap: 6px;
      }

      .filter-label {
        font-size: 12px;
        font-weight: 700;
        color: #46596d;
      }

      .filter-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
      }

      .filter-btn {
        border-radius: 999px;
        border: 1px solid #c7d6e4;
        background: #fff;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 700;
        color: #2a3949;
        cursor: pointer;
      }

      .filter-btn.active {
        background: #e6f0fb;
        border-color: #8eb0d4;
        color: #1f3a55;
      }

      .search-tags {
        margin-top: 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .tag {
        font-size: 12px;
        border: 1px solid #cad8e7;
        background: #edf3f8;
        color: #34516b;
        border-radius: 999px;
        padding: 5px 9px;
      }

      .tag mark {
        background: #ffe99c;
        color: #1f2b38;
        border-radius: 3px;
        padding: 0 2px;
      }

      .actions {
        margin-top: 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .btn {
        border-radius: 10px;
        border: 1px solid transparent;
        padding: 10px 13px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
      }

      .btn-primary {
        color: #fff;
        border-color: #1c2937;
        background: linear-gradient(180deg, #324255, #273545);
      }

      .btn-secondary {
        border-color: #c5d1dc;
        background: #fff;
        color: #2a3949;
      }

      .btn-danger {
        color: #fff;
        border-color: #7a1f1f;
        background: linear-gradient(180deg, #c44747, #9a2f2f);
      }

      .btn-danger:hover {
        filter: brightness(0.98);
      }

      .subscribers-section.hidden { display: none; }

      .section-head {
        padding: 8px 10px;
        border-bottom: 1px solid var(--line);
        background: var(--surface-soft);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
      }

      .section-head h3 { font-size: 16px; }

      .summary-list {
        display: grid;
        gap: 9px;
        padding: 10px;
      }

      .summary-item {
        border: 1px solid #e0e8f0;
        border-radius: 12px;
        background: #fff;
        overflow: hidden;
      }

      .summary-item > summary {
        list-style: none;
      }

      .summary-item > summary::-webkit-details-marker {
        display: none;
      }

      .summary-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px;
        cursor: pointer;
      }

      .summary-main {
        min-width: 0;
        display: grid;
        gap: 2px;
      }

      .summary-title {
        font-weight: 700;
        font-size: 14px;
      }

      .summary-sub {
        color: var(--muted);
        font-size: 12px;
      }

      .summary-right {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
      }

      .summary-caret {
        font-size: 14px;
        color: #6b7c8f;
        transition: transform 0.2s ease;
      }

      .summary-item[open] .summary-caret {
        transform: rotate(180deg);
      }

      .summary-body {
        border-top: 1px solid #edf2f7;
        padding: 10px;
        display: grid;
        gap: 10px;
      }

      .summary-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 8px;
      }

      .summary-field .k {
        font-size: 11px;
        color: #687a8d;
        text-transform: uppercase;
      }

      .summary-field .v {
        font-size: 13px;
        font-weight: 700;
        color: #243547;
      }

      .summary-actions {
        display: flex;
        justify-content: flex-end;
      }

      .summary-empty {
        padding: 12px;
        text-align: center;
        color: var(--muted);
      }

      @keyframes shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
      }

      .skeleton {
        display: inline-block;
        border-radius: 999px;
        background: linear-gradient(90deg, #edf3f9 0%, #f7fbff 45%, #edf3f9 100%);
        background-size: 200% 100%;
        animation: shimmer 1.25s ease-in-out infinite;
      }

      .sk-title { width: 180px; height: 14px; }
      .sk-sub { width: 140px; height: 12px; opacity: 0.85; }
      .sk-chip { width: 64px; height: 22px; border-radius: 999px; }
      .sk-row { width: 100%; max-width: 240px; height: 12px; opacity: 0.9; }

      .list-mobile {
        display: grid;
        gap: 9px;
        padding: 10px;
      }

      .sub-card {
        border: 1px solid #e0e8f0;
        border-radius: 12px;
        padding: 10px;
        background: #fff;
      }

      .sub-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
      }

      .sub-title { font-weight: 700; }
      .muted { color: var(--muted); font-size: 12px; }

      .sub-meta {
        margin-top: 10px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .sub-meta .k { font-size: 11px; color: #687a8d; text-transform: uppercase; }
      .sub-meta .v { font-size: 13px; font-weight: 700; color: #243547; }

      .sub-actions {
        margin-top: 10px;
        display: flex;
        justify-content: flex-end;
      }

      .table-wrap {
        display: none;
        width: 100%;
        max-width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: auto;
        pointer-events: auto;
      }
      table { width: max-content; border-collapse: collapse; min-width: 100%; }
      .subscribers-section table { min-width: 980px; }
      th, td {
        text-align: left;
        border-bottom: 1px solid #e7edf4;
        padding: 11px 12px;
        white-space: nowrap;
      }

      th {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #5c6e81;
        background: #fcfdff;
      }

      th.sortable { cursor: pointer; }

      .chip {
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
        padding: 4px 10px;
      }

      .chip.active { background: var(--ok-bg); color: #1d7e51; }
      .chip.pending { background: var(--pending-bg); color: #225f9e; }
      .chip.expired { background: var(--expired-bg); color: #963535; }

      .text-btn {
        border: 0;
        background: transparent;
        color: #2969af;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
      }

      .foot {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px 12px;
      }

      .pager { display: flex; gap: 8px; }
      .empty {
        padding: 18px 12px;
        text-align: center;
        color: var(--muted);
      }

      .panel { padding: 10px; }

      body.auth .content {
        min-height: 100vh;
        padding: 24px 12px;
        align-content: center;
        justify-items: center;
      }

      body.drop-active .landing-card {
        box-shadow: 0 0 0 3px rgba(86, 134, 182, 0.22), 0 18px 40px rgba(9, 18, 28, 0.12);
      }

      .auth-card {
        width: min(560px, 100%);
        padding: 22px;
        box-shadow: 0 18px 40px rgba(9, 18, 28, 0.12);
      }

      .auth-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 14px;
      }

      .auth-app-logo {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        border: 1px solid #bdccd9;
        background: #fff;
      }

      .auth-app-name {
        font-weight: 900;
        letter-spacing: 0.01em;
        color: #1f2b38;
      }

      .landing-card {
        width: min(980px, 100%);
        padding: 0;
        overflow: hidden;
      }

      .landing-grid {
        display: grid;
        grid-template-columns: 320px 1fr;
        align-items: stretch;
        min-height: 320px;
      }

      .landing-left {
        padding: 26px 22px;
        background: linear-gradient(180deg, #f6fbff, #eef5fb);
        border-right: 1px solid var(--line);
        display: grid;
        align-content: center;
        justify-items: center;
        gap: 12px;
      }

      .landing-logo-wrap {
        width: 190px;
        height: 190px;
        border-radius: 40px;
        border: 1px solid #cbddef;
        background: #ffffff;
        display: grid;
        place-items: center;
        box-shadow: 0 18px 40px rgba(9, 18, 28, 0.10);
      }

      .landing-logo {
        width: 150px;
        height: auto;
        filter: drop-shadow(0 10px 18px rgba(8, 18, 28, 0.12));
      }

      .landing-badge {
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #24435f;
        border: 1px solid #cbddef;
        background: rgba(230, 240, 251, 0.9);
        border-radius: 999px;
        padding: 6px 10px;
      }

      .landing-right {
        padding: 26px 22px;
        display: grid;
        gap: 10px;
        align-content: center;
      }

      .landing-right h2 {
        margin: 0;
        font-size: 26px;
        letter-spacing: 0.01em;
      }

      .avatar-row {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
      }

      .avatar-circle {
        width: 72px;
        height: 72px;
        border-radius: 999px;
        border: 1px solid #cbddef;
        background: #fff;
        overflow: hidden;
        display: grid;
        place-items: center;
      }

      .avatar-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .avatar-circle canvas {
        width: 100%;
        height: 100%;
        display: block;
      }

      .avatar-circle-lg {
        width: 140px;
        height: 140px;
      }

      .ssh-label-input {
        border: 1px solid #d6e0ea;
        background: #f8fbfd;
        color: #2a3949;
        border-radius: 10px;
        padding: 9px 10px;
        font-size: 13px;
        min-width: 240px;
      }

      .ssh-label-input:focus {
        outline: none;
        border-color: #89abc9;
        box-shadow: 0 0 0 3px rgba(86, 134, 182, 0.14);
        background: #fff;
      }

      .ssh-key-pre {
        margin: 0;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        background: #fbfdff;
        border: 1px solid #e0e8f0;
        border-radius: 12px;
        padding: 10px;
        line-height: 1.45;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        font-size: 12px;
      }

      .contact-reveal {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-6px);
        transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease;
      }

      .contact-reveal.is-open {
        max-height: 520px;
        opacity: 1;
        transform: translateY(0);
      }

      .crop-grid {
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 14px;
        margin-top: 12px;
        align-items: start;
      }

      .crop-stage {
        border: 1px solid #ccdae8;
        border-radius: 14px;
        background: rgba(248, 251, 255, 0.96);
        padding: 12px;
        display: grid;
        justify-items: center;
      }

      #cropCanvas {
        width: 360px;
        height: 360px;
        border-radius: 14px;
        touch-action: none;
        background: #fff;
      }

      .crop-side {
        display: grid;
        gap: 10px;
      }

      #previewCanvas {
        width: 140px;
        height: 140px;
      }

      .upload-overlay {
        position: fixed;
        inset: 0;
        z-index: 120;
        background: rgba(15, 23, 32, 0.55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: grid;
        align-items: center;
        justify-items: center;
        padding: 12px;
      }

      .upload-card {
        width: min(560px, 100%);
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(248, 251, 255, 0.96);
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 20px 50px rgba(8, 18, 28, 0.35);
      }

      .upload-bar {
        margin-top: 10px;
        height: 10px;
        border-radius: 999px;
        overflow: hidden;
        border: 1px solid #d3dde7;
        background: #fff;
      }

      .upload-bar-fill {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #2f79c7, #2f9b67);
        transition: width 0.12s ease;
      }

      @media (max-width: 860px) {
        .crop-grid { grid-template-columns: 1fr; }
        #cropCanvas { width: 320px; height: 320px; }
      }

      .landing-list {
        margin: 4px 0 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 6px;
      }

      .landing-list li {
        position: relative;
        padding-left: 22px;
      }

      .landing-list li::before {
        content: "✓";
        position: absolute;
        left: 0;
        top: 0;
        color: var(--ok);
        font-weight: 900;
      }

      .landing-foot {
        margin-top: 4px;
      }

      @media (max-width: 860px) {
        .landing-grid { grid-template-columns: 1fr; }
        .landing-left { border-right: 0; border-bottom: 1px solid var(--line); }
      }

      a.btn { text-decoration: none; }
      a.btn:hover { text-decoration: none; }
      a.text-btn { text-decoration: none; }

      .not-found {
        padding: 18px;
      }

      .not-found .btn {
        text-decoration: none;
      }

      .not-found-inner {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
      }

      .not-found-code {
        font-size: 42px;
        font-weight: 900;
        color: #2a3f54;
        letter-spacing: 0.02em;
      }
      .modal-overlay {
        position: fixed;
        inset: 0;
        z-index: 60;
        background: rgba(44, 53, 66, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: grid;
        align-items: center;
        justify-items: center;
        padding: 12px;
      }

      .modal-card {
        width: min(980px, 100%);
        max-height: calc(100vh - 24px);
        overflow: auto;
        border: 1px solid #ccdae8;
        border-radius: 14px;
        background: rgba(248, 251, 255, 0.96);
        box-shadow: 0 20px 50px rgba(8, 18, 28, 0.35);
        padding: 12px;
      }

      .modal-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
      }

      .modal-close {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        border: 1px solid #bfcddd;
        background: #fff;
        color: #2a3949;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
      }

      .global-loader {
        position: fixed;
        right: 14px;
        bottom: 14px;
        z-index: 80;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 999px;
        border: 1px solid rgba(180, 200, 220, 0.8);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 16px 40px rgba(8, 18, 28, 0.18);
        opacity: 0;
        transform: translateY(6px);
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
      }

      .global-loader .label {
        font-size: 12px;
        font-weight: 800;
        color: #223244;
        letter-spacing: 0.02em;
      }

      .global-loader .spinner {
        width: 16px;
        height: 16px;
        border-radius: 999px;
        border: 2px solid rgba(30, 70, 110, 0.22);
        border-top-color: rgba(30, 70, 110, 0.9);
        animation: spin 0.8s linear infinite;
      }

      @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
      }

      body.is-loading .global-loader,
      body.is-hydrating .global-loader {
        opacity: 1;
        transform: translateY(0);
      }

      .detail-grid {
        margin-top: 10px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .detail {
        border: 1px solid #e0e8f0;
        border-radius: 10px;
        background: #fbfdff;
        padding: 10px;
      }

      .detail .k { font-size: 11px; color: #687a8d; text-transform: uppercase; }
      .detail .v { margin-top: 5px; font-size: 14px; font-weight: 700; }

      .merge-block {
        margin-top: 12px;
        border: 1px solid #dce6ef;
        border-radius: 12px;
        background: #f9fbfe;
        padding: 10px;
      }

      .billing-block {
        margin-top: 12px;
        border: 1px solid #dce6ef;
        border-radius: 12px;
        background: #f9fbfe;
        padding: 10px;
      }

      .merge-list {
        margin-top: 8px;
        display: grid;
        gap: 8px;
      }

      .merge-item {
        border: 1px solid #dde6f0;
        border-radius: 10px;
        padding: 8px;
        background: #fff;
      }

      .history { margin-top: 10px; }
      .history h4 { margin: 0 0 6px; font-size: 14px; }
      .history-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: auto;
      }
      .hidden { display: none; }
      body.modal-open {
        overflow: hidden;
      }

      @media (min-width: 760px) {
        .content { padding: 16px; }
        .head { display: flex; justify-content: space-between; align-items: flex-end; }
        .metrics-grid { grid-template-columns: repeat(4, 1fr); }
        .row { flex-direction: row; justify-content: space-between; align-items: center; }
        .sub-meta { grid-template-columns: 1fr 1fr; }
        .detail-grid { grid-template-columns: repeat(2, 1fr); }
        .foot { flex-direction: row; justify-content: space-between; align-items: center; }
      }

      @media (min-width: 1180px) {
        .list-mobile { display: none; }
        .table-wrap { display: block; }
        .layout.sidebar-open::before { display: none; }
      }

      @media (max-width: 1179px) {
        .sidebar {
          position: absolute;
          z-index: 80;
          height: calc(100vh - 62px);
          width: min(300px, 82vw);
          max-width: 82vw;
          transform: translateX(-100%);
        }

        .sidebar.hidden { transform: translateX(-100%); }
        .sidebar:not(.hidden) { transform: translateX(0); }
      }

      @media (max-width: 760px) {
        .content { padding: 8px; gap: 6px; }
        .card { border-radius: 12px; }
        .search { padding: 6px 8px; }
        .field { margin-top: 7px; }
        .field input,
        .field select,
        .selector-picker-btn { padding: 9px; }
        .actions { margin-top: 8px; gap: 6px; }
        .btn { padding: 9px 11px; font-size: 12px; }
        .search-helper { margin-top: 8px; padding: 7px 8px; }
        .tag { padding: 4px 8px; font-size: 11px; }
        .modal-overlay { padding: 0; }
        .modal-card {
          width: 100%;
          height: 100%;
          max-height: 100%;
          border-radius: 0;
          border-left: 0;
          border-right: 0;
        }

        body.search-focus-mode .topbar {
          position: fixed;
          left: 0;
          right: 0;
          transform: translateY(-100%);
          opacity: 0;
          pointer-events: none;
        }
        body.search-focus-mode .module-strip {
          display: none;
        }

        body.search-focus-mode .layout {
          min-height: 100vh;
        }

        body.search-focus-mode .head,
        body.search-focus-mode .metrics {
          display: none;
        }

        body.search-focus-mode .search .row {
          display: block;
        }

        body.search-focus-mode .search-head h3 {
          display: none;
        }

        body.search-focus-mode .search .actions {
          margin-top: 6px;
        }

        body.search-focus-mode .content {
          padding: 0;
          gap: 0;
        }

        body.search-focus-mode #view-subscribers .search {
          position: fixed;
          top: 0;
          z-index: 40;
          border-radius: 0;
          border-left: 0;
          border-right: 0;
          border-top: 0;
          margin: 0;
          padding: 6px 8px 8px;
        }

        #view-plans .panel,
        #view-payments .panel,
        #view-disputes .panel,
        #view-audit .panel {
          padding: 8px;
        }

        #view-plans table,
        #view-payments table,
        #view-disputes table,
        #view-audit table {
          min-width: 560px;
        }

        #view-plans th,
        #view-payments th,
        #view-disputes th,
        #view-audit th,
        #view-plans td,
        #view-payments td,
        #view-disputes td,
        #view-audit td {
          padding: 9px 10px;
          font-size: 12px;
        }
      }

      .throbber {
        display: inline-block;
        width: 14px;
        height: 14px;
        border-radius: 999px;
        border: 2px solid rgba(100, 118, 138, 0.35);
        border-top-color: rgba(47, 121, 199, 0.95);
        animation: tfh-throbber-spin 0.8s linear infinite;
        vertical-align: -2px;
        margin-right: 6px;
      }

      @keyframes tfh-throbber-spin {
        to { transform: rotate(360deg); }
      }
