:root {
  --ink: #20312b;
  --muted: #6d7974;
  --line: #dce6e1;
  --paper: #f4f7f5;
  --white: #fff;
  --green: #2f6757;
  --green-dark: #20493e;
  --green-soft: #e2efe9;
  --line-green: #06c755;
  --gold: #b9873a;
  --gold-soft: #f7ecd9;
  --blue: #3e7897;
  --blue-soft: #e5f1f6;
  --shadow: 0 18px 48px rgba(32, 73, 62, .1);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.employee-header { min-height: 82px; padding: 15px max(20px, calc((100vw - 920px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--green-dark); color: white; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand > span { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; font-family: serif; font-size: 21px; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 3px; color: rgba(255,255,255,.62); font-size: 11px; }
.employee-switch { display: grid; gap: 4px; color: rgba(255,255,255,.7); font-size: 10px; }
.employee-switch select { min-width: 135px; border: 0; border-radius: 9px; padding: 8px 10px; color: var(--ink); }
main { width: min(920px, 100%); margin: 0 auto; padding: 24px 20px 60px; }
.notice { position: sticky; top: 8px; z-index: 10; padding: 12px 15px; margin-bottom: 15px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); box-shadow: var(--shadow); }
.notice.error { background: #f8e7e4; color: #9a403a; }
.hidden { display: none !important; }
.loading, .empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.hello { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 18px; }
.hello p { margin: 0 0 5px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.hello h1 { margin: 0; font-size: 27px; }
.date-picker { display: grid; gap: 4px; color: var(--muted); font-size: 10px; }
.date-picker input { border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); background: white; }
.line-preview { display: grid; grid-template-columns: 48px 1fr; gap: 12px; margin-bottom: 22px; }
.line-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--line-green); color: white; font-weight: 900; }
.message { position: relative; background: white; border: 1px solid var(--line); border-radius: 5px 16px 16px 16px; padding: 16px; box-shadow: var(--shadow); }
.message p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.message strong { display: block; font-size: 16px; margin-bottom: 4px; }
.message span { color: var(--muted); font-size: 13px; }
.status-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.status-count { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 13px; border-top: 4px solid; }
.status-count strong { display: block; font-size: 22px; }
.status-count span { color: var(--muted); font-size: 11px; }
.status-count.upcoming { border-color: var(--gold); }
.status-count.in-progress { border-color: var(--blue); }
.status-count.completed { border-color: var(--green); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 11px; }
.section-title h2 { margin: 0; font-size: 18px; }
.section-title span { color: var(--muted); font-size: 12px; }
.task-list { display: grid; gap: 12px; }
.task { position: relative; overflow: hidden; background: white; border: 1px solid var(--line); border-left: 5px solid; border-radius: 15px; padding: 17px; box-shadow: 0 10px 28px rgba(32,73,62,.06); }
.task.upcoming { border-left-color: var(--gold); background: linear-gradient(105deg, var(--gold-soft), white 34%); }
.task.in-progress { border-left-color: var(--blue); background: linear-gradient(105deg, var(--blue-soft), white 38%); }
.task.completed { border-left-color: var(--green); background: linear-gradient(105deg, var(--green-soft), white 34%); }
.task-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.task-time { font-size: 20px; font-weight: 850; color: var(--green-dark); }
.status-pill { border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 750; }
.upcoming .status-pill { color: #7d5924; background: var(--gold-soft); }
.in-progress .status-pill { color: #2f617c; background: var(--blue-soft); }
.completed .status-pill { color: var(--green-dark); background: var(--green-soft); }
.task h3 { margin: 12px 0 4px; font-size: 18px; }
.task .case { color: #a4732e; font-size: 12px; font-weight: 750; }
.task .meta { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.assignees { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.assignees span { background: #eef3f0; color: var(--green-dark); border-radius: 999px; padding: 5px 9px; font-size: 11px; }
.task-actions { display: flex; gap: 8px; margin-top: 15px; }
.button { border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; font-weight: 750; }
.button.primary { background: var(--green); color: white; }
.button.start { background: var(--blue); color: white; }
.button.ghost { border-color: var(--line); background: white; color: var(--ink); }
.flow-note { margin-top: 22px; padding: 15px; border: 1px dashed #adc2b8; border-radius: 14px; color: var(--muted); font-size: 12px; line-height: 1.65; }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(600px, calc(100vw - 24px)); box-shadow: 0 30px 100px rgba(10,30,22,.3); color: var(--ink); }
dialog::backdrop { background: rgba(20,35,29,.58); backdrop-filter: blur(2px); }
dialog form { display: grid; gap: 14px; padding: 22px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; }
.dialog-head p { margin: 0 0 4px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.dialog-head h2 { margin: 0; }
.icon-button { border: 0; background: #eef2ef; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: var(--muted); }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #cbd8d1; border-radius: 10px; color: var(--ink); background: white; }
textarea { resize: vertical; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 1px solid #cbd8d1; border-radius: 11px; padding: 12px; }
legend { font-weight: 750; font-size: 13px; }
.field-hint { color: var(--muted); font-size: 11px; margin: 0 0 9px; }
.participant-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.participant-option { display: flex; align-items: center; gap: 7px; padding: 9px; background: var(--paper); border-radius: 9px; }
.participant-option input { width: auto; margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 620px) {
  .employee-header { align-items: flex-start; padding: 13px 15px; }
  .brand small { display: none; }
  main { padding: 19px 14px 42px; }
  .hello { align-items: start; }
  .hello h1 { font-size: 23px; }
  .status-overview { gap: 7px; }
  .status-count { padding: 10px; }
  .two-cols, .participant-list { grid-template-columns: 1fr; }
}
