.tj-app {
    max-width: 480px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2430;
}

.tj-brand-header {
    background: #04060f;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.tj-brand-logo {
    max-width: 130px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tj-login-required {
    padding: 24px;
    text-align: center;
    background: #f5f5f7;
    border-radius: 12px;
}

.tj-login-btn {
    display: inline-block;
    width: auto;
    padding: 12px 28px;
    text-decoration: none;
}

.tj-login-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tj-paywall {
    display: flex;
    justify-content: center;
    padding: 30px 16px;
}

.tj-paywall-box {
    text-align: center;
    background: #f5f5f7;
    border-radius: 14px;
    padding: 28px 20px;
    max-width: 360px;
}

.tj-paywall-box h3 {
    margin-top: 0;
}

.tj-paywall-box .tj-btn {
    display: inline-block;
    width: auto;
    padding: 12px 24px;
    text-decoration: none;
    margin-top: 10px;
}

.tj-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.tj-tab-btn {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: #eef0f4;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.tj-tab-btn.active {
    background: #14213d;
    color: #fff;
}

.tj-tab-content {
    display: none;
}

.tj-tab-content.active {
    display: block;
}

.tj-field {
    margin-bottom: 14px;
}

.tj-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tj-field input[type="text"],
.tj-field input[type="number"],
.tj-field input[type="date"],
.tj-field select,
.tj-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d8dbe2;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.tj-field input[type="range"] {
    width: 85%;
    vertical-align: middle;
}

.tj-range-val {
    font-weight: 700;
    margin-left: 8px;
}

.tj-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.tj-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.tj-btn-primary {
    background: linear-gradient(135deg, #2f6fed 0%, #14213d 100%);
    color: #fff;
}

.tj-checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f2;
    font-size: 14px;
}

.tj-checklist-item label {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tj-item-delete {
    display: none;
    color: #c0392b;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    flex-shrink: 0;
}

.tj-edit-mode .tj-item-delete {
    display: inline-block;
}

.tj-account-settings {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.tj-accounts-panel {
    display: none;
    margin-top: 10px;
}

.tj-accounts-panel.tj-visible {
    display: block;
}

.tj-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f2;
    font-size: 13px;
}

.tj-account-delete {
    color: #c0392b;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 8px;
    flex-shrink: 0;
}

.tj-muted {
    color: #8a8f9c;
    font-size: 13px;
}

.tj-checklist-manage {
    margin: 10px 0 4px;
}

.tj-risk-hint {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
}

.tj-risk-hint.tj-risk-ok {
    color: #1d7a3c;
}

.tj-risk-hint.tj-risk-bad {
    color: #c0392b;
}

.tj-link-btn {
    background: none;
    border: none;
    color: #1f2430;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.tj-checklist-edit-form {
    display: none;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tj-checklist-edit-form.tj-visible {
    display: flex;
}

.tj-checklist-edit-form input[type="text"] {
    flex: 1;
    min-width: 140px;
}

.tj-checklist-edit-form select {
    flex: 0 0 auto;
    width: auto;
}

.tj-btn-secondary {
    background: #eef0f4;
    color: #1f2430;
    width: auto;
    padding: 10px 14px;
}

.tj-export-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.tj-export-actions .tj-btn {
    flex: 1;
    width: auto;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}

.tj-checklist-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: #8a8f9c;
    margin-top: 14px;
    margin-bottom: 4px;
}

.tj-alerts {
    margin-bottom: 12px;
}

.tj-alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    background: #fdecec;
    border: 1px solid #f5b5b5;
    color: #8a1f1f;
}

.tj-result-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
}

.tj-result-apto {
    background: #e7f7ec;
    color: #1d7a3c;
    border: 1px solid #b7e3c4;
}

.tj-result-no_apto {
    background: #fdecec;
    color: #8a1f1f;
    border: 1px solid #f5b5b5;
}

.tj-stats-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tj-stat-card {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.tj-stat-card .tj-stat-value {
    font-size: 22px;
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

.tj-stat-card .tj-stat-label {
    font-size: 12px;
    color: #6a6f7a;
}

.tj-trades-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.tj-trades-table th,
.tj-trades-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.tj-pos { color: #1d7a3c; font-weight: 600; }
.tj-neg { color: #c0392b; font-weight: 600; }

.tj-delete-link {
    color: #c0392b;
    cursor: pointer;
    font-size: 12px;
}
