/* 取自 smart-athlete-nutrition f0abda2 的 css/base.css。
   顏色、圓角與版面尺寸都定義在 :root。其他樣式檔只引用這些變數，不寫色碼。 */
:root {
  --bg: #f3f6fa;
  --surface: #fff;
  --text: #172b42;
  --muted: #667c93;
  --primary: #08453a; /* 台鋼雄鷹官網的森林綠 */
  --primary-soft: #eaf3f0;
  --border: #dce5ef;
  --card-radius: 14px;
  --card-shadow: 0 4px 14px #18355338;
  --sidebar: 230px;
  --header-height: 68px;
  /* 以下的顏色原本直接寫在 workspace.css、forms.css 的各個元件裡，現在集中在這裡。 */
  --topbar-bg: #01271a; /* 標題列與提示的底色 */
  --backdrop: #01271a66; /* 對話框後面的遮罩 */
  --text-soft: #38506b; /* 側欄項目、表格與表單文字 */
  --text-faint: #71859b; /* 說明小字 */
  --nav-caption: #6b7f96; /* 側欄上方的小標 */
  --nav-active-bg: #e6f0ec; /* 目前所在的側欄項目 */
  --nav-active-text: #08453a; /* 目前所在的側欄項目 */
  --role-tag-bg: #eef6f2; /* 角色標籤 */
  --role-tag-border: #c5ddd3; /* 角色標籤 */
  --role-tag-text: #2f6652; /* 角色標籤 */
  --date-border: #e1e8e2; /* 日期控制 */
  --date-text: #7f8e84; /* 日期控制 */
  --date-input: #64766b; /* 日期控制 */
  --table-head-text: #677d94; /* 表頭與中性標籤 */
  --table-head-bg: #f8fafc; /* 表頭 */
  --table-line: #e7edf4; /* 表格分隔線 */
  --input-border: #cbd9e7; /* 按鈕與輸入框的邊框 */
  --input-readonly-text: #536b82; /* 唯讀輸入框 */
  --input-readonly-bg: #fbfcfe; /* 唯讀輸入框 */
  --success: #24724f; /* 綠色標籤文字 */
  --success-soft: #e7f4ec; /* 綠色標籤底色 */
  --danger: #bd6662; /* 表單錯誤訊息 */
  --notice-text: #295b7d; /* 提示框文字 */
  --notice-bg: #eef6fc; /* 提示框底色 */
  --empty-text: #91a18f; /* 沒有資料時的說明 */
  --btn-shadow: #18355308; /* 主要按鈕的陰影色 */
  --dialog-shadow: #18355326; /* 對話框的陰影色 */
  --focus-ring: #2f8f75; /* 鍵盤焦點的外框 */
  --brand-accent: #d9ac40; /* 台鋼雄鷹的金。只能用在深色的標題列上（在白底上的對比只有 2.12:1），見 tests/test_brand.py */
  /* 餐點編輯元件的框與編號，依編號循環使用。白字在這些顏色上的對比都至少 4.5:1（tests/test_brand.py）。 */
  --box-1: #b91c1c;
  --box-2: #1d4ed8;
  --box-3: #15803d;
  --box-4: #b45309;
  --box-5: #7e22ce;
  --box-6: #0e7490;
  --box-7: #be185d;
  --box-8: #475569;
  font-family:
    system-ui,
    -apple-system,
    "Noto Sans TC",
    "Microsoft JhengHei",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  transition: background 0.16s;
}
a {
  color: var(--primary);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
button:hover {
  filter: brightness(0.97);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 750;
}
h2 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}
h3 {
  font-size: 17px;
  margin-bottom: 14px;
}
p {
  line-height: 1.6;
}
small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
