* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft JhengHei", Arial, sans-serif; background: #f5f7fb; color: #202b43; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.wrap.pool-page { max-width: 1760px; }
.top { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.top a { padding: 10px 16px; background: #fff; border-radius: 8px; text-decoration: none; color: #202b43; border: 1px solid #d0d7e2; }
.top a.active { background: #202b43; color: #fff; }
.card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid #edf0f5; vertical-align: top; }
img.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
label { display: block; margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #ccd4e0; border-radius: 6px; }
button, .btn { display: inline-block; padding: 10px 16px; border: 0; border-radius: 8px; background: #2563eb; color: #fff; cursor: pointer; text-decoration: none; }
button.secondary, .btn.secondary { background: #64748b; }
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.flash.ok { background: #ecfdf3; color: #166534; }
.flash.error { background: #fef2f2; color: #991b1b; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pool-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pro-box { border: 2px solid #ddd; padding: 10px; cursor: pointer; border-radius: 8px; text-align: center; background: #fff; transition: background-color .2s, border-color .2s; }
.pro-box:hover { border-color: #94a3b8; }
.pro-box.selected { background: #ffff99; border-color: #ff9900; }
.pro-box.published { background: #f1f5f9; }
.pro-box.rejected { background: #fee2e2; opacity: .75; }
.pro-box img { width: 100%; max-width: 320px; height: auto; border-radius: 6px; display: block; margin: 8px auto; }
.no-img { width: 100%; max-width: 320px; height: 180px; margin: 8px auto; background: #eef2f7; color: #64748b; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.pro-id { font-size: 12px; color: #64748b; word-break: break-all; }
.pro-title { font-size: 14px; min-height: 42px; margin: 6px 0; overflow: hidden; }
.pro-price { font-size: 14px; }
.pro-margin { font-size: 14px; color: #b45309; font-weight: bold; }
.pro-state { font-size: 12px; color: #64748b; margin-top: 4px; }
.hidden-checkbox { display: none; }
.pool-actions { justify-content: center; margin: 20px 0; }
.pool-filters select { width: auto; min-width: 140px; }
@media (max-width: 1400px) { .pool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .pool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .pool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
