:root {
  color-scheme: light;
  --bg: #f2f5f3;
  --surface: #fff;
  --surface-2: #e8eeeb;
  --line: #d2dcd7;
  --fg: #16241f;
  --muted: #5a6a64;
  --accent: #1d6b5a;
  --accent-soft: #d5eae2;
  --ok: #267144;
  --ok-soft: #dcefe2;
  --warn: #8a570d;
  --warn-soft: #f6e8cf;
  --bad: #a33526;
  --bad-soft: #f6ddd7;
  --info: #2d5f8f;
  --info-soft: #dde8f3;
  --final: #4b3f8a;
  --final-soft: #e5e1f5;
  --nav: #14312a;
  --nav-fg: #e3eee8;
  --nav-muted: #aec9bc;
  --nav-hi: #88c6ad;
  --paper: #fff;
  --paper-fg: #1b2420;
  --paper-line: #cfd8d3;
  --paper-accent: #1d6b5a;
  --f-body: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei",
    sans-serif;
  --f-mono: ui-monospace, monospace;
  --f-disp: var(--f-body);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.65 var(--f-body);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #ad6e18;
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent);
}
h1 {
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 6px;
}
h2 {
  font-size: 15px;
  margin: 0 0 12px;
}
p {
  margin: 0 0 14px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.hub-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.hub-side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: var(--nav);
  color: var(--nav-fg);
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
}
.hub-brand {
  padding: 0 10px 22px;
  border-bottom: 1px solid #345449;
  margin-bottom: 14px;
}
.hub-brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0;
  white-space: nowrap;
}
.hub-brand small {
  display: block;
  color: var(--nav-muted);
}
.hub-group {
  margin: 16px 10px 4px;
  color: var(--nav-muted);
  font-size: 13px;
}
.hub-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hub-nav button {
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 9px 12px;
  border-radius: 5px;
}
.hub-nav button:hover {
  background: #23463a;
}
.hub-nav button[aria-current="page"] {
  background: #305749;
  box-shadow: inset 3px 0 #aed7c2;
  font-weight: 700;
}
.hub-body {
  min-width: 0;
}
/* 頁首固定在上方；層級低於彈窗（40 以上）與浮動清單。 */
.hub-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
}
.hub-top .crumb {
  margin: 0;
  font-size: 15px;
}
.hub-top .crumb button {
  all: unset;
  cursor: pointer;
  color: var(--accent);
}
.hub-top .crumb button:hover {
  text-decoration: underline;
}
/* 標題移到頁首後，只剩操作按鈕時靠右。 */
#main :is(.vh, .hub-heading, .ph) > .row:only-child {
  margin-left: auto;
}
.hub-top label {
  font-size: 13px;
  color: var(--muted);
}
.hub-top select {
  max-width: 210px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}
.wl-wrap {
  padding: 0;
}
.wl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.wl th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  padding: 10px 12px;
  white-space: nowrap;
}
.wl td {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.wl .wl-check {
  width: 36px;
}
.wl .wl-act {
  width: 56px;
  text-align: center;
}
.wl-task:hover td {
  background: #fdf3e7;
}
.wl-group td {
  background: var(--surface);
  padding-top: 14px;
}
.wl-ghead {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wl-toggle {
  width: 22px;
  height: 22px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.wl-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  transform: rotate(-45deg);
  transition: transform 0.15s;
}
.wl-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg) translate(-2px, -2px);
}
.wl-no {
  color: var(--muted);
}
/* 拖曳把手：滑過列時顯示，可用滑鼠拖曳或聚焦後按上下鍵移動。 */
/* 全站共用的拖曳把手（報價項目、工作清單）：六點圖示，可拖曳或聚焦後按上下鍵移動。 */
.drag-handle {
  width: 20px;
  height: 28px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  vertical-align: middle;
  cursor: grab;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Ccircle cx='9' cy='6' r='1.7'/%3E%3Ccircle cx='15' cy='6' r='1.7'/%3E%3Ccircle cx='9' cy='12' r='1.7'/%3E%3Ccircle cx='15' cy='12' r='1.7'/%3E%3Ccircle cx='9' cy='18' r='1.7'/%3E%3Ccircle cx='15' cy='18' r='1.7'/%3E%3C/g%3E%3C/svg%3E")
    center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Ccircle cx='9' cy='6' r='1.7'/%3E%3Ccircle cx='15' cy='6' r='1.7'/%3E%3Ccircle cx='9' cy='12' r='1.7'/%3E%3Ccircle cx='15' cy='12' r='1.7'/%3E%3Ccircle cx='9' cy='18' r='1.7'/%3E%3Ccircle cx='15' cy='18' r='1.7'/%3E%3C/g%3E%3C/svg%3E")
    center / 20px 20px no-repeat;
}
.drag-handle:hover,
.drag-handle:focus-visible {
  background: var(--fg);
}
.drag-handle:active {
  cursor: grabbing;
}
/* 拖曳中的列與放置位置（工作清單、報價項目共用）。 */
tr.is-dragging td {
  opacity: 0.45;
}
tr.drop-before td {
  box-shadow: inset 0 2px 0 var(--accent);
}
tr.drop-after td {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.wl tr.wl-drop-into td {
  background: var(--accent-soft);
}
.wl-name {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.wl-name:hover {
  color: var(--accent);
  text-decoration: underline;
}
.wl-rename {
  font: inherit;
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  min-width: 260px;
}
.wl-addrow td {
  padding-top: 4px;
  padding-bottom: 4px;
}
.wl-add {
  width: 100%;
  max-width: 420px;
  padding: 6px 8px;
  border: 1px dashed transparent;
  border-radius: 5px;
  background: none;
  font: inherit;
  color: var(--fg);
}
.wl-add::placeholder {
  color: var(--muted);
}
.wl-add:hover,
.wl-add:focus {
  border-color: var(--line);
  background: var(--surface);
  outline: none;
}
.wl-add:focus {
  border-style: solid;
  border-color: var(--accent);
}
.wl-addgroup .wl-add {
  font-weight: 600;
}
.wl-title {
  white-space: normal !important;
  min-width: 180px;
}
.wl-ms {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}
.wl-late {
  color: var(--bad);
  font-weight: 600;
}
.wl-st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.wl-st::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.wl-st.done {
  color: var(--ok);
  background: var(--ok-soft);
}
.wl-st.doing {
  color: var(--info);
  background: var(--info-soft);
}
.wl-st.todo {
  color: var(--muted);
  background: var(--surface-2);
}
.wl-st.pause {
  color: var(--warn);
  background: var(--warn-soft);
}
.wl-bar {
  display: inline-block;
  vertical-align: middle;
  width: 64px;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}
.wl-bar.wide {
  width: 140px;
}
.wl-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--info);
}
.wl-bar i.done {
  background: var(--ok);
}
.wl-pct {
  display: inline-block;
  min-width: 42px;
  margin-left: 8px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.wl-doc::before {
  content: "";
  display: inline-block;
  vertical-align: -3px;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.wl-docbtn {
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  cursor: pointer;
}
.wl-docbtn:hover,
.wl-docbtn[aria-expanded="true"] {
  background: var(--surface-2);
}
.tf-list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.tf-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.tf-list li .wl-doc {
  flex: 1;
  min-width: 0;
}
.tf-add {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tf-add .dd {
  flex: 1;
}
.wl-more {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.wl-more:hover,
.wl-more[aria-expanded="true"] {
  background: var(--surface-2);
}
.wl-menu {
  position: fixed;
  z-index: 1000;
  min-width: 140px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(22, 36, 31, 0.12);
}
.wl-menu button {
  display: block;
  width: 100%;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wl-menu button:hover,
.wl-menu button:focus {
  background: var(--surface-2);
  outline: none;
}
.wl-menu button:disabled {
  color: var(--muted);
  background: none;
  cursor: not-allowed;
}
.wl-menu button.danger {
  color: var(--bad);
}
.wl-bulk {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
}
.wl-bulk[hidden] {
  display: none;
}
/* 執行前確認視窗：疊在一般彈窗之上。 */
.cf-layer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(22, 36, 31, 0.4);
}
.cf-box {
  width: min(440px, 100%);
  padding: 22px 24px 18px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(22, 36, 31, 0.2);
}
.cf-box h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.cf-box p {
  margin: 0 0 18px;
}
.cf-act {
  justify-content: flex-end;
  gap: 8px;
}
/* 年度報告狀態：製作中藍、已定稿紫。 */
.rst {
  display: inline-flex;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.rst-run {
  background: var(--info-soft);
  color: var(--info);
}
.rst-final {
  background: var(--final-soft);
  color: var(--final);
}
/* 專案範本編輯：主項目與第二階工作。 */
.tpl-tree {
  display: grid;
  gap: 10px;
  max-height: 55vh;
  overflow: auto;
  padding-right: 4px;
}
.tg {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tg-head,
.tt {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tg-head input,
.tt input {
  flex: 1;
  min-width: 0;
}
.tg-head input {
  font-weight: 600;
}
.tg-no {
  min-width: 22px;
  color: var(--muted);
  font-weight: 600;
}
.tg-tasks {
  display: grid;
  gap: 6px;
  padding-left: 28px;
}
.tg-addg {
  justify-self: start;
}
.tg-add {
  justify-self: start;
  margin-left: 28px;
}
/* 載入範本彈窗的範本選項。 */
.tpl-opts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.tpl-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.tpl-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.tpl-opt input {
  margin-top: 4px;
}
.tpl-opt small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}
.home-grid {
  grid-auto-flow: row dense;
}
.dd {
  position: relative;
  vertical-align: middle;
}
/* 共用篩選區塊：三個欄位加「清除篩選」，所有列表頁一致。 */
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.filters-act {
  gap: 8px;
  flex-wrap: wrap;
}
.filters[hidden] {
  display: none;
}
.filters .field input,
.filters .field select,
.filters .btn {
  height: 38px;
  border-radius: 6px;
}
@media (max-width: 1000px) {
  .filters {
    grid-template-columns: 1fr;
  }
}
.filters .dd-btn {
  height: 38px;
}
.item-row .dd {
  display: block !important;
  min-width: 0 !important;
}
.dd-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}
.dd-btn {
  width: 100%;
  min-height: 34px;
  white-space: nowrap;
  font: inherit;
  color: inherit;
  padding: 6px 34px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6a64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 10px center / 16px no-repeat;
  text-align: left;
  cursor: pointer;
}
.dd-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.cb {
  position: relative;
}
.cb-input {
  width: 100%;
  padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6a64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 16px !important;
}
.cb-list li.active {
  background: var(--surface-2);
}
.cb-list li.cb-empty {
  color: var(--muted);
  cursor: default;
}
.dd-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.dd-list {
  min-width: max-content;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(22, 36, 31, 0.12);
}
.dd-list li {
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.dd-list li:hover,
.dd-list li:focus {
  background: var(--surface-2);
  outline: none;
}
.dd-list li[aria-selected="true"] {
  color: var(--accent);
  font-weight: 700;
}
.item-head,
.item-row {
  display: grid;
  gap: 8px;
  align-items: center;
}
.item-head {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.item-row {
  margin-bottom: 8px;
}
.item-row input {
  width: 100%;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.item-row input.num {
  text-align: right;
}
.hub-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.hub-bell:hover,
.hub-bell[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
}
.hub-bell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hub-bell-icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.hub-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--bad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.hub-main {
  padding: 26px 28px 64px;
  min-width: 0;
}
.hub-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 22px;
}
.hub-heading p {
  color: var(--muted);
  margin: 0;
  max-width: 72ch;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
/* 按鈕樣式統一定義在 buttons.css。 */
/* CRM 名單詳情：左側欄位、右側聯繫紀錄。 */
/* 客戶卡片：左側名稱與重點資訊，右側狀態下拉。 */
.cu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cu-id {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* 客戶卡片左側的公司圖示（裝飾用）。 */
.cu-ico {
  flex: none;
  width: 40px;
  height: 40px;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16'/%3E%3Cpath d='M15 9h4a1 1 0 0 1 1 1v11'/%3E%3Cpath d='M2 21h20'/%3E%3Cpath d='M8 8h1M11 8h1M8 12h1M11 12h1M8 16h1M11 16h1M17 13h1M17 17h1'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16'/%3E%3Cpath d='M15 9h4a1 1 0 0 1 1 1v11'/%3E%3Cpath d='M2 21h20'/%3E%3Cpath d='M8 8h1M11 8h1M8 12h1M11 12h1M8 16h1M11 16h1M17 13h1M17 17h1'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.cu-name {
  margin: 0 0 6px;
  font-size: 20px;
}
.cu-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  font-size: 14px;
  color: var(--muted);
}
.cu-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.v-ico {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.v-ico-pin {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6-5.3-6-10a6 6 0 0 1 12 0c0 4.7-6 10-6 10z'/%3E%3Ccircle cx='12' cy='11' r='2'/%3E%3C/svg%3E");
}
.v-ico-phone {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}
.v-ico-video {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M15 10l6-3v10l-6-3z'/%3E%3C/svg%3E");
}
.v-ico-mail {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
}
.visit-table .v-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.visit-table .v-notes {
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.visit-table tr[data-visit] {
  cursor: pointer;
}
.visit-table tr.open .v-notes {
  white-space: pre-wrap;
}
.crm-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.dev-funnel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.dev-step {
  min-width: 108px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel, #fff);
  text-align: left;
}
.dev-step.on {
  border-color: var(--acc, #1f7a4d);
}
.dev-step b {
  display: block;
  font-size: 22px;
}
.dev-arrow {
  color: var(--muted);
}
.dev-gap {
  width: 12px;
}
.crm-detail {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
@media (max-width: 1000px) {
  .crm-detail {
    grid-template-columns: 1fr;
  }
}
.kv {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0;
  font-size: 14px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
}
.visit {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.visit:last-child {
  border-bottom: 0;
}
.visit p {
  margin: 0;
}
/* 專案設定彈窗：唯讀的基本資料。 */
.cs-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.cs-info.cs-plain {
  border-top: 0;
  padding-top: 0;
}
.cs-info dt {
  color: var(--muted);
}
.cs-info dd {
  margin: 0;
}
/* 可點選進入的列表列，與專案管理列表相同。 */
tr.click {
  cursor: pointer;
}
tr.click:hover td {
  background: var(--surface-2);
}
.muted,
.note {
  color: var(--muted);
}
.note {
  font-size: 13px;
}
/* 首頁有期限的待辦：整列寬度的表格。 */
.home-wide {
  grid-column: 1 / -1;
}
.home-h {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-h .chip {
  font-weight: 500;
}
.home-table td {
  vertical-align: middle;
}
.home-table td:first-child b {
  white-space: nowrap;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px;
  min-width: 0;
}
.grid {
  display: grid;
  gap: 16px;
}
.g2,
.g2e {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field label {
  font-size: 13px;
  color: var(--muted);
}
.field input,
.field select,
.field textarea,
.inp {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 10px;
  background: var(--bg);
  min-width: 0;
}
.field input[type="checkbox"] {
  width: auto;
}
.chip {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 13px;
  white-space: nowrap;
  background: var(--surface-2);
}
.c-ok {
  color: var(--ok);
  background: var(--ok-soft);
}
.c-bad {
  color: var(--bad);
  background: var(--bad-soft);
}
.c-warn {
  color: var(--warn);
  background: var(--warn-soft);
}
.c-mute {
  color: var(--muted);
  background: var(--surface-2);
}
.c-acc {
  color: var(--accent);
  background: var(--accent-soft);
}
.c-final {
  color: var(--final);
  background: var(--final-soft);
}
.c-info {
  color: var(--info);
  background: var(--info-soft);
}
.table-wrap,
.tbl-wrap {
  overflow: auto;
}
.table-wrap table,
.tbl-wrap table {
  min-width: 860px;
}
.table-wrap th:first-child,
.table-wrap td:first-child,
.tbl-wrap th:first-child,
.tbl-wrap td:first-child {
  min-width: 9em;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
td small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.empty {
  padding: 24px 0;
  color: var(--muted);
}
.err {
  color: var(--bad);
  font-size: 14px;
}
.banner {
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: 5px;
  margin-bottom: 16px;
}
.task-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.task-row small {
  display: block;
  color: var(--muted);
}
.task-row:last-child {
  border-bottom: 0;
}
.stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 24px;
}
.stats b {
  display: block;
  font-size: 27px;
  font-weight: 600;
}
.stats span {
  font-size: 13px;
  color: var(--muted);
}
.scrim {
  position: fixed;
  inset: 0;
  background: #10251b66;
  z-index: 40;
}
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(650px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  z-index: 41;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal h3 {
  margin: 0;
}
.toast,
#toasts .toast {
  background: var(--fg);
  color: white;
  border-radius: 5px;
  padding: 10px 16px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  max-width: 90%;
}
#toasts .toast {
  position: static;
  transform: none;
}
#toasts {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  max-width: 90%;
}
/* 登入與設定密碼頁：卡片在畫面上下左右置中。 */
.hub-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.hub-login {
  width: 100%;
  max-width: 940px;
  margin: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
/* 卡片不裁切，帳號下拉清單才能完整展開；圓角改由深色區塊自己處理。 */
.hub-intro {
  background: var(--nav);
  color: white;
  padding: 44px;
  border-radius: 9px 0 0 9px;
}
.hub-intro .chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.hub-intro p {
  color: #c2d6cc;
}
.hub-login form {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hub-login h1 {
  font-size: 32px;
}
.module-service .codes,
.module-report .codes {
  display: none;
}
.workgroup {
  border-top: 2px solid var(--accent);
  margin-bottom: 16px;
}
.workgroup h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.workgroup .task-row {
  margin-left: 16px;
}
.btn.hub-menu {
  display: none;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.module-report .toast {
  position: static;
  transform: none;
}
.module-report .grid[style*="grid-template-columns"] {
  overflow: auto;
}
@media (max-width: 1000px) {
  .g3,
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .module-report .grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .module-report .ed {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .hub-shell {
    grid-template-columns: 1fr;
  }
  .hub-side {
    display: none;
    position: static;
    height: auto;
  }
  .hub-shell.menu-open .hub-side {
    display: flex;
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(300px, 88vw);
    height: 100vh;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
  }
  .hub-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(0, 0, 0, 0.35);
  }
  .hub-brand strong {
    white-space: normal;
  }
  .btn.hub-menu {
    display: inline-flex;
  }
  .hub-top > .row:last-child > span,
  #hub-role-dd-lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .dev-funnel {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dev-arrow,
  .dev-gap {
    display: none;
  }
  .dev-step {
    min-width: 0;
  }
  .module-report .chm-items {
    flex-direction: row;
    overflow-x: auto;
  }
  .module-report .chm-item {
    flex: 0 0 200px;
  }
  .module-report .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .module-report .tabs button {
    white-space: nowrap;
  }
  .hub-top .crumb {
    overflow-wrap: anywhere;
  }
  .hub-main {
    padding: 20px 16px 48px;
  }
  .hub-top {
    padding: 12px 16px;
  }
  .hub-top select {
    max-width: 170px;
  }
  .g2,
  .g2e,
  .g3 {
    grid-template-columns: 1fr;
  }
  .hub-login {
    grid-template-columns: 1fr;
  }
  .hub-login form,
  .hub-intro {
    padding: 26px;
  }
  .hub-intro {
    border-radius: 9px 9px 0 0;
  }
  .hub-login h1 {
    font-size: 27px;
  }
  .task-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .hub-main h1 {
    font-size: 23px;
  }
  .module-service .g4,
  .module-service .g2e,
  .module-report .g4 {
    grid-template-columns: 1fr;
  }
  .module-report .cover {
    min-height: 600px;
  }
  .module-report .cover h1 {
    font-size: 27px;
  }
  .module-report .doc {
    padding: 16px;
    overflow: auto;
  }
  .module-report .banner .txt {
    min-width: 0;
  }
  .modal {
    padding: 18px;
  }
  .stats {
    gap: 20px;
  }
  th,
  td {
    padding: 8px;
  }
  .hub-heading {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* 會議記錄：左側分頁內容、右側處理流程與會議資訊。 */
.mt-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.mt-main {
  padding-top: 4px;
}
.mt-side {
  display: grid;
  gap: 18px;
}
.mt-side h2 {
  margin-top: 0;
}
.mt-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin: 0 -4px 16px;
  overflow-x: auto;
}
.mt-tabs button {
  all: unset;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.mt-tabs button[aria-selected="true"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.mt-tabs button:focus-visible {
  outline: 2px solid var(--accent);
}
.mt-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 12px;
  text-align: center;
  color: var(--accent);
  background: var(--accent-soft);
}
.mt-h {
  margin: 0 0 10px;
  font-size: 16px;
}
.mt-h small,
.mt-sec h3 small {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}
.mt-toolbar {
  margin: 18px 0 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.mt-body > .mt-toolbar:first-child {
  margin-top: 0;
}
.mt-toolbar input[type="search"] {
  max-width: 280px;
}
.mt-upload {
  margin: 12px 0 0;
  gap: 10px;
  flex-wrap: wrap;
}
.mt-seg {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.mt-seg[hidden] {
  display: none;
}
.mt-seg label {
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.mt-sec {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.mt-sec h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.mt-sec .prose {
  margin: 0 0 8px;
}
.mt-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mt-items li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.mt-items li:first-child {
  border-top: 0;
  padding-top: 2px;
}
.mt-items small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.mt-src {
  font-size: 12px;
}
.mt-todos li.done b {
  color: var(--muted);
  text-decoration: line-through;
}
.mt-todos select {
  width: auto;
  min-width: 96px;
}
.mt-meta {
  gap: 14px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.mt-filter {
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.mt-dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
  font-size: 14px;
}
.mt-dl dt {
  color: var(--muted);
}
.mt-dl dd {
  margin: 0;
  white-space: pre-line;
}
.mt-pct {
  font-size: 14px;
  margin-bottom: 6px;
}
.mt-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 14px;
}
.mt-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.mt-side-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.mt-steps {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mt-step {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.mt-steps.mini {
  gap: 3px;
}
.mt-steps.mini .mt-step {
  flex: 0 0 auto;
}
.mt-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.mini .mt-dot {
  width: 20px;
  height: 20px;
  font-size: 11px;
}
.mt-step.done .mt-dot {
  border-color: var(--ok);
  background: var(--ok);
  color: #fff;
}
.mt-step.active .mt-dot {
  border-color: var(--info);
  color: var(--info);
  background: var(--info-soft);
}
.mt-step.fail .mt-dot {
  border-color: var(--bad);
  background: var(--bad);
  color: #fff;
}
.mt-step.skip .mt-dot {
  border-style: dashed;
  color: var(--muted);
}
.mt-log,
.mt-tl {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mt-log li {
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.mt-log li.bad {
  border-left-color: var(--bad);
}
.mt-log small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.mt-tl li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 18px 26px;
}
.mt-tl li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.mt-tl li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.mt-tl small {
  color: var(--muted);
}
@media (max-width: 1000px) {
  .mt-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.mt-main .mono,
.table-wrap .mono {
  font-family: var(--f-mono);
}
.mt-main .nowrap,
.table-wrap .nowrap {
  white-space: nowrap;
}
.mt-steps.mini small {
  font-size: 11px;
}
.mt-upload + .mt-h {
  margin-top: 20px;
}
.mt-search {
  margin-bottom: 6px;
}
.mt-segs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mt-segs .mt-seg {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: start;
}
.mt-segs .mt-seg.editing {
  grid-template-columns: 64px minmax(0, 1fr);
}
.mt-seg > .mono {
  padding-top: 2px;
  color: var(--muted);
  font-size: 13px;
}
.mt-text {
  margin: 0;
  line-height: 1.6;
}
.mt-seg-act {
  gap: 6px;
}
.mt-seg.editing .mt-seg-act {
  justify-content: flex-end;
  margin-top: 6px;
}
.mt-seg:not(.editing) .mt-seg-act {
  opacity: 0.55;
}
.mt-seg:hover .mt-seg-act,
.mt-seg:focus-within .mt-seg-act {
  opacity: 1;
}
.mt-player {
  scroll-margin-top: 76px;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.mt-player-files {
  gap: 6px;
  flex-wrap: wrap;
}
.mt-player-name {
  font-size: 14px;
}
.mt-rate {
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.mt-rate select {
  width: auto;
}
.mt-audio {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.mt-seg-head {
  display: grid;
  gap: 4px;
  justify-items: start;
}
.mt-time {
  all: unset;
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  padding-top: 2px;
}
.mt-time:hover,
.mt-time:focus-visible {
  text-decoration: underline;
}
.mt-time:focus-visible {
  outline: 2px solid var(--accent);
}
.mt-seg-head .mono {
  color: var(--muted);
  font-size: 13px;
}
.mt-spk {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.spk-1 {
  color: #1d6b5a;
  background: #d5eae2;
}
.spk-2 {
  color: #2d5f8f;
  background: #dde8f3;
}
.spk-3 {
  color: #8a570d;
  background: #f6e8cf;
}
.spk-4 {
  color: #4b3f8a;
  background: #e5e1f5;
}
.spk-5 {
  color: #a33526;
  background: #f6ddd7;
}
.spk-6 {
  color: #3f5d22;
  background: #e3eed6;
}
.mt-seg.playing {
  background: var(--accent-soft);
  border-radius: 6px;
}
/* 逐字稿清單獨立捲動，播放時目前段落維持在清單中央。 */
.mt-segs {
  position: relative;
  max-height: max(280px, calc(100vh - 330px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}
.mt-seg.seekable {
  cursor: pointer;
}
.mt-seg.seekable:hover {
  background: var(--surface-2);
}
.mt-seg.playing,
.mt-seg.playing:hover {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}
.mt-seg.playing .mt-text {
  font-weight: 600;
}
.mt-segs .mt-seg {
  padding-left: 8px;
  padding-right: 8px;
}
