:root{--ink:#1f2937;--muted:#6b7280;--line:#e5e7eb;--paper:#f9fafb;--green:#007b3c;--dark:#005a2d;--shadow:0 1px 3px #11182708}
body{font-family:Sarabun,Arial,sans-serif;background:var(--paper);color:var(--ink)}
button,input,select,textarea{font-family:inherit}
.sidebar{background:#fff;color:#374151;border-right:1px solid var(--line);width:218px;padding:24px 12px}
.brand{color:#1f2937;font-weight:600}.brand-mark{background:#007b3c;color:white;border-radius:8px}.brand-mark span{color:#bbf7d0}
.workspace-tag{color:#6b7280;background:#f9fafb;border-color:#e5e7eb}
.nav-item{color:#4b5563;border-radius:8px;font-size:13px}.nav-item:hover,.nav-item.active{color:#111827;background:#f1f5f9;box-shadow:none}.nav-item.active .nav-icon{color:#007b3c}
.sidebar-section-label,.pipeline-note,.export-link{color:#6b7280}.sidebar-platform{color:#374151;background:#f9fafb;border-color:#e5e7eb}.sidebar-platform:hover{background:#f1f5f9}.sidebar-platform-copy small{color:#6b7280}
.topbar{background:#fff;border-color:#e5e7eb}.breadcrumb{color:#6b7280}.breadcrumb strong{color:#1f2937}.manual-badge{background:#f0fdf4;color:#166534}.avatar{background:#f3f4f6;color:#374151}
h1{color:#005a2d;font-weight:700}.eyebrow.dark{color:#6b7280}h2,h3{color:#1f2937}.page-heading p{color:#6b7280}
.panel,.stat-card,.platform-account-card{border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 1px 3px #11182705;background:#fff}
.stat-card strong{color:#1f2937}.stat-card small,.stat-card>span{color:#6b7280}
.primary-button,.subtle-button,.row-button{border-radius:9999px;font-weight:600}.dark-button{background:#007b3c;color:#fff;border-color:#007b3c}.dark-button:hover{background:#005a2d}.subtle-button{background:#fff;color:#334155;border-color:#e2e8f0}.subtle-button:hover{background:#f1f5f9}
input,select,textarea{border-color:#d1d5db;color:#1f2937;background:#fff;border-radius:6px}input[type=checkbox]{accent-color:#007b3c}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #007b3c;outline-offset:3px}
th{background:#f9fafb;color:#4b5563;border-color:#e5e7eb}td{border-color:#e5e7eb}.crm-toolbar,.crm-pagination,.section-head,.form-footer{border-color:#e5e7eb}.footer{color:#6b7280}
.account-intro,.account-footnote,.account-details,.account-message{color:#6b7280}
@media(max-width:1000px){.page-heading,.panel,.stats,.platform-account-grid,.account-intro,.account-footnote{margin-left:20px;margin-right:20px}}
@media(max-width:700px){.sidebar{width:auto;height:auto;position:static}.main{min-width:0}.page-heading{gap:12px;flex-wrap:wrap}.topbar{flex-wrap:wrap;height:auto;gap:10px;padding:16px}.topbar-right{margin-left:auto}.page-heading,.panel,.stats,.platform-account-grid,.account-intro,.account-footnote{margin-left:16px;margin-right:16px}}

.account-action-error{padding:12px;border:1px solid #f0c36d;border-radius:8px;background:#fffbeb;color:#92400e;font-size:12px;line-height:1.5;overflow-wrap:anywhere}

.controls[hidden]{display:none}
