/* 湖南平楚（海口）律师事务所 OA系统 v3.0 - 样式表 */
:root {
    --bg: #f5f5f5; --bg-card: #fff; --bg-sidebar: #1a1a2e;
    --text: #333; --text-light: #666; --text-muted: #999;
    --primary: #2563eb; --primary-light: #dbeafe;
    --success: #16a34a; --success-light: #dcfce7;
    --warning: #d97706; --warning-light: #fef3c7;
    --danger: #dc2626; --danger-light: #fee2e2;
    --border: #e5e7eb; --radius: 8px; --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; display: flex; min-height: 100vh; }
.local-preview-notice { margin: 0 0 16px; padding: 11px 14px; border: 1px solid #f4d485; border-radius: 10px; background: #fff8e7; color: #775315; line-height: 1.5; }

/* ─── 侧边栏 ─── */
.sidebar { width: 220px; background: var(--bg-sidebar); color: #ccc; display: flex; flex-direction: column; flex-shrink: 0; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; }
.sidebar .brand { padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.sidebar .brand .brand-mark { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 18px; flex-shrink: 0; }
.sidebar .brand strong { color: #fff; font-size: 15px; display: block; }
.sidebar .brand span { font-size: 11px; color: #888; }
.sidebar nav { flex: 1; padding: 8px 0; overflow-y: auto; }
.sidebar nav .nav-section { padding: 8px 16px 4px; font-size: 10px; text-transform: uppercase; color: #555; letter-spacing: 1px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: #aaa; text-decoration: none; font-size: 14px; transition: all .15s; border-left: 3px solid transparent; }
.sidebar nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar nav a.active { background: rgba(37,99,235,.15); color: #60a5fa; border-left-color: #3b82f6; font-weight: 500; }
.sidebar .user-info { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 8px; }
.sidebar .user-info .avatar { width: 32px; height: 32px; background: #334155; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; flex-shrink: 0; }
.sidebar .user-info .name { font-size: 13px; color: #ddd; }
.sidebar .user-info .role { font-size: 11px; color: #777; }
.sidebar .user-info a { margin-left: auto; color: #666; text-decoration: none; font-size: 12px; }
.nav-count { background:#dc2626; color:#fff; border-radius:10px; padding:1px 6px; font-size:10px; }
.owner-nav-more summary { cursor:pointer; padding:11px 16px; color:#aaa; list-style:none; font-size:14px; }
.owner-nav-more summary::-webkit-details-marker { display:none; }
.owner-nav-more summary:hover,.owner-nav-more[open] summary { color:#fff; background:rgba(255,255,255,.05); }
.owner-nav-more-panel { padding-bottom:12px; }
.owner-nav-more-panel a { padding-left:26px !important; }

/* ─── 主内容区 ─── */
.main { flex: 1; min-width: 0; margin-left: 220px; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { background: #fff; padding: 12px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.topbar h1 { font-size: 18px; font-weight: 600; }
.topbar .actions { display: flex; gap: 8px; align-items: center; }
.content { min-width: 0; padding: 24px; flex: 1; }

/* ─── 网站备案信息 ─── */
.site-footer,
.login-records {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}
.site-footer {
    padding: 14px 24px 18px;
    border-top: 1px solid var(--border);
    background: #fff;
}
.login-records {
    margin-top: 18px;
    color: rgba(255,255,255,.72);
}
.site-footer a,
.login-records a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.site-footer a:hover,
.login-records a:hover { color: var(--primary); }
.beian-icon {
    width: 18px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.footer-separator { color: currentColor; opacity: .5; }

/* ─── 按钮 ─── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: all .15s; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── 卡片 ─── */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header h2 { font-size: 16px; font-weight: 600; }

/* ─── 指标卡片 ─── */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.metric-card .icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.icon-blue { background: var(--primary-light); color: var(--primary); }
.icon-amber { background: var(--warning-light); color: var(--warning); }
.icon-green { background: var(--success-light); color: var(--success); }
.icon-red { background: var(--danger-light); color: var(--danger); }
.metric-card strong { display: block; font-size: 24px; font-weight: 700; }
.metric-card span { font-size: 13px; color: var(--text-muted); }

/* ─── 表格 ─── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 12px; background: var(--bg); color: var(--text-light); font-weight: 600; font-size: 12px; border-bottom: 2px solid var(--border); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
tr:hover td { background: #fafbff; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-amber { background: var(--warning-light); color: var(--warning); }
.badge-green { background: var(--success-light); color: var(--success); }
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-gray { background: #f1f5f9; color: #64748b; }

/* ─── 表单 ─── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.col3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-light); }
.form-group input, .form-group select, .form-group textarea {
    padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; font-family: inherit; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--text-muted); }
.case-form-section legend { padding: 0 4px; }

/* ─── 分栏布局 ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── 标签/Tabs ─── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab { padding: 10px 20px; cursor: pointer; border: none; background: none; font-size: 14px; color: var(--text-muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ─── 待办列表 ─── */
.todo-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.todo-item:last-child { border-bottom: none; }

/* ─── 文件上传区 ─── */
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--text-muted); }
.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }

/* ─── 风险清单 ─── */
.risk-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.risk-item:last-child { border-bottom: none; }

/* ─── 主任总控台 ─── */
.ops-hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    box-shadow: var(--shadow);
}
.ops-hero h2 { font-size: 26px; line-height: 1.25; margin: 4px 0 8px; }
.eyebrow { font-size: 12px; color: var(--primary); font-weight: 700; }
.ops-subtitle { color: var(--text-light); max-width: 760px; line-height: 1.7; }
.ops-mini {
    min-width: 260px;
    border-left: 3px solid var(--success);
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
}
.ops-mini span, .ops-mini small { display: block; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.ops-mini strong { display: block; color: var(--text); margin: 4px 0; }
.ops-metrics .metric-card { align-items: flex-start; }
.ops-card .card-header h2 { font-size: 15px; }
.ops-focus,
.ops-line {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}
.ops-focus:last-child,
.ops-line:last-child { border-bottom: 0; }
.ops-focus:hover strong,
.ops-line:hover strong { color: var(--primary); }
.ops-focus strong,
.ops-line strong,
.ops-task strong { display: block; line-height: 1.5; }
.ops-focus small,
.ops-line small,
.ops-task small,
.deadline-row small { display: block; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.ops-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    max-width: 360px;
}
.ops-actions span {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
}
.compact-table { display: flex; flex-direction: column; gap: 2px; }
.deadline-row {
    display: grid;
    grid-template-columns: 1fr 108px 96px;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.deadline-row a { color: var(--text); text-decoration: none; font-weight: 600; }
.deadline-row a:hover { color: var(--primary); }
.ops-task {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.stage-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}
.stage-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-decoration: none;
    color: var(--text);
    background: #fafafa;
}
.stage-pill strong {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
}
.stage-pill span { font-size: 12px; line-height: 1.3; }
.empty-note { color: var(--text-muted); padding: 10px 0; line-height: 1.7; }
.gate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.gate-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: #f8fafc;
}
.gate-card.ok { background: var(--success-light); border-color: #86efac; }
.gate-card.warn { background: #fff7ed; border-color: #fed7aa; }
.gate-card strong { display: block; margin-bottom: 6px; }
.gate-card small { color: var(--text-light); line-height: 1.6; }
.action-stack { display: flex; flex-direction: column; gap: 8px; }
.action-row {
    border-left: 3px solid var(--primary);
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.5;
}
.deadline-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.deadline-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    background: #fff;
}
.deadline-card strong { display: block; margin-bottom: 4px; }
.deadline-card small { color: var(--text-muted); line-height: 1.6; }

/* ─── 流程漏斗 ─── */
.funnel-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.funnel-bar .bar { height: 22px; border-radius: 4px; min-width: 40px; display: flex; align-items: center; padding: 0 8px; font-size: 11px; color: #fff; font-weight: 600; }
.funnel-bar .label { font-size: 12px; color: var(--text-light); white-space: nowrap; }

/* ─── 办案管道 (Pipeline) ─── */
.pipeline { display: flex; gap: 4px; align-items: flex-start; overflow-x: auto; padding: 10px 0; }
.pipeline-node { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 80px; flex: 1; position: relative; }
.pipeline-node::after { content: ''; position: absolute; top: 12px; left: 50%; width: 100%; height: 2px; background: #e5e7eb; z-index: 0; }
.pipeline-node:last-child::after { display: none; }
.pipeline-node.passed::after { background: var(--success); }
.pipeline-node .pipe-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; border: 3px solid #fff; box-shadow: 0 0 0 2px #e5e7eb; }
.pipeline-node.passed .pipe-dot { box-shadow: 0 0 0 2px var(--success); }
.pipeline-node.current .pipe-dot { box-shadow: 0 0 0 3px currentColor; animation: pulse 2s infinite; }
.pipeline-node.next .pipe-dot { box-shadow: 0 0 0 2px var(--primary); border-style: dashed; }
.pipeline-node .pipe-label { font-size: 12px; font-weight: 600; text-align: center; color: var(--text-muted); }
.pipeline-node.passed .pipe-label { color: var(--success); }
.pipeline-node.current .pipe-label { color: var(--text); font-size: 13px; }
.pipeline-node.next .pipe-label { color: var(--primary); }
.pipeline-node .pipe-subcount { font-size: 10px; color: var(--text-muted); background: #f1f5f9; padding: 1px 6px; border-radius: 8px; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px currentColor; } 50% { box-shadow: 0 0 0 6px rgba(37,99,235,.2); } }

.case-mindmap-wrap { overflow-x: auto; padding: 2px 0 4px; }
.case-mindmap { display: block; min-width: 980px; width: 100%; height: auto; }
.mindmap-edge { fill: none; stroke: #d2dbe8; stroke-width: 2.1; stroke-linecap: round; }
.mindmap-edge.branch { stroke: #aab8cb; stroke-width: 2.7; }
.mindmap-edge.flow { stroke: #d9e1ec; stroke-width: 1.7; stroke-dasharray: 6 6; }
.mindmap-node rect { fill: #fff; stroke: #dbe2ea; stroke-width: 1.5; filter: drop-shadow(0 1px 1px rgba(15,23,42,.08)); }
.mindmap-node circle { fill: var(--node-color); }
.mindmap-node text { fill: var(--text); font-size: 14px; font-weight: 700; dominant-baseline: middle; }
.mindmap-node.root rect { fill: #eff6ff; stroke: var(--node-color); stroke-width: 2.6; }
.mindmap-node.root text { font-size: 16px; fill: #1d4ed8; }
.mindmap-node.group rect { fill: #f8fafc; stroke: var(--node-color); stroke-width: 2; }
.mindmap-node.group text { fill: #334155; }
.mindmap-node.current rect { fill: #f8fbff; stroke: var(--node-color); stroke-width: 3; }
.mindmap-node.current circle { filter: drop-shadow(0 0 4px rgba(37,99,235,.45)); }
.mindmap-node.next rect { fill: #f8fbff; stroke: var(--primary); stroke-width: 2.5; stroke-dasharray: 7 5; }
.mindmap-tag { fill: #fff !important; font-size: 10px !important; font-weight: 700 !important; paint-order: stroke; stroke: var(--node-color); stroke-width: 7; stroke-linejoin: round; }
.mindmap-node.next .mindmap-tag { stroke: var(--primary); }

/* ─── 阶段节点列表 ─── */
.stage-node-item { transition: background .15s; }
.stage-node-item:hover { background: #f8fafc; }
.pipeline-stage-card { transition: box-shadow .15s; }
.pipeline-stage-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }

/* ─── 内容库卡片网格 ─── */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.content-card { transition: box-shadow .15s, transform .15s; }
.content-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-2px); }
.content-card h3 { font-size: 15px; }

/* ─── 登录页 ─── */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.login-box { background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 40px; width: 380px; }
.login-box h1 { font-size: 22px; text-align: center; margin-bottom: 8px; }
.login-box .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 13px; }
.login-box .error { background: var(--danger-light); color: var(--danger); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; }
.login-box .form-group { margin-bottom: 16px; }
.login-box .form-group input { padding: 10px 12px; font-size: 14px; }
.login-box .btn { width: 100%; justify-content: center; padding: 10px; font-size: 15px; margin-top: 8px; }

/* ─── 响应式 / 手机端优化 ─── */
/* 平板端（768-1024） */
@media (max-width: 1024px) {
    .sidebar { width: 180px; }
    .main { margin-left: 180px; }
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
}

/* 手机端（≤768px） */
@media (max-width: 768px) {
    .sidebar nav.owner-nav { display:grid; width:100%; grid-template-columns:repeat(5,minmax(0,1fr)); overflow:visible; }
    .sidebar nav.owner-nav>a,.sidebar nav.owner-nav>.owner-nav-more>summary { justify-content:center; text-align:center; padding:12px 3px; font-size:12px; white-space:nowrap; }
    .sidebar nav.owner-nav>.owner-nav-more { min-width:0; }
    .sidebar nav.owner-nav>.owner-nav-more>summary { border-top:3px solid transparent; }
    .sidebar nav.owner-nav>.owner-nav-more[open]>summary { border-top-color:#3b82f6; }
    .sidebar nav.owner-nav .owner-nav-more-panel { position:fixed; bottom:58px; left:0; right:0; max-height:60vh; overflow-y:auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; background:#1a1a2e; box-shadow:0 -12px 28px rgba(0,0,0,.2); }
    .sidebar nav.owner-nav .owner-nav-more-panel .nav-section { display:block; grid-column:1/-1; padding:10px 4px 4px; }
    .sidebar nav.owner-nav .owner-nav-more-panel a { padding:9px 8px !important; white-space:normal; border:0; }
    /* 汉堡菜单 */
    .sidebar { width: 100%; height: auto; position: fixed; bottom: 0; left: 0; right: 0; top: auto; flex-direction: row; overflow-x: auto; padding: 0; z-index: 200; }
    .sidebar .brand, .sidebar .user-info, .sidebar .nav-section { display: none; }
    .sidebar nav { display: flex; flex-direction: row; padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sidebar nav a { flex-shrink: 0; padding: 10px 14px; border-left: none; border-top: 3px solid transparent; font-size: 13px; white-space: nowrap; }
    .sidebar nav a.active { border-left: none; border-top-color: #3b82f6; }
    
    /* 主内容区上移，底部留出导航空间 */
    .main { margin-left: 0; padding-bottom: 60px; }
    .topbar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
    .topbar h1 { font-size: 16px; }
    .content { padding: 14px; }
    
    /* 卡片减小间距 */
    .card { padding: 14px; margin-bottom: 12px; }
    .card-header { flex-wrap: wrap; gap: 8px; }
    .card-header h2 { font-size: 15px; }
    
    /* 所有网格单列 */
    .form-grid, .grid-2, .grid-3, .grid-4, .metric-grid { grid-template-columns: 1fr; }

    /* 新建案件：手机端分组录入 */
    .case-intake-card { padding: 12px !important; }
    .case-form-section { padding: 12px !important; margin-bottom: 10px !important; }
    .case-form-section legend {
        width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
        font-size: 14px; line-height: 1.4;
    }
    .case-form-section legend::after {
        content: "收起"; color: var(--text-muted); font-size: 12px; font-weight: 500;
    }
    .case-form-section.mobile-collapsed > :not(legend) { display: none !important; }
    .case-form-section.mobile-collapsed legend::after { content: "展开"; color: var(--primary); }
    .case-intake-card .form-grid { gap: 10px; }
    .case-intake-card input,
    .case-intake-card select,
    .case-intake-card textarea {
        font-size: 16px; min-height: 44px;
    }
    .case-intake-card textarea { min-height: 140px; }
    .case-form-actions {
        position: sticky; bottom: 62px; z-index: 40; padding: 10px 0 0;
        background: linear-gradient(to top, #fff 80%, rgba(255,255,255,0));
    }
    .case-form-actions .btn { flex: 1; justify-content: center; }
    #riskDetailGroup .form-grid { grid-template-columns: 1fr !important; }
    
    /* 表格横向滚动 */
    .card:has(table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { font-size: 12px; white-space: nowrap; }
    th, td { padding: 8px 10px; }
    
    /* 按钮更大，适合手指 */
    .btn { padding: 8px 16px; font-size: 14px; min-height: 40px; }
    .btn-sm { padding: 5px 12px; font-size: 13px; min-height: 34px; }
    
    /* 弹窗全屏 */
    .card[style*="position:fixed"] { 
        width: 95vw !important; max-width: 95vw !important;
        max-height: 85vh !important; overflow-y: auto !important;
        margin: 0 auto;
    }
    
    /* 登录框 */
    .login-box { width: 90vw; padding: 24px; }
    .login-box h1 { font-size: 20px; }
    
    /* 信息网格 */
    .info-grid { grid-template-columns: 1fr; }
    
    /* 页头按钮组换行 */
    .btn-group { flex-wrap: wrap; }
    .topbar .actions { flex-wrap: wrap; }
    
    /* 管道 */
    .pipeline { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pipeline-node { min-width: 60px; }
    .pipeline-node .pipe-label { font-size: 10px; }
    
    /* 指标卡片紧凑 */
    .metric-card { padding: 12px 14px; }
    .metric-card strong { font-size: 20px; }
    
    /* 底部安全区域（iPhone刘海屏） */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .sidebar { padding-bottom: env(safe-area-inset-bottom); }
        .main { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
    }
}

/* 超小屏（≤480px） */
@media (max-width: 480px) {
    .sidebar nav.owner-nav>a,.sidebar nav.owner-nav>.owner-nav-more>summary { font-size:11px; }
    .sidebar nav a { padding: 8px 10px; font-size: 11px; }
    .topbar h1 { font-size: 15px; }
    .card { padding: 10px; }
    .btn { padding: 7px 12px; font-size: 13px; min-height: 36px; }
    th, td { padding: 6px 8px; font-size: 11px; }
}

/* 负责人简洁工作台：先审批和待办，更多信息按需展开 */
.owner-home-header { display:flex; align-items:center; justify-content:space-between; gap:20px; background:#fff; border:1px solid var(--border); border-radius:16px; padding:24px 28px; margin-bottom:16px; }
.owner-home-header h2 { font-size:24px; line-height:1.35; margin:3px 0 6px; }
.owner-home-header p:last-child { color:var(--text-light); }
.owner-home-counts { display:grid; grid-template-columns:repeat(auto-fit,minmax(165px,1fr)); gap:12px; margin-bottom:18px; }
.owner-home-counts a { display:flex; align-items:baseline; gap:10px; padding:16px 18px; background:#fff; border:1px solid var(--border); border-radius:12px; color:var(--text); text-decoration:none; }
.owner-home-counts strong { font-size:25px; color:var(--primary); }
.owner-home-counts span { color:var(--text-light); font-size:13px; }
.owner-home-main { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:18px; align-items:start; }
.owner-home-panel { padding:22px; border-radius:14px; }
.owner-home-panel .card-header { margin-bottom:4px; }
.owner-home-panel .card-header h2 { font-size:19px; margin:3px 0 0; }
.owner-home-kicker { color:var(--primary); font-size:11px; font-weight:700; letter-spacing:.04em; }
.owner-home-hint { color:var(--text-muted); font-size:12px; line-height:1.5; margin:3px 0 8px; }
.owner-home-header-link,.owner-home-subhead a,.owner-home-detail-grid h3 a { color:var(--primary); text-decoration:none; font-size:12px; font-weight:600; }
.owner-home-subhead { display:flex; align-items:center; justify-content:space-between; color:var(--text-light); font-size:12px; font-weight:700; margin:20px 0 5px; }
.owner-home-row { display:flex; align-items:center; gap:12px; padding:13px 2px; border-bottom:1px solid var(--border); color:var(--text); text-decoration:none; }
.owner-home-row:last-child { border-bottom:0; }
.owner-home-row:hover strong { color:var(--primary); }
.owner-home-dot { width:8px; height:8px; border-radius:50%; flex:none; background:var(--primary); }
.owner-home-dot.amber { background:var(--warning); }
.owner-home-dot.red { background:var(--danger); }
.owner-home-row-body { min-width:0; flex:1; }
.owner-home-row-body strong { display:block; font-size:14px; line-height:1.4; }
.owner-home-row-body small { display:block; color:var(--text-muted); margin-top:4px; line-height:1.4; }
.owner-home-arrow { color:var(--primary); font-size:12px; white-space:nowrap; }
.owner-home-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.owner-home-tags em { font-style:normal; color:#9a3412; background:#fff7ed; border-radius:8px; padding:3px 7px; font-size:11px; }
.owner-home-review-item { border-bottom:1px solid var(--border); }
.owner-home-review-item:last-child { border-bottom:0; }
.owner-home-review-item .owner-home-row { border-bottom:0; }
.owner-home-no-renewal { margin:-2px 0 12px 30px; max-width:640px; color:var(--text); }
.owner-home-no-renewal summary { display:inline-block; cursor:pointer; color:var(--primary); font-size:12px; font-weight:600; }
.owner-home-no-renewal form { display:grid; gap:8px; margin-top:10px; padding:12px; background:#f8fafc; border:1px solid var(--border); border-radius:10px; }
.owner-home-no-renewal p { margin:0; color:var(--text-muted); font-size:12px; line-height:1.6; }
.owner-home-no-renewal label { font-size:12px; font-weight:600; }
.owner-home-no-renewal textarea { width:100%; resize:vertical; }
.owner-home-no-renewal button { justify-self:start; }
.owner-home-empty { padding:13px 2px; color:var(--text-muted); font-size:13px; }
.owner-home-details { margin-top:18px; border-radius:14px; }
.owner-home-details summary { cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; list-style:none; }
.owner-home-details summary::-webkit-details-marker { display:none; }
.owner-home-details summary strong,.owner-home-details summary small { display:block; }
.owner-home-details summary strong { font-size:17px; }
.owner-home-details summary small { color:var(--text-muted); font-size:12px; margin-top:4px; }
.owner-home-details summary>span:last-child { color:var(--primary); white-space:nowrap; font-size:12px; }
.owner-home-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 30px; margin-top:20px; padding-top:18px; border-top:1px solid var(--border); }
.owner-home-detail-grid h3 { display:flex; justify-content:space-between; font-size:14px; margin-bottom:7px; }
.owner-home-compact { display:flex; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); color:var(--text); text-decoration:none; font-size:13px; }
.owner-home-compact span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.owner-home-compact small { color:var(--text-muted); white-space:nowrap; }
.owner-home-footer-links { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:19px 22px; margin-top:18px; background:#fff; border:1px solid var(--border); border-radius:14px; }
.owner-home-footer-links strong,.owner-home-footer-links span { display:block; }
.owner-home-footer-links span { color:var(--text-muted); font-size:12px; margin-top:4px; }
.owner-home-footer-links a { color:var(--primary); font-weight:700; text-decoration:none; }
@media (max-width: 1050px) { .owner-home-main { grid-template-columns:1fr; } }
@media (max-width: 768px) {
    .owner-home-header { padding:18px; align-items:flex-start; }
    .owner-home-header h2 { font-size:19px; }
    .owner-home-header .btn { white-space:nowrap; }
    .owner-home-counts { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .owner-home-counts a { padding:12px; }
    .owner-home-detail-grid { grid-template-columns:1fr; }
    .owner-home-footer-links { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 480px) {
    .owner-home-header { flex-direction:column; }
    .owner-home-header .btn { width:100%; justify-content:center; }
    .owner-home-compact { flex-direction:column; gap:2px; }
}

/* 案件台账与全所案件看板：首屏只呈现决策所需的信息 */
.case-page { max-width:1480px; margin:0 auto; color:#1e293b; }
.case-page-intro {
    display:flex; align-items:center; justify-content:space-between; gap:24px;
    padding:24px 28px; margin-bottom:16px; border:1px solid #dce7f7; border-radius:16px;
    background:linear-gradient(115deg,#fff 55%,#f0f6ff); box-shadow:0 3px 18px rgba(30,64,175,.04);
}
.case-eyebrow { display:block; color:#2563eb; font-size:11px; font-weight:750; letter-spacing:.08em; margin-bottom:5px; }
.case-page-intro h2 { font-size:25px; line-height:1.3; letter-spacing:-.02em; }
.case-page-intro h2 span { font-size:20px; color:#2563eb; }
.case-page-intro p { color:#64748b; font-size:13px; line-height:1.6; margin-top:6px; }
.case-intro-actions { display:flex; align-items:center; gap:9px; flex:none; }
.case-intro-actions .btn { white-space:nowrap; }
.case-source-summary {
    display:flex; align-items:center; justify-content:space-between; gap:22px;
    margin-bottom:16px; padding:16px 21px; border:1px solid #dbeafe;
    border-radius:14px; background:#f8fbff;
}
.case-source-summary>div:first-child { flex:0 1 285px; }
.case-source-summary strong { display:block; font-size:15px; color:#1e3a8a; }
.case-source-summary p { color:#64748b; font-size:11px; line-height:1.5; margin-top:4px; }
.case-source-pills { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.case-source-pills span { display:inline-flex; align-items:center; gap:7px; padding:6px 9px; border:1px solid #dbeafe; border-radius:999px; background:#fff; color:#475569; font-size:11px; white-space:nowrap; }
.case-source-pills b { color:#1d4ed8; font-size:12px; }
.case-filter-card {
    padding:18px 22px 14px; margin-bottom:16px; background:#fff;
    border:1px solid #e2e8f0; border-radius:14px; box-shadow:0 1px 3px rgba(15,23,42,.04);
}
.case-filter-form { display:flex; align-items:end; gap:10px; flex-wrap:wrap; }
.case-filter-form label { display:flex; flex-direction:column; gap:6px; color:#64748b; font-size:12px; font-weight:650; }
.case-search-field { flex:1 1 280px; min-width:0; }
.case-stage-field { flex:0 1 220px; min-width:180px; }
.case-filter-form input,.case-filter-form select,.case-assignment-form select {
    width:100%; height:40px; padding:8px 12px; border:1px solid #cbd5e1; border-radius:8px;
    background:#fff; color:#1e293b; font:inherit; font-size:13px;
}
.case-filter-form input:focus,.case-filter-form select:focus,.case-assignment-form select:focus {
    outline:2px solid #bfdbfe; outline-offset:1px; border-color:#3b82f6;
}
.case-filter-form>.btn { min-height:40px; justify-content:center; }
.case-clear-filter { color:#64748b; font-size:12px; text-decoration:none; align-self:center; padding:6px; }
.case-clear-filter:hover { color:#2563eb; text-decoration:underline; }
.case-filter-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:13px; padding-top:12px; border-top:1px solid #eef2f7; color:#64748b; font-size:12px; }
.case-filter-bottom strong { color:#1e293b; }
.case-stage-shortcuts { position:relative; }
.case-stage-shortcuts summary { cursor:pointer; color:#2563eb; font-weight:650; list-style:none; }
.case-stage-shortcuts summary::-webkit-details-marker { display:none; }
.case-stage-shortcuts summary::after { content:"⌄"; margin-left:5px; }
.case-stage-shortcuts[open] summary::after { content:"⌃"; }
.case-stage-links { position:absolute; z-index:20; right:0; top:26px; width:min(510px,calc(100vw - 42px)); max-height:260px; overflow:auto; display:flex; flex-wrap:wrap; gap:7px; padding:13px; background:#fff; border:1px solid #dbe3ed; border-radius:11px; box-shadow:0 12px 28px rgba(15,23,42,.14); }
.case-stage-links a { color:#475569; background:#f8fafc; border:1px solid #e2e8f0; border-radius:999px; padding:6px 10px; text-decoration:none; white-space:nowrap; }
.case-stage-links a span { color:#94a3b8; }
.case-stage-links a:hover,.case-stage-links a.is-active { color:#1d4ed8; background:#eff6ff; border-color:#bfdbfe; }
.case-stage-links a.is-active span { color:#1d4ed8; }
.case-list-card,.case-board-list { background:#fff; border:1px solid #e2e8f0; border-radius:14px; overflow:hidden; box-shadow:0 1px 3px rgba(15,23,42,.04); }
.case-list-heading,.case-list-grid { display:grid; grid-template-columns:minmax(260px,2.4fr) minmax(130px,1fr) minmax(100px,.9fr) minmax(170px,1.2fr) minmax(64px,.55fr); gap:18px; align-items:center; }
.case-list-heading { padding:13px 22px; background:#f8fafc; color:#64748b; font-size:12px; font-weight:700; border-bottom:1px solid #e2e8f0; }
.case-list-item { padding:0 22px; border-bottom:1px solid #edf1f5; }
.case-list-item:last-child { border-bottom:0; }
.case-list-item:hover { background:#fbfdff; }
.case-list-grid { min-height:72px; padding:13px 0 9px; }
.case-list-identity { min-width:0; }
.case-list-title { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#1e293b; font-size:14px; font-weight:700; text-decoration:none; }
.case-list-title:hover,.case-board-title[href]:hover { color:#2563eb; }
.case-list-number { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:5px; color:#8491a3; font-size:11px; }
.case-list-next { display:block; min-width:0; margin-top:5px; color:#475569; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.case-list-next small { color:#2563eb; font-size:11px; font-weight:700; margin-right:6px; }
.case-list-dot { display:inline-block; margin:0 6px; }
.case-list-field { min-width:0; color:#334155; font-size:13px; }
.case-mobile-label { display:none; }
.case-stage-badge { display:inline-flex; align-items:center; max-width:100%; padding:5px 9px; border-radius:7px; background:#edf4ff; color:#1d4ed8; font-size:12px; font-weight:700; line-height:1.35; overflow-wrap:anywhere; }
.case-stage-badge.is-review { background:#fff7e6; color:#9a6700; }
.case-stage-badge.is-closed { background:#f1f5f9; color:#64748b; }
.case-stage-indicator { display:inline-flex; align-items:center; flex-wrap:wrap; gap:5px; min-width:0; }
.case-review-note { color:#9a6700; font-size:10px; font-weight:700; white-space:nowrap; }
.case-review-note.is-closure { color:#64748b; }
.case-owner { font-weight:650; }
.case-owner.is-unassigned { color:#b45309; }
.case-key-date { display:flex; flex-direction:column; gap:3px; }
.case-key-date>span { white-space:nowrap; }
.case-key-date small { color:#94a3b8; margin-right:7px; font-size:11px; }
.case-muted { color:#94a3b8; font-size:12px; }
.case-list-more { margin:-1px 0 0; padding-bottom:10px; }
.case-list-more summary { display:inline-flex; align-items:center; color:#64748b; font-size:11px; font-weight:650; cursor:pointer; list-style:none; padding:4px 0 8px; }
.case-list-more summary::-webkit-details-marker { display:none; }
.case-list-more summary::after { content:"⌄"; margin-left:5px; }
.case-list-more[open] summary::after { content:"⌃"; }
.case-list-more summary:hover { color:#2563eb; }
.case-list-extra { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px 18px; padding:15px 0; border-top:1px solid #edf1f5; }
.case-list-extra div { min-width:0; }
.case-list-extra span { display:block; color:#94a3b8; font-size:11px; margin-bottom:4px; }
.case-list-extra strong { display:block; color:#334155; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.case-list-actions { display:flex; align-items:center; gap:12px; padding:0 0 5px; }
.case-archive-action { border:0; background:none; color:#94a3b8; cursor:pointer; font:inherit; font-size:11px; padding:5px; }
.case-archive-action:hover { color:#dc2626; text-decoration:underline; }
.case-list-empty { display:flex; flex-direction:column; align-items:center; gap:8px; padding:48px 20px; text-align:center; color:#64748b; }
.case-list-empty strong { color:#334155; font-size:15px; }
.case-list-empty .btn { margin-top:7px; }
.case-board-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.case-board-stat { display:flex; flex-direction:column; gap:3px; padding:17px 20px; border:1px solid #e2e8f0; border-radius:13px; background:#fff; color:#64748b; text-decoration:none; }
.case-board-stat:hover,.case-board-stat.is-current { border-color:#93c5fd; background:#f5f9ff; }
.case-board-stat span { font-size:12px; font-weight:700; }
.case-board-stat strong { color:#1e293b; font-size:27px; line-height:1.2; }
.case-board-stat small { font-size:11px; color:#94a3b8; }
.case-board-item { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; column-gap:22px; row-gap:8px; padding:18px 22px; border-bottom:1px solid #edf1f5; }
.case-board-item:last-child { border-bottom:0; }
.case-board-item:hover { background:#fbfdff; }
.case-board-item-main { min-width:0; flex:1; }
.case-board-item-heading { display:flex; align-items:center; flex-wrap:wrap; gap:10px; min-width:0; }
.case-board-title { color:#1e293b; font-size:14px; font-weight:700; line-height:1.45; text-decoration:none; overflow-wrap:anywhere; }
.case-board-number { color:#94a3b8; font-size:11px; margin:5px 0 11px; }
.case-board-facts { display:flex; flex-wrap:wrap; gap:10px 27px; }
.case-board-facts>span { display:inline-flex; align-items:baseline; gap:6px; min-width:0; }
.case-board-facts small { color:#94a3b8; font-size:11px; white-space:nowrap; }
.case-board-facts strong { color:#475569; font-size:12px; font-weight:650; overflow-wrap:anywhere; }
.case-board-facts .case-pending-count { color:#b45309; }
.case-board-item-side { width:223px; flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:9px; }
.case-assignment-form { width:100%; }
.case-assignment-form label { display:block; margin-bottom:5px; color:#94a3b8; font-size:11px; text-align:left; }
.case-assignment-form>div { display:flex; gap:6px; }
.case-assignment-form select { min-width:0; height:36px; }
.case-assignment-form button { white-space:nowrap; }
.case-board-access a { color:#2563eb; text-decoration:none; font-size:12px; font-weight:700; }
.case-board-access a:hover { text-decoration:underline; }
.case-board-access>span { color:#94a3b8; font-size:11px; }
.case-review-panel { width:100%; margin:2px 0 13px; border-top:1px solid #edf1f5; }
.case-board-item>.case-review-panel { flex:1 1 100%; margin:0; }
.case-review-panel>summary {
    display:inline-flex; align-items:center; gap:6px; list-style:none; cursor:pointer;
    padding:10px 0 0; color:#1d4ed8; font-size:12px; font-weight:700;
}
.case-review-panel>summary::-webkit-details-marker { display:none; }
.case-review-panel>summary::after { content:"⌄"; font-size:14px; line-height:1; }
.case-review-panel[open]>summary::after { content:"⌃"; }
.case-review-panel>summary:hover { color:#1e40af; text-decoration:underline; }
.case-review-content {
    margin-top:11px; padding:17px; border:1px solid #dbeafe; border-radius:12px;
    background:linear-gradient(145deg,#f8fbff,#fff); box-shadow:0 4px 14px rgba(37,99,235,.04);
}
.case-review-context { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:15px; }
.case-review-context>div { min-width:0; padding:11px 13px; border:1px solid #e2e8f0; border-radius:9px; background:#fff; }
.case-review-context span { display:block; color:#94a3b8; font-size:11px; margin-bottom:5px; }
.case-review-context strong { display:block; color:#334155; font-size:12px; font-weight:650; line-height:1.5; overflow-wrap:anywhere; }
.case-review-warning { padding:9px 11px; margin:-3px 0 13px; border:1px solid #fde68a; border-radius:8px; background:#fffbeb; color:#92400e; font-size:11px; line-height:1.5; }
.case-review-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.case-review-control { display:flex; flex-direction:column; gap:6px; min-width:0; }
.case-review-control>span { color:#475569; font-size:12px; font-weight:700; }
.case-review-control em { color:#b45309; font-style:normal; font-size:10px; font-weight:600; margin-left:5px; }
.case-review-form select,.case-review-form textarea {
    width:100%; min-width:0; border:1px solid #cbd5e1; border-radius:8px;
    background:#fff; color:#1e293b; font:inherit; font-size:12px;
}
.case-review-form select { height:39px; padding:7px 10px; }
.case-review-form textarea { resize:vertical; min-height:65px; padding:9px 10px; line-height:1.5; }
.case-review-form select:focus,.case-review-form textarea:focus { outline:2px solid #bfdbfe; outline-offset:1px; border-color:#3b82f6; }
.case-review-help { color:#8491a3; font-size:10px; line-height:1.45; }
.case-review-note-field,.case-review-submit { grid-column:1/-1; }
.case-review-submit { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:2px; }
.case-review-submit p { color:#64748b; font-size:11px; line-height:1.5; max-width:620px; }
.case-review-submit .btn { white-space:nowrap; }
@media (max-width:1100px) {
    .case-list-heading,.case-list-grid { grid-template-columns:minmax(220px,2fr) minmax(120px,1fr) minmax(95px,.85fr) minmax(160px,1.2fr); }
    .case-list-heading>span:last-child,.case-list-grid>.case-list-field:last-child { display:none; }
    .case-list-extra { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:768px) {
    .case-page-intro { padding:20px; align-items:flex-start; flex-direction:column; gap:14px; }
    .case-source-summary { align-items:flex-start; flex-direction:column; gap:12px; }
    .case-source-summary>div:first-child { flex:auto; }
    .case-source-pills { justify-content:flex-start; }
    .case-page-intro h2 { font-size:21px; }
    .case-intro-actions { width:100%; flex-wrap:wrap; }
    .case-filter-card { padding:16px; }
    .case-filter-form { align-items:stretch; }
    .case-search-field,.case-stage-field { flex:1 1 100%; min-width:0; }
    .case-filter-form>.btn { flex:1; }
    .case-list-heading { display:none; }
    .case-list-item { padding:0 16px; }
    .case-list-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; padding:15px 0 5px; }
    .case-list-identity { grid-column:1/-1; }
    .case-list-title { white-space:normal; overflow:visible; line-height:1.45; }
    .case-list-grid>.case-list-field:last-child { display:block; }
    .case-mobile-label { display:block; color:#94a3b8; font-size:11px; margin-bottom:4px; }
    .case-key-date>span { white-space:normal; }
    .case-list-extra { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .case-board-summary { gap:8px; }
    .case-board-stat { padding:12px; }
    .case-board-stat strong { font-size:21px; }
    .case-board-stat small { display:none; }
    .case-board-item { align-items:flex-start; flex-direction:column; padding:17px; gap:13px; }
    .case-board-item-side { width:100%; align-items:flex-start; }
    .case-assignment-form { max-width:360px; }
    .case-review-context,.case-review-form { grid-template-columns:1fr; }
    .case-review-content { padding:13px; }
    .case-review-submit { align-items:stretch; flex-direction:column; gap:9px; }
    .case-review-submit .btn { width:100%; justify-content:center; }
}
@media (max-width:480px) {
    .case-board-stat { padding:10px; }
    .case-board-stat span { font-size:11px; }
    .case-board-stat strong { font-size:19px; }
    .case-list-extra { grid-template-columns:1fr 1fr; }
}

/* 下午会议用的逐案复核台：进度与单案决策分开，来源与正式登记分开 */
.meeting-review { max-width:1480px; margin:0 auto; color:#1e293b; }
.meeting-review-hero {
    display:flex; align-items:center; justify-content:space-between; gap:20px;
    margin-bottom:15px; padding:23px 27px; border:1px solid #dce7f7; border-radius:16px;
    background:linear-gradient(112deg,#fff 53%,#edf5ff); box-shadow:0 3px 18px rgba(30,64,175,.04);
}
.meeting-review-hero h2 { margin:0; font-size:25px; letter-spacing:-.025em; }
.meeting-review-hero p { max-width:780px; margin:7px 0 0; color:#64748b; font-size:13px; line-height:1.6; }
.meeting-review-hero>.btn { flex:none; }
.meeting-review-progress {
    padding:17px 21px; margin-bottom:16px; background:#fff; border:1px solid #e2e8f0;
    border-radius:15px; box-shadow:0 1px 3px rgba(15,23,42,.04);
}
.meeting-review-progress-head { display:flex; align-items:end; justify-content:space-between; gap:16px; }
.meeting-review-progress-head strong { display:block; font-size:20px; line-height:1.3; }
.meeting-review-progress-head>span { color:#7c899b; font-size:11px; line-height:1.5; text-align:right; }
.meeting-review-meter { height:8px; margin:14px 0; overflow:hidden; background:#e9eef5; border-radius:999px; }
.meeting-review-meter span { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#3b82f6,#22c55e); }
.meeting-review-counts { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.meeting-review-counts a,.meeting-review-counts>span {
    display:inline-flex; align-items:center; gap:7px; min-height:31px; padding:5px 10px;
    border:1px solid #e2e8f0; border-radius:999px; background:#f8fafc;
    color:#64748b; font-size:11px; font-weight:650; text-decoration:none;
}
.meeting-review-counts strong { color:#1e293b; font-size:12px; }
.meeting-review-counts a:hover,.meeting-review-counts a.is-active { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; }
.meeting-review-counts .is-attention { border-color:#fde68a; background:#fffbeb; color:#92400e; }
.meeting-review-layout { display:grid; grid-template-columns:minmax(230px,295px) minmax(0,1fr); gap:16px; align-items:start; }
.meeting-review-queue,.meeting-review-detail {
    min-width:0; background:#fff; border:1px solid #e2e8f0; border-radius:15px;
    box-shadow:0 1px 3px rgba(15,23,42,.04);
}
.meeting-review-queue { overflow:hidden; position:sticky; top:15px; }
.meeting-review-search { padding:16px; border-bottom:1px solid #e2e8f0; }
.meeting-review-search label { display:block; margin-bottom:6px; color:#64748b; font-size:11px; font-weight:700; }
.meeting-review-search>div { display:flex; gap:6px; }
.meeting-review-search input {
    width:100%; min-width:0; height:36px; padding:7px 10px; border:1px solid #cbd5e1;
    border-radius:8px; outline:none; color:#1e293b; background:#fff; font:inherit; font-size:12px;
}
.meeting-review-search input:focus { border-color:#3b82f6; box-shadow:0 0 0 2px #bfdbfe; }
.meeting-review-search button { flex:none; }
.meeting-review-queue-title { padding:12px 16px 9px; color:#64748b; font-size:11px; font-weight:800; }
.meeting-review-queue-list { max-height:min(65vh,750px); overflow:auto; overscroll-behavior:contain; }
.meeting-review-queue-item { display:block; position:relative; padding:11px 16px; border-top:1px solid #f1f5f9; color:inherit; text-decoration:none; }
.meeting-review-queue-item:hover,.meeting-review-queue-item.is-selected { background:#f2f7ff; }
.meeting-review-queue-item.is-selected::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:#2563eb; }
.meeting-review-queue-item-title { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#1e293b; font-size:12px; font-weight:750; }
.meeting-review-queue-item-meta { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:4px; color:#94a3b8; font-size:10px; }
.meeting-review-queue-item small { display:inline-block; margin-top:6px; color:#b45309; font-size:10px; font-weight:700; }
.meeting-review-queue-item small.is-done { color:#15803d; }
.meeting-review-queue-item small.is-closure-only { color:#0e7490; }
.meeting-review-queue-empty { padding:18px 16px 24px; color:#94a3b8; font-size:12px; line-height:1.5; }
.meeting-review-detail { padding:22px 24px; }
.meeting-review-detail-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:16px; }
.meeting-review-detail-head h3 { margin:2px 0 5px; overflow-wrap:anywhere; font-size:20px; line-height:1.4; }
.meeting-review-detail-head p { margin:0; color:#94a3b8; font-size:12px; }
.meeting-review-detail-head p span { margin:0 5px; }
.meeting-review-state { flex:none; padding:6px 9px; border-radius:999px; background:#fff7e6; color:#9a6700; font-size:11px; font-weight:750; }
.meeting-review-state.is-done { background:#eaf8ef; color:#15803d; }
.meeting-review-state.is-closure-only { max-width:275px; background:#ecfeff; color:#0e7490; line-height:1.4; white-space:normal; text-align:center; }
.meeting-review-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:20px; }
.meeting-review-comparison section { min-width:0; padding:15px 17px; border:1px solid #e2e8f0; border-radius:11px; background:#f8fafc; }
.meeting-review-comparison section:nth-child(2) { border-color:#dbeafe; background:#f8fbff; }
.meeting-review-comparison span,.meeting-review-check-grid span { display:block; color:#8491a3; font-size:11px; font-weight:650; }
.meeting-review-comparison strong { display:block; margin:5px 0; color:#1e293b; font-size:16px; overflow-wrap:anywhere; }
.meeting-review-comparison small { display:block; color:#64748b; font-size:11px; line-height:1.5; }
.meeting-review-checks,.meeting-review-edit { border-top:1px solid #e9eef5; padding-top:19px; margin-top:18px; }
.meeting-review-section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; }
.meeting-review-section-heading h4 { margin:0; font-size:14px; }
.meeting-review-section-heading>span { color:#94a3b8; font-size:10px; text-align:right; }
.meeting-review-check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.meeting-review-check-grid>div { min-width:0; min-height:99px; padding:12px 14px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; }
.meeting-review-check-grid strong { display:block; margin:6px 0 5px; color:#334155; font-size:14px; overflow-wrap:anywhere; }
.meeting-review-check-grid a,.meeting-review-check-grid small { display:block; width:fit-content; color:#2563eb; font-size:10px; line-height:1.45; text-decoration:none; }
.meeting-review-check-grid small { width:auto; color:#94a3b8; }
.meeting-review-check-grid a:hover { text-decoration:underline; }
.meeting-review-check-foot { margin:11px 0 0; color:#7c899b; font-size:10px; line-height:1.65; }
.meeting-review-form { padding:16px; border:1px solid #dbeafe; border-radius:11px; background:#f8fbff; }
.meeting-review-lawyer-control { grid-column:1/-1; padding:13px 14px; border:1px solid #c7d9f5; border-radius:9px; background:#eef5ff; }
.meeting-review-lawyer-control>select { max-width:480px; }
.meeting-review-lawyer-control>.meeting-review-lawyer-locked { color:#64748b; font-size:12px; font-weight:550; line-height:1.5; }
.meeting-review-form [hidden] { display:none !important; }
.meeting-review-closed-direct { grid-column:1/-1; margin:0; padding:10px 13px; border:1px solid #bbf7d0; border-radius:8px; color:#166534; background:#f0fdf4; font-size:12px; line-height:1.5; }
.meeting-review-closed-toggle { grid-column:1/-1; width:fit-content; border:0; padding:2px 0; background:transparent; color:#1d4ed8; font:inherit; font-size:12px; font-weight:700; cursor:pointer; text-align:left; }
.meeting-review-closed-toggle:hover { text-decoration:underline; }
.meeting-review-closed-toggle:focus-visible { outline:2px solid #60a5fa; outline-offset:3px; border-radius:2px; }
.meeting-review-form .case-review-submit { border-top:1px solid #e2e8f0; padding-top:13px; }
.meeting-review-readonly { padding:13px 15px; margin-top:19px; border:1px solid #e2e8f0; border-radius:10px; color:#64748b; background:#f8fafc; font-size:12px; }
.meeting-review-pager { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:22px; padding-top:17px; border-top:1px solid #e9eef5; }
.meeting-review-pager>span { min-width:88px; }
.meeting-review-detail-link { color:#2563eb; font-size:11px; font-weight:700; text-decoration:none; text-align:center; }
.meeting-review-detail-link:hover { text-decoration:underline; }
.meeting-review-detail-link.is-muted { color:#94a3b8; font-weight:500; }
.meeting-review-empty { padding:75px 20px; text-align:center; color:#64748b; }
.meeting-review-empty strong { color:#334155; font-size:16px; }
.meeting-review-empty p { margin:10px 0 18px; font-size:12px; }
@media (max-width:1100px) {
    .meeting-review-layout { grid-template-columns:minmax(210px,250px) minmax(0,1fr); }
    .meeting-review-detail { padding:18px; }
}
@media (max-width:760px) {
    .meeting-review-hero { align-items:flex-start; flex-direction:column; padding:19px; }
    .meeting-review-hero h2 { font-size:21px; }
    .meeting-review-hero>.btn { width:100%; justify-content:center; }
    .meeting-review-progress-head { align-items:flex-start; flex-direction:column; gap:4px; }
    .meeting-review-progress-head>span { text-align:left; }
    .meeting-review-layout { grid-template-columns:1fr; }
    .meeting-review-queue { position:static; }
    .meeting-review-queue-list { max-height:205px; }
    .meeting-review-detail-head { flex-direction:column; gap:9px; }
    .meeting-review-comparison { grid-template-columns:1fr; }
}
@media (max-width:520px) {
    .meeting-review-progress { padding:15px; }
    .meeting-review-detail { padding:15px; }
    .meeting-review-check-grid { grid-template-columns:1fr; }
    .meeting-review-section-heading { flex-direction:column; gap:4px; }
    .meeting-review-section-heading>span { text-align:left; }
    .meeting-review-pager .btn { padding-left:9px; padding-right:9px; }
    .meeting-review-detail-link { font-size:10px; }
}

/* 接案流程与任务派工 */
.intake-route { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.intake-route span { padding:8px 11px; border:1px solid #dbe4f0; border-radius:999px; background:#f8fafc; color:#64748b; font-size:12px; font-weight:650; }
.intake-route span.is-current { border-color:#bfdbfe; background:#eff6ff; color:#1d4ed8; }
.intake-route-note { align-self:center; padding:10px 12px; border:1px solid #dbeafe; border-radius:8px; background:#f8fbff; color:#475569; font-size:12px; line-height:1.6; }
.task-workspace { max-width:1480px; margin:0 auto; }
.task-workspace-intro { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:22px 25px; margin-bottom:16px; border:1px solid #dce7f7; border-radius:16px; background:linear-gradient(115deg,#fff 58%,#eff6ff); }
.task-workspace-intro h2 { margin:4px 0 7px; font-size:25px; letter-spacing:-.02em; }
.task-workspace-intro p { max-width:820px; color:#64748b; font-size:13px; line-height:1.65; }
.task-workspace-intro>.btn { flex:none; }
.task-workspace-metrics { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.task-workspace-metrics a { min-width:132px; display:flex; align-items:baseline; gap:9px; padding:11px 16px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; color:#475569; text-decoration:none; }
.task-workspace-metrics a:hover { border-color:#93c5fd; color:#1d4ed8; }
.task-workspace-metrics strong { color:#1d4ed8; font-size:24px; line-height:1; }
.task-workspace-metrics span { font-size:12px; font-weight:650; }
.task-workspace-grid { display:grid; grid-template-columns:1fr; gap:16px; }
.task-workspace-grid.has-all-tasks { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.task-panel { min-width:0; padding:20px 22px; border:1px solid #e5eaf1; border-radius:14px; box-shadow:0 2px 8px rgba(15,23,42,.035); }
.task-panel-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-bottom:13px; border-bottom:1px solid #e9eef5; }
.task-panel-header h2 { margin:2px 0 0; font-size:18px; }
.task-panel-kicker { color:#2563eb; font-size:11px; font-weight:750; letter-spacing:.04em; }
.task-work-card { display:flex; flex-direction:column; gap:10px; padding:16px 0; border-bottom:1px solid #e9eef5; }
.task-work-card:last-child { border-bottom:0; padding-bottom:0; }
.task-work-card.is-overdue { border-left:3px solid #ef4444; padding-left:12px; }
.task-work-card-heading { display:flex; align-items:flex-start; flex-wrap:wrap; gap:8px; }
.task-work-card-heading strong { min-width:0; color:#1e293b; font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.task-work-card-main>p { margin:7px 0 0; color:#64748b; font-size:12px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.task-work-card-meta { display:flex; flex-wrap:wrap; gap:5px 13px; margin-top:9px; color:#94a3b8; font-size:11px; }
.task-work-card-meta a { color:#2563eb; text-decoration:none; font-weight:650; }
.task-work-card-meta a:hover { text-decoration:underline; }
.task-work-card-meta .is-overdue { color:#dc2626; font-weight:700; }
.task-action-stack { display:flex; align-items:start; flex-wrap:wrap; gap:8px; }
.task-action { width:min(100%,320px); }
.task-action>summary { display:inline-flex; align-items:center; min-height:30px; padding:5px 10px; border:1px solid #b7e4ca; border-radius:7px; background:#effcf4; color:#15803d; font-size:12px; font-weight:700; cursor:pointer; list-style:none; }
.task-action>summary::-webkit-details-marker { display:none; }
.task-action-cancel>summary { border-color:#e2e8f0; background:#fff; color:#64748b; }
.task-action[open] { width:min(100%,420px); }
.task-action[open]>summary { margin-bottom:8px; }
.task-action-form { display:grid; gap:10px; padding:13px; border:1px solid #dbe4ef; border-radius:9px; background:#f8fafc; }
.task-action-form .form-group textarea { min-height:70px; }
.task-action-hint { color:#64748b; font-size:11px; line-height:1.5; }
.task-action-form>.btn { justify-self:start; }
.task-results { margin-top:16px; }
.task-result-row { display:flex; align-items:flex-start; gap:12px; padding:15px 0; border-bottom:1px solid #e9eef5; }
.task-result-row:last-child { border-bottom:0; padding-bottom:0; }
.task-result-row>div { flex:1; min-width:0; }
.task-result-row strong,.task-result-row small { display:block; }
.task-result-row strong { color:#1e293b; font-size:13px; overflow-wrap:anywhere; }
.task-result-row small { margin-top:4px; color:#94a3b8; font-size:11px; }
.task-result-row p { margin-top:6px; color:#64748b; font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.task-empty-state { display:grid; gap:5px; padding:30px 10px; color:#94a3b8; text-align:center; }
.task-empty-state strong { color:#475569; font-size:14px; }
.task-empty-state span { font-size:12px; }
.task-cancel-help { padding-top:12px; color:#64748b; font-size:12px; }
.case-dates-editor { flex:1 1 100%; margin-top:4px; padding-top:8px; border-top:1px solid #edf1f5; }
.case-dates-editor>summary { width:max-content; color:#2563eb; font-size:12px; font-weight:700; cursor:pointer; }
.case-dates-editor form { display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin-top:12px; }
.case-dates-editor label { display:grid; gap:5px; min-width:170px; color:#475569; font-size:11px; font-weight:700; }
.case-dates-editor input { min-height:34px; padding:6px 9px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#1e293b; font-size:12px; }
.case-dates-editor p { margin-top:9px; color:#64748b; font-size:11px; line-height:1.6; }
.case-dates-editor p a { color:#2563eb; }
.case-assignment-accept { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; padding:16px 20px; border:1px solid #bfdbfe; border-left:4px solid #2563eb; border-radius:10px; background:#eff6ff; }
.case-assignment-accept strong { color:#1e40af; font-size:14px; }
.case-assignment-accept p { margin-top:4px; color:#475569; font-size:12px; }
.case-team-editor { margin-top:13px; padding-top:10px; border-top:1px solid #e2e8f0; }
.case-team-editor>summary { color:#2563eb; font-size:12px; font-weight:700; cursor:pointer; }
.case-team-editor>p { margin:9px 0; color:#64748b; font-size:11px; }
.case-team-members { display:flex; flex-wrap:wrap; gap:8px; }
.case-team-members form { display:flex; align-items:center; gap:8px; padding:5px 7px; border:1px solid #e2e8f0; border-radius:7px; font-size:12px; }
.case-team-add { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; }
.case-team-add label { color:#475569; font-size:12px; }
.case-team-add select { min-width:170px; }
.case-file-upload { display:grid; gap:12px; padding:15px; margin-bottom:15px; border:1px dashed #bfdbfe; border-radius:10px; background:#f8fbff; }
.case-file-upload-heading { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.case-file-upload-heading h3 { flex:1; min-width:180px; font-size:13px; }
.case-file-upload-controls { display:flex; align-items:end; flex-wrap:wrap; gap:9px; }
.case-file-upload-controls .form-group { min-width:160px; }
.case-file-upload-controls .btn { min-height:34px; }
.case-file-upload-note,.case-file-upload-status { color:#64748b; font-size:11px; line-height:1.55; white-space:pre-wrap; }
.case-file-upload-status.is-error { color:#b91c1c; }
.task-dispatch-card { border:1px solid #e2e8f0; border-radius:12px; }
.task-dispatch-table-wrap { max-width:100%; overflow-x:auto; }
.task-dispatch-table-wrap table { min-width:780px; }
.task-dispatch-hint { margin:8px 0 14px; color:#64748b; font-size:12px; }
.task-dispatch-modal { width:min(560px,calc(100vw - 28px)); max-height:90vh; overflow:auto; }
.task-dispatch-modal .form-group { margin-bottom:12px; }
.task-dispatch-modal .form-grid { gap:10px; }
.task-dispatch-modal .modal-footer { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:14px; }
.lawyer-deadline-focus { margin:0 0 18px; border:1px solid #bfdbfe; border-left:4px solid #2563eb; border-radius:12px; background:#f8fbff; }
.lawyer-deadline-focus .owner-home-detail-grid { padding:10px 0 0; }
@media (max-width:1100px) {
    .task-workspace-grid.has-all-tasks { grid-template-columns:1fr; }
}
@media (max-width:700px) {
    .task-workspace-intro { align-items:flex-start; flex-direction:column; padding:18px; }
    .task-workspace-intro h2 { font-size:21px; }
    .task-workspace-intro>.btn { width:100%; justify-content:center; }
    .task-panel { padding:16px; }
    .task-workspace-metrics a { flex:1; min-width:110px; }
    .task-result-row { flex-wrap:wrap; }
}
