:root {
  --navy: #102a43;
  --navy-2: #173f62;
  --blue: #176b9f;
  --blue-soft: #eaf4fa;
  --ink: #152536;
  --muted: #617487;
  --line: #d8e2ea;
  --surface: #ffffff;
  --canvas: #f3f6f8;
  --success: #197149;
  --danger: #b42318;
  --shadow: 0 18px 42px rgba(16, 42, 67, .09);
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.topbar {
  min-height: 78px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background: var(--navy);
  border-bottom: 3px solid #2f91c5;
}
.brand-wrap { display: flex; gap: 13px; align-items: center; }
.brand-mark { width: 43px; height: 43px; border-radius: 11px; display: grid; place-items: center; background: white; color: var(--navy); font-weight: 800; font-size: 23px; }
.eyebrow, .section-kicker, .step { margin: 0 0 5px; font-size: 12px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: #4e7a97; }
.brand-wrap .eyebrow { color: #92c7e5; font-size: 10px; }
.brand-wrap h1 { margin: 0; font-size: 20px; letter-spacing: .04em; }
.profile-chip { padding: 8px 13px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #eaf5fb; font-size: 14px; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto 70px; }
.intro { padding: 48px 0 32px; max-width: 720px; }
.intro h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; color: var(--navy); }
.intro p:last-child { margin: 0; color: var(--muted); line-height: 1.8; }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tab { border: 0; background: none; color: var(--muted); font-weight: 700; padding: 0 2px 14px; border-bottom: 3px solid transparent; }
.tab.active { color: var(--navy); border-bottom-color: var(--blue); }
.count { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-left: 6px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 12px; }

.view { animation: appear .18s ease; }
#submitView.active { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: start; }
.panel, .aside-note, .task-card { background: var(--surface); border: 1px solid #e1e8ed; box-shadow: var(--shadow); }
.panel { padding: 32px; border-radius: 16px; }
.panel-heading, .tasks-heading, .progress-copy, .task-card-top, .task-meta, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-heading { margin-bottom: 28px; }
.panel h3, .tasks-heading h3, .dialog h3 { margin: 0; color: var(--navy); font-size: 24px; }
.required-note { font-size: 13px; color: var(--muted); }.required-note span, .field b { color: var(--danger); }

.field { display: block; margin-bottom: 22px; }
.field > span { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 700; color: #294358; }
.field input, .field textarea, .field select, .read-only { width: 100%; border: 1px solid #cbd8e2; border-radius: 9px; background: white; color: var(--ink); padding: 12px 14px; outline: none; transition: .16s; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,107,159,.12); }
.field small { display: block; text-align: right; margin-top: 6px; color: var(--muted); }
.read-only { min-height: 45px; background: #f6f8fa; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.dropzone { min-height: 130px; border: 1.5px dashed #91aec1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; color: var(--navy); background: #f9fbfc; transition: .16s; }
.dropzone:hover, .dropzone.dragging { border-color: var(--blue); background: var(--blue-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone small { margin-top: 5px; text-align: center; }
.upload-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 20px; margin-bottom: 8px; }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; border-bottom: 1px solid #edf1f4; color: #294358; font-size: 13px; }
.file-list button { border: 0; background: none; color: var(--danger); }

.primary, .secondary, .text-button { border-radius: 9px; font-weight: 700; transition: .16s; }
.primary { width: 100%; border: 0; padding: 13px 20px; color: white; background: var(--navy); }
.primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.primary:disabled { opacity: .62; cursor: wait; transform: none; }
.secondary { border: 1px solid #b8c8d3; padding: 10px 16px; color: var(--navy); background: white; }
.text-button { border: 0; background: none; color: var(--blue); padding: 4px; }

.message { margin: 0 0 16px; padding: 11px 13px; border-radius: 8px; font-size: 14px; }
.message.error { color: #912018; background: #fff1f0; border: 1px solid #f3c7c3; }
.message.success { color: #145c3d; background: #eaf7f1; border: 1px solid #b9dfcd; }
.progress-box { margin-bottom: 16px; padding: 13px; border-radius: 9px; background: var(--blue-soft); color: var(--navy); font-size: 13px; }
.progress-track { height: 6px; margin-top: 9px; background: #cadde8; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--blue); transition: width .1s linear; }

.aside-note { padding: 28px; border-radius: 16px; background: var(--navy); color: white; box-shadow: none; }
.aside-note .step { color: #84bedf; }
.aside-note h3 { margin: 0 0 19px; font-size: 21px; }
.aside-note ul { margin: 0; padding: 0; list-style: none; }
.aside-note li { position: relative; margin: 0 0 15px; padding-left: 22px; color: #d3e2eb; line-height: 1.65; font-size: 14px; }
.aside-note li::before { content: "✓"; position: absolute; left: 0; color: #68b5dd; font-weight: 800; }
.image-order-guide { margin: 0 0 22px; padding: 22px; border: 1px solid #bad1df; border-radius: 12px; background: #f7fbfd; }
.image-order-guide h4 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.image-order-guide > div > p:last-child { margin: 0 0 18px; color: #40586c; line-height: 1.65; font-size: 14px; }
.image-order-guide .field { margin-bottom: 15px; }
.checkbox-field { display: flex; align-items: center; gap: 9px; padding-top: 33px; }
.checkbox-field input { width: 18px; height: 18px; }
.checkbox-field span { margin: 0; font-weight: 600; color: #294358; }

.tasks-heading { margin-bottom: 20px; }
.empty-state { padding: 72px 24px; text-align: center; background: white; border: 1px dashed #c5d2db; border-radius: 14px; }
.empty-icon { width: 47px; height: 47px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-weight: 800; }
.empty-state h4 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }.empty-state p { color: var(--muted); }
.task-list { display: grid; gap: 14px; }
.task-card { border-radius: 13px; padding: 22px; cursor: pointer; box-shadow: none; transition: .15s; }
.task-card:hover { border-color: #a9c2d2; box-shadow: 0 10px 28px rgba(16,42,67,.07); transform: translateY(-1px); }
.task-card h4 { margin: 0; color: var(--navy); font-size: 18px; }
.status { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; color: var(--success); background: #eaf7f1; font-size: 12px; font-weight: 700; }
.status-neutral, .status-muted { color: #52697a; background: #edf2f5; }
.status-ready { color: #176342; background: #e7f6ee; }
.status-active { color: #075b91; background: #e5f2fa; }
.status-warning { color: #8a4f08; background: #fff2d8; }
.status-review { color: #5a3ea6; background: #f0ebff; }
.status-success { color: #176342; background: #e7f6ee; }
.status-danger { color: #9f2d23; background: #fff0ef; }
.task-meta { justify-content: flex-start; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 13px; }
.task-meta span + span::before { content: "·"; margin-right: 18px; color: #9aabba; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; background: rgba(9,25,39,.62); }
.dialog-backdrop[hidden], [hidden] { display: none !important; }
.dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 44px); overflow: auto; padding: 34px; border-radius: 17px; background: white; box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.success-dialog { text-align: center; }.success-check { width: 52px; height: 52px; margin: 0 auto 17px; display: grid; place-items: center; color: white; background: var(--success); border-radius: 50%; font-size: 25px; font-weight: 800; }
.success-lead { margin: -8px 0 0; color: #40586c; line-height: 1.65; }
.summary-list { margin: 24px 0; padding: 16px 18px; text-align: left; border-radius: 11px; background: #f5f8fa; }
.summary-list div { display: grid; grid-template-columns: 105px 1fr; gap: 12px; padding: 7px 0; }.summary-list dt { color: var(--muted); }.summary-list dd { margin: 0; color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.dialog-actions .primary, .dialog-actions .secondary { width: auto; flex: 1; }
.dialog-close { position: absolute; right: 16px; top: 14px; border: 0; background: none; color: var(--muted); font-size: 27px; }
.detail-block { margin-top: 23px; }.detail-block h4 { margin: 0 0 9px; color: var(--navy); }.detail-block p { margin: 0; white-space: pre-wrap; line-height: 1.75; color: #40586c; }
.attachment-list { margin: 0; padding: 0; list-style: none; }.attachment-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #e9eef2; }.attachment-list li > div { min-width: 0; overflow-wrap: anywhere; }.attachment-list a { flex: 0 0 auto; color: var(--blue); font-weight: 700; text-decoration: none; }.attachment-list small { color: var(--muted); }
.detail-dialog { width: min(700px, 100%); }
.history-title { margin: 28px 0 14px; color: var(--navy); font-size: 17px; }
.history-timeline { position: relative; padding-left: 20px; border-left: 2px solid #d8e7f0; }
.history-timeline .detail-block { position: relative; margin: 0 0 18px; padding: 18px; border: 1px solid #dfe8ee; border-radius: 11px; background: #fbfcfd; }
.history-timeline .detail-block::before { content: ""; position: absolute; left: -27px; top: 22px; width: 12px; height: 12px; border: 3px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #9fc0d3; }
.history-time { margin-bottom: 14px !important; color: var(--muted) !important; font-size: 12px; }
.history-content h5 { margin: 14px 0 5px; color: #294358; font-size: 13px; }
.history-empty { color: var(--muted) !important; font-size: 13px; }
.current-status { padding: 17px 18px; border: 1px solid #cad9e3; border-left: 4px solid var(--blue); border-radius: 10px; background: #f7fafc; }
.current-status strong { color: var(--navy); font-size: 18px; }
.current-status p { margin: 9px 0 0; color: #40586c; line-height: 1.65; white-space: pre-wrap; }
.current-status-warning { border-left-color: #c77712; background: #fffaf0; }
.current-status-danger { border-left-color: var(--danger); background: #fff6f5; }
.current-status-success { border-left-color: var(--success); background: #f2faf6; }
.current-status-review { border-left-color: #6d4bc1; background: #faf8ff; }
.delivery-guidance { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: #f5f8fa; color: #40586c; line-height: 1.65; }
.delivery-guidance strong { display: block; color: var(--navy); margin-bottom: 4px; }
.delivery-guidance p { margin: 5px 0 0; }
.review-notice { font-weight: 700; color: #78520b !important; }
.status-history { position: relative; margin-left: 7px; padding-left: 24px; border-left: 2px solid #c9dce8; }
.status-history-item { position: relative; padding: 0 0 21px; }
.status-history-item::before { content: ""; position: absolute; left: -31px; top: 4px; width: 11px; height: 11px; border: 3px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #8fb6cc; }
.status-history-content { display: grid; grid-template-columns: 145px 1fr; gap: 5px 14px; }
.status-history-content time { color: var(--muted); font-size: 12px; }
.status-history-content strong { color: var(--navy); }
.status-history-content p { grid-column: 2; margin: 2px 0 0; color: #40586c; line-height: 1.6; white-space: pre-wrap; }
.supplement-entry { width: 100%; margin-top: 20px; padding: 13px 18px; border: 1px solid #8cb2c9; border-radius: 9px; color: var(--navy); background: var(--blue-soft); font-weight: 800; }
.supplement-panel { margin-top: 20px; padding: 22px; border: 1px solid #bad1df; border-radius: 12px; background: #f7fbfd; }
.supplement-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.supplement-panel-heading h4 { margin: 0; color: var(--navy); font-size: 19px; }
.compact-dropzone { min-height: 94px; padding: 15px; }

.dev-page { min-height: 100vh; }
.dev-back { color: #d8ecf8; text-decoration: none; font-weight: 700; }
.dev-shell { width: min(760px, calc(100% - 32px)); margin: 42px auto 72px; }
.dev-panel h1 { margin: 4px 0 10px; color: var(--navy); font-size: clamp(26px, 4vw, 36px); }
.dev-panel .lead { margin: 0 0 30px; color: var(--muted); line-height: 1.7; }
.dev-current { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0 0 24px; padding: 18px; border-radius: 11px; background: #f3f7fa; }
.dev-current span, .dev-current small { color: var(--muted); }
.dev-current strong { color: var(--navy); font-size: 18px; }
.dev-current small { grid-column: 2; overflow-wrap: anywhere; }
.dev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 5px 0 20px; }
.dev-actions .primary, .dev-actions .secondary { width: auto; }
.dev-terminal { margin: 0; color: var(--muted); }

.dev-delivery-panel, .review-actions, .deliverable-card, .review-record {
  margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.dev-delivery-panel { border-top: 4px solid var(--blue); }
.dev-delivery-panel h2, .review-actions h4 { margin: 6px 0 8px; }
.dev-delivery-panel > p, .review-actions > p { margin: 0 0 16px; color: var(--muted); }
.latest-deliverable { border-color: #9bc8df; background: #f5fbfe; box-shadow: inset 4px 0 0 var(--blue); }
.deliverable-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.deliverable-heading strong { font-size: 20px; color: var(--navy); }
.deliverable-heading time, .review-record time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.deliverable-card > p, .review-record > p { margin: 10px 0; color: var(--text); white-space: pre-wrap; }
.deliverable-history, .review-history { display: grid; gap: 12px; }
.review-record { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 8px 16px; }
.review-record .attachment-list, .review-record > p { grid-column: 1 / -1; }
.review-actions { background: #f4fbf7; border-color: #b6ddc5; }

@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.production-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 24px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #f5f9fc; }
.production-strip div { min-width: 0; }.production-strip span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }.production-strip strong { font-size: 19px; color: var(--navy); overflow-wrap: anywhere; }
.production-strip p { grid-column: 1/-1; margin: 0; color: var(--muted); font-size: 12px; }
[data-state="offline"], [data-state="error"] { color: #9a5413 !important; }
.progress-card { margin-top: 14px; padding: 14px; border-radius: 10px; background: #f5f8fa; }
.progress-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; margin: 0; }
.progress-grid div { min-width: 0; }.progress-grid dt { color: var(--muted); font-size: 12px; }.progress-grid dd { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--navy); overflow-wrap: anywhere; }
.progress-card small { display: block; margin-top: 12px; color: var(--muted); }.progress-attention { font-weight: 600; color: #845015; }
.management-shell { padding-bottom: 40px; }.management-shell > .panel { max-width: 520px; margin: 36px auto; }.management-shell .tasks-heading { gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.worker-grid, .queue-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }.worker-card, .queue-group { min-width: 0; padding: 22px; }.worker-card h3 { font-size: 18px; overflow-wrap: anywhere; }.queue-item { border-top: 1px solid var(--line); padding: 14px 0; overflow-wrap: anywhere; }.queue-item p { margin: 6px 0; color: var(--muted); font-size: 13px; }.queue-group h3 { font-size: 18px; }
.task-card, .detail-dialog, .task-meta, .summary-list dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width:560px) { .production-strip { grid-template-columns: 1fr 1fr; padding: 15px; gap: 12px; }.production-strip div:last-of-type { grid-column: 1/-1; }.production-strip strong { font-size: 17px; }.progress-grid { gap: 12px; }.worker-grid,.queue-groups { grid-template-columns: 1fr; }.task-card-top { flex-wrap: wrap; }.task-card-top h4 { min-width: 0; overflow-wrap: anywhere; }.dev-back { font-size: 13px; }.queue-group,.worker-card { padding: 18px; } }

@media (max-width: 820px) {
  .shell { width: min(100% - 26px, 720px); }
  .topbar { padding: 13px; }.profile-chip { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .intro { padding: 34px 0 25px; }
  #submitView.active { grid-template-columns: 1fr; }
  .aside-note { order: -1; padding: 21px; }
  .aside-note ul { display: none; }.aside-note h3 { margin-bottom: 0; font-size: 18px; }
}

@media (max-width: 560px) {
  .brand-wrap .eyebrow { display: none; }.brand-wrap h1 { font-size: 17px; }.brand-mark { width: 36px; height: 36px; border-radius: 9px; }
  .intro h2 { font-size: 29px; }.intro p:last-child { font-size: 14px; }
  .tabs { margin-bottom: 18px; }
  .panel { padding: 22px 17px; border-radius: 12px; }.panel-heading { align-items: flex-start; }.panel h3 { font-size: 21px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .dialog { padding: 29px 20px; }.dialog-actions { flex-direction: column; }.dialog-actions .primary, .dialog-actions .secondary { width: 100%; }
  .summary-list div { grid-template-columns: 90px 1fr; font-size: 13px; }
  .status-history-content { grid-template-columns: 1fr; }
  .status-history-content p { grid-column: 1; }
  .dev-shell { width: calc(100% - 24px); margin-top: 24px; }
  .dev-current { grid-template-columns: 1fr; }
  .dev-current small { grid-column: 1; }
  .task-card-top { align-items: flex-start; }.task-card { padding: 18px; }
  .history-timeline { padding-left: 14px; }
  .history-timeline .detail-block { padding: 15px; }
  .history-timeline .detail-block::before { left: -21px; }
  .supplement-panel { padding: 17px 14px; }
  .dev-delivery-panel, .review-actions, .deliverable-card, .review-record { padding: 14px; }
  .deliverable-heading, .review-record { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .deliverable-heading time, .review-record time { white-space: normal; }
  .review-actions .dialog-actions { display: grid; grid-template-columns: 1fr; }
}

.account-actions { display: flex; align-items: center; gap: 9px; }
.header-button { border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 7px 10px; color: white; background: transparent; font-weight: 700; }
.header-button:hover { background: rgba(255,255,255,.12); }
.header-button .count { margin-left: 4px; color: var(--navy); background: #dceefa; }
.notification-dialog { width: min(580px, 100%); }
.notification-list { display: grid; gap: 9px; margin: 20px 0; }
.notification-item { display: grid; gap: 6px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-align: left; color: var(--text); background: white; }
.notification-item.unread { border-color: #7eb6d5; background: #f1f9fd; }
.notification-item strong { color: var(--navy); line-height: 1.55; }
.notification-item small { color: var(--muted); }
.login-page { min-height: 100vh; background: linear-gradient(145deg, #edf5f9, #f8fafb); }
.login-shell { width: min(100% - 28px, 480px); margin: 0 auto; padding: 10vh 0 40px; }
.login-panel { padding: 34px; }
.login-copy { margin: 28px 0 20px; }
.login-copy h2 { margin: 7px 0 9px; color: var(--navy); font-size: 27px; }
.login-copy p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }
@media (max-width: 560px) { .account-actions { gap: 5px; }.header-button { padding: 6px 8px; font-size: 12px; }.login-shell { padding-top: 32px; }.login-panel { padding: 25px 19px; }.login-copy h2 { font-size: 24px; } }

/* CLOUD006: compact employee directory with one shared detail form. */
.sf-mark { display:flex; justify-content:center; gap:0; letter-spacing:-.13em; padding-right:4px; font-family:system-ui,sans-serif; font-style:italic; font-size:23px; flex-shrink:0; }
.sf-mark span:last-child { color:#08759e; transform:translateY(2px); }
.brand-wrap h1 { font-family:system-ui,sans-serif; letter-spacing:-.035em; }
.workspace-intro { padding:26px 0 20px; }
.workspace-intro h2 { margin:0 0 7px; font-size:24px; letter-spacing:-.03em; }
.workspace-intro p,.directory-hint { color:var(--muted); font-size:14px; line-height:1.6; margin:0; }
.employee-page .tabs { gap:8px; border:0; margin-bottom:22px; padding:4px; border-radius:12px; background:#e6edf2; }
.employee-page .tab { flex:1; padding:13px 8px; border:0; border-radius:9px; font-size:16px; }
.employee-page .tab.active { color:var(--navy); background:white; box-shadow:0 2px 5px #102a4310; }
.employee-page .tab::after { display:none; }
.directory-hint { margin:0 0 16px; }
.task-directory { display:grid; gap:8px; }
.task-directory-entry { border:1px solid var(--line); border-radius:12px; background:white; min-width:0; overflow:hidden; }
.category-toggle { display:flex; align-items:center; gap:12px; width:100%; padding:16px; text-align:left; border:0; background:white; color:var(--ink); font-weight:600; }
.category-toggle > span:first-child { flex:1; }
.category-toggle[aria-expanded="true"] { background:#edf5fa; color:#135a82; }
.category-count { min-width:24px; border-radius:12px; background:#f0f4f7; color:#617487; font-size:12px; text-align:center; padding:2px 5px; }
.category-chevron { font-size:20px; transition:transform .15s; }
.category-toggle[aria-expanded="true"] .category-chevron { transform:rotate(180deg); }
#taskResults { border-top:1px solid var(--line); }
.employee-page .task-list { display:block; max-height:65vh; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.employee-page .compact-task { border:0; border-bottom:1px solid #e6edf2; border-radius:0; padding:0; box-shadow:none; transform:none; cursor:default; }
.task-summary { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:10px; width:100%; padding:13px 15px; text-align:left; border:0; background:white; color:var(--ink); }
.task-summary:hover,.task-summary[aria-expanded="true"] { background:#f7fafc; }
.task-summary-main { min-width:0; }
.task-summary-name { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:14px; line-height:1.6; }
.task-summary-meta { display:block; font-size:11px; color:var(--muted); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.task-toggle-label { font-size:12px; color:#176b9f; white-space:nowrap; }
.status { white-space:nowrap; }
.status-revision { color:#764097; background:#f6edfc; }
.status-ready { color:#075b91; background:#e5f2fa; }
.task-inline-detail { padding:0 14px 16px; }
.task-inline-detail .detail-dialog { width:100%; max-height:none; overflow:visible; padding:18px 0 0; border-radius:0; box-shadow:none; border-top:1px solid var(--line); }
.task-inline-detail .detail-dialog h3 { padding-top:14px; font-size:18px; overflow-wrap:anywhere; }
.detail-collapse { display:block; margin-left:auto; color:#176b9f; background:transparent; border:0; padding:8px 0; font-size:13px; }
.service-details { margin-top:24px; color:var(--muted); font-size:13px; }
.service-details > summary { cursor:pointer; padding:12px 0; }
.service-details .production-strip { margin-top:0; box-shadow:none; }
.category-toggle:focus-visible,.task-summary:focus-visible,.tab:focus-visible { outline:2px solid var(--blue); outline-offset:-3px; }
@media (max-width:560px) {
  .employee-page .topbar { flex-wrap:wrap; gap:12px; padding:14px 16px; }
  .employee-page .brand-wrap { gap:9px; }
  .employee-page .brand-wrap h1 { font-size:23px; }
  .employee-page .account-actions { width:100%; justify-content:flex-end; border-top:1px solid #ffffff20; padding-top:9px; }
  .employee-page .profile-chip { margin-right:auto; order:-1; max-width:155px; padding:3px 0; border:0; font-size:12px; }
  .employee-page .header-button { min-height:32px; padding:6px 9px; }
  .employee-page .shell { width:calc(100% - 28px); }
  .workspace-intro { padding:21px 0 18px; }
  .workspace-intro h2 { font-size:21px; }
  .workspace-intro p,.directory-hint { font-size:12px; }
  .employee-page .tabs { margin-bottom:20px; }
  .employee-page .tab { font-size:15px; }
  .category-toggle { min-height:54px; padding:13px 14px; font-size:14px; }
  .task-summary { gap:7px; padding:12px 10px; }
  .task-summary-name { font-size:13px; }
  .task-summary .status { font-size:10px; padding:4px 6px; }
  .task-toggle-label { font-size:10px; }
  .task-inline-detail { padding:0 12px 14px; }
  .employee-page .tasks-heading h3 { font-size:20px; }
  .employee-page .task-list { max-height:62vh; }
}

@media (max-width:560px) { .employee-page .aside-note { display:none; } }
