:root {
  color-scheme: light;
  --ink: #17374d;
  --quiet: #4f6c80;
  --blue: #006caa;
  --blue-dark: #005783;
  --ice: #e6f4fc;
  --base: #eef4f8;
  --card: #ffffff;
  --line: #d9e7f0;
  --canvas: #f4f7fa;
  --ease: cubic-bezier(.2,.72,.22,1);
  --shadow: 0 14px 30px -24px #33577442;
  --r: 15px;
  font-family: "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  color: var(--ink);
  font-size: 15px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 22% 2%, #f3f8fb, transparent 54%), #eaf1f6; }
h1,h2,h3,p,dl { margin: 0; }
h1 { font-size: clamp(30px, 3vw, 49px); line-height: 1.12; letter-spacing: -.07em; }
h2 { font-size: 19px; letter-spacing: -.035em; }
h3 { font-size: 15px; }
button,a,input,select,textarea { font: inherit; }
a { color: var(--blue); text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 2px solid #007ebe; outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.layout { display: grid; grid-template-columns: 198px minmax(0, 1fr) minmax(324px, 390px); gap: 14px; padding: 19px; min-height: 100vh; align-items: start; margin: auto; max-width: 2100px; }
.surface { background: var(--card); border: 1px solid var(--line); border-radius: 23px; min-width: 0; box-shadow: var(--shadow); }
.sidebar, .detail { min-height: calc(100vh - 38px); }
.sidebar { padding: 24px 13px 16px; display: flex; flex-direction: column; position: sticky; top: 19px; background: #fff; }
.brand { padding: 4px 10px 32px; }
.brand img { width: 116px; display: block; }
small,.sub { color: var(--quiet); font-size: 13px; line-height: 1.5; }
.sidebar nav { display: grid; gap: 6px; }
body > .layout[hidden],.login-screen[hidden] { display: none; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; min-height: 47px; padding: 10px 13px; border: 1px solid transparent; border-radius: 11px; font-weight: 650; color: #355b73; transition: background-color 170ms var(--ease), border-color 170ms var(--ease), color 170ms var(--ease); }
.sidebar nav a:hover { background: var(--ice); color: var(--blue-dark); }
.sidebar nav a[aria-current] { background: var(--ice); color: #005d8b; border-color: #d5ebf8; }
.sidebar nav a[aria-current]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 100%; background: #0085c9; }
.sidebar footer { margin-top: 10px; padding: 15px 4px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.sidebar footer img { width: 28px; }
.sidebar footer small { display: block; margin-top: 3px; font-size: 11px; }
.sidebar-menu-toggle { justify-content: flex-start; width: fit-content; min-height: 36px; margin-top: auto; color: var(--quiet); }
.sidebar-menu-toggle[aria-expanded="true"],body:has(.workspace-menu [data-nav="members"][aria-current]) .sidebar-menu-toggle { color: var(--blue-dark); background: var(--ice); }
html:has(.workspace-menu[open]) { overflow: hidden; }
.workspace-menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--canvas); color: var(--ink); }
.workspace-menu-content { width: min(100%,1240px); margin: 0 auto; padding: 0 clamp(16px,5vw,60px) 40px; }
.workspace-menu-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: clamp(16px,4vw,40px) 0 17px; background: var(--canvas); border-bottom: 1px solid var(--line); }
.workspace-menu-header h1 { margin: 0; font-size: clamp(24px,3vw,38px); font-weight: 650; letter-spacing: .025em; }
.workspace-menu-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 18px; margin-top: 24px; }
.workspace-menu-group { min-width: 0; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.workspace-menu-group h2 { margin: 0 0 12px; padding-inline: 3px; color: var(--quiet); font-size: 14px; font-weight: 650; }
.workspace-menu-links { display: grid; gap: 7px; }
.workspace-menu-links a { min-height: 53px; display: flex; align-items: center; gap: 11px; padding: 10px 11px;
  border: 1px solid #e3eef5; border-radius: 10px; background: #f7fbfd; color: var(--ink); font-size: 15px; font-weight: 650; }
.workspace-menu-links a svg { color: var(--blue); }
.workspace-menu-links a[hidden] { display: none; }
.workspace-menu-links a:hover,.workspace-menu-links a[aria-current] { background: var(--ice); border-color: #bfdfee; }
.workspace-menu-links a[aria-current]::after { content: ''; margin-inline-start: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; }
@media (prefers-reduced-motion: no-preference) {
  .workspace-menu[open] .workspace-menu-groups { animation: workspace-menu-enter 165ms var(--ease) both; }
}
@keyframes workspace-menu-enter { from { opacity: .65; transform: translateY(4px); } }
@media (max-width: 740px) {
  .workspace-menu-groups { grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 16px; }
  .workspace-menu-group { padding: 13px; }
  .workspace-menu-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-menu-links a { min-height: 48px; font-size: 13px; gap: 8px; }
  .workspace-menu-links a svg { width: 17px; height: 17px; }
}
.login-screen { --blue: #0085c9; --blue-dark: #006da5; --ink: #3a3a3a; --quiet: #606060;
  --login-form-offset: clamp(28px,8vw,154px);
  position: relative; isolation: isolate; min-width: 900px; min-height: 100svh; display: grid;
  grid-template: minmax(min-content,1fr) auto / minmax(0,43fr) minmax(0,57fr);
  padding: clamp(24px,4svh,52px) clamp(18px,3vw,58px); background: #fff; color: var(--ink); }
.login-visual { position: absolute; z-index: -1; inset: 0 0 0 44%; overflow: hidden; pointer-events: none; }
.login-flow { position: absolute; display: block; width: max(603px,67vw,90svh); height: auto;
  inset: 50% auto auto 0; transform: translateY(-48%); color: var(--blue); stroke: none; }
.login-brand { margin-bottom: clamp(32px,5svh,58px); }
.login-brand img { display: block; width: clamp(112px,10vw,136px); height: auto; }
.login-content { grid-area: 1 / 1; align-self: center; justify-self: start; margin-inline-start: var(--login-form-offset);
  width: min(420px,calc(100% - var(--login-form-offset) - 18px));
  animation: login-content-enter 390ms var(--ease) both; }
.login-motion { grid-area: 2 / 2; justify-self: end; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 5px 11px; border: 1px solid #b9b9b9; border-radius: 20px; color: var(--ink); background: #fff; font-size: 12px; }
.login-motion svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.login-motion path + path,.login-motion[data-paused] path:first-child { display: none; }
.login-motion[data-paused] path + path { display: block; }
@keyframes login-content-enter { from { opacity: .82; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .login-content { animation: none; }
  .login-motion { visibility: hidden; }
}
.login-content [hidden] { display: none; }
.login-content h1 { font-size: clamp(29px,2.6vw,42px); font-weight: 650; letter-spacing: .015em; line-height: 1.2; }
.login-content h1:focus { outline: none; }
.login-intro { color: var(--quiet); font-size: 13px; line-height: 1.6; margin: 8px 0 18px; }
.login-content form { gap: 8px; }
.login-content form label { margin-top: 6px; color: var(--ink); }
.login-content input { min-height: 46px; padding-inline: 13px; border-color: #949494; border-radius: 10px; }
.login-password-field { position: relative; }
.login-password-field input { padding-inline-end: 48px; }
.login-password-field button { position: absolute; right: 4px; top: 4px; min-width: 38px; min-height: 38px; padding: 0; border: 0; color: var(--quiet); }
.login-content .login-submit { margin-top: 10px; min-height: 46px; border-radius: 10px; box-shadow: none; font-size: 19px; font-weight: 700; }
@media (pointer: coarse) {
  .login-content input { min-height: 48px; font-size: 16px; }
  .login-password-field input { padding-inline-end: 54px; }
  .login-password-field button { top: 2px; right: 2px; min-width: 44px; min-height: 44px; }
  .login-content .login-submit,.login-motion { min-height: 44px; }
}
.login-error { color: #8e352d; font-size: 13px; line-height: 1.45; }
.login-content input[aria-invalid="true"] { border-color: #b35a51; }
.workspace { min-height: calc(100vh - 38px); padding: 29px 25px; background: var(--canvas); }
.detail { padding: 19px; background: #fff; }
.detail[aria-busy="true"] .details-title { outline: 1px solid #75b7dc; outline-offset: -1px; }
.top,.section-head,.card-top,.inline,.controls,.tabs,.breadcrumb,.file-line { display: flex; align-items: center; gap: 10px; }
.top,.card-top,.section-head,.file-line { justify-content: space-between; }
.top { margin-bottom: 23px; }
.top p { margin-top: 7px; }
.section-head { margin-bottom: 11px; }
.inline,.controls { flex-wrap: wrap; }
.breadcrumb { margin-bottom: 12px; font-size: 13px; color: var(--quiet); }
.btn,.tabs button { min-height: 38px; border-radius: 9px; padding: 8px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 650; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform 180ms var(--ease); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:hover:not(:disabled),.tabs button:hover { background: var(--ice); border-color: #aacde1; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 12px -8px #006ea9; }
.btn.primary:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.light,.tabs button[aria-pressed="true"] { color: var(--blue-dark); background: var(--ice); border-color: #cce7f6; }
.metrics,.cards,.split { display: grid; gap: 14px; }
.metrics { grid-template-columns: 1.23fr 1fr 1fr; margin-bottom: 21px; }
.cards,.split { grid-template-columns: repeat(2,minmax(0,1fr)); }
.metrics article,.card,.block { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 16px; min-width: 0; box-shadow: 0 9px 18px -19px #214d75a8; }
.metrics article { min-height: 110px; position: relative; isolation: isolate; overflow: hidden; }
.metrics article:first-child { background: #e5f4fc; border-color: #d5ebf8; color: #00669b; }
.metrics article:first-child::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(12px, 1.45vw, 26px);
  width: clamp(48px, 5.1vw, 88px);
  aspect-ratio: 1;
  background: url("/assets/Goodeed_符號.svg") center/contain no-repeat;
  filter: saturate(.9);
  opacity: .13;
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .metrics article:first-child::after { animation: metric-mark-enter 440ms var(--ease) both; }
}
@keyframes metric-mark-enter {
  from { opacity: 0; transform: translate(8px, calc(-50% + 4px)) rotate(-12deg); }
  to { opacity: .13; transform: translateY(-50%) rotate(-8deg); }
}
.metric-track { display: block; position: absolute; left: 16px; right: 16px; bottom: 14px; height: 4px; background: #edf3f8; border-radius: 9px; }
.metric-track span { display: block; height: 100%; border-radius: inherit; background: var(--metric-accent, #0085c9); transform-origin: left; transform: scaleX(var(--ratio, 0)); transition: transform 340ms var(--ease); }
.metric-track .finished { --metric-accent: #82b9ad; }
.metrics strong { font: 720 40px/1 system-ui; display: block; width: fit-content; margin-top: 9px; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
.block + .block,.details-title + .block,.split + .block { margin-top: 12px; }
.block p,.details-title p { line-height: 1.6; }
.card { position: relative; cursor: pointer; --case-tint: #e4f3fb; --case-ink: #126d9c; --case-mark: #0085c9; padding: 17px 18px; transition: transform 210ms var(--ease), border-color 190ms var(--ease), box-shadow 210ms var(--ease), background-color 190ms var(--ease); }
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-left: 3px solid var(--case-mark);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 170ms var(--ease);
  pointer-events: none;
}
.card.selected { border-color: var(--case-mark); box-shadow: 0 16px 32px -24px #17608c9e, 0 0 0 1px var(--case-tint); background: #f1faff; }
.card.selected::before { opacity: 1; }
.card[aria-busy="true"] .quick-status { opacity: .65; }
.badge { display: inline-flex; padding: 4px 8px; background: var(--ice); color: var(--blue-dark); font-size: 12px; font-weight: 650; border-radius: 99px; white-space: nowrap; }
.badge[data-state=final],.badge[data-state=已結案] { color: #246a52; background: #e4f3ec; }
.badge[data-state=scheduled] { background: #edf2f6; color: #466277; }
.badge[data-state=draft] { background: #fff0dc; color: #805019; }
.case-icon { width: 43px; height: 43px; border-radius: 12px; background: var(--case-tint, #e4f3fb); color: var(--case-ink, #126d9c); display: grid; place-items: center; flex-shrink: 0; transition: transform 210ms var(--ease); }
[data-category="包裝設計"] { --case-tint: #eaf1e2; --case-ink: #456849; --case-mark: #82b9ad; }
[data-category="網站設計"] { --case-tint: #fae9e4; --case-ink: #9a4a37; --case-mark: #cc9281; }
.card-type { color: var(--case-ink); font-weight: 650; }
.card h2,.card p { overflow-wrap: anywhere; }
.card h2 { margin-top: 13px; font-size: 23px; }
.project-card-link { color: inherit; }
.project-card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.project-card-link:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 2px; }
#project-cards .quick-status,#project-cards .controls :is(button,a) { position: relative; z-index: 1; }
.card p { margin-top: 5px; }
.card .controls { margin-top: 11px; }
.progress { appearance: none; width: 100%; height: 6px; border: 0; border-radius: 20px; display: block; margin-top: 9px; background: #e7eff5; }
.progress::-webkit-progress-bar { background: #e7eff5; border-radius: 10px; }
.progress::-webkit-progress-value { background: #0085c9; border-radius: 10px; }
.progress::-moz-progress-bar { background: #0085c9; border-radius: 10px; }
.filters { margin-bottom: 15px; }
.quick-status { position: relative; max-width: 56%; --stage-color: #248abc; }
.quick-status::before { content: ""; position: absolute; top: 50%; left: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--stage-color); transform: translateY(-50%); pointer-events: none; }
.quick-status[data-stage="規劃階段"] { --stage-color: #628b70; }
.quick-status[data-stage="專案啟動"] { --stage-color: #5896ba; }
.quick-status[data-stage="已結案"] { --stage-color: #2a8a66; }
.quick-status[data-stage$="暫停"],.quick-status[data-stage$="暫停中"] { --stage-color: #b06d24; }
.quick-status select { padding-left: 24px; width: auto; max-width: 100%; font-weight: 650; font-size: 13px; color: #315770; background-color: #f8fbfe; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
input,select,textarea { min-width: 0; width: 100%; border: 1px solid #cddfe9; border-radius: 8px; color: var(--ink); background: #fff; padding: 9px 10px; }
select:not([multiple]) {
  --select-arrow-inset: 16px;
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: calc(var(--select-arrow-inset) + 20px);
  text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 42%, #35576f 43% 57%, transparent 58%),
    linear-gradient(135deg, transparent 42%, #35576f 43% 57%, transparent 58%);
  background-repeat: no-repeat;
  background-position: right calc(var(--select-arrow-inset) + 5px) center,
    right var(--select-arrow-inset) center;
  background-size: 6px 6px;
}
@media (forced-colors: active) {
  select:not([multiple]) { -webkit-appearance: auto; appearance: auto; background-image: none; }
}
.controls select,.inline select { width: auto; max-width: 100%; font-size: 13px; }
textarea { resize: vertical; min-height: 85px; }
form { display: grid; gap: 12px; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.edit-area { max-width: 760px; }
.row { padding: 12px 3px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #e9f1f6; font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row.selected { background: var(--ice); padding-inline: 10px; border-radius: 7px; }
.row div { min-width: 0; overflow-wrap: anywhere; }
.row small { display: block; margin-top: 3px; }
.row a { font-weight: 650; transition: color 150ms var(--ease); }
.row a:hover { color: #034868; text-decoration: underline; }
.details-title { margin-bottom: 14px; border: 1px solid #dfebf4; background: #f3f8fc; border-radius: var(--r); padding: 16px; }
.details-title > .inline:first-child { margin-top: 0; }
.details-title h2 { font-size: 28px; line-height: 1.2; margin: 6px 0 9px; overflow-wrap: anywhere; }
.details-title .inline { margin-top: 10px; }
.details-title + .inline { margin-bottom: 12px; }
.data { display: grid; grid-template-columns: 69px 1fr; gap: 8px 5px; font-size: 13px; }
.data dt { color: var(--quiet); }
.data dd { margin: 0; overflow-wrap: anywhere; }
.member-roles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 16px; }
.member-roles .member-role-card { margin: 0; padding: 15px; }
.member-role-card > div { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.member-role-card p { margin: 6px 0 0; }
.member-table { min-width: 490px; }
.member-table th { padding: 9px 12px; }
.member-table td { padding: 7px 12px; }
.member-table tr.member-current { background: #f0f8fd; }
.member-name { display: inline-flex; align-items: center; gap: 10px; }
.member-avatar { background: var(--ice); color: var(--blue-dark); width: 40px; height: 40px; border-radius: 11px;
  overflow: hidden; display: inline-grid; place-items: center; flex: 0 0 auto; font-weight: 650; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.member-profile h2 { margin: 0 0 6px; font-size: 23px; }
.member-profile .member-avatar { width: 67px; height: 67px; border-radius: 15px; }
.member-profile + .block .data { grid-template-columns: 100px minmax(0,1fr); }
.member-profile-group + .member-profile-group { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.member-profile-group h3 { margin: 0; font-size: 13px; }
.member-profile-fields { display: grid; gap: 10px; min-width: 0; margin: 5px 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); }
.member-profile-fields legend { padding-right: 10px; font-size: 13px; font-weight: 650; }
.member-file-photo { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.member-photo-remove { display: flex; align-items: center; gap: 8px; }
.member-photo-remove input { width: auto; }
.member-desk-link { margin-top: 14px; }
.activity-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,125px),1fr)); gap: 10px; }
.activity-table { min-width: 370px; }
.activity-table time { white-space: nowrap; }
.activity-details { grid-template-columns: 64px minmax(0,1fr); }
.activity-pages { margin-top: 12px; }
.badge[data-state="member-owner"] { background: #dcefff; color: #075880; }
.badge[data-state="member-admin"] { background: #e2f3ed; color: #18644e; }
.badge[data-state="member-member"] { background: #eaf1f7; color: #38566b; }
@media (max-width: 670px) {
  .member-roles { grid-template-columns: minmax(0,1fr); }
}
.clip { max-height: 210px; overflow: auto; padding: 10px; border-radius: 9px; background: var(--base); white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 inherit; font-family: inherit; margin: 0; }
.empty { padding: 15px 4px; color: var(--quiet); }
.toast { position: fixed; bottom: 20px; right: 20px; max-width: min(460px, calc(100vw - 40px)); background: #15384c; color: white; padding: 12px 15px; border-radius: 10px; z-index: 3; font-size: 14px; }
.toast.error { background: #813946; }
@media (hover:hover) and (pointer:fine) {
  .card:hover { transform: translateY(-4px); border-color: var(--case-mark); box-shadow: 0 19px 35px -23px #1652757a; }
  .card:hover .case-icon { transform: translateY(-2px); }
  .btn:hover svg { transform: translateX(2px); }
}
@media (max-width: 1240px) {
  .layout { grid-template-columns: 155px minmax(0,1fr) minmax(282px, 320px); gap: 10px; padding: 12px; }
  .workspace,.detail { padding: 17px; }
  .sidebar,.detail,.workspace { min-height: calc(100vh - 24px); }
  .sidebar { top: 12px; }
}
@media (max-width: 950px) {
  .layout { grid-template-columns: minmax(0,1fr) minmax(268px,320px); }
  .sidebar { position: relative; inset: auto; grid-column: 1/-1; min-height: auto; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 9px 12px; }
  .brand { padding: 5px; }
  .sidebar footer { display: none; }
  .brand img { width: 96px; margin: 0; }
  .sidebar .sidebar-primary { display: none; }
  .sidebar-menu-toggle { grid-row: 1; grid-column: 2; margin: 0; padding-inline: 10px; }
  .sidebar-menu-toggle span { display: none; }
  .cards,.split { grid-template-columns: 1fr; }
}
@media (max-width: 670px) {
  .layout { grid-template-columns: minmax(0,1fr); padding: 8px; }
  .workspace,.detail { min-height: auto; }
  .top { align-items: flex-start; gap: 8px; }
  .metrics article { padding: 9px; }
  .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .metrics strong { font-size: 27px; }
  .metrics article { min-height: 92px; }
  .metric-track { inset: auto 9px 9px; }
}
.title-button { border: 0; background: transparent; text-align: left; padding: 0; color: var(--ink); font: inherit; }
.title-button:hover { color: var(--blue-dark); }

.breadcrumb a { display: inline-flex; align-items: center; gap: 5px; }
.breadcrumb svg { width: 15px; height: 15px; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .card:hover .case-icon, .btn:hover svg, .btn:active:not(:disabled) { transform: none; }
}

@media (min-width: 951px) {
  .layout:has(#project-cards) .detail { position: sticky; top: 19px; }
}
@media (min-width: 671px) {
  .directory-layout > .detail {
    --directory-inset: 19px;
    position: sticky; top: var(--directory-inset); min-height: 0;
    max-height: calc(100dvh - var(--directory-inset) * 2);
    overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior-y: contain;
  }
}
@media (671px <= width <= 1240px) { .directory-layout > .detail { --directory-inset: 12px; } }
.directory-lifecycle { margin-block: 0 12px; }
.directory-lifecycle > form,.directory-lifecycle details form { justify-items: start; }
.directory-lifecycle .project-delete { margin-block: 8px 0; }
.directory-lifecycle details > p { margin-top: 8px; }

/* Work and calendar */
.planner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 15px;
}
.planner-toolbar .inline { gap: 6px; }
.planner-toolbar .btn[aria-current] { box-shadow: inset 0 0 0 1px #bedff1; }
.planner-actions { margin-top: 12px; }
.task-group { padding: 13px 15px; }
.task-group .section-head { margin-bottom: 4px; }
.task-row {
  display: grid;
  grid-template-columns: minmax(120px,2fr) minmax(100px,1fr) 100px 52px 69px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  min-height: 53px;
  padding: 9px 8px;
  border-radius: 7px;
  transition: box-shadow 170ms var(--ease), background-color 170ms var(--ease);
}
.task-row:last-child { border-bottom-color: transparent; }
.task-row:hover { background: #f4faff; }
.task-row.current { background: #eaf5fb; box-shadow: inset 3px 0 #0085c9; }
.task-row > a { font-weight: 650; overflow-wrap: anywhere; }
.task-row > small { overflow-wrap: anywhere; }
.task-row .badge { justify-self: start; }
.task-priority[data-priority=high] { color: #894b33; }
.badge[data-state=done],.badge[data-state=task] { color: #2b684e; background: #e7f2e8; }
.badge[data-state=todo] { color: #795022; background: #fbf0dc; }
.badge[data-state=meeting] { color: #583b83; background: #f0eafa; }
.badge[data-state=event] { color: #975323; background: #fbefe1; }
.participants { border: 1px solid #d4e5ef; border-radius: 9px; margin: 0; padding: 8px 10px 11px; min-width: 0; }
.participants legend { color: var(--ink); font-size: 13px; font-weight: 650; padding: 0 4px; }
.participants label { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #f2f7fb; border-radius: 7px; }
.participants input { width: auto; margin: 0; accent-color: #0075ae; }
.task-form-options { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; }
.task-form-options > summary { cursor: pointer; color: var(--blue-dark); font-size: 13px; }
.task-form-options > summary span { color: var(--ink); font-weight: 650; margin-left: 6px; }
.task-form-options[open] > summary { margin-bottom: 9px; }
.task-form-options > label { margin-top: 8px; }
.calendar-toolbar h2 { margin-right: 5px; font-size: clamp(17px,2vw,24px); }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  overflow: hidden;
  border: 1px solid #d9e7f0;
  border-radius: var(--r);
  background: white;
  box-shadow: var(--shadow);
}
.calendar-weekday {
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding: 9px 11px;
  background: #f3f8fc;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 650;
}
.calendar-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  min-height: 105px;
  padding: 7px 6px;
  border-right: 1px solid #e4ecf3;
  border-bottom: 1px solid #e4ecf3;
  transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell:nth-last-child(-n+7) { border-bottom: 0; }
.calendar-cell.is-outside { background: #f7fafc; }
.calendar-cell.is-day-selected { background: #edf7fe; box-shadow: inset 0 0 0 1px #9fcee6; }
.calendar-grid[data-mode=week] .calendar-cell { min-height: 370px; }
.day-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.day-number:hover { background: #e6f4fc; }
.day-number.today { color: #00699f; }
.is-day-selected .day-number { background: var(--blue); color: #fff; }
.calendar-cell-head { display: flex; align-items: center; justify-content: space-between; gap: 3px; min-width: 0; }
.calendar-cell-head .day-number { flex-shrink: 0; }
.calendar-journal-chip { display: inline-flex; align-items: center; gap: 3px; min-height: 23px; padding: 2px 5px;
  border-radius: 6px; background: #e2f0f6; color: #235e78; font-size: 11px; font-weight: 650; white-space: nowrap; }
.calendar-journal-chip:hover { background: #cfe8f4; }
.calendar-journal-chip svg { width: 13px; height: 13px; }
.calendar-journal-entry + .calendar-journal-entry { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.calendar-journal-entry summary { cursor: pointer; font-size: 14px; }
.calendar-journal-entry time { color: var(--quiet); font-size: 11px; margin-inline-start: 8px; }
.calendar-journal-entry > p { margin-top: 6px; }
.task-delete-list { margin: 0; padding-inline-start: 20px; color: #644a46; font-size: 12px; max-height: 108px; overflow-y: auto; }
@media (max-width: 1450px) {
  .calendar-journal-chip span { display: none; }
}
@media (max-width: 670px) {
  .calendar-cell-head { flex-wrap: wrap; }
  .calendar-journal-chip { padding-inline: 3px; }
}
.calendar-events { display: grid; gap: 4px; min-width: 0; }
.event-chip {
  display: block;
  padding: 3px 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 4px;
  border-left: 2px solid var(--event-mark, #349bcb);
  background: var(--event-fill, #e7f3fb);
  color: var(--event-ink, #135879);
  font-size: 11px;
  font-weight: 650;
}
.event-chip:hover { text-decoration: underline; }
.event-chip time { font-weight: 500; }
[data-kind=meeting] { --event-mark: #9b7ccc; --event-fill: #f0eafa; --event-ink: #5d4584; }
[data-kind=task] { --event-mark: #77a78b; --event-fill: #e8f3e9; --event-ink: #2e6148; }
[data-kind=event] { --event-mark: #cc986b; --event-fill: #f9efe4; --event-ink: #7f4a27; }
.day-more { font-size: 11px; padding: 3px 2px; color: var(--quiet); }
.calendar-legend { margin-top: 12px; gap: 5px; }
.calendar-key { padding: 4px 8px; border-radius: 6px; font-size: 12px; color: var(--quiet); }
.calendar-key[aria-current] { background: var(--ice); color: var(--blue-dark); }
.calendar-key[data-kind]:not([data-kind=""])::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  background: var(--event-mark, #349bcb);
}
.calendar-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; margin-bottom: 12px; }
.calendar-strip .btn { min-height: 34px; padding-inline: 0; }
.planner-event .btn { min-height: auto; display: inline; padding: 0; border: 0; background: transparent; font-size: 14px; }
.planner-event .btn:hover { background: transparent; }
@media (max-width: 1120px) {
  .task-row { grid-template-columns: minmax(90px,2fr) minmax(75px,1fr) 83px 39px 62px; gap: 6px; }
}
@media (max-width: 670px) {
  .sidebar nav a { min-height: 37px; padding: 7px 8px; font-size: 12px; }
  .sidebar nav a svg { width: 16px; height: 16px; }
  .task-row { grid-template-columns: minmax(74px,1fr) 77px 52px; }
  .task-row > small:first-of-type,.task-row .task-priority { display: none; }
  .calendar-weekday { text-align: center; padding-inline: 2px; }
  .calendar-cell { padding: 4px 2px; min-height: 74px; }
  .calendar-grid[data-mode=week] .calendar-cell { min-height: 170px; }
  .event-chip { padding-inline: 2px; }
  .event-chip time { display: none; }
}

/* Complete project */
.project-hero { margin-bottom: 13px; }
.project-hero > .inline { flex-wrap: nowrap; }
.project-hero .case-icon { width: 48px; height: 48px; }
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 15px;
}
.project-tabs a {
  padding: 9px 12px;
  border-bottom: 2px solid transparent;
  color: #42677e;
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.project-tabs a:hover,.project-tabs a[aria-current] { color: #006aa1; border-bottom-color: #0085c9; }
.project-metrics { margin-bottom: 13px; }
.project-metrics article { min-height: 98px; }
.project-metrics article:first-child .progress { max-width: calc(100% - 84px); }
.project-metrics b { display: block; margin: 7px 0 3px; font-size: 17px; }
.project-metrics p { margin-top: 6px; font-size: 14px; line-height: 1.5; }
.project-overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.project-overview-grid .block + .block { margin-top: 0; }
.project-panel + .project-overview-grid { margin-top: 12px; }
.project-panel .section-head { flex-wrap: wrap; }
.project-panel .section-head .btn { min-height: 31px; padding: 5px 8px; }
.project-panel .section-head .btn svg { width: 14px; height: 14px; }
.project-panel .data { grid-template-columns: 82px minmax(0,1fr); }
.project-panel .data dd { white-space: pre-wrap; }
.project-panel > small + .data { margin-top: 8px; }
.deliverables-title { margin-top: 11px; margin-bottom: 7px; font-size: 13px; }
.deliverables { display: flex; flex-wrap: wrap; list-style: none; gap: 5px; padding: 0; margin: 0; }
.deliverables li { background: #eaf4fa; color: #345d76; padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.project-timeline { padding: 0; margin: 0; list-style: none; }
.project-timeline li { display: flex; align-items: center; justify-content: space-between; gap: 9px; border-bottom: 1px solid #e9f1f6; padding: 7px 6px; }
.project-timeline li:last-child { border-bottom-color: transparent; }
.project-timeline li strong { font-size: 14px; margin-left: 7px; }
.project-timeline li .sub { font-size: 12px; }
.project-timeline li.primary-milestone { background: #eaf6fd; border-radius: 8px; border-bottom-color: transparent; }
.milestone-intro { margin-bottom: 12px; }
.milestone-task { color: var(--ink); font-weight: 650; }
.milestone-task:hover { text-decoration: underline; text-underline-offset: 3px; }
.milestone-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; margin-top: 2px; }
.workspace-table-wrap { overflow-x: auto; }
.workspace-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.workspace-table th { padding: 6px 9px; background: #f1f7fb; color: var(--quiet); font-size: 12px; }
.workspace-table td { padding: 7px 9px; border-bottom: 1px solid #e9f1f6; }
.workspace-table tr:last-child td { border-bottom: 0; }
.workspace-table a { font-weight: 650; }
@media (max-width: 1130px) { .project-overview-grid { grid-template-columns: 1fr; } }
@media (max-width: 670px) {
  .project-hero { flex-wrap: wrap; }
  .project-tabs a { padding-inline: 8px; }
  .project-metrics article:first-child .progress { max-width: 100%; }
  .project-timeline li { flex-wrap: wrap; }
  .workspace-table { min-width: 280px; }
}
.workspace-table td:first-child small { display: block; margin-top: 4px; }
.task-branch-link { display: inline-block; border-inline-start: 2px solid var(--line); padding-inline-start: 9px; margin-inline-start: 12px; }
.workspace-table .project-task-discussion { min-height: 32px; padding: 5px 9px; white-space: nowrap; }
.task-discussion form { gap: 9px; }
.task-thread { margin-top: 12px; border-top: 1px solid var(--line); }
.task-comment-actions { justify-content: space-between; }
.task-mention-picker { max-width: 100%; }
.task-mention-picker[open] { flex-basis: 100%; }
.task-mention-picker summary { width: fit-content; padding: 8px 10px; border: 1px solid #cce7f6; border-radius: 9px;
  background: var(--ice); color: var(--blue-dark); font-size: 13px; font-weight: 650; cursor: pointer; }
.task-mention-picker fieldset { min-width: 0; margin: 8px 0 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.task-mention-picker legend { padding-inline: 3px; color: var(--quiet); font-size: 12px; }
.task-mention-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; max-height: 176px; overflow: auto; }
.task-mention-options label { display: flex; align-items: center; font-weight: 500; overflow-wrap: anywhere; }
.task-mention-options input { width: auto; height: auto; margin: 3px; accent-color: var(--blue); }
.task-mention-selection { overflow-wrap: anywhere; }
.task-mention-selection:empty { display: none; }
.task-mentioned-members { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.badge[data-state="task-mention"] { background: #dff0fb; color: var(--blue-dark); }
.task-comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.task-comment[data-task-discussion-focus] { background: #edf7fd; border-radius: 8px; padding-inline: 9px; scroll-margin-block: 20px; }
.task-comment:last-child { border-bottom: 0; }
.task-comment header { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.task-comment time { font-size: .8rem; color: var(--quiet); }
.task-comment p { margin: 6px 0 0; }

.desk-top { margin-bottom: 15px; }
.desk-top h1 { font-size: clamp(22px,2vw,28px); font-weight: 620; line-height: 1.35; letter-spacing: .025em; }
.desk-top-actions { align-items: center; gap: 13px; }
.desk-member-select { display: flex; align-items: center; gap: 8px; color: var(--quiet); font-weight: 500; }
.desk-member-select select { width: 96px; padding-block: 7px; padding-inline-start: 12px; font-weight: 560; }
.desk-top-actions .btn { min-height: 34px; padding: 6px 11px; font-weight: 580; box-shadow: none; }
.desk-identity {
  display: grid;
  grid-template-columns: clamp(108px,13%,160px) minmax(0,1fr) minmax(155px,17%);
  column-gap: clamp(14px,1.45vw,28px);
  align-items: center;
  padding: 15px clamp(15px,1.8vw,30px) 15px 10px;
  margin-bottom: 14px;
  border: 1px solid #d7e7f0;
  border-radius: 17px;
  background: radial-gradient(ellipse at 5% 100%,#e3f0f9 0%,transparent 53%),linear-gradient(105deg,#eff7fc,#f9fcfe);
}
.desk-portrait-stage { display: grid; align-self: stretch; place-items: end center; overflow: hidden; min-height: 155px; margin-block: -15px; }
.desk-portrait {
  display: block;
  position: relative;
  width: min(100%,156px);
  aspect-ratio: 1;
  margin-bottom: -13px;
  container-type: inline-size;
}
.desk-portrait img { display: block; width: 100%; height: auto; }
.desk-portrait-photo { place-self: center; width: min(86%,108px); height: auto; aspect-ratio: 1;
  object-fit: cover; border-radius: 26%; box-shadow: 0 0 0 3px #fff; }
.desk-avatar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 5px; }
.desk-avatar-control,.desk-avatar-reset { position: relative; display: inline-flex; align-items: center; width: fit-content;
  min-height: 24px; padding: 0; border: 0; background: transparent; color: var(--blue-dark); font: inherit; font-size: 12px; cursor: pointer; }
.desk-avatar-control input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.desk-avatar-control:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.desk-avatar-control:has(input:disabled),.desk-avatar-reset:disabled { opacity: .55; cursor: wait; }
.desk-avatar-control:hover,.desk-avatar-reset:hover { text-decoration: underline; }
.desk-lacey-mouth { position: absolute; top: 59%; left: 45.6%; width: 9%; height: 6.64%; pointer-events: none; }
.desk-lacey-mouth rect { fill: var(--face-skin); stroke: none; }
.desk-lacey-mouth path { fill: none; stroke: var(--face-ink); stroke-width: 7; stroke-linecap: round; }
.desk-portrait-initial { place-self: center; font: 700 52px/1 system-ui; color: var(--blue); }
.desk-eye { position: absolute; pointer-events: none; }
.desk-eye-detail,.desk-eyelid { position: absolute; inset: 0; background-color: var(--face-skin); }
.desk-eye-detail { opacity: 0; overflow: hidden; }
.desk-eye-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--face-image);
  background-size: var(--eye-image-size);
  background-position: var(--eye-image-position);
  background-repeat: no-repeat;
}
.desk-eyelid {
  transform: scaleY(0);
  transform-origin: top;
}
.desk-eyelid::after {
  content: "";
  position: absolute;
  inset: auto 5% 6% 5%;
  height: 48%;
  border-bottom: max(1px,1.05cqw) solid var(--face-ink);
  border-radius: 0 0 55% 55%;
}
.desk-eyelid.is-smiling::after {
  inset-block-end: 12%;
  border-top: max(1px,1.05cqw) solid var(--face-ink);
  border-bottom: 0;
  border-radius: 65% 65% 0 0;
}
@media (prefers-reduced-motion: no-preference) {
  .desk-eyelid { animation: desk-portrait-blink 9.2s infinite; }
  .desk-eye-detail { animation: desk-eye-detail 9.2s ease-in-out infinite; }
  .desk-eye-detail::before { animation: desk-eye-soften 9.2s ease-in-out infinite; }
}
@keyframes desk-portrait-blink {
  0%,5%,47%,89% { transform: scaleY(0); animation-timing-function: cubic-bezier(.4,0,.65,1); }
  6%,6.24%,48%,48.24%,90%,90.24% { transform: scaleY(1); animation-timing-function: cubic-bezier(.22,0,.45,1); }
  7.6%,49.6%,91.6%,100% { transform: scaleY(0); }
}
@keyframes desk-eye-detail {
  0%,28%,68%,100% { opacity: 0; }
  32%,64% { opacity: 1; }
}
@keyframes desk-eye-soften {
  0%,32%,64%,100% { transform: none; }
  40%,54% { transform: scaleY(.76); }
}
.desk-welcome > time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--quiet); font-size: 12px; letter-spacing: .04em; }
.desk-welcome > time span:first-child { font-variant-numeric: tabular-nums; font-weight: 560; }
.desk-identity:has(.desk-birthday-fireworks) { position: relative; overflow: hidden; }
.desk-birthday-fireworks { position: absolute; inset: 0; pointer-events: none; }
.desk-birthday-fireworks span { position: absolute; top: 22%; right: 14%; --burst-delay: .12s; --spark: #1989bd; }
.desk-birthday-fireworks span + span { top: 48%; right: 8%; --burst-delay: .31s; --spark: #d89a44; }
.desk-birthday-fireworks i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--spark); opacity: 0;
  animation: desk-birthday-spark .86s cubic-bezier(.12,.65,.28,1) var(--burst-delay) both;
}
.desk-birthday-fireworks i:nth-child(3n) { width: 4px; height: 8px; border-radius: 2px; }
@keyframes desk-birthday-spark {
  0% { opacity: 0; transform: translate(0,0) scale(.55); }
  16% { opacity: .82; }
  56% { opacity: .58; }
  100% { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(35deg) scale(.38); }
}
@media (prefers-reduced-motion: reduce) { .desk-birthday-fireworks { display: none; } }
.desk-greeting {
  margin: 8px 0 12px;
  color: #193c52;
  font: 500 clamp(19px,1.72vw,28px)/1.5 "PingFang TC","Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;
  letter-spacing: .018em;
  text-wrap: pretty;
  line-break: strict;
}
.desk-person { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.desk-person h2 { font-size: 17px; font-weight: 640; line-height: 1.4; letter-spacing: .005em; overflow-wrap: anywhere; }
.desk-person small { font-size: 12px; }
.desk-weather { display: grid; justify-items: start; row-gap: 4px; min-width: 0; padding-inline-start: clamp(14px,1.6vw,25px); border-inline-start: 1px solid #dbe7ef; }
.desk-weather-city { display: block; width: fit-content; max-width: 100%; }
.desk-weather-city select:not([multiple]) {
  --select-arrow-inset: 8px;
  width: auto;
  max-width: 100%;
  padding-block: 2px;
  padding-inline-start: 0;
  border: 0;
  border-radius: 3px;
  background-color: transparent;
  color: #375d73;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
}
.desk-weather-city select:focus-visible { outline: 1px solid #33739a; outline-offset: 3px; }
.desk-weather-reading { display: flex; flex-wrap: nowrap; gap: 7px; align-items: center; min-height: 34px; }
.desk-weather-reading strong { font-size: 13px; font-weight: 560; }
.desk-weather[data-has-weather] strong { font: 580 30px/1 system-ui,sans-serif; letter-spacing: -.055em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.desk-weather-symbol { color: #4e758c; }
.desk-weather-symbol > span { display: none; }
.desk-weather[data-weather-kind=sun] [data-symbol=sun],
.desk-weather[data-weather-kind=cloud] [data-symbol=cloud],
.desk-weather[data-weather-kind=rain] [data-symbol=rain],
.desk-weather[data-weather-kind=haze] [data-symbol=haze] { display: flex; }
.desk-weather-symbol svg { width: 23px; height: 23px; stroke-width: 1.25; }
.desk-weather[data-weather-kind=sun] .desk-weather-symbol { color: #8c672d; }
.desk-weather-reading [data-weather-description] { color: #36576c; font-size: 12px; line-height: 1.4; }
.desk-weather > small { display: block; color: var(--quiet); font-size: 11px; line-height: 1.45; }
.desk-weather > small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #9db6c7; }
.desk-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 14px; }
.desk-metrics article { padding: 0; min-height: 0; }
.desk-metrics article:first-child::after { width: clamp(42px,4vw,68px); }
.desk-metrics a { position: relative; display: block; min-height: 91px; height: 100%; padding: 12px 15px; color: inherit; }
.desk-metrics strong { font-size: 32px; font-weight: 640; letter-spacing: -.04em; }
.desk-metrics a:focus-visible { outline-offset: -3px; border-radius: var(--r); }
.desk-metrics a svg { position: absolute; bottom: 14px; right: 15px; color: var(--blue); }
.desk-metrics [data-metric=today] a svg { top: 12px; bottom: auto; width: 16px; height: 16px; }
.desk-metrics [data-metric=late] strong,.desk-due.is-late { color: #a04935; }
.desk-panel .section-head { flex-wrap: wrap; }
.desk-panel .section-head h2,.desk-agenda-title h2 { font-size: 17px; font-weight: 620; letter-spacing: .025em; }
.desk-panel .section-head .btn { min-height: 34px; }
.meeting-access-list { display: grid; gap: 6px; max-height: 228px; overflow: auto; }
.meeting-access-list label { display: grid; grid-template-columns: minmax(0,1fr) minmax(100px,auto); align-items: center; }
.handoff-list .section-head { flex-wrap: wrap; }
.handoff-list ol { list-style: none; padding: 0; margin: 10px 0 0; }
.handoff-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 12px;
  padding: 12px 8px; border-top: 1px solid #e9f1f6; }
.handoff-row.selected { background: var(--ice); border-radius: 8px; }
.handoff-row small { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.handoff-source { overflow-wrap: anywhere; line-height: 1.6; }
.handoff-source .badge { margin-inline-end: 6px; }
.handoff-action .btn { min-height: 34px; }
.handoff-context { padding: 9px 11px; margin-bottom: 13px; border-radius: 8px; background: var(--base); overflow-wrap: anywhere; }
.handoff-context p { margin-top: 3px; line-height: 1.55; }
.handoff-fields { display: grid; gap: 12px; }
.handoff-fields[hidden] { display: none; }
.handoff-optional summary { cursor: pointer; color: var(--blue-dark); font-size: 13px; }
.handoff-optional textarea { margin-top: 7px; min-height: 64px; }
.handoff-destination { font-size: 14px; }
.project-board-notes { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.project-board-notes ol { list-style: none; padding: 0; margin: 8px 0 0; }
.project-board-notes li { padding: 9px 0; border-top: 1px solid #e9f1f6; }
.project-board-notes p { margin-block: 5px 8px; overflow-wrap: anywhere; }
.project-board-notes .btn { min-height: 31px; padding-block: 5px; }
.project-board-notes summary { margin-block: 6px; color: var(--blue-dark); cursor: pointer; font-size: 13px; }
.project-history-week + .project-history-week { border-top: 1px solid var(--line); padding-top: 5px; }
.project-history-link { justify-content: flex-end; }
.project-task-completed { padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--line); }
.project-task-completed summary { color: var(--quiet); font-size: 13px; cursor: pointer; }
.project-task-completed[open] summary { margin-bottom: 8px; }
.project-progress-summary { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 6px; min-width: 78px; }
.project-progress-summary strong { color: var(--blue-dark); font-size: 20px; font-variant-numeric: tabular-nums; }
.project-progress-summary .progress { grid-column: 1 / -1; margin: 0; }
.project-task-compose { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 4px 0 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #f8fbfe; }
.project-task-compose > :is(label,details,.controls),.project-task-compose .task-vendor-picker { grid-column: 1 / -1; }
.project-task-compose > .task-kind-fields { display: contents; }
.project-task-compose > .fields { grid-template-columns: minmax(0,1fr); }
.project-task-compose > .fields > label { width: min(220px,100%); }
@media (max-width: 480px) { .project-task-compose { grid-template-columns: minmax(0,1fr); } }
.project-side-options { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.project-side-options summary { color: var(--blue-dark); cursor: pointer; font-size: 13px; }
.project-side-options[open] > summary { margin-bottom: 8px; }
.project-side-options > .controls,.project-side-options > h3 { margin-top: 10px; }
.project-checklist,.project-check-branches { list-style: none; padding: 0; margin: 0; }
.project-check-row { display: grid; grid-template-columns: minmax(0,1fr) auto 32px; align-items: center; gap: 7px;
  min-height: 51px; padding: 3px 7px; border-bottom: 1px solid #e9f1f6; border-radius: 7px; }
.project-check-row.is-selected { background: var(--ice); }
.project-check-row form { display: block; }
.project-task-status.btn { min-height: 30px; white-space: nowrap; font-size: 12px; padding: 3px 8px; }
.project-check-comment:hover { background: var(--ice); }
.project-check-title { display: block; padding-block: 6px; color: var(--ink); overflow-wrap: anywhere; }
.project-check-title strong { font-size: 14px; }
.project-check-title small { display: block; margin-top: 2px; font-size: 12px; }
.project-check-title:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.project-check-comment { display: grid; place-items: center; width: 32px; height: 34px; color: var(--blue-dark); border-radius: 6px; }
.project-check-comment svg { width: 17px; height: 17px; }
.project-check-branches { margin-left: 21px; padding-left: 5px; border-left: 1px solid var(--line); }
.project-check-branches strong { font-weight: 550; }
@media (max-width: 480px) {
  .handoff-row { grid-template-columns: minmax(0,1fr); }
  .handoff-action { justify-self: start; }
}
.desk-notes { margin-bottom: 14px; }
.desk-notes [hidden] { display: none; }
.desk-notes form { margin-bottom: 12px; }
.desk-note-list { display: grid; gap: 8px; }
.desk-sticky { padding: 10px 12px; border-radius: 9px; border: 1px solid #ecdfbb; background: #fff8e6; }
.desk-sticky p { margin: 0 0 6px; overflow-wrap: anywhere; }
.desk-sticky .btn { min-height: 28px; padding: 3px 6px; font-size: 12px; }
.desk-sticky summary { color: #805141; font-size: 12px; cursor: pointer; }
.desk-sticky details .btn { margin-left: 5px; }
.desk-tabs { gap: 8px; margin-top: -2px; margin-bottom: 13px; }
.desk-comment { display: block; padding: 10px 0; border-top: 1px solid #e9f1f6; color: var(--ink); }
.desk-comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.desk-comment-meta time { color: var(--quiet); font-size: 12px; }
.desk-comment p { margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.desk-comment strong { color: var(--blue-dark); font-weight: 650; }
.desk-comment:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.desk-task .inline { justify-content: flex-end; }
.desk-task .desk-due { margin-top: 0; white-space: nowrap; }
.desk-projects { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,250px),1fr)); gap: 10px; }
.desk-project {
  display: block;
  color: var(--ink);
  padding: 13px;
  background: #f9fcfe;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: background-color 170ms var(--ease), border-color 170ms var(--ease);
}
.desk-project:hover { background: #edf7fe; border-color: #aad1e9; }
.desk-project .inline,.desk-agenda-title .inline { flex-wrap: nowrap; }
.desk-agenda-title .case-icon { width: 35px; height: 35px; border-radius: 9px; }
.desk-project h3 { margin-top: 3px; overflow-wrap: anywhere; }
.desk-project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 11px; }
.desk-agenda-day + .desk-agenda-day { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.desk-agenda-day h3 { margin: 0 0 7px; color: var(--quiet); font-size: 13px; }
.desk-agenda-item {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 9px 11px;
  border-inline-start: 3px solid var(--event-mark,#349bcb);
  border-radius: 8px;
  color: var(--event-ink,#135879);
  background: var(--event-fill,#e7f3fb);
  overflow-wrap: anywhere;
}
.desk-agenda-item:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.desk-agenda-item strong { font-size: 14px; }
.customer-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.customer-metrics article { min-height: 83px; }
.customer-metrics strong { font-size: 31px; }
.customer-toolbar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.customer-search .btn,.customer-toolbar nav .btn { min-height: 34px; }
.customer-search select { width: 130px; }
.customer-cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,315px),1fr)); }
.customer-card { --case-tint: #e5f3fb; --case-ink: #32769b; --case-mark: #80b9d9; }
.customer-card[data-stage=following] { --case-tint: #f6ede1; --case-ink: #876842; --case-mark: #c9a47b; }
.customer-card[data-stage=archived] { --case-tint: #e9edef; --case-ink: #506573; --case-mark: #9aabb6; }
.badge[data-state=following] { background: #f7eee1; color: #795521; }
.badge[data-state=archived] { background: #edf1f4; color: #4b6477; }
.customer-card h2 { font-size: 20px; font-weight: 650; letter-spacing: .01em; }
.customer-card h2 a { color: inherit; }
.customer-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.customer-card .btn { position: relative; z-index: 1; min-height: 32px; padding: 5px 7px; }
.customer-card .btn svg { width: 14px; height: 14px; }
.customer-card .data { margin-top: 13px; }
.customer-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-top: 9px; margin-top: 12px; border-top: 1px solid #e1edf4; }
.customer-rating { gap: 8px; }
.customer-rating-options { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; }
.customer-rating-choice,.customer-rating-chip {
  --rating-ink: #395b72;
  --rating-fill: #edf3f7;
}
[data-score="1"] { --rating-ink: #994d4a; --rating-fill: #f8e8e7; }
[data-score="2"] { --rating-ink: #846139; --rating-fill: #f8eedf; }
[data-score="3"] { --rating-ink: #46667b; --rating-fill: #eaf1f7; }
[data-score="4"] { --rating-ink: #236c76; --rating-fill: #e5f3f4; }
[data-score="5"] { --rating-ink: #2d6c58; --rating-fill: #e5f3eb; }
.customer-rating-choice {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 5px 1px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--rating-ink);
}
.customer-rating-choice[aria-pressed="true"] { border-color: var(--rating-ink); background: var(--rating-fill); }
.rating-face-wrap { display: grid; place-items: center; width: 31px; height: 31px; max-width: 100%; border-radius: 50%; background: var(--rating-fill); }
.rating-face { width: 26px; height: 26px; stroke-width: 1.45; }
.rating-number { font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .rating-face-wrap { transition: transform 130ms var(--ease); }
  .customer-rating-choice:active .rating-face-wrap { transform: scale(.91); }
}
.customer-rating-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 5px 10px; }
.customer-rating-clear { border: 0; background: none; padding: 4px 0; color: var(--quiet); font-size: 12px; }
.customer-rating-clear:hover { text-decoration: underline; text-underline-offset: 2px; }
.customer-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px 3px 4px;
  border-radius: 99px;
  color: var(--rating-ink);
  background: var(--rating-fill);
  font-size: 12px;
  font-weight: 630;
  white-space: nowrap;
}
.customer-rating-chip svg { width: 17px; height: 17px; }
.customer-data { grid-template-columns: 84px minmax(0,1fr); }
.customer-data dd { overflow-wrap: anywhere; white-space: pre-wrap; }
.customer-panel .section-head { flex-wrap: wrap; }
.customer-panel .section-head .btn { padding: 4px 8px; min-height: 31px; }
.customer-top h1,.workspace:has(.customer-cards,.customer-editor) > .top h1 {
  font-size: clamp(25px,2.3vw,34px);
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.customer-editor { max-width: 860px; }
.customer-editor fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.customer-editor legend { padding-inline: 5px; font-weight: 630; }
.customer-editor fieldset > label + .fields { margin-top: 8px; }
.customer-check { display: flex; align-items: center; align-self: end; gap: 7px; padding-block: 6px; }
.customer-check input { width: 15px; height: 15px; accent-color: var(--blue); }
.customer-touch p { margin-top: 5px; }
@media (max-width: 670px) {
  .customer-toolbar { align-items: start; }
  .customer-search select { width: 94px; }
  .customer-search input[type=search] { max-width: 179px; }
  .customer-metrics { gap: 7px; }
  .customer-metrics article { padding: 12px; }
  .customer-top { flex-wrap: wrap; }
}
@media (max-width: 1190px) {
  .desk-identity { grid-template-columns: 112px minmax(0,1fr); padding: 12px 14px; row-gap: 7px; }
  .desk-portrait-stage { min-height: 112px; margin-block: 0; }
  .desk-portrait { margin-bottom: -9px; }
  .desk-weather { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; align-items: center; gap: 6px 12px; padding: 6px 0 0; border-inline-start: 0; border-top: 1px solid #dbe7ef; }
  .desk-weather > small { justify-self: end; text-align: end; }
  .desk-weather[data-has-weather] strong { font-size: 24px; }
  .desk-weather-symbol svg { width: 19px; height: 19px; }
}
@media (max-width: 670px) {
  .desk-top { align-items: start; flex-wrap: wrap; gap: 10px; }
  .desk-top-actions { gap: 8px; }
  .desk-identity { grid-template-columns: 77px minmax(0,1fr); padding-inline: 11px; column-gap: 8px; }
  .desk-portrait-stage { min-height: 85px; align-self: end; }
  .desk-portrait { margin-bottom: -6px; }
  .desk-greeting { margin-block: 5px 7px; text-wrap: balance; }
  .desk-person h2 { font-size: 15px; }
  .desk-weather { column-gap: 7px; }
  .desk-weather-reading { gap: 4px; }
  .desk-metrics { gap: 7px; }
  .desk-metrics a { padding: 10px 8px; min-height: 86px; }
  .desk-metrics strong { font-size: 29px; }
  .desk-metrics a svg,.desk-metrics [data-metric=today] a svg { width: 12px; height: 12px; top: auto; right: 7px; bottom: 8px; }
  .desk-metrics article:first-child::after { opacity: .08; width: 38px; right: 6px; animation: none; }
}

.desk-journal .case-icon {
  width: 34px; height: 34px; border-radius: 9px; color: var(--blue);
  background: #e7f3fa;
}
.desk-journal .case-icon svg,.journal-file-icon svg { width: 17px; height: 17px; }
.desk-journal time { font-size: 12px; color: var(--quiet); }
.desk-journal .journal-copy { color: var(--ink); overflow-wrap: anywhere; margin: 8px 0; }
.journal-files {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,190px),1fr)); gap: 8px;
  list-style: none; padding: 0; margin: 12px 0 0;
}
.journal-files a {
  display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 9px;
  min-width: 0; color: var(--ink); border: 1px solid var(--line); text-decoration: none;
}
.journal-files a > span:last-child { min-width: 0; }
.journal-files strong { display: block; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.journal-files img,.journal-file-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 6px; }
.journal-files img { object-fit: cover; }
.journal-file-icon { display: grid; place-items: center; background: #e7f3fa; color: var(--blue); }
.journal-history { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.journal-history summary { cursor: pointer; font-size: 13px; }
.journal-history details { margin: 8px 0 0 12px; }
.journal-history summary small { margin-left: 8px; }
.journal-existing { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.journal-existing legend { font-size: 12px; }
.journal-existing label { display: flex; align-items: start; gap: 6px; overflow-wrap: anywhere; }
.journal-existing input { width: auto; flex: none; }
.meeting-toolbar label { min-width: min(185px,100%); }
.journal-picker { position: relative; cursor: pointer; }
.journal-picker input {
  position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden;
}
.journal-picker span {
  display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 8px;
  border: 1px dashed #b7d8eb; background: #f4f9fc; color: var(--blue-dark);
}
.journal-picker svg,.journal-selection svg { width: 15px; height: 15px; flex: none; }
.journal-picker:focus-within span { outline: 2px solid var(--blue); outline-offset: 2px; }
.journal-selection { display: grid; gap: 4px; list-style: none; margin: -4px 0 0; padding: 0; }
.journal-selection:empty { display: none; }
.journal-selection li { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.journal-selection li span { min-width: 0; overflow-wrap: anywhere; }

.task-action-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; margin: 8px 0 12px; }
.task-action-bar .task-delete[open] { flex-basis: 100%; }
.task-action-bar .btn { min-height: 34px; padding: 6px 9px; font-size: 12px; }
.task-delete-trigger { width: fit-content; color: #8b3b36; }
.task-delete-trigger::-webkit-details-marker { display: none; }
.task-delete[open] .task-delete-trigger { background: #fbf4f1; border-color: #ead4cc; }
.task-delete form { margin-top: 9px; padding: 9px; border-radius: 8px; background: #fbf4f1; gap: 8px; }
.task-delete p { font-size: 12px; color: #644a46; overflow-wrap: anywhere; }
.quick-task { padding: 10px 0; border-top: 1px solid var(--line); }
.quick-task.is-child { margin-left: 10px; padding-left: 9px; border-inline-start: 2px solid #e5edf4; }
.quick-task header { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 10px; }
.quick-task header a { color: var(--ink); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.quick-task header a:hover { text-decoration: underline; }
.quick-task header .badge { flex: none; }
.quick-task .task-action-bar { margin: 6px 0 0; }
.project-detail-actions { margin: 12px 0; }
.btn.danger { color: #fff; background: #923f35; border-color: #923f35; }
.btn.danger:hover:not(:disabled) { color: #fff; background: #79332b; border-color: #79332b; }

.project-delete { margin-bottom: 12px; }
.project-delete summary {
  display: flex; align-items: center; gap: 7px; width: fit-content; padding: 7px 10px; font-size: 13px;
  font-weight: 630; color: #923f35; background: #fff; border: 1px solid #ead4cc; border-radius: 8px; cursor: pointer;
}
.project-delete summary svg { width: 16px; height: 16px; }
.project-delete form {
  margin-top: 8px; padding: 12px; border: 1px solid #ead4cc; border-radius: 8px; background: #fbf4f1;
}
.project-delete form p { font-size: 13px; color: #644a46; overflow-wrap: anywhere; }

.vendor-index .top h1,.vendor-profile-top h1 { font-size: clamp(27px,2.2vw,37px); letter-spacing: .015em; overflow-wrap: anywhere; }
.vendor-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 15px; }
.vendor-metrics article { min-height: 78px; padding: 0; }
.vendor-metrics article a { display: block; padding: 12px 14px; color: inherit; }
.vendor-metrics article strong { font-size: clamp(22px,2.2vw,32px); }
.vendor-metrics article a[aria-current] { box-shadow: inset 0 0 0 1px #8cc8e8; border-radius: inherit; }
.vendor-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 8px; }
.vendor-toolbar .btn,.vendor-search .btn { min-height: 34px; padding: 5px 9px; }
.vendor-search { align-items: end; margin: 0 0 14px; gap: 8px; }
.vendor-search select { width: 126px; }
.vendor-search input[type="search"] { width: min(198px,100%); }
.vendor-cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); }
.vendor-card { --case-tint:#e5f2f9; --case-ink:#2d7397; --case-mark:#81b7d2; }
.vendor-card[data-service="print"] { --case-tint:#e9f1e5; --case-ink:#3d6a55; --case-mark:#82b09b; }
.vendor-card[data-service="signage"] { --case-tint:#f7eddf; --case-ink:#875e39; --case-mark:#caa376; }
.vendor-card[data-service="media"] { --case-tint:#f0eefa; --case-ink:#616198; --case-mark:#a9a4d5; }
.vendor-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 5px; margin-bottom: 12px; }
.vendor-card h2 { font-size: 19px; letter-spacing: .015em; overflow-wrap: anywhere; }
.vendor-card h2 a { color: inherit; }
.vendor-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.vendor-card .btn { position: relative; z-index: 1; min-height: 30px; padding: 4px 7px; font-size: 12px; }
.vendor-card .btn svg { width: 14px; height: 14px; }
.vendor-card .vendor-data dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vendor-card-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px;
  border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px;
}
.badge[data-state="vendor-active"] { color: #17668b; background: #e5f4fb; }
.badge[data-state="vendor-quoting"] { color: #85582a; background: #f9edda; }
.badge[data-state="vendor-backup"] { color: #3f6953; background: #e9f2ea; }
.vendor-data { grid-template-columns: max-content minmax(0,1fr); }
.vendor-data dd,.vendor-panel :is(p,strong,small,a) { overflow-wrap: anywhere; white-space: pre-wrap; }
.vendor-panel .section-head { flex-wrap: wrap; }
.vendor-panel .section-head .btn,.vendor-linked .btn { min-height: 30px; padding: 4px 8px; }
.vendor-profile-top .case-icon,.vendor-heading .case-icon { background: #e4f3fb; color: #236f95; }
.vendor-overview-grid { align-items: start; margin: 12px 0; }
.vendor-overview-grid .vendor-panel { margin-top: 0; }
.vendor-editor { max-width: 860px; }
.vendor-editor fieldset { display: grid; gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.vendor-editor legend { padding: 0 5px; font-weight: 640; }
.vendor-history { padding: 9px 0; border-bottom: 1px solid var(--line); }
.vendor-history:last-child { border-bottom: 0; }
.vendor-history time { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--quiet); }
.vendor-history h3 { font-size: 15px; margin-top: 3px; }
.vendor-list tr.selected { background: #eef7fd; }
.vendor-list .btn { min-height: 30px; padding: 4px 8px; }
@media (max-width: 670px) {
  .vendor-metrics { gap: 7px; }
  .vendor-metrics article a { padding: 9px; }
  .vendor-search { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vendor-search select,.vendor-search input[type="search"] { width: 100%; }
  .vendor-profile-top { flex-wrap: wrap; }
}

.customer-index > .top h1 { font-size: clamp(25px,2.3vw,34px); letter-spacing: .01em; }
.customer-toolbar .directory-view .btn { padding: 5px 9px; }
.customer-index .customer-toolbar { align-items: center; margin-bottom: 8px; }
.customer-index .customer-search { align-items: end; margin-bottom: 14px; }
.customer-list tr.selected { background: #eef7fd; }
.customer-list .btn { min-height: 30px; padding: 4px 8px; }
.customer-list tbody td:first-child small { display: block; }

.project-filters { align-items: end; }
.project-filters :is(#stage-filter,#project-search,.btn) { height: 40px; }

.task-kind-fields > label { width: min(220px,100%); }
.task-vendor-picker { min-width: 0; margin: 8px 0 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #f5f9fc; }
.task-vendor-picker legend { padding: 0 5px; font-size: 13px; font-weight: 650; }
.task-vendor-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); gap: 5px; max-height: 164px; overflow: auto; }
.task-vendor-options label { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow-wrap: anywhere; }
.task-vendor-options input { width: auto; accent-color: var(--blue); }
.badge[data-state="task-type-design"] { background: #e6f3fb; color: #1c648a; }
.badge[data-state="task-type-production"] { background: #f8efdf; color: #775025; }
.badge[data-state="task-type-general"] { background: #edf2f5; color: #496679; }
.project-task-type-summary { margin-bottom: 6px; }
