      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family: "Maven Pro", sans-serif;
        background: #f4f5f8;
        min-height: 100vh;
        color: #1f2937;
        overflow-x: hidden;
      }

      input,
      textarea,
      select,
      button {
        font-family: inherit;
      }

      .container {
        width: 100%;
        margin: 0;
      }

      .app-shell {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        min-height: 100vh;
      }

      .sidebar {
        background: #0d1b26;
        color: #ffffff;
        padding: 24px 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        box-shadow: 4px 0 20px rgba(36, 20, 53, 0.18);
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        isolation: isolate;
      }

      .sidebar::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
          radial-gradient(
            circle at 14% 10%,
            rgba(255, 255, 255, 0.18),
            transparent 34%
          ),
          radial-gradient(
            circle at 88% 86%,
            rgba(255, 255, 255, 0.1),
            transparent 38%
          );
        pointer-events: none;
        z-index: 0;
      }

      .sidebar > * {
        position: relative;
        z-index: 1;
      }

      .sidebar-brand {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 4px 0 10px;
      }

      .sidebar-brand img {
        width: 170px;
        max-width: 100%;
        display: block;
      }

      .login-brand {
        text-align: center;
        margin-bottom: 24px;
      }

      .login-brand img {
        width: 190px;
        max-width: 100%;
      }

      .sidebar-user {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.11);
        backdrop-filter: blur(4px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
        margin-top: auto;
      }

      .sidebar-user-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
      }

      .btn-icon-ghost {
        border: 1px solid rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        transition:
          transform 0.2s ease,
          background 0.2s ease;
      }

      .btn-icon-ghost:hover {
        background: rgba(255, 255, 255, 0.22);
        transform: translateY(-1px);
      }

      .sidebar-user span {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 600;
      }

      .content-area {
        padding: 24px;
        overflow-x: hidden;
        min-width: 0;
      }

      .header {
        background: #ffffff;
        padding: 18px 22px;
        border-radius: 14px;
        margin-bottom: 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid #ebedf2;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
      }

      .header h1 {
        color: #024d3a;
        font-size: 22px;
      }

      .header .user-info {
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
      }

      .btn {
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s;
      }

      .btn-primary {
        background: linear-gradient(135deg, #73d537 0%, #024d3a 100%);
        color: white;
      }

      .btn-primary:hover {
        filter: brightness(1.04);
        transform: translateY(-2px);
      }

      .btn-secondary {
        background: #f3f4f6;
        color: #374151;
      }

      .btn-secondary:hover {
        background: #e5e7eb;
      }

      .btn-danger {
        background: #ef4444;
        color: white;
      }

      .card {
        background: #ffffff;
        padding: 25px;
        border-radius: 14px;
        margin-bottom: 20px;
        border: 1px solid #ebedf2;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
      }

      .card h2 {
        margin-bottom: 20px;
        color: #1f2937;
        font-size: 20px;
      }

      .form-group {
        margin-bottom: 15px;
      }

      .form-group label {
        display: block;
        margin-bottom: 5px;
        color: #374151;
        font-weight: 500;
      }

      .form-group input,
      .form-group textarea,
      .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #d1d5db;
        border-radius: 5px;
        font-size: 14px;
        background: #ffffff;
        color: #1f2937;
      }

      .form-group input:focus,
      .form-group textarea:focus {
        outline: none;
        border-color: #73d537;
      }

      .login-container {
        width: 100%;
      }

      #loginScreen {
        min-height: 100vh;
        display: flex;
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
        background: #0d1b26;
      }

      .login-shell {
        width: 100%;
        min-height: 100vh;
        display: grid;
        grid-template-columns: 420px minmax(0, 1fr);
        gap: 0;
        align-items: stretch;
      }

      .login-form-column {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 36px 48px;
        background: #0d1b26;
      }

      .login-container .card {
        width: 100%;
        max-width: 380px;
        margin-bottom: 0;
      }

      .login-visual {
        position: relative;
        border-radius: 0;
        overflow: hidden;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0d1b26;
        border: none;
        box-shadow: none;
      }

      .login-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left center;
        display: block;
      }

      .login-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          120deg,
          rgba(13, 27, 38, 0.45) 0%,
          rgba(13, 27, 38, 0.12) 60%
        );
        pointer-events: none;
      }

      .tabs {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        padding-right: 3px;
      }

      .tabs::-webkit-scrollbar {
        width: 6px;
        height: 6px;
      }

      .tabs::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.28);
        border-radius: 999px;
      }

      .tabs::-webkit-scrollbar-track {
        background: transparent;
      }

      .tab {
        width: calc(100% + 32px);
        margin-left: -16px;
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
        padding: 13px 18px;
        background: transparent;
        border: none;
        border-radius: 0;
        cursor: pointer;
        font-weight: 700;
        letter-spacing: 0.2px;
        color: rgba(255, 255, 255, 0.95);
        transition: all 0.25s ease;
      }

      .tab-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        font-size: 12px;
        line-height: 1;
        color: currentColor;
        opacity: 0.95;
      }

      .tab-label {
        line-height: 1.1;
      }

      .tab::after {
        content: "";
        position: absolute;
        left: 0;
        top: 9px;
        bottom: 9px;
        width: 3px;
        border-radius: 999px;
        background: #ffffff;
        opacity: 0;
        transform: scaleY(0.45);
        transform-origin: center;
        transition:
          opacity 0.2s ease,
          transform 0.2s ease;
      }

      .tab.active {
        background: rgba(255, 255, 255, 0.24);
        color: #ffffff;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
      }

      .tab.active::after {
        opacity: 0.95;
        transform: scaleY(1);
      }

      .tab:hover {
        background: rgba(255, 255, 255, 0.16);
      }

      .tab.active:hover {
        background: rgba(255, 255, 255, 0.24);
      }

      .tab:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.75);
        outline-offset: -2px;
      }

      .tab-content {
        display: none;
      }

      .tab-content.active {
        display: block;
      }

      table {
        width: 100%;
        border-collapse: collapse;
      }

      table th,
      table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
      }

      table th {
        background: #f9fafb;
        font-weight: 600;
        color: #374151;
      }

      table tr:hover {
        background: #f9fafb;
      }

      .actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
      }

      .hidden {
        display: none !important;
      }

      .alert {
        padding: 12px 20px;
        border-radius: 5px;
        margin-bottom: 15px;
      }

      .alert-success {
        background: rgba(115, 213, 55, 0.2);
        color: #024d3a;
      }

      .alert-error {
        background: #fee2e2;
        color: #991b1b;
      }

      .qr-container {
        text-align: center;
        padding: 20px;
      }

      .qr-container img {
        max-width: 300px;
        margin: 20px auto;
        display: block;
      }

      .autocomplete-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 300px;
        overflow-y: auto;
        z-index: 1000;
        margin-top: 4px;
      }

      .autocomplete-item {
        padding: 10px;
        cursor: pointer;
        border-bottom: 1px solid #e5e7eb;
        transition: background 0.2s;
        color: #1f2937;
      }

      .tag-chip {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #e0f2fe;
        color: #0369a1;
        border: 1px solid #bae6fd;
        border-radius: 99px;
        padding: 2px 10px 2px 10px;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
      }
      .tag-chip .tag-remove {
        cursor: pointer;
        font-size: 14px;
        line-height: 1;
        color: #0369a1;
        background: none;
        border: none;
        padding: 0;
      }
      .tag-chip .tag-remove:hover { color: #ef4444; }
      .tag-container {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        min-height: 24px;
        margin-bottom: 4px;
      }

      .autocomplete-item:last-child {
        border-bottom: none;
      }

      .autocomplete-item:hover {
        background: #f3f4f6;
      }

      .status-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
      }

      .status-connected {
        background: rgba(115, 213, 55, 0.2);
        color: #024d3a;
      }

      .status-disconnected {
        background: #fee2e2;
        color: #991b1b;
      }

      .whatsapp-status-indicator {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        border: 2px solid;
        transition: all 0.3s;
      }

      .whatsapp-status-indicator.connected {
        background: rgba(115, 213, 55, 0.2);
        color: #024d3a;
        border-color: #73d537;
      }

      .whatsapp-status-indicator.disconnected {
        background: #fee2e2;
        color: #991b1b;
        border-color: #ef4444;
      }

      .whatsapp-status-indicator.checking {
        background: #fef3c7;
        color: #92400e;
        border-color: #f59e0b;
      }

      .status-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
      }

      .status-dot.connected {
        background: #73d537;
        box-shadow: 0 0 8px #73d537;
      }

      .status-dot.disconnected {
        background: #ef4444;
        animation: pulse 2s infinite;
      }

      .status-dot.checking {
        background: #f59e0b;
      }

      .drawer-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.6);
        z-index: 2000;
        display: none;
        align-items: stretch;
        justify-content: flex-end;
      }

      .modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 2100;
        padding: 16px;
      }

      .modal-backdrop.open {
        display: flex;
      }

      .modal-panel {
        width: min(560px, 100%);
        background: #ffffff;
        border-radius: 14px;
        border: 1px solid #ebedf2;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
        padding: 20px;
      }

      .drawer-backdrop.open {
        display: flex;
      }

      .drawer-panel {
        width: min(980px, 100%);
        height: 100%;
        overflow-y: auto;
        background: #ffffff;
        padding: 24px;
      }

      .editor-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .workout-add-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 8px;
      }

      .workout-optional-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 8px;
      }

      .workout-optional-grid .form-group {
        margin-bottom: 0;
      }

      .workout-add-grid .full,
      .workout-optional-grid .full,
      .workout-metrics-grid.full {
        grid-column: 1 / -1;
      }

      .workout-metrics-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .editor-grid .form-group.full {
        grid-column: 1 / -1;
      }

      .workout-card {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 14px;
      }

      .session-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
      }

      .exercise-row {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 12px;
        margin-top: 8px;
        background: #ffffff;
      }

      .exercise-title {
        font-weight: 700;
        color: #111827;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .exercise-fields-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
      }

      .exercise-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .exercise-field label {
        font-size: 12px;
        font-weight: 600;
        color: #475569;
      }

      .exercise-field input {
        width: 100%;
        padding: 10px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 14px;
        background: #ffffff;
        color: #1f2937;
      }

      .exercise-actions {
        margin-top: 10px;
        display: flex;
        justify-content: flex-end;
        gap: 8px;
      }

      .exercise-actions .btn {
        min-width: 92px;
      }

      /* Drag & drop reorder */
      .exercise-row[draggable] {
        cursor: grab;
      }
      .exercise-row.drag-over {
        border: 2px dashed #6366f1;
        background: #eef2ff;
      }
      .exercise-row.dragging {
        opacity: 0.4;
        cursor: grabbing;
      }
      .drag-handle {
        display: inline-flex;
        align-items: center;
        color: #94a3b8;
        margin-right: 6px;
        cursor: grab;
        font-size: 16px;
        line-height: 1;
        user-select: none;
      }

      .catalog-manager-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
      }

      .catalog-panel {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 14px;
        background: #f8fafc;
      }

      .catalog-panel h3 {
        margin-bottom: 10px;
        color: #0f172a;
      }

      .catalog-list-wrap {
        margin-top: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #ffffff;
        max-height: 360px;
        overflow: auto;
      }

      .catalog-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid #f1f5f9;
      }

      .catalog-row:last-child {
        border-bottom: none;
      }

      .catalog-row-title {
        font-weight: 600;
        color: #0f172a;
      }

      .catalog-row-sub {
        color: #64748b;
        font-size: 12px;
      }

      .workout-section-title {
        color: #1f2937;
        margin-bottom: 8px;
        font-size: 16px;
      }

      .workout-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;
      }

      .workout-meta span {
        font-size: 12px;
        color: #64748b;
        background: rgba(115, 213, 55, 0.15);
        border: 1px solid rgba(2, 77, 58, 0.22);
        border-radius: 999px;
        padding: 4px 10px;
      }

      .workout-accordion {
        margin-bottom: 14px;
      }

      .workout-accordion > summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .workout-accordion > summary::-webkit-details-marker {
        display: none;
      }

      .workout-summary-title {
        font-weight: 700;
        color: #1f2937;
      }

      .accordion-summary-right {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .accordion-chevron {
        width: 10px;
        height: 10px;
        border-right: 2px solid #64748b;
        border-bottom: 2px solid #64748b;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        margin-right: 2px;
      }

      .workout-accordion[open] > summary .accordion-chevron,
      .session-accordion[open] > summary .accordion-chevron {
        transform: rotate(-135deg);
      }

      .workout-summary-validity {
        font-size: 12px;
        color: #64748b;
        background: rgba(115, 213, 55, 0.15);
        border: 1px solid rgba(2, 77, 58, 0.22);
        border-radius: 999px;
        padding: 4px 10px;
        white-space: nowrap;
      }

      .workout-accordion-body {
        margin-top: 12px;
      }

      .session-accordion {
        margin-bottom: 10px;
      }

      .session-accordion > summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .session-accordion > summary::-webkit-details-marker {
        display: none;
      }

      .session-accordion-body {
        margin-top: 10px;
      }

      .workout-search-shell {
        position: relative;
      }

      .workout-search-results {
        margin-top: 8px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        background: #ffffff;
        max-height: 260px;
        overflow-y: auto;
      }

      .workout-search-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 10px;
        border-bottom: 1px solid #e5e7eb;
      }

      .workout-search-item:last-child {
        border-bottom: none;
      }

      .workout-search-meta {
        color: #6b7280;
        font-size: 12px;
        margin-top: 3px;
      }

      .selected-workout-box {
        margin-top: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 12px;
      }

      .student-insights-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
        flex-wrap: wrap;
      }

      .student-insights-tab {
        border: 1px solid #cbd5e1;
        background: #f8fafc;
        color: #334155;
        padding: 8px 12px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
      }

      .student-insights-tab.active {
        border-color: #024d3a;
        background: rgba(115, 213, 55, 0.18);
        color: #024d3a;
      }

      .student-insights-panel {
        display: none;
      }

      .student-insights-panel.active {
        display: block;
      }

      .sessions-pagination {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        flex-wrap: wrap;
      }

      .student-report-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 12px;
      }

      .student-report-box {
        border: 1px solid #dbe2ea;
        border-radius: 10px;
        background: #f8fafc;
        padding: 12px;
      }

      .student-report-box h4 {
        margin-bottom: 8px;
        color: #1f2937;
      }

      .student-calendar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
        gap: 8px;
      }

      .student-calendar-grid {
        width: 100%;
        border-collapse: collapse;
      }

      .student-calendar-grid th,
      .student-calendar-grid td {
        text-align: center;
        padding: 6px 2px;
        font-size: 12px;
      }

      .student-calendar-grid th {
        color: #64748b;
        font-weight: 700;
      }

      .student-calendar-day {
        display: inline-flex;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        align-items: center;
        justify-content: center;
        color: #334155;
        border: 1px solid #e2e8f0;
        background: #ffffff;
      }

      .student-calendar-day.trained {
        background: rgba(115, 213, 55, 0.24);
        border-color: rgba(2, 77, 58, 0.35);
        color: #024d3a;
        font-weight: 700;
      }

      .student-report-list {
        margin: 0;
        padding: 0;
        list-style: none;
      }

      .student-report-list li {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px dashed #d1d5db;
        font-size: 13px;
      }

      .student-report-list li:last-child {
        border-bottom: none;
      }

      .student-report-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .finance-metrics {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
      }

      .finance-metric-card {
        border: 1px solid #dbe2ea;
        background: #f8fafc;
        border-radius: 10px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .finance-metric-label {
        font-size: 12px;
        color: #64748b;
        font-weight: 700;
      }

      .finance-metric-card strong {
        color: #0f172a;
        font-size: 22px;
      }

      .finance-list-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
      }

      .finance-student-list {
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #ffffff;
        overflow: hidden;
      }

      .finance-student-item {
        padding: 10px 12px;
        border-bottom: 1px solid #f1f5f9;
        display: grid;
        gap: 4px;
      }

      .finance-student-item:last-child {
        border-bottom: none;
      }

      .finance-student-name {
        font-weight: 700;
        color: #1f2937;
      }

      .finance-student-meta {
        color: #475569;
        font-size: 13px;
      }

      .student-payment-history {
        border-top: 1px solid #e5e7eb;
        padding-top: 14px;
      }

      .student-editor-two-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 14px;
      }

      .student-editor-column-card {
        border: 1px solid #dbe2ea;
        border-radius: 10px;
        background: #f8fafc;
        padding: 12px;
      }

      .payment-history-list {
        border: 1px solid #dbe2ea;
        border-radius: 10px;
        overflow: hidden;
      }

      .payment-history-row {
        display: grid;
        grid-template-columns: 1.1fr 0.8fr 0.8fr;
        gap: 10px;
        align-items: center;
        padding: 10px 12px;
        border-bottom: 1px solid #edf2f7;
        background: #ffffff;
      }

      .payment-history-row:last-child {
        border-bottom: none;
      }

      .payment-history-row strong {
        color: #1f2937;
      }

      .payment-history-row small {
        color: #64748b;
      }

      .payment-history-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        color: #334155;
      }

      @media (max-width: 1024px) {
        .app-shell {
          grid-template-columns: 1fr;
          min-height: auto;
        }

        .sidebar {
          position: relative;
          top: auto;
          height: auto;
          overflow: visible;
          padding: 16px;
          gap: 12px;
          box-shadow: none;
          border-right: none;
        }

        .tabs {
          flex: 0 0 auto;
          flex-direction: row;
          gap: 8px;
          margin-top: 0;
          padding-bottom: 4px;
          overflow-x: auto;
          overflow-y: hidden;
        }

        .tab {
          width: auto;
          min-width: max-content;
          margin-left: 0;
          padding: 10px 14px;
          border-radius: 10px;
        }

        .tab::after {
          left: 10px;
          right: 10px;
          top: auto;
          bottom: 4px;
          width: auto;
          height: 2px;
          transform: scaleX(0.5);
          transform-origin: center;
        }

        .tab.active::after {
          transform: scaleX(1);
        }

        .sidebar-user {
          margin-top: 10px;
        }

        .content-area {
          padding: 16px;
        }

        .header {
          flex-direction: column;
          align-items: flex-start;
          gap: 10px;
        }

        .header .user-info {
          width: 100%;
          justify-content: flex-start;
        }

        .card {
          padding: 18px;
          overflow-x: auto;
        }

        .card table {
          min-width: 720px;
        }

        .editor-grid {
          grid-template-columns: 1fr;
        }

        .workout-add-grid,
        .workout-metrics-grid {
          grid-template-columns: 1fr;
        }

        .workout-optional-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .student-report-grid,
        .student-report-metrics,
        .finance-list-grid,
        .student-editor-two-columns {
          grid-template-columns: 1fr;
        }

        .finance-metrics {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .catalog-manager-grid {
          grid-template-columns: 1fr;
        }

        .exercise-fields-grid {
          grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .modal-panel {
          max-height: calc(100vh - 32px);
          overflow-y: auto;
        }

        .drawer-panel {
          width: 100%;
          padding: 16px;
        }
      }

      @media (max-width: 768px) {
        .login-container {
          max-width: 100%;
        }

        #loginScreen {
          padding: 16px 12px;
        }

        .login-shell {
          width: min(420px, 100%);
          grid-template-columns: 1fr;
          gap: 0;
          min-height: auto;
          margin: 0 auto;
        }

        .login-form-column {
          padding: 0;
        }

        .login-visual {
          display: none;
        }

        .header h1 {
          font-size: 20px;
        }

        .whatsapp-status-indicator {
          width: 100%;
          justify-content: center;
        }

        .exercise-fields-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .workout-optional-grid {
          grid-template-columns: 1fr;
        }

        .card table {
          min-width: 640px;
        }

        .finance-metrics {
          grid-template-columns: 1fr;
        }

        .payment-history-row {
          grid-template-columns: 1fr;
        }
      }

      @media (max-width: 560px) {
        .content-area {
          padding: 12px;
        }

        .card {
          padding: 14px;
        }

        .exercise-fields-grid {
          grid-template-columns: 1fr;
        }

        .workout-search-item {
          flex-direction: column;
          align-items: flex-start;
        }

        .workout-summary-validity {
          white-space: normal;
        }

        .exercise-actions {
          justify-content: stretch;
          flex-wrap: wrap;
        }

        .exercise-actions .btn {
          width: 100%;
          min-width: 0;
        }
      }

      @keyframes pulse {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.5;
        }
      }
