:root { color: #1f2937; background: #f4f6f8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 920px; background: #f4f6f8; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.topbar h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.topbar p { margin: 7px 0 0; color: #6b7280; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.badge, .progress-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 999px; color: #0f5ec7; background: #eaf3ff; font-size: 14px; }
.button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; color: #fff; background: #1677ff; font-weight: 600; }
.button.ghost { border: 1px solid #d8dee7; color: #405064; background: #fff; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.status-banner { margin-bottom: 18px; padding: 13px 16px; border: 1px solid #d9e7fa; border-radius: 12px; color: #315578; background: #f1f7ff; }
.status-banner.error { border-color: #f0c8c2; color: #a93226; background: #fff4f2; }
.status-banner.success { border-color: #bde5cc; color: #197246; background: #f0fbf5; }
.card { border: 1px solid #e1e5ea; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(31, 41, 55, .045); }
.workspace { display: grid; grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.sidebar { position: sticky; top: 18px; overflow: hidden; }
.summary-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; }
.summary-head strong { display: block; margin-top: 5px; font-size: 22px; }
.eyebrow { display: block; color: #7b8795; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 18px 14px; padding: 4px; border-radius: 11px; background: #edf1f5; }
.segment { height: 38px; border: 0; border-radius: 8px; color: #5d6875; background: transparent; }
.segment.active { color: #fff; background: #1677ff; font-weight: 600; }
.task-list { max-height: calc(100vh - 260px); overflow: auto; border-top: 1px solid #edf0f3; }
.task-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 17px 18px; border: 0; border-bottom: 1px solid #edf0f3; text-align: left; background: #fff; }
.task-item:hover, .task-item.active { background: #eef6ff; }
.task-date { color: #566475; font-variant-numeric: tabular-nums; }
.task-copy strong, .task-copy span { display: block; }
.task-copy span { margin-top: 4px; color: #7d8895; font-size: 13px; }
.state { padding: 6px 9px; border-radius: 999px; color: #57616e; background: #eef1f4; font-size: 12px; white-space: nowrap; }
.state.urgent { color: #b23c28; background: #fff0ec; }
.state.done { color: #17784c; background: #eaf8f1; }
.detail { min-height: 480px; padding: 26px; }
.empty-detail { display: grid; place-items: center; min-height: 520px; color: #7a8592; text-align: center; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.detail h2 { margin: 4px 0 0; font-size: 24px; }
.detail-description { margin: 18px 0 22px; color: #5e6a78; line-height: 1.7; }
.form-list { display: grid; gap: 16px; }
.form-field { padding: 18px; border: 1px solid #e2e6eb; border-radius: 14px; background: #fbfcfd; }
.form-field label { display: block; margin-bottom: 9px; font-weight: 600; }
.text-input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #cfd6de; border-radius: 9px; outline: none; background: #fff; }
.text-input:focus { border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
.choice-list { display: flex; flex-wrap: wrap; gap: 9px; }
.choice { padding: 9px 13px; border: 1px solid #d2d8e0; border-radius: 9px; color: #455466; background: #fff; }
.choice.selected { border-color: #1677ff; color: #0f63d4; background: #ebf4ff; }
.photo-only { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #647181; }
.photo-only strong { display: block; margin-bottom: 4px; color: #283748; }
.submit-row { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 24px; }
.form-message { color: #b43d25; }
.manager-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.manager-nav { position: sticky; top: 18px; padding: 10px; }
.manager-nav-item { display: block; width: 100%; padding: 13px 14px; border: 0; border-radius: 10px; text-align: left; color: #526071; background: transparent; }
.manager-nav-item.active { color: #0e63d5; background: #eaf3ff; font-weight: 600; }
.manager-nav p { margin: 18px 10px 10px; color: #87919d; font-size: 12px; line-height: 1.6; }
.manager-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 4px 2px 16px; }
.manager-heading h2 { margin: 4px 0 0; font-size: 25px; }
.muted { color: #7d8896; }
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.store-card { overflow: hidden; border: 1px solid #e1e5ea; border-radius: 16px; background: #fff; }
.store-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px; border-left: 5px solid var(--store-color, #1677ff); background: #fafcff; }
.store-head h3 { margin: 0; font-size: 18px; }
.store-head span { color: #738090; font-size: 13px; }
.store-task { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; width: 100%; padding: 15px 18px; border: 0; border-top: 1px solid #edf0f3; text-align: left; color: inherit; background: #fff; }
.store-task:hover, .store-task.active { background: #eef6ff; }
.store-task strong, .store-task small { display: block; }
.store-task small { margin-top: 5px; color: #7c8794; }
.manager-task-detail { margin-top: 18px; padding: 24px; }
.manager-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.manager-detail-head h3 { margin: 4px 0 0; font-size: 22px; }
.manager-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.manager-detail-field { display: grid; gap: 8px; }
.manager-detail-field.is-wide { grid-column: 1 / -1; }
.manager-detail-field label { color: #596777; font-size: 13px; font-weight: 600; }
.manager-detail-field input, .manager-detail-field textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd6de; border-radius: 9px; outline: none; background: #fff; }
.manager-detail-field textarea { min-height: 96px; resize: vertical; }
.manager-detail-field input:focus, .manager-detail-field textarea:focus { border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
.manager-detail-meta { display: grid; gap: 9px; margin: 18px 0; padding: 16px; border-radius: 12px; color: #5f6c7b; background: #f6f8fb; }
.manager-detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.manager-detail-danger { margin-top: 28px; padding-top: 18px; border-top: 1px solid #edf0f3; text-align: right; }
.manager-detail-danger button { border: 0; color: #a33a24; background: transparent; font-size: 13px; }
.routine-overview { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.routine-card { padding: 20px; border: 1px solid #dce7f3; border-radius: 16px; background: #fff; }
.routine-card h3 { margin: 0 0 8px; }
.routine-card p { margin: 0 0 14px; color: #758190; }
.routine-task-list { display: grid; gap: 8px; }
.routine-task { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 0; border-radius: 10px; text-align: left; color: #334357; background: #f6f9fd; }
.routine-task small { display: block; margin-top: 4px; color: #7c8794; }
.empty-state { grid-column: 1 / -1; padding: 56px 24px; border: 1px dashed #d5dbe3; border-radius: 16px; color: #7b8795; text-align: center; background: #fff; }
@media (max-width: 1100px) { body { min-width: 760px; } .app-shell { width: calc(100% - 30px); } .workspace { grid-template-columns: 320px minmax(0, 1fr); } .store-grid { grid-template-columns: 1fr; } .routine-overview { grid-template-columns: 1fr; } }
