.site-header { position: relative; z-index: 1001; gap: 18px; }
.header-actions { gap: 16px; flex: 0 0 auto; }
.account-control { position: relative; flex: 0 0 auto; }
.account-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 6px 10px 6px 7px;
  border: 1px solid #dce3d2;
  border-radius: 12px;
  background: #fffdf7;
  color: #526847;
  text-align: left;
  cursor: pointer;
  transition: background .16s, border-color .16s;
}
.account-toggle:hover, .account-toggle[aria-expanded="true"] { background: #eef2e6; border-color: #b4c49f; }
.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid #d3dfc2;
  border-radius: 50%;
  background: #e8eedb;
  color: #607a49;
  font: 600 15px/1 "Noto Serif TC", serif;
}
.account-label { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.account-label strong { font-size: 12px; font-weight: 600; line-height: 1.5; }
.account-label small { color: #8b977e; font-size: 9px; line-height: 1.3; }
.account-chevron { color: #8b977e; font-size: 10px; line-height: 1; transition: transform .16s; }
.account-toggle[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1600;
  width: min(340px, calc(100vw - 48px));
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid #dce3d2;
  border-radius: 15px;
  background: #fffef9;
  box-shadow: 0 12px 42px #33482b24, 0 2px 6px #33482b0c;
}
.account-menu[hidden] { display: none; }
.account-menu-heading { padding: 11px 12px 14px; }
.account-menu-heading > p:first-child { margin: 0 0 6px; color: #93a083; font-size: 9px; line-height: 1.5; letter-spacing: .08em; }
.account-menu-heading > strong { display: block; color: #4f6641; font-size: 14px; font-weight: 600; line-height: 1.6; }
.account-menu-heading .account-hint { margin: 6px 0 0; color: #8b967d; font-size: 10px; line-height: 1.8; letter-spacing: 0; }
.account-users { display: grid; gap: 5px; padding: 0 2px 11px; }
.account-user-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #607352;
  text-align: left;
  cursor: pointer;
}
.account-user-option:hover { background: #f2f5eb; }
.account-user-option[aria-pressed="true"] { border-color: #d8e2c9; background: #edf3e3; }
.account-user-option[data-user-option="yang"] .account-avatar { color: #967044; background: #f3e9d7; border-color: #e8d6b8; }
.account-user-option[data-user-option="chiu"] .account-avatar { color: #5d7849; background: #e6eed9; border-color: #d2dfbd; }
.account-option-copy { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.account-option-copy strong { font-size: 13px; font-weight: 600; line-height: 1.4; }
.account-option-copy small { color: #8b977e; font-size: 10px; line-height: 1.4; }
.account-check { color: #6f8c50; font-size: 17px; visibility: hidden; }
.account-user-option[aria-pressed="true"] .account-check { visibility: visible; }
.account-management { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 4px; border-top: 1px solid #e7ebdf; }
.account-management > button {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #dce3d1;
  border-radius: 8px;
  background: #f7f8f0;
  color: #71835f;
  font: 500 11px/1.6 "Noto Sans TC", sans-serif;
  cursor: pointer;
}
.account-management > button:hover { background: #eaf0df; }
.account-menu .user-storage-note { padding: 10px 10px 7px; border-top: 1px solid #e7ebdf; font-size: 10px; line-height: 1.8; color: #869278; }
.user-storage-note summary { min-height: 32px; padding: 5px 0; width: 100%; cursor: pointer; }
.user-storage-note p { margin: 7px 0 10px; overflow-wrap: anywhere; }
.account-menu .user-storage-note button { min-height: 44px; width: 100%; padding: 9px 10px; border: 1px solid #dce3d1; border-radius: 8px; background: #f4f6ec; color: #71835f; font-size: 11px; cursor: pointer; }
.account-menu .user-storage-note button:hover { background: #eaf0df; }
.account-control :focus-visible { outline: 3px solid #95ab78; outline-offset: 3px; }
.shared-score { font-size: 10px; line-height: 1.8; color: #7b886e; margin: 5px 0 0; }
.shared-score strong { display: block; color: #8c6b37; font-weight: 500; }
.place-edit-button { background: transparent; min-height: 36px; color: #75856a; font-size: 10px; border: 1px solid #e5e9df; border-radius: 6px; padding: 6px 10px; margin: 8px 0 0; }
.place-edit-button:hover { background: #f0f3e8; }
@media (max-width: 1000px) {
  .header-actions .private-label { display: none; }
}
@media (max-width: 760px) {
  .site-header { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .header-actions { gap: 9px; }
  .header-actions #export-toggle { min-height: 44px; gap: 5px; padding: 8px 10px; }
  .account-toggle { min-height: 44px; padding: 5px 8px 5px 6px; gap: 7px; border-radius: 10px; }
  .account-label strong { font-size: 12px; }
  .account-label small { font-size: 8px; }
  .account-menu { top: calc(100% + 9px); }
}
@media (max-width: 480px) {
  .site-header { gap: 8px; }
  .site-header .brand { font-size: 15px; gap: 7px; letter-spacing: .4px; flex: 0 1 auto; min-width: 0; }
  .site-header .brand-icon { flex: 0 0 30px; width: 30px; height: 34px; font-size: 22px; line-height: 34px; }
  .site-header .brand small { font-size: 5.5px; letter-spacing: 1px; }
  .header-actions { gap: 7px; }
  .header-actions #export-toggle { font-size: 10px; padding: 8px 7px; }
  .header-actions #export-toggle > span { display: none; }
  .account-toggle { gap: 6px; padding-left: 5px; padding-right: 6px; }
  .account-toggle .account-avatar { flex-basis: 29px; width: 29px; height: 29px; font-size: 14px; }
  .account-label strong { font-size: 11px; }
  .account-chevron { font-size: 9px; }
}
@media (max-width: 360px) {
  .site-header .brand { font-size: 14px; }
  .site-header .brand small { font-size: 5px; letter-spacing: .8px; }
  .account-toggle { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-toggle, .account-chevron { transition: none; }
}
@media print {
  .account-control, .place-edit-button, #place-admin-root { display: none !important; }
}
