/* Project-scoped header; shared colors and font sizes use the site design tokens. */
.project-header .header-inner{grid-template-columns:minmax(200px,28%) minmax(0,1fr) max-content;gap:16px;padding-top:12px;padding-bottom:12px}
.project-header .brand{min-width:0;align-items:center;line-height:1.35}.project-header .brand-icon{flex-shrink:0}.project-header .project-brand-title{min-width:0;overflow-wrap:anywhere}.project-header .brand small{margin-top:4px}
.project-header .header-functions{font-size:16px;justify-content:flex-start;flex-wrap:wrap;overflow:visible;gap:8px;padding:6px 3px}.project-header .header-functions>a,.project-task-menu{flex-shrink:0}
.project-header .project-task-menu{margin:0}.project-header .project-task-menu select{width:auto;max-width:220px;font:inherit;font-weight:600;color:var(--primary);background:var(--surface);padding:5px 4px;border-color:var(--line);cursor:pointer}
.project-header .header-actions{gap:16px}.project-nav-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.project-header .project-task-menu select[aria-label="表單任務"],.project-header .project-task-menu select[aria-label="郵件管理"]{box-sizing:border-box;width:110px;min-width:0;max-width:110px}
.project-header .header-functions>a{padding:5px 4px;border-radius:6px}
.project-header .header-functions>a.is-current,.project-header .project-task-menu select.is-current{color:#fff;background:var(--primary);border-color:var(--primary)}
@media(max-width:700px){.project-header .header-inner{grid-template-columns:minmax(0,1fr) auto}.project-header .header-functions{grid-column:1/-1;grid-row:2}.project-header .header-account{grid-column:2;grid-row:1}}

.project-home-tab{position:fixed;left:0;top:36%;z-index:90;writing-mode:vertical-rl;text-orientation:upright;display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:36px;min-height:110px;padding:12px 8px;background:var(--primary,#5144c8);color:#fff;border:1px solid var(--primary,#5144c8);border-left:0;border-radius:0 8px 8px 0;font-size:15px;font-weight:700;line-height:1.3;letter-spacing:2px;text-decoration:none;box-shadow:2px 3px 8px #0002}
.project-home-tab:hover{background:var(--primary-dark,var(--primary,#4435b5));color:#fff}
.project-home-tab:focus-visible{outline:3px solid var(--accent,#c69836);outline-offset:2px}

.project-navigation-tabs{position:fixed;left:0;top:clamp(8px,36vh,calc(100dvh - 240px));z-index:90;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.project-navigation-tabs .project-home-tab{position:static;flex:none;margin:0}

.project-navigation-tabs .project-list-tab{background:#ffead5;color:#804519;border-color:#efc49a}
.project-navigation-tabs .project-list-tab:hover{background:#ffdbb8;color:#683510}
