* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #f3f7f6; color: #0f172a; line-height: 1.5; }
.hidden { display: none !important; }

.topbar { background: #ffffff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 40; }
.topbar-inner { max-width: 1360px; margin: 0 auto; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.container { max-width: 1360px; margin: 0 auto; padding: 20px 24px 40px; }

.notice-bar { background: #ffffff; border: 1px solid #d1fae5; border-left: 4px solid #0d9488; border-radius: 12px; padding: 10px 16px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: #334155; }

.work-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .work-layout { grid-template-columns: 1fr; } }

.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .cards-grid { grid-template-columns: 1fr; } }

.card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03); }
.stat-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }

.input { width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 8px 11px; font-size: 13px; color: #0f172a; background: #ffffff; outline: none; transition: border-color .15s; }
.input:focus { border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 9px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: #0d9488; color: #ffffff; }
.btn-primary:hover:not(:disabled) { background: #0f766e; }
.btn-ghost { background: #f8fafc; border-color: #e2e8f0; color: #334155; }
.btn-ghost:hover:not(:disabled) { background: #f1f5f9; border-color: #cbd5e1; }
.btn-danger { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.btn-danger:hover:not(:disabled) { background: #fee2e2; }
.btn-tab-active { background: #ccfbf1; border-color: #5eead4; color: #0f766e; }

.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-slate { background: #f1f5f9; color: #475569; }

.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.drawer { width: 100%; max-width: 540px; height: 100vh; background: #ffffff; padding: 20px; overflow-y: auto; box-shadow: -8px 0 24px rgba(15, 23, 42, 0.12); }
.task-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; margin-bottom: 10px; }

.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #ffffff; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; z-index: 90; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2); }
a { color: #0d9488; text-decoration: none; }
a:hover { text-decoration: underline; }
