/**
 * Vanguard Comics Tales Untamed Styles
 * Version: 1.2.0
 * AugustTales Design System — Bold, heroic, comic-book-inspired
 */

/* ═══════════════════════════════════════════════════════════════
   ATC DESIGN SYSTEM - CSS Variables
   ═══════════════════════════════════════════════════════════════ */
:root {
    --ctu-ink: #0D0D0D;
    --ctu-panel: #1A1A2E;
    --ctu-panel-light: #16213E;
    --ctu-surface: #F0F0F5;
    --ctu-surface-alt: #E8E8F0;
    --ctu-electric: #E94560;
    --ctu-electric-glow: rgba(233, 69, 96, 0.25);
    --ctu-hero-blue: #0F3460;
    --ctu-hero-blue-light: #1A4A7A;
    --ctu-gold: #F5A623;
    --ctu-gold-soft: #FFF3D6;
    --ctu-text: #1A1A2E;
    --ctu-text-muted: #6B7280;
    --ctu-white: #FFFFFF;
    --ctu-gradient-primary: linear-gradient(135deg, #E94560 0%, #0F3460 100%);
    --ctu-gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    --ctu-gradient-hero: linear-gradient(135deg, #0F3460 0%, #1A1A2E 100%);
    --ctu-radius: 12px;
    --ctu-radius-sm: 8px;
    --ctu-radius-xs: 5px;
    --ctu-hover-lift: translateY(-3px);
    --ctu-transition: all 0.2s ease;
    --ctu-shadow: 0 2px 12px rgba(13, 13, 13, 0.08);
    --ctu-shadow-hover: 0 8px 25px rgba(13, 13, 13, 0.15);
    --ctu-font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN PROMPT
   ═══════════════════════════════════════════════════════════════ */
.ctu-login-prompt {
    text-align: center;
    padding: 60px 30px;
    background: var(--ctu-gradient-hero);
    border-radius: var(--ctu-radius);
    max-width: 420px;
    margin: 40px auto;
    box-shadow: var(--ctu-shadow);
    color: var(--ctu-white);
}

.ctu-login-icon {
    font-size: 56px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(233, 69, 96, 0.4));
}

.ctu-login-prompt h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--ctu-white);
    letter-spacing: -0.02em;
}

.ctu-login-prompt p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.5;
}

.ctu-login-btn,
.ctu-register-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--ctu-radius);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    margin: 5px;
    transition: var(--ctu-transition);
    letter-spacing: 0.02em;
}

.ctu-login-btn {
    background: var(--ctu-electric);
    color: var(--ctu-white);
    box-shadow: 0 4px 15px var(--ctu-electric-glow);
}

.ctu-login-btn:hover {
    transform: var(--ctu-hover-lift);
    box-shadow: 0 8px 25px var(--ctu-electric-glow);
    color: var(--ctu-white);
}

.ctu-register-btn {
    background: transparent;
    color: var(--ctu-white);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.ctu-register-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: var(--ctu-hover-lift);
    color: var(--ctu-white);
}

/* ═══════════════════════════════════════════════════════════════
   SUBMISSION FORM
   ═══════════════════════════════════════════════════════════════ */
.ctu-submission-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.ctu-intro {
    text-align: center;
    margin-bottom: 35px;
}

.ctu-intro h2 {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 12px;
    color: var(--ctu-text);
    letter-spacing: -0.03em;
}

.ctu-intro > p {
    font-size: 16px;
    color: var(--ctu-text-muted);
    margin: 0 0 25px;
    line-height: 1.5;
}

.ctu-guidelines {
    background: var(--ctu-surface);
    border-radius: var(--ctu-radius);
    padding: 22px 25px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--ctu-surface-alt);
    border-left: 4px solid var(--ctu-hero-blue);
}

.ctu-guidelines h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ctu-text);
}

.ctu-guidelines ul {
    margin: 0;
    padding-left: 18px;
}

.ctu-guidelines li {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--ctu-text-muted);
    line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════
   MESSAGES
   ═══════════════════════════════════════════════════════════════ */
.ctu-message {
    padding: 16px 20px;
    border-radius: var(--ctu-radius);
    margin-bottom: 25px;
    font-size: 15px;
}

.ctu-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.ctu-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--ctu-electric);
    color: #991b1b;
}

/* ═══════════════════════════════════════════════════════════════
   FORM STYLING
   ═══════════════════════════════════════════════════════════════ */
.ctu-form {
    background: var(--ctu-white);
    border-radius: var(--ctu-radius);
    box-shadow: var(--ctu-shadow);
    overflow: hidden;
    border: 1px solid var(--ctu-surface-alt);
}

.ctu-form-section {
    padding: 28px 30px;
    border-bottom: 1px solid var(--ctu-surface-alt);
}

.ctu-form-section:last-of-type {
    border-bottom: none;
}

.ctu-form-section h3 {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 800;
    color: var(--ctu-text);
    letter-spacing: -0.01em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ctu-surface);
}

.ctu-section-desc {
    margin: -10px 0 20px;
    font-size: 14px;
    color: var(--ctu-text-muted);
}

.ctu-form-row {
    margin-bottom: 20px;
}

.ctu-form-row:last-child {
    margin-bottom: 0;
}

.ctu-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ctu-text);
}

.ctu-form-row .required {
    color: var(--ctu-electric);
}

.ctu-optional {
    font-weight: 400;
    color: var(--ctu-text-muted);
    font-size: 13px;
}

.ctu-form-row input[type="text"],
.ctu-form-row textarea,
.ctu-form-row select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--ctu-surface-alt);
    border-radius: var(--ctu-radius-sm);
    font-size: 15px;
    line-height: 1.4;
    transition: var(--ctu-transition);
    box-sizing: border-box;
    background: var(--ctu-white);
    color: var(--ctu-text);
    font-family: var(--ctu-font-display);
}

.ctu-form-row select {
    height: auto;
    min-height: 46px;
    padding-top: 11px;
    padding-bottom: 11px;
    cursor: pointer;
}

.ctu-form-row input::placeholder,
.ctu-form-row textarea::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

.ctu-form-row select option[value=""] {
    color: #9CA3AF;
}

.ctu-form-row input:focus,
.ctu-form-row textarea:focus,
.ctu-form-row select:focus {
    outline: none;
    border-color: var(--ctu-hero-blue);
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
}

.ctu-form-row textarea {
    resize: vertical;
    min-height: 100px;
}

#ctu_content {
    min-height: 400px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.7;
}

.ctu-char-count,
.ctu-word-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--ctu-text-muted);
    margin-top: 5px;
}

.ctu-help {
    display: block;
    font-size: 12px;
    color: var(--ctu-text-muted);
    margin-top: 5px;
}

/* ═══════════════════════════════════════════════════════════════
   INTENSITY / RATING SELECTOR
   ═══════════════════════════════════════════════════════════════ */
.ctu-intensity-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ctu-intensity-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid var(--ctu-surface-alt);
    border-radius: var(--ctu-radius-sm);
    cursor: pointer;
    transition: var(--ctu-transition);
    background: var(--ctu-white);
}

.ctu-intensity-option:hover {
    border-color: var(--ctu-hero-blue-light);
    background: var(--ctu-surface);
}

.ctu-intensity-option input {
    margin: 0;
    accent-color: var(--ctu-hero-blue);
}

.ctu-intensity-option:has(input:checked) {
    border-color: var(--ctu-hero-blue);
    background: rgba(15, 52, 96, 0.05);
    box-shadow: 0 0 0 1px var(--ctu-hero-blue);
}

.ctu-intensity-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--ctu-text);
    min-width: 70px;
}

.ctu-intensity-desc {
    font-size: 12px;
    color: var(--ctu-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   CHECKBOX GRID (Tropes & Warnings)
   ═══════════════════════════════════════════════════════════════ */
.ctu-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ctu-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--ctu-surface);
    border-radius: var(--ctu-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--ctu-transition);
    border: 1px solid transparent;
    color: var(--ctu-text);
}

.ctu-checkbox:hover {
    background: var(--ctu-surface-alt);
}

.ctu-checkbox:has(input:checked) {
    background: rgba(15, 52, 96, 0.08);
    border-color: var(--ctu-hero-blue);
    color: var(--ctu-hero-blue);
    font-weight: 500;
}

.ctu-checkbox input {
    margin: 0;
    accent-color: var(--ctu-hero-blue);
}

.ctu-warning-checkbox {
    background: #FFFBEB;
}

.ctu-warning-checkbox:hover {
    background: var(--ctu-gold-soft);
}

.ctu-warning-checkbox:has(input:checked) {
    background: var(--ctu-gold-soft);
    border-color: var(--ctu-gold);
    color: #92400E;
}

/* ═══════════════════════════════════════════════════════════════
   AGREEMENT SECTION
   ═══════════════════════════════════════════════════════════════ */
.ctu-agreement {
    background: var(--ctu-surface);
}

.ctu-required-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--ctu-text-muted);
    padding: 0;
    background: none;
    border: none;
    line-height: 1.5;
}

.ctu-required-check input {
    margin-top: 3px;
    accent-color: var(--ctu-hero-blue);
}

.ctu-required-check a {
    color: var(--ctu-electric);
    font-weight: 600;
}

.ctu-required-check a:hover {
    color: var(--ctu-hero-blue);
}

/* ═══════════════════════════════════════════════════════════════
   SUBMIT BUTTON
   ═══════════════════════════════════════════════════════════════ */
.ctu-form-actions {
    padding: 30px;
    text-align: center;
    background: var(--ctu-gradient-dark);
}

.ctu-submit-btn {
    display: inline-block;
    padding: 16px 44px;
    background: var(--ctu-electric);
    color: var(--ctu-white);
    border: none;
    border-radius: var(--ctu-radius);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--ctu-transition);
    box-shadow: 0 4px 15px var(--ctu-electric-glow);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ctu-submit-btn:hover {
    transform: var(--ctu-hover-lift);
    box-shadow: 0 8px 30px var(--ctu-electric-glow);
}

.ctu-submit-note {
    margin: 15px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   STORIES LIST HEADER
   ═══════════════════════════════════════════════════════════════ */
.ctu-stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px 28px;
    background: var(--ctu-gradient-hero);
    border-radius: var(--ctu-radius);
    flex-wrap: wrap;
    color: var(--ctu-white);
}

.ctu-stories-header-text h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 900;
    color: var(--ctu-white);
    letter-spacing: -0.03em;
}

.ctu-stories-intro {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    flex: 1;
    min-width: 250px;
}

.ctu-submit-btn-header {
    display: inline-block;
    padding: 12px 24px;
    background: var(--ctu-electric);
    color: var(--ctu-white);
    text-decoration: none;
    border-radius: var(--ctu-radius);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ctu-transition);
    box-shadow: 0 4px 15px var(--ctu-electric-glow);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ctu-submit-btn-header:hover {
    transform: var(--ctu-hover-lift);
    box-shadow: 0 8px 25px var(--ctu-electric-glow);
    color: var(--ctu-white);
}

/* ═══════════════════════════════════════════════════════════════
   STORIES GRID
   ═══════════════════════════════════════════════════════════════ */
.ctu-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ctu-story-card {
    background: var(--ctu-white);
    border-radius: var(--ctu-radius);
    padding: 20px;
    box-shadow: var(--ctu-shadow);
    transition: var(--ctu-transition);
    border: 1px solid var(--ctu-surface-alt);
    display: flex;
    flex-direction: column;
}

.ctu-story-card:hover {
    transform: var(--ctu-hover-lift);
    box-shadow: var(--ctu-shadow-hover);
    border-color: var(--ctu-hero-blue-light);
}

.ctu-story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

/* Rating badges */
.ctu-rating {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--ctu-radius-xs);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ctu-rating-all {
    background: #dbeafe;
    color: #1e40af;
}

.ctu-rating-teen {
    background: #d1fae5;
    color: #065f46;
}

.ctu-rating-mature {
    background: #fef3c7;
    color: #92400e;
}

.ctu-rating-explicit {
    background: #fee2e2;
    color: #991b1b;
}

.ctu-universe {
    background: var(--ctu-panel);
    padding: 3px 10px;
    border-radius: var(--ctu-radius-xs);
    font-size: 11px;
    color: var(--ctu-white);
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.ctu-story-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.ctu-story-title a {
    color: var(--ctu-text);
    text-decoration: none;
    transition: var(--ctu-transition);
}

.ctu-story-title a:hover {
    color: var(--ctu-electric);
}

.ctu-story-author {
    font-size: 13px;
    color: var(--ctu-text-muted);
    margin: 0 0 8px;
}

.ctu-story-characters {
    font-size: 12px;
    color: var(--ctu-hero-blue);
    margin: 0 0 10px;
    font-style: italic;
}

.ctu-chars-label {
    font-weight: 600;
    font-style: normal;
}

.ctu-story-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 12px;
    flex-grow: 1;
}

.ctu-story-tropes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.ctu-trope {
    background: var(--ctu-surface);
    color: var(--ctu-hero-blue);
    padding: 3px 9px;
    border-radius: var(--ctu-radius-xs);
    font-size: 11px;
    font-weight: 600;
}

.ctu-story-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: var(--ctu-text-muted);
    margin-bottom: 12px;
}

.ctu-genre {
    background: var(--ctu-surface);
    padding: 2px 8px;
    border-radius: var(--ctu-radius-xs);
}

.ctu-story-warnings {
    background: #FFFBEB;
    padding: 7px 10px;
    border-radius: var(--ctu-radius-sm);
    font-size: 11px;
    color: #92400e;
    margin-bottom: 12px;
    border: 1px solid #FDE68A;
}

.ctu-warning-label {
    font-weight: 700;
}

.ctu-read-btn {
    display: block;
    text-align: center;
    padding: 11px;
    background: var(--ctu-gradient-hero);
    border-radius: var(--ctu-radius-sm);
    color: var(--ctu-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--ctu-transition);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: auto;
}

.ctu-read-btn:hover {
    transform: var(--ctu-hover-lift);
    box-shadow: 0 4px 15px rgba(15, 52, 96, 0.3);
    color: var(--ctu-white);
}

/* ═══════════════════════════════════════════════════════════════
   NO STORIES STATE
   ═══════════════════════════════════════════════════════════════ */
.ctu-no-stories {
    text-align: center;
    padding: 60px 30px;
    background: var(--ctu-surface);
    border-radius: var(--ctu-radius);
    border: 1px dashed var(--ctu-surface-alt);
}

.ctu-no-stories p {
    margin: 0 0 20px;
    color: var(--ctu-text-muted);
    font-size: 16px;
}

.ctu-submit-link {
    display: inline-block;
    padding: 14px 28px;
    background: var(--ctu-electric);
    color: var(--ctu-white);
    text-decoration: none;
    border-radius: var(--ctu-radius);
    font-weight: 700;
    transition: var(--ctu-transition);
    box-shadow: 0 4px 15px var(--ctu-electric-glow);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 14px;
}

.ctu-submit-link:hover {
    transform: var(--ctu-hover-lift);
    box-shadow: 0 8px 25px var(--ctu-electric-glow);
    color: var(--ctu-white);
}

/* ═══════════════════════════════════════════════════════════════
   MY STORIES SECTION
   ═══════════════════════════════════════════════════════════════ */
.ctu-my-stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.ctu-my-stories-header h2 {
    margin: 0;
    color: var(--ctu-text);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.ctu-new-story-btn {
    padding: 12px 24px;
    background: var(--ctu-electric);
    color: var(--ctu-white);
    text-decoration: none;
    border-radius: var(--ctu-radius);
    font-weight: 700;
    transition: var(--ctu-transition);
    box-shadow: 0 4px 15px var(--ctu-electric-glow);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 13px;
}

.ctu-new-story-btn:hover {
    transform: var(--ctu-hover-lift);
    box-shadow: 0 8px 25px var(--ctu-electric-glow);
    color: var(--ctu-white);
}

.ctu-stories-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ctu-white);
    border-radius: var(--ctu-radius);
    overflow: hidden;
    box-shadow: var(--ctu-shadow);
    border: 1px solid var(--ctu-surface-alt);
}

.ctu-stories-table th,
.ctu-stories-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--ctu-surface-alt);
    font-size: 14px;
}

.ctu-stories-table th {
    background: var(--ctu-panel);
    font-weight: 700;
    font-size: 12px;
    color: var(--ctu-white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ctu-stories-table tr:last-child td {
    border-bottom: none;
}

.ctu-stories-table tr:hover td {
    background: var(--ctu-surface);
}

.ctu-stories-table a {
    color: var(--ctu-electric);
    font-weight: 600;
    text-decoration: none;
}

.ctu-stories-table a:hover {
    text-decoration: underline;
}

.ctu-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--ctu-radius-xs);
    font-size: 12px;
    font-weight: 700;
}

.ctu-status-publish {
    background: #d1fae5;
    color: #065f46;
}

.ctu-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.ctu-status-draft {
    background: var(--ctu-surface);
    color: var(--ctu-text-muted);
}

.ctu-pending-note {
    font-size: 12px;
    color: var(--ctu-text-muted);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.ctu-pagination {
    margin-top: 30px;
    text-align: center;
}

.ctu-pagination a,
.ctu-pagination span {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 3px;
    border-radius: var(--ctu-radius-sm);
    text-decoration: none;
    transition: var(--ctu-transition);
    font-weight: 600;
    font-size: 14px;
}

.ctu-pagination a {
    background: var(--ctu-white);
    color: var(--ctu-text);
    border: 1px solid var(--ctu-surface-alt);
}

.ctu-pagination a:hover {
    background: var(--ctu-panel);
    color: var(--ctu-white);
    transform: var(--ctu-hover-lift);
    border-color: var(--ctu-panel);
}

.ctu-pagination .current {
    background: var(--ctu-panel);
    color: var(--ctu-white);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .ctu-stories-grid {
        grid-template-columns: 1fr;
    }
    
    .ctu-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ctu-intensity-selector {
        grid-template-columns: 1fr;
    }
    
    .ctu-intensity-desc {
        display: none;
    }
    
    .ctu-my-stories-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ctu-stories-header {
        flex-direction: column;
        text-align: center;
    }
    
    .ctu-stories-intro {
        min-width: 100%;
    }
    
    .ctu-stories-header-text {
        text-align: center;
    }
    
    /* Responsive table */
    .ctu-stories-table,
    .ctu-stories-table thead,
    .ctu-stories-table tbody,
    .ctu-stories-table th,
    .ctu-stories-table td,
    .ctu-stories-table tr {
        display: block;
    }
    
    .ctu-stories-table thead {
        display: none;
    }
    
    .ctu-stories-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--ctu-surface-alt);
        border-radius: var(--ctu-radius-sm);
        overflow: hidden;
    }
    
    .ctu-stories-table td {
        padding: 10px 16px;
        text-align: right;
        border-bottom: 1px solid var(--ctu-surface);
    }
    
    .ctu-stories-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--ctu-text-muted);
    }
}

@media (max-width: 480px) {
    .ctu-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .ctu-login-prompt {
        padding: 40px 20px;
    }
    
    .ctu-submit-btn {
        width: 100%;
        padding: 16px 20px;
    }
    
    .ctu-intro h2 {
        font-size: 26px;
    }
    
    .ctu-form-section {
        padding: 22px 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE STORY PAGE META BLOCK
   ═══════════════════════════════════════════════════════════════ */
.ctu-single-meta {
    background: var(--ctu-surface);
    border-radius: var(--ctu-radius);
    padding: 22px 24px;
    margin-bottom: 30px;
    border: 1px solid var(--ctu-surface-alt);
    border-left: 4px solid var(--ctu-hero-blue);
}

.ctu-disclaimer {
    background: var(--ctu-panel);
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 14px;
    border-radius: var(--ctu-radius-sm);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 14px;
    font-style: italic;
}

.ctu-single-author {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--ctu-text);
}

.ctu-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.ctu-single-wordcount {
    font-size: 12px;
    color: var(--ctu-text-muted);
    padding: 3px 10px;
    background: var(--ctu-white);
    border-radius: var(--ctu-radius-xs);
    border: 1px solid var(--ctu-surface-alt);
}

.ctu-single-characters {
    font-size: 14px;
    color: var(--ctu-hero-blue);
    margin: 0 0 10px;
    font-style: italic;
}

.ctu-single-characters .ctu-chars-label {
    font-weight: 700;
    font-style: normal;
}

.ctu-single-tropes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.ctu-single-warnings {
    background: #FFFBEB;
    padding: 10px 14px;
    border-radius: var(--ctu-radius-sm);
    font-size: 13px;
    color: #92400e;
    margin-bottom: 12px;
    border: 1px solid #FDE68A;
}

.ctu-single-warnings .ctu-warning-label {
    font-weight: 700;
}

.ctu-single-author-note {
    background: var(--ctu-white);
    padding: 10px 14px;
    border-radius: var(--ctu-radius-sm);
    font-size: 13px;
    color: var(--ctu-text-muted);
    border: 1px solid var(--ctu-surface-alt);
    font-style: italic;
}

.ctu-single-author-note .ctu-note-label {
    font-weight: 700;
    font-style: normal;
    color: var(--ctu-text);
}
