:root {
    --primary: #0071e3;
    --primary-light: #e8f2ff;
    --primary-dark: #0060c0;
    --success: #30d158;
    --success-light: #e8fbe8;
    --warning: #ff9f0a;
    --danger: #ff453a;
    --info: #5ac8fa;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text: #1d1d1f;
    --text-secondary: #86868b;
    --border: rgba(0,0,0,0.06);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 10px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
                 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== Frosted Glass Header ===== */
.header {
    background: linear-gradient(135deg, #1a3a5c 0%, #0071e3 100%);
    border-bottom: none;
    padding: 18px 0 14px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

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

.header-logo {
    height: 28px;
    max-height: 28px;
    max-width: 155px;
    object-fit: contain;
}

.header-title {
    font-size: 23px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.nav::-webkit-scrollbar { height: 0; }

.nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 7px 15px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.nav a:hover { color: #fff; background: rgba(255,255,255,0.15); }

.nav a.active {
    background: rgba(255,255,255,0.3);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ===== Container ===== */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 22px;
}

/* ===== Cards ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* ===== Form Elements ===== */
input[type="text"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.25s ease;
    background: var(--bg);
    font-family: inherit;
    color: var(--text);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,113,227,0.12);
    background: white;
}

textarea { resize: vertical; min-height: 120px; }

label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: -0.1px;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: scale(1.02); }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #28b94d; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #e33a30; }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Opportunity Card ===== */
.opp-card {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    padding: 14px 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.opp-card.unvoted {
    border-left: 4px solid #ff9f0a;
    background: #fffbf5;
}

.opp-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.opp-card.voted {
    border-color: var(--success);
    background: linear-gradient(135deg, #f6fff6, white);
}

.opp-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    letter-spacing: -0.2px;
}

.opp-title .index {
    background: var(--text);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.opp-link {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 14px;
    margin-left: 36px;
    word-break: break-all;
}

.opp-link a { color: var(--primary); text-decoration: none; }
.opp-link a:hover { text-decoration: underline; }

/* ===== Radio Options ===== */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 36px;
    margin-top: 6px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
    background: white;
}

.option-label:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-label input[type="radio"] { display: none; }

.option-label.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,113,227,0.25);
}

.option-label.selected-E {
    border-color: var(--danger);
    background: var(--danger);
    box-shadow: 0 2px 8px rgba(255,69,58,0.25);
}

/* ===== Vote Status Tags ===== */
.vote-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: auto;
}

.voted-tag {
    background: #e8fbe8;
    color: #30d158;
}

.unvoted-tag {
    background: #fff3e0;
    color: #ff9f0a;
    animation: pulse-tag 2s ease-in-out infinite;
}

@keyframes pulse-tag {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Sub Options (E reason) ===== */
.sub-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 14px;
    background: #f0f6ff;
    border-radius: 12px;
    border: 1px dashed rgba(0,113,227,0.3);
}

.sub-options.unsuitable {
    background: #fff5f5;
    border-color: rgba(255,69,58,0.3);
}

.sub-hint {
    width: 100%;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.sub-option-label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1.5px solid rgba(0,113,227,0.25);
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
    background: #fff;
    user-select: none;
    background: white;
    color: var(--danger);
}

.sub-option-label:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.sub-option-label input[type="radio"] { display: none; }

.sub-option-label.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.sub-options.unsuitable .sub-option-label {
    border-color: rgba(255,69,58,0.2);
}

.sub-options.unsuitable .sub-option-label:hover {
    border-color: var(--danger);
    background: #ffeeee;
}

.sub-options.unsuitable .sub-option-label.selected {
    border-color: var(--danger);
    background: var(--danger);
    color: white;
}

/* ===== Type Selector ===== */
.type-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.type-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 980px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
    background: white;
}

.type-option input[type="radio"] { display: none; }

.type-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.type-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    font-weight: 600;
}

/* ===== Stats Page ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-box {
    background: white;
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-box .number {
    font-size: 38px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -1px;
}

.stat-box .label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

.stat-box.success .number { color: var(--success); }
.stat-box.warning .number { color: var(--warning); }
.stat-box.danger .number { color: var(--danger); }
.stat-box.info .number { color: var(--primary); }

/* ===== Chart Container ===== */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* ===== Period Tabs ===== */
.period-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.04);
    padding: 3px;
    border-radius: 980px;
    width: fit-content;
}

.period-tab {
    padding: 7px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    font-family: inherit;
    color: var(--text-secondary);
}

.period-tab:hover { color: var(--text); }

.period-tab.active {
    background: white;
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    font-weight: 600;
}

/* ===== Table ===== */
.table-wrap { overflow-x: auto; margin: 16px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

tr:hover td { background: rgba(0,113,227,0.03); }

/* ===== Badge ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 600;
}

.badge-A { background: #dbeafe; color: #1e40af; }
.badge-B { background: #fce7f3; color: #9d174d; }
.badge-C { background: #d1fae5; color: #065f46; }
.badge-D { background: #fef3c7; color: #92400e; }
.badge-E { background: #fee2e2; color: #991b1b; }

/* ===== Admin: Import Area ===== */
.import-hint {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.8;
}

.import-hint code {
    background: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid var(--border);
}

.opp-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    background: var(--bg);
    gap: 12px;
}

.opp-list-item .title {
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.opp-list-item .link {
    font-size: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.opp-list-item.inactive { opacity: 0.45; }

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 72px;
    right: 20px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 500;
    font-size: 14px;
    z-index: 9999;
    animation: slideIn 0.35s cubic-bezier(0.16,1,0.3,1);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.toast-success { background: rgba(48,209,88,0.92); }
.toast-error { background: rgba(255,69,58,0.92); }
.toast-info { background: rgba(0,113,227,0.92); }

@keyframes slideIn {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

/* ===== Loading ===== */
.loading { text-align: center; padding: 40px; color: var(--text-secondary); }

.spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(0,0,0,0.08);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Auth Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 36px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .header { padding: 10px 0 8px; }
    .header-inner { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 6px; }
    .header-brand { gap: 6px; }
    .header-logo { height: 22px; max-height: 22px; max-width: 120px; }
    .header-title { font-size: 18px; letter-spacing: 1px; }
    .nav { width: 100%; gap: 6px; justify-content: flex-start; }
    .nav a { font-size: 12px; padding: 5px 12px; }
    .options { margin-left: 0; margin-top: 8px; }
    .option-label { padding: 6px 12px; font-size: 12px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .opp-title { font-size: 14px; }
    .container { padding: 16px 14px; }
    .period-tabs { flex-wrap: wrap; width: 100%; border-radius: var(--radius-sm); }
    .period-tab { flex: 1; text-align: center; padding: 8px 8px; font-size: 12px; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ===== Action Bar ===== */
.action-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.action-bar .count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: auto;
}

/* ===== Submit Footer ===== */
.submit-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 14px 22px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 50;
    box-shadow: none;
}

.submit-footer .progress-text {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.submit-footer .progress-text strong { color: var(--primary); font-weight: 700; }

.btn-last-summary {
    background: #e6f0ff;
    color: #285eb8;
    border: 1px solid #bdd3ff;
    font-weight: 600;
    border-radius: 980px;
    padding: 8px 16px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(40,94,184,0.15);
}

.btn-last-summary:hover {
    background: #dbe9ff;
    color: #1f4f9e;
    transform: scale(1.02);
}

.submit-footer .btn-success {
    padding: 8px 16px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .submit-footer {
        padding: 10px 10px;
        gap: 8px;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .submit-footer .progress-text {
        font-size: 12px;
        flex: 1;
        min-width: 0;
    }
    .btn-last-summary,
    .submit-footer .btn-success {
        padding: 7px 10px;
        font-size: 12px;
        flex-shrink: 0;
    }
}

body.has-footer { padding-bottom: 72px; }

/* ===== Attachment Styles ===== */
.opp-list-card {
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease;
}

.opp-list-card:hover { box-shadow: var(--shadow); }
.opp-list-card.inactive { opacity: 0.45; }

.opp-list-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.opp-list-row .title {
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.opp-list-row .link {
    font-size: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.att-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 14px 48px;
}

.att-item { position: relative; display: inline-flex; align-items: center; }

.att-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.att-thumb:hover { transform: scale(1.06); box-shadow: var(--shadow); }

.att-file {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.att-file:hover { background: var(--primary-light); }

.att-del {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: 2px solid white;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.att-item:hover .att-del { opacity: 1; }

/* Vote page attachments */
.opp-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 36px;
    margin-bottom: 12px;
}

.opp-att-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.opp-att-img:hover { transform: scale(1.06); box-shadow: var(--shadow); }

.opp-att-file {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.opp-att-file:hover { background: var(--primary-light); }

/* Image Lightbox + in-page file preview (WeChat: avoid leaving webview) */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.lightbox.lightbox-with-bar {
    align-items: stretch;
    justify-content: stretch;
}

.lightbox-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    flex: 1;
}

.lightbox-bar,
.preview-frame-bar {
    flex-shrink: 0;
    padding: 12px 16px;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lightbox-back {
    min-width: 200px;
}

.lightbox-img-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: min(85vh, 100%);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.preview-frame-wrap {
    flex: 1;
    min-height: 0;
    background: #1a1a1a;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.preview-frame-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 50vh;
    border: 0;
    display: block;
}

/* ===== 商机公海 ===== */
.sea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.sea-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.sea-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.sea-card-note {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sea-card-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ===== 商机监测 ===== */
.scout-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.scout-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-bottom: 2px;
}

.scout-auto-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.scout-table th,
.scout-table td {
    font-size: 13px;
    vertical-align: top;
}

.scout-table td:nth-child(2) {
    max-width: 280px;
    word-break: break-word;
}

.scout-kw-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.scout-kw-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: 980px;
    border: 1px solid var(--border);
    font-size: 14px;
    cursor: default;
}

.scout-kw-item .scout-kw-del {
    padding: 2px 8px;
    font-size: 11px;
}

.scout-sea-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.scout-sea-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 600px) {
    .att-list { padding-left: 16px; }
    .opp-attachments { margin-left: 0; }
    .opp-link { margin-left: 0; }
}
