/* ── Variables ── */
:root {
    --sb-w: 260px;
    --bg: #f0f4ff;
    --surface: #ffffff;
    --surface2: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #2563eb;
    --primary2: #1d4ed8;
    --danger: #dc2626;
    --ok: #16a34a;
    --warning: #f97316;
    --shadow: 0 4px 24px rgba(15,23,42,.10);
    --shadow2: 0 2px 10px rgba(15,23,42,.07);
    --radius: 16px;
    --radius-sm: 10px;

    /* Sidebar */
    --sb-bg: #0f172a;
    --sb-text: rgba(255,255,255,.85);
    --sb-muted: rgba(255,255,255,.45);
    --sb-active: rgba(255,255,255,.12);
    --sb-hover: rgba(255,255,255,.07);
}

.dark {
    --bg: #0d1117;
    --surface: #161b22;
    --surface2: #1c2230;
    --text: #e6edf3;
    --muted: #8b949e;
    --line: #30363d;
    --shadow: 0 4px 24px rgba(0,0,0,.4);
    --shadow2: 0 2px 10px rgba(0,0,0,.3);
}

/* ── Reset ── */
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);transition:background .2s,color .2s}
a{color:inherit;text-decoration:none}

/* ── Sidebar ── */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sb-w);
    background: linear-gradient(180deg, #0f172a 0%, #1a2a5e 100%);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform .25s ease;
}

.sb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sb-logo {
    width: 38px; height: 38px;
    background: var(--primary);
    border-radius: 10px;
    font-size: 20px; font-weight: 900;
    color: white;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.sb-brand { color: white; font-weight: 800; font-size: 17px; }
.sb-sub   { color: var(--sb-muted); font-size: 11px; margin-top: 1px; }

.sb-search-wrap { padding: 14px 14px 8px; }
.sb-search {
    width: 100%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    color: white;
    font: inherit;
    font-size: 13px;
}
.sb-search::placeholder { color: var(--sb-muted); }
.sb-search:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,.12); }

.sb-nav {
    flex: 1;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sb-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--sb-text);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s;
    position: relative;
}
.sb-link:hover { background: var(--sb-hover); }
.sb-link.sb-active { background: var(--sb-active); color: white; font-weight: 700; }

.sb-ic { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

.sb-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 999px;
    animation: pulse-badge 1.8s infinite;
}

.sb-group {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--sb-muted);
    padding: 14px 12px 4px;
}

.sb-footer {
    padding: 12px 14px 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sb-dark-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    color: var(--sb-text);
    font: inherit;
    font-size: 13px;
    padding: 8px 12px;
    cursor: pointer;
    text-align: left;
    transition: background .15s;
}
.sb-dark-btn:hover { background: rgba(255,255,255,.14); }

.sb-user { display: flex; align-items: center; gap: 10px; }
.sb-avatar {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: 50%;
    font-weight: 800; font-size: 16px; color: white;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sb-uname  { color: white; font-size: 13px; font-weight: 600; }
.sb-logout { color: var(--sb-muted); font-size: 12px; }
.sb-logout:hover { color: white; }

.sb-hamburger {
    display: none;
    position: fixed;
    top: 14px; left: 14px;
    z-index: 300;
    background: var(--sb-bg);
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
}

/* ── Page layout ── */
.page-wrap {
    margin-left: var(--sb-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.page-nosidebar { margin-left: 0; }

.main { padding: 28px; flex: 1; }

/* ── Page header ── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.page-title { margin: 0 0 4px; font-size: 26px; font-weight: 900; }
.page-sub   { margin: 0; color: var(--muted); font-size: 14px; }

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

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    transition: filter .15s, transform .1s;
    text-decoration: none;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: white; margin-top: 10px; }
.btn-ai      { background: linear-gradient(135deg,#7c3aed,#2563eb); color: white; }
.btn-sec     { background: #0f172a; color: white; }

/* ── Stats ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.sc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow2);
    transition: transform .15s, box-shadow .15s;
    border-top: 4px solid;
}
.sc:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sc-blue   { border-top-color: #3b82f6; }
.sc-red    { border-top-color: #ef4444; }
.sc-orange { border-top-color: #f97316; }
.sc-indigo { border-top-color: #6366f1; }
.sc-green  { border-top-color: #22c55e; }

.sc-num { font-size: 32px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.sc-lbl { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ── Toolbar ── */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow2);
}

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.view-toggle { display: flex; gap: 4px; }
.vt-btn {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    cursor: pointer;
    transition: all .15s;
}
.vt-btn.vt-active { background: var(--primary); color: white; border-color: var(--primary); }
.vt-btn:hover:not(.vt-active) { background: var(--bg); color: var(--text); }

/* ── Kanban ── */
.kanban {
    display: grid;
    grid-template-columns: repeat(6, minmax(250px,1fr));
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.kanban-column {
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
}

.column-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.column-head h2 { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.column-head span {
    background: var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
}

.drop-zone { min-height: 120px; }

/* ── Task card ── */
.task-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid #94a3b8;
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow2);
    transition: transform .15s, box-shadow .15s;
    cursor: grab;
}
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.task-card.dragging { opacity: .4; }

.priority-baja    { border-left-color: #22c55e; }
.priority-media   { border-left-color: #3b82f6; }
.priority-alta    { border-left-color: #f97316; }
.priority-urgente { border-left-color: #ef4444; }

.task-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.task-top-right { display: flex; align-items: center; gap: 6px; }

.task-card h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.task-card h3 a { color: var(--text); }
.task-card h3 a:hover { color: var(--primary); }

.task-desc { color: var(--muted); font-size: 12px; margin: 0 0 8px; line-height: 1.4; }

.task-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.meta-chip {
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.chip-overdue { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }

/* ── Priority tag ── */
.ptag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.ptag-baja    { background: #dcfce7; color: #166534; }
.ptag-media   { background: #dbeafe; color: #1e40af; }
.ptag-alta    { background: #ffedd5; color: #9a3412; }
.ptag-urgente { background: #fee2e2; color: #991b1b; }

.ai-badge { background: #ede9fe; color: #5b21b6; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }

.mini-av {
    width: 24px; height: 24px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mini-av.sm { width: 20px; height: 20px; font-size: 10px; }

/* ── Move form ── */
.move-form { display: flex; gap: 6px; margin-top: 8px; }
.move-form select { flex: 1; font-size: 12px; padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); color: var(--text); }
.move-form button { background: var(--primary); color: white; border: 0; border-radius: var(--radius-sm); padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ── List view ── */
.list-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow2); overflow: auto; }
.task-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.task-table th { background: var(--surface2); padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); }
.task-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list-row:hover { background: var(--surface2); }
.list-row:last-child td { border-bottom: 0; }
.list-title { font-weight: 600; color: var(--text); }
.list-title:hover { color: var(--primary); }
.col-overdue { color: var(--danger); font-weight: 700; }

.status-chip {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.s-inbox   { background: #f1f5f9; color: #334155; }
.s-today   { background: #dbeafe; color: #1e40af; }
.s-doing   { background: #dcfce7; color: #166534; }
.s-blocked { background: #fee2e2; color: #991b1b; }
.s-review  { background: #fef9c3; color: #854d0e; }
.s-done    { background: #f1f5f9; color: #94a3b8; }

/* ── Forms ── */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow2);
    margin-bottom: 20px;
}
.panel h2 { margin: 0 0 16px; font-size: 18px; }

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 20px;
}
.login-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
    text-align: center;
}
.login-logo {
    width: 56px; height: 56px;
    background: var(--primary);
    border-radius: 16px;
    font-size: 28px; font-weight: 900; color: white;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(37,99,235,.4);
}
.login-title { margin: 0 0 6px; font-size: 24px; font-weight: 900; }
.login-sub   { margin: 0; color: var(--muted); font-size: 14px; }
.login-card form { text-align: left; }
.login-card h1 { margin-top: 0; }

form label { display: block; font-size: 13px; font-weight: 700; margin: 10px 0 4px; }

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font: inherit;
    font-size: 14px;
    background: var(--surface2);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
textarea { resize: vertical; }

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font: inherit;
    font-weight: 700;
    background: var(--primary);
    color: white;
    cursor: pointer;
    margin-top: 10px;
    transition: filter .15s, transform .1s;
}
button:hover, .button:hover { filter: brightness(1.1); transform: translateY(-1px); }
button:active { transform: translateY(0); }

.compact-form { display: flex; flex-direction: column; gap: 8px; }
.form-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.muted { color: var(--muted); }
.hint { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; color: var(--muted); margin-top: 12px; }
.info-list p { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 0 0 8px; }
.source-box { white-space: pre-wrap; background: #0f172a; color: #e2e8f0; border-radius: var(--radius-sm); padding: 14px; font-size: 13px; }

/* ── Flash ── */
.flash-wrap { margin-bottom: 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.flash.ok    { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }

/* ── Briefing ── */
.briefing-banner {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    color: white;
    padding: 14px 24px;
    display: flex;
    align-items: flex-start;
}
.briefing-inner { display: flex; align-items: flex-start; gap: 12px; max-width: 900px; margin: 0 auto; width: 100%; }
.briefing-icon  { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.briefing-text  { flex: 1; margin: 0; font-size: 14px; line-height: 1.6; }
.briefing-close { background: rgba(255,255,255,.15); border: 0; color: white; font-size: 20px; border-radius: 50%; width: 28px; height: 28px; padding: 0; cursor: pointer; flex-shrink: 0; line-height: 1; margin-top: 0; }

/* ── Today view ── */
.hero {
    background: linear-gradient(135deg, var(--surface), #dbeafe);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow2);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}
.dark .hero { background: linear-gradient(135deg, var(--surface), #1e3a5f); border-color: #1e3a8a; }
.hero h1 { margin: 0 0 6px; font-size: 26px; }
.hero p  { margin: 0; color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.today-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid #94a3b8;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    box-shadow: var(--shadow2);
}
.today-item h2 { margin: 0 0 6px; font-size: 17px; }
.today-item h2 a { color: var(--text); }

.suggestion, .comment, .audit-item {
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 12px;
}
.checkline { display: flex; align-items: center; gap: 8px; }
.checkline input { width: auto; }
.comment span, .audit-item span { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; }
.comments { margin-top: 16px; }

/* ── Tables (admin) ── */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 11px 12px; text-align: left; }
th { background: var(--surface2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ── Chat ── */
.chat-wrap {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface2); }
.chat-header strong { font-size: 16px; display: block; margin-bottom: 2px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; line-height: 1.9; }
.bubble-row { display: flex; }
.row-user { justify-content: flex-end; }
.row-assistant { justify-content: flex-start; }
.bubble { max-width: 72%; border-radius: 18px; padding: 12px 16px; }
.bubble-user { background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.bubble-assistant { background: var(--surface2); color: var(--text); border-bottom-left-radius: 4px; border: 1px solid var(--line); }
.bubble-text { font-size: 14px; line-height: 1.65; }

/* Markdown en burbujas */
.bubble-text ul, .bubble-text ol { margin: 6px 0 6px 18px; padding: 0; }
.bubble-text li { margin-bottom: 3px; }
.bubble-text strong { font-weight: 800; }
.bubble-text code { background: rgba(0,0,0,.12); border-radius: 4px; padding: 1px 5px; font-size: 13px; font-family: monospace; }
.bubble-user .bubble-text code { background: rgba(255,255,255,.2); }
.bubble-text pre { background: rgba(0,0,0,.15); border-radius: 8px; padding: 10px; overflow-x: auto; margin: 6px 0; }
.bubble-text pre code { background: none; padding: 0; }
.md-h { margin: 8px 0 4px; font-size: 15px; }
.bubble-time { font-size: 11px; opacity: .5; margin-top: 5px; text-align: right; }
.bubble-typing { display: flex; align-items: center; gap: 5px; padding: 14px 18px; }
.bubble-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bubble-typing span:nth-child(2){animation-delay:.2s}
.bubble-typing span:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.2}40%{opacity:1}}
.chat-input-area { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input-area input { flex: 1; margin: 0; }
.chat-input-area button { margin-top: 0; white-space: nowrap; }
.voice-btn { background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 18px; cursor: pointer; margin-top: 0; flex-shrink: 0; }
.voice-btn.voice-active { background: #fee2e2; border-color: var(--danger); animation: pulse-badge .6s infinite; }
.action-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface2); }
.action-chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip-ok  { background: #dcfce7; color: #166534; }
.chip-err { background: #fee2e2; color: #991b1b; }

/* ── Manual ── */
.manual-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.manual-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 20px; box-shadow: var(--shadow2); display: flex; flex-direction: column; gap: 6px; }
.manual-nav strong { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.manual-nav a { color: var(--primary); font-size: 14px; padding: 5px 8px; border-radius: 8px; }
.manual-nav a:hover { background: var(--surface2); }
.manual-content { display: flex; flex-direction: column; gap: 28px; }
.manual-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow2); }
.manual-section h2 { margin: 0 0 16px; font-size: 20px; border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.manual-section h3 { margin: 20px 0 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.manual-section p, .manual-section li { line-height: 1.65; }
.manual-card { background: var(--surface2); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 12px; }
.manual-card.warn { border-left-color: var(--danger); }
.manual-card.highlight { border-left-color: var(--ok); background: #f0fdf4; }
.dark .manual-card.highlight { background: #052e16; }
.manual-card strong { display: block; margin-bottom: 4px; }
.status-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.status-pill { padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.priority-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.prow { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ptag.p-baja    { background: #dcfce7; color: #166534; }
.ptag.p-media   { background: #dbeafe; color: #1e40af; }
.ptag.p-alta    { background: #ffedd5; color: #9a3412; }
.ptag.p-urgente { background: #fee2e2; color: #991b1b; }
.examples-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.example { display: flex; align-items: center; gap: 10px; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.ex-tag { font-size: 11px; font-weight: 900; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #e0e7ff; color: #3730a3; white-space: nowrap; }
.example code { font-size: 13px; font-family: inherit; }
.tips-list { display: flex; flex-direction: column; gap: 12px; }
.tip { display: flex; gap: 14px; align-items: flex-start; }
.tip-num { background: var(--primary); color: white; font-weight: 900; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }

/* ── Animations ── */
@keyframes pulse-badge{0%,100%{opacity:1}50%{opacity:.6}}

/* ── AI capture suggestion ── */
.suggestion { border-left: 4px solid var(--primary); }

/* ── Buttons extra ── */
.btn-report { background: #0f766e; color: white; }

/* ── Calendar ── */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.cal-month-title { margin: 0; font-size: 22px; font-weight: 900; }
.cal-nav-btn {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: background .15s;
}
.cal-nav-btn:hover { background: var(--surface2); }

.cal-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow2);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--line);
}

.cal-dow {
    background: var(--surface2);
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

.cal-day {
    background: var(--surface);
    padding: 8px;
    min-height: 110px;
    vertical-align: top;
    transition: background .1s;
}
.cal-day:hover { background: var(--surface2); }
.cal-empty { background: var(--surface2); min-height: 110px; }
.cal-today { background: #eff6ff !important; }
.dark .cal-today { background: #1e3a5f !important; }

.cal-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 4px;
}
.cal-num-today {
    background: var(--primary);
    color: white;
}

.cal-task-chip {
    display: block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 5px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    transition: opacity .15s;
}
.cal-task-chip:hover { opacity: .85; }
.cal-baja    { background: #22c55e; }
.cal-media   { background: #3b82f6; }
.cal-alta    { background: #f97316; }
.cal-urgente { background: #ef4444; }

/* ── Modals ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.modal-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(15,23,42,.3);
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modal-in .18s ease;
}
.modal-wide { max-width: 640px; }

@keyframes modal-in {
    from { opacity: 0; transform: scale(.95) translateY(-10px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-head button {
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 30px; height: 30px;
    font-size: 18px;
    cursor: pointer;
    color: var(--muted);
    margin: 0; padding: 0;
    line-height: 1;
}

/* ── Shortcuts ── */
.shortcuts-list { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.sc-row { display: flex; align-items: center; gap: 14px; }
kbd {
    background: var(--surface2);
    border: 1px solid var(--line);
    border-bottom-width: 3px;
    border-radius: 6px;
    padding: 3px 9px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

/* ── Weekly report ── */
.report-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px 20px 0;
}
.rs-card {
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}
.rs-card span { display: block; font-size: 36px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.rs-done { background: #dcfce7; color: #166534; }
.rs-pend { background: #dbeafe; color: #1e40af; }
.report-text {
    padding: 18px 20px 20px;
    line-height: 1.7;
    font-size: 15px;
    color: var(--text);
}

/* ── Feature 1: Subtask mini progress (kanban card) ── */
.subtask-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 8px;
}
.subtask-mini-bar {
    flex: 1;
    height: 5px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.subtask-mini-fill {
    height: 100%;
    background: var(--ok);
    border-radius: 999px;
    transition: width .3s;
}
.subtask-mini-label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

/* ── Feature 1: Subtask section (task detail) ── */
.subtask-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.subtask-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.subtask-progress-fill {
    height: 100%;
    background: var(--ok);
    border-radius: 999px;
    transition: width .3s;
}
.subtask-progress-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}
.subtask-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.subtask-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.subtask-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}
.subtask-check input[type="checkbox"] {
    width: 16px; height: 16px;
    cursor: pointer;
    accent-color: var(--ok);
}
.subtask-done {
    text-decoration: line-through;
    color: var(--muted);
}
.subtask-add-form {
    display: flex;
    gap: 8px;
}
.btn-icon-del {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    margin: 0;
    line-height: 1;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
.btn-icon-del:hover { color: var(--danger); background: #fee2e2; transform: none; }

/* ── Feature 2: Tag chips ── */
.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid transparent;
}
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
}
.tag-remove {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin: 0;
    color: inherit;
    opacity: .7;
    transition: opacity .15s;
}
.tag-remove:hover { opacity: 1; transform: none; filter: none; }
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 36px;
}

/* ── Feature 4: Notifications ── */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.notif-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    transition: background .1s;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--surface2); }
.notif-unread { background: #eff6ff; }
.dark .notif-unread { background: #1e3a5f22; }
.notif-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.notif-msg { font-size: 14px; font-weight: 600; color: var(--text); }
a.notif-msg:hover { color: var(--primary); }
.notif-time { font-size: 11px; color: var(--muted); }
.notif-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* ── Feature 5: Timeline ── */
.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.timeline-week {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow2);
}
.timeline-week-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface2);
    border-bottom: 1px solid var(--line);
}
.timeline-week-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}
.timeline-week-dates {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.timeline-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--line);
}
.timeline-day {
    background: var(--surface);
    padding: 8px;
    min-height: 90px;
}
.timeline-today {
    background: #eff6ff;
}
.dark .timeline-today { background: #1e3a5f22; }
.timeline-day-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.timeline-day-name {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: .04em;
}
.timeline-day-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.timeline-today-num {
    background: var(--primary);
    color: white;
}
.timeline-tasks {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tl-chip {
    display: block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 5px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .15s;
}
.tl-chip:hover { opacity: .85; }
.tl-baja    { background: #22c55e; }
.tl-media   { background: #3b82f6; }
.tl-alta    { background: #f97316; }
.tl-urgente { background: #ef4444; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.sb-open { transform: translateX(0); }
    .page-wrap { margin-left: 0; }
    .sb-hamburger { display: block; }
    .stats-row { grid-template-columns: repeat(3,1fr); }
    .grid-two { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { flex-direction: column; align-items: flex-start; }
    .manual-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .stats-row { grid-template-columns: repeat(2,1fr); }
    .page-header { flex-direction: column; }
    .toolbar { flex-direction: column; align-items: flex-start; }
    .main { padding: 16px; }
    .chat-wrap { height: calc(100vh - 80px); border-radius: 0; }
}

/* ── Pomodoro floating button & panel ── */
.pomo-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    font-size: 22px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,99,235,.45);
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, box-shadow .2s;
}
.pomo-fab:hover { transform: scale(1.10); box-shadow: 0 6px 28px rgba(37,99,235,.6); }

.pomo-panel {
    position: fixed;
    bottom: 92px;
    right: 28px;
    z-index: 998;
    width: 300px;
    background: rgba(15,23,42,.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 20px 20px 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,.5);
    flex-direction: column;
    gap: 12px;
    color: #e2e8f0;
}

.pomo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pomo-title { font-weight: 700; font-size: 15px; }
.pomo-close {
    background: none; border: none; color: rgba(255,255,255,.5);
    font-size: 20px; cursor: pointer; line-height: 1; padding: 0;
}
.pomo-close:hover { color: white; }

.pomo-phase {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(255,255,255,.1);
    width: fit-content;
    margin: 0 auto;
}
.pomo-phase-work   { background: rgba(37,99,235,.3); color: #93c5fd; }
.pomo-phase-break  { background: rgba(22,163,74,.3); color: #86efac; }

.pomo-timer {
    text-align: center;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: white;
    line-height: 1;
}

.pomo-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.pomo-btn {
    padding: 7px 16px;
    border-radius: 99px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}
.pomo-btn:hover { opacity: .85; }
.pomo-start  { background: #2563eb; color: white; }
.pomo-pause  { background: #f97316; color: white; }
.pomo-reset  { background: rgba(255,255,255,.12); color: #e2e8f0; }

.pomo-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.5);
    margin-bottom: 4px;
    display: block;
}
.pomo-select {
    width: 100%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
}
.pomo-select option { background: #1e293b; }

.pomo-count {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.55);
}

/* ── @mention styles ── */
.mention {
    color: var(--primary);
    font-weight: 700;
    background: #dbeafe;
    padding: 1px 4px;
    border-radius: 4px;
}
.dark .mention { background: rgba(37,99,235,.25); }

/* ── AI suggest button ── */
.btn-ai-suggest {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
    margin-top: 0;
}
.btn-ai-suggest:hover { opacity: .85; }
.btn-ai-suggest:disabled { opacity: .5; cursor: wait; }

/* ── Analytics grid ── */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.analytics-wide { grid-column: 1 / -1; }
.analytics-panel canvas { max-height: 320px; }

/* ── Templates grid ── */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.tpl-card { display: flex; flex-direction: column; }
.tpl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.tpl-name { margin: 0; font-size: 17px; }
.tpl-badge {
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
}
.tpl-desc { margin: 0 0 12px; font-size: 13px; }
.tpl-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.tpl-task-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    background: var(--surface2);
    border: 1px solid var(--line);
}

@media (max-width: 900px) {
    .analytics-grid { grid-template-columns: 1fr; }
    .analytics-wide { grid-column: 1; }
}

/* ── Task Dependencies ── */
.dep-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}
.dep-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}
.dep-chip-blocked {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.dep-chip-done {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.dep-chip-blocks {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}
.dep-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
    color: inherit;
    opacity: .65;
    margin: 0;
}
.dep-remove:hover { opacity: 1; }
.dark .dep-chip-blocked { background: rgba(153,27,27,.25); border-color: rgba(252,165,165,.3); color: #fca5a5; }
.dark .dep-chip-done    { background: rgba(22,101,52,.25); border-color: rgba(134,239,172,.3); color: #86efac; }
.dark .dep-chip-blocks  { background: rgba(30,64,175,.25); border-color: rgba(147,197,253,.3); color: #93c5fd; }

/* Kanban blocker chip */
.blocker-chip {
    font-size: 11px;
    font-weight: 700;
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 99px;
    padding: 2px 8px;
    margin-top: 5px;
    display: inline-block;
}
.dark .blocker-chip { background: rgba(153,27,27,.25); border-color: rgba(252,165,165,.3); color: #fca5a5; }

/* ── Visual History Timeline ── */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.tl-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 16px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 22px;
    bottom: 0;
    width: 2px;
    background: var(--line);
    border-left: 2px dashed var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 2px var(--line);
    background: var(--muted);
}
.tl-dot-create    { background: #2563eb; box-shadow: 0 0 0 2px #93c5fd; }
.tl-dot-move      { background: #7c3aed; box-shadow: 0 0 0 2px #c4b5fd; }
.tl-dot-comment   { background: #0891b2; box-shadow: 0 0 0 2px #67e8f9; }
.tl-dot-update    { background: #d97706; box-shadow: 0 0 0 2px #fcd34d; }
.tl-dot-log_time  { background: #059669; box-shadow: 0 0 0 2px #6ee7b7; }
.tl-dot-create_from_ai { background: #7c3aed; box-shadow: 0 0 0 2px #c4b5fd; }
.tl-content { flex: 1; min-width: 0; }
.tl-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}
.tl-icon { font-size: 14px; }
.tl-user { font-size: 13px; color: var(--text); }
.tl-time {
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
    cursor: default;
}
.tl-detail {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Automation rules styles ── */
.auto-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}
.auto-on  { background: #dcfce7; color: #166534; }
.auto-off { background: #f1f5f9; color: var(--muted); }
.dark .auto-on  { background: rgba(22,101,52,.25); color: #86efac; }
.dark .auto-off { background: rgba(100,116,139,.15); color: var(--muted); }
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--line);
    background: var(--surface2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text);
    transition: background .15s;
    margin: 0;
}
.btn-sm:hover { background: var(--line); }
.btn-danger-sm {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}
.btn-danger-sm:hover { background: #fca5a5; }

/* ── Duplicate detection banner ── */
.dup-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: #92400e;
    margin: 4px 0;
}
.dark .dup-banner { background: rgba(252,211,77,.12); border-color: rgba(252,211,77,.3); color: #fcd34d; }
.dup-icon { font-size: 15px; }
.dup-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: inherit;
    opacity: .7;
    padding: 0 2px;
    line-height: 1;
}
.dup-close:hover { opacity: 1; }
