/* 时间管理四象限模型工具面板 */
.sev-tool-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 0;
}

.sev-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-muted, #f9fafb);
    flex-shrink: 0;
}

.sev-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sev-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sev-title i { color: #ef4444; }

.sev-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.sev-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sev-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.sev-btn:hover {
    border-color: #ef4444;
    color: #dc2626;
}

.sev-btn-primary {
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-color: transparent;
    color: #fff !important;
}

.sev-btn-primary:hover {
    opacity: 0.88;
    border-color: transparent !important;
}

.sev-canvas-wrap {
    flex: 1;
    overflow: auto;
    padding: 16px;
    background-color: #eef1f5;
    background-image: radial-gradient(circle, #c5cdd8 1px, transparent 1px);
    background-size: 18px 18px;
    min-height: 480px;
}

.sev-board {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    padding: 24px 28px 20px;
    min-width: 680px;
}

.sev-map-header {
    margin-bottom: 20px;
}

.sev-map-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.sev-map-subtitle {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

/* 矩阵布局：Y 轴 + 主区域 */
.sev-matrix-layout {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 8px;
    align-items: stretch;
}

.sev-y-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 36px;
    position: relative;
}

.sev-y-axis::after {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 44px;
    left: 50%;
    width: 2px;
    background: #cbd5e1;
    transform: translateX(-50%);
}

.sev-matrix-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sev-x-axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    position: relative;
    min-height: 28px;
}

.sev-x-axis::before {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 50%;
    height: 2px;
    background: #cbd5e1;
    transform: translateY(-50%);
}

.sev-axis-tip {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 10px;
}

.sev-axis-important {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.sev-axis-unimportant {
    color: #64748b;
    background: #f1f5f9;
}

.sev-axis-not-urgent {
    color: #64748b;
    background: #f1f5f9;
}

.sev-axis-urgent {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

/* 2×2 象限 */
.sev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 420px;
}

.sev-quadrant {
    position: relative;
    border-radius: 10px;
    border: 1.5px solid transparent;
    padding: 14px 16px 32px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sev-q-i {
    background: #fef2f2;
    border-color: #fecaca;
}

.sev-q-ii {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.sev-q-iii {
    background: #fefce8;
    border-color: #fde047;
}

.sev-q-iv {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.sev-q-head {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.sev-head-red    { color: #dc2626; }
.sev-head-green  { color: #059669; }
.sev-head-yellow { color: #ca8a04; }
.sev-head-grey   { color: #475569; }

.sev-notes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
}

.sev-note {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #334155;
    outline: none;
    cursor: text;
    word-break: break-word;
}

.sev-note:empty::before {
    content: '点击输入…';
    color: #94a3b8;
}

.sev-note:focus {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.sev-note-bullet {
    padding: 2px 4px 2px 16px;
    position: relative;
}

.sev-note-bullet::before {
    content: '•';
    position: absolute;
    left: 2px;
    color: inherit;
    opacity: 0.55;
    font-weight: 700;
}

.sev-q-i .sev-note-bullet   { color: #991b1b; }
.sev-q-ii .sev-note-bullet  { color: #065f46; }
.sev-q-iii .sev-note-bullet { color: #854d0e; }
.sev-q-iv .sev-note-bullet   { color: #475569; }

.sev-btn-add-note {
    position: absolute;
    right: 8px;
    bottom: 6px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.85);
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    transition: opacity 0.15s;
}

.sev-quadrant:hover .sev-btn-add-note { opacity: 1; }

.sev-btn-add-note:hover {
    border-color: #ef4444;
    color: #dc2626;
}
@media (max-width: 768px) {
    .sev-board {
        min-width: 620px;
        padding: 16px 18px;
    }

    .sev-grid {
        min-height: 360px;
    }
}
