/* === FieldNotes Social Agent — Design System (Light) === */
/* Clean white UI · Montserrat display · Barlow body · #007DC4 accent */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Barlow:wght@300;400;500;600;700&display=swap');

:root {
    --bg:            #EDF1F7;
    --bg-sidebar:    #FFFFFF;
    --bg-card:       #FFFFFF;
    --bg-card-hover: #F7F9FC;
    --bg-input:      #F7F9FC;
    --border:        #E4E9F0;
    --border-hover:  #C8D3E0;
    --text:          #1d293b;
    --text-muted:    #6B7785;
    --text-dim:      #9FAAB5;
    --fn-blue:       #007DC4;
    --fn-blue-hover: #0091E5;
    --fn-blue-dim:   rgba(0, 125, 196, 0.10);
    --fn-blue-glow:  rgba(0, 125, 196, 0.18);
    --accent:        var(--fn-blue);
    --accent-hover:  var(--fn-blue-hover);
    --accent-dim:    var(--fn-blue-dim);
    --green:         #17A355;
    --green-dim:     rgba(23, 163, 85, 0.12);
    --yellow:        #D97706;
    --yellow-dim:    rgba(217, 119, 6, 0.12);
    --red:           #DC2626;
    --red-dim:       rgba(220, 38, 38, 0.10);
    --orange:        #EA7316;
    --radius:        10px;
    --radius-lg:     16px;
    --radius-pill:   100px;
    --shadow-sm:     0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow:        0 4px 16px rgba(16, 24, 40, 0.08), 0 1px 4px rgba(16, 24, 40, 0.04);
    --shadow-md:     0 8px 24px rgba(16, 24, 40, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* === Typography === */

h1, h2, h3, .type-display, .type-title, .type-heading {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.01em;
}

h1 { font-weight: 700; text-transform: none; }
h2 { font-weight: 700; text-transform: none; }
h3 { font-weight: 600; text-transform: none; }

.type-overline, .section-label {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group label {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.type-caption {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 0.6875rem;
    color: var(--text-dim);
}

/* === Sidebar === */

.sidebar {
    width: 220px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    padding: 0 8px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--fn-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--fn-blue-glow);
}

.logo-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}

.logo-text-thin {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-link:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.nav-link.active {
    background: var(--fn-blue-dim);
    color: var(--fn-blue);
    font-weight: 600;
}

.nav-link.active svg {
    color: var(--fn-blue);
}

.nav-footer {
    padding: 8px 12px;
}

.version {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Barlow', sans-serif;
}

/* === Main Content === */

.content {
    margin-left: 220px;
    padding: 36px 44px;
    flex: 1;
    max-width: 1000px;
}

/* === Page Header === */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-badge {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

/* === Cards === */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.highlight-card {
    border-color: var(--fn-blue);
    box-shadow: 0 0 0 1px var(--fn-blue), var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--text);
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* === Badges === */

.pillar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fn-blue-dim);
    color: var(--fn-blue);
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pillar-badge.small {
    font-size: 10px;
    padding: 2px 7px;
}

.count-badge {
    background: var(--yellow-dim);
    color: var(--yellow);
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.status-badge {
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-pending  { background: var(--yellow-dim); color: var(--yellow); }
.status-approved { background: var(--green-dim);  color: var(--green); }
.status-posted   { background: var(--fn-blue-dim); color: var(--fn-blue); }
.status-skipped  { background: rgba(107,119,133,0.10); color: var(--text-muted); }

/* === Content Rows === */

.content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: background 0.12s;
}

.content-row:hover {
    background: var(--bg-card-hover);
}

.content-row + .content-row {
    border-top: 1px solid var(--border);
}

.content-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-row-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-row-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.context-note {
    color: var(--text-muted);
    font-size: 13px;
}

/* === Week Grid === */

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.week-day {
    text-align: center;
    padding: 12px 6px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card-hover);
    transition: all 0.15s;
}

.week-day-today {
    border-color: var(--fn-blue);
    background: var(--fn-blue-dim);
}

.week-day-name {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.week-day-date {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.week-day-pillar {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.3;
}

/* === Platform Cards === */

.platform-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.platform-card .card-header {
    position: relative;
}

.platform-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-header-left h2 {
    font-size: 0.875rem;
    font-weight: 700;
}

.platform-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

.platform-icon.platform-x  { background: #14171A; }
.platform-icon.platform-fb { background: #1877f2; }
.platform-icon.platform-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.platform-dot {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-dim);
    background: var(--bg);
    border: 1px solid var(--border);
}

.platform-dot-approved { border-color: var(--green);  color: var(--green); }
.platform-dot-posted   { border-color: var(--fn-blue); color: var(--fn-blue); }
.platform-dot-pending  { border-color: var(--yellow);  color: var(--yellow); }

/* === Post Preview === */

.post-preview {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.post-text {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-hashtags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hashtag {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--fn-blue);
    background: var(--fn-blue-dim);
    padding: 2px 8px;
    border-radius: 4px;
}

.post-meta {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.image-concept, .agent-notes {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* === Pillar Grid === */

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.pillar-ref-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.pillar-ref-card:hover {
    border-color: var(--fn-blue);
    box-shadow: 0 0 0 1px var(--fn-blue), var(--shadow);
}

.pillar-ref-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pillar-ref-name {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.pillar-ref-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}

.pillar-ref-platforms {
    font-size: 11px;
    color: var(--text-dim);
}

.pillar-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.pillar-meta strong { color: var(--text); }

/* === Forms === */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 11px 14px;
    transition: all 0.15s;
    outline: none;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--fn-blue);
    box-shadow: 0 0 0 3px var(--fn-blue-dim);
}

.form-input::placeholder {
    color: var(--text-dim);
    letter-spacing: 0.15em;
}

.form-select, .form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 11px 14px;
    transition: all 0.15s;
    -webkit-appearance: none;
}

.form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--fn-blue);
    box-shadow: 0 0 0 3px var(--fn-blue-dim);
    background: #fff;
}

.form-textarea {
    resize: vertical;
    line-height: 1.55;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--fn-blue);
    width: 16px;
    height: 16px;
}

.form-actions {
    margin-top: 24px;
}

.form-actions.compact {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

/* === Buttons === */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-pill);
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--fn-blue);
    color: #fff;
    box-shadow: 0 1px 3px var(--fn-blue-glow);
}

.btn-primary:hover {
    background: var(--fn-blue-hover);
    box-shadow: 0 4px 12px var(--fn-blue-glow);
}

.btn-ghost {
    background: #fff;
    color: var(--text-muted);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text);
}

.btn-danger-ghost {
    background: #fff;
    color: var(--red);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.btn-danger-ghost:hover {
    background: var(--red-dim);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 11px;
}

.btn-lg {
    padding: 13px 32px;
    font-size: 14px;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 4px;
}

.btn-loading {
    opacity: 0.65;
    cursor: wait;
}

/* === Thoughts Area === */

.thoughts-area {
    min-height: 160px;
    font-size: 15px;
    line-height: 1.65;
}

.thoughts-area::placeholder {
    color: var(--text-dim);
}

/* === Photo Upload === */

.photo-upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    background: var(--bg-input);
}

.photo-upload-area:hover,
.photo-upload-area.drag-over {
    border-color: var(--fn-blue);
    background: var(--fn-blue-dim);
}

.photo-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.photo-upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.photo-upload-prompt svg { color: var(--text-dim); }
.photo-upload-prompt span { font-size: 14px; }

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.photo-preview:empty { display: none; }

.photo-thumb {
    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.photo-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.photo-name {
    font-size: 10px;
    color: var(--text-dim);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === Form Layout === */

.form-row {
    display: flex;
    gap: 20px;
}

.form-group-half { flex: 1; }

/* === Source Material (review page) === */

.source-material {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.source-material h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.source-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
}

.source-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.source-photos img {
    height: 80px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: cover;
}

/* === Accent Bar === */

.accent-bar {
    height: 2px;
    background: linear-gradient(90deg, var(--fn-blue), transparent);
    border-radius: 1px;
}

/* === Empty State === */

.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* === Utilities === */

.text-muted { color: var(--text-muted); }
.meta-item strong { color: var(--text); }

/* === Engagement Queue === */

.engage-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.manual-add-form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 280px;
}

.manual-add-form .form-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.manual-add-form .form-input:focus {
    outline: none;
    border-color: var(--fn-blue);
    box-shadow: 0 0 0 3px var(--fn-blue-dim);
}

.engage-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.engage-card .tweet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.tweet-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fn-blue-dim);
    color: var(--fn-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.tweet-text {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 10px;
    white-space: pre-wrap;
    color: var(--text);
}

.tweet-keywords {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.keyword-tag {
    background: var(--fn-blue-dim);
    color: var(--fn-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tweet-metrics {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.metric {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.engage-btn svg {
    vertical-align: -2px;
    margin-right: 4px;
}

.reply-draft {
    margin: 12px 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.reply-draft .form-textarea {
    margin-bottom: 8px;
    background: #fff;
}

/* Rate limit badges */
.rate-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rate-badge {
    background: var(--fn-blue-dim);
    color: var(--fn-blue);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Barlow', sans-serif;
}

.rate-badge.rate-exhausted {
    background: var(--red-dim);
    color: var(--red);
}

/* Info card */
.info-card {
    border-left: 3px solid var(--yellow);
}

.info-card .card-body {
    color: var(--text-muted);
}

.info-card strong {
    color: var(--yellow);
}

/* Engagement log */
.engage-log {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.log-entry:last-child { border-bottom: none; }

.log-action {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 70px;
    text-align: center;
}

.log-liked    { background: var(--red-dim);             color: var(--red); }
.log-replied  { background: var(--fn-blue-dim);         color: var(--fn-blue); }
.log-retweeted{ background: var(--green-dim);           color: var(--green); }
.log-skipped  { background: rgba(107,119,133,0.10);     color: var(--text-muted); }

.log-reply {
    color: var(--text-muted);
    font-style: italic;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Flash messages */
.flash {
    padding: 10px 16px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.flash-success {
    background: var(--green-dim);
    color: var(--green);
    border-color: rgba(23, 163, 85, 0.25);
}

.flash-error {
    background: var(--red-dim);
    color: var(--red);
    border-color: rgba(220, 38, 38, 0.2);
}

/* === Post Confirmation Modal === */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 520px;
    width: 90%;
    box-shadow: var(--shadow-md);
}

.modal-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: var(--text);
}

.modal-preview {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.modal-preview-text {
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
    color: var(--text);
    margin-bottom: 10px;
}

.modal-preview-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-cost { color: var(--yellow); font-weight: 600; }

.modal-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

/* === Usage Widget === */

.usage-widget {
    display: flex;
    gap: 28px;
    align-items: center;
}

.usage-stat { text-align: center; }

.usage-stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--fn-blue);
    line-height: 1;
    margin-bottom: 4px;
}

.usage-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

/* === Responsive === */

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 16px 8px;
    }
    .logo-text, .nav-link span, .version { display: none; }
    .logo-icon { margin: 0 auto; }
    .nav-link { justify-content: center; padding: 10px; }
    .content { margin-left: 60px; padding: 20px 16px; }
    .week-grid { grid-template-columns: repeat(4, 1fr); }
    .checkbox-group { flex-direction: column; }
}

/* === Brand Switcher === */
.brand-switcher {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.brand-tab {
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: all 0.15s;
}
.brand-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.brand-tab-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* === Inbox === */
.inbox-card {
    border-left: 3px solid #FBBF24;
}
.inbox-badge {
    background: rgba(251, 191, 36, 0.15);
    color: #92400E;
}
.inbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.inbox-row:last-child { border-bottom: none; }
.inbox-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.inbox-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.inbox-row-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inbox-week {
    font-size: 12px;
    white-space: nowrap;
}

/* === Brand Badge === */
.brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.brand-fieldnotes {
    background: var(--fn-blue-dim);
    color: var(--fn-blue);
}
.brand-topnine {
    background: rgba(0, 62, 110, 0.10);
    color: #003E6E;
}

/* === Source Badge (Skip) === */
.source-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(251, 191, 36, 0.15);
    color: #92400E;
}

/* === LinkedIn platform icon === */
.platform-li {
    background: #0A66C2;
    color: #fff;
}
