.application-menu { position: fixed; z-index: 20; top: 48px; right: 8px; width: 290px; max-width: calc(100vw - 16px); padding: 7px 0; border: 1px solid #e4e4e4; border-radius: 8px; background: white; box-shadow: 0 6px 24px #00000020; color: #171717; }
.application-menu[hidden] { display: none; }
.application-menu-action { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: left; font-size: 17px; }
.application-menu-action svg { width: 26px; height: 26px; stroke-width: 1.6; }
.application-menu-action:hover { background: #f2f2f2; }
.application-zoom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-block: 1px solid #ededed; font-size: 17px; }
.application-zoom > div { display: flex; align-items: center; gap: 8px; }
.application-zoom button { width: 34px; height: 34px; background: #f2f2f2; border-radius: 7px; font-size: 23px; }
.application-zoom button:hover { background: #e7e7e7; }
.application-zoom button:disabled { opacity: .35; cursor: default; }
.application-zoom output { width: 50px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.settings-dialog { width: 860px; height: 640px; max-width: calc(100vw - 40px); max-height: calc(100vh - 64px); padding: 0; border: 1px solid #e7e7e7; border-radius: 12px; background: #fff; color: #171717; box-shadow: 0 14px 60px #00000026; overflow: hidden; }
.settings-dialog[open] { display: flex; flex-direction: column; }
.settings-dialog::backdrop { background: #13172240; }
.settings-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e9e9e9; flex-shrink: 0; }
.settings-header h1 { margin: 0; font-size: 24px; line-height: 32px; }
.settings-close { width: 36px; height: 36px; border-radius: 5px; }
.settings-close svg { width: 36px; height: 36px; stroke-width: 1.6; }
.settings-close:hover { background: #f2f2f2; }
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); flex: 1; min-height: 0; }
.settings-nav { padding: 8px; border-right: 1px solid #e9e9e9; }
.settings-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 10px; border-radius: 8px; text-align: left; font-size: 16px; line-height: 23px; margin-bottom: 4px; }
.settings-nav button svg { width: 27px; height: 27px; stroke-width: 1.7; }
.settings-nav button:hover { background: #f5f5f5; }
.settings-nav button[aria-selected='true'] { background: #ebebeb; font-weight: 700; }
.settings-content { padding: 28px; min-width: 0; overflow: auto; }
.settings-content h2 { margin: 0 0 10px; font-size: 21px; }
.settings-note { margin: 0 0 28px; color: #757575; font-size: 14px; line-height: 1.6; }
.settings-profile-mark { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #f2f2f2; margin-bottom: 24px; color: #6b6b6b; }
.settings-profile-mark svg { width: 40px; height: 40px; }
.settings-fields { margin: 0; }
.settings-fields > div { margin-bottom: 22px; }
.settings-fields dt { font-size: 13px; color: #757575; margin-bottom: 8px; }
.settings-fields dd { margin: 0; font-size: 16px; }
.settings-table-wrap { overflow: auto; }
.settings-content table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.settings-content th { padding: 12px 10px; border-bottom: 1px solid #e5e5e5; font-weight: 400; color: #6d6d6d; white-space: nowrap; }
.settings-content td { padding: 26px 10px; line-height: 1.5; color: #757575; }
@media (max-width: 640px) {
  .settings-dialog { max-width: calc(100vw - 20px); max-height: calc(100vh - 32px); }
  .settings-header { padding: 14px 16px; }
  .settings-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .settings-nav { display: flex; gap: 6px; border-right: 0; border-bottom: 1px solid #e9e9e9; }
  .settings-nav button { width: auto; flex: 1; font-size: 14px; padding: 10px 6px; }
  .settings-content { padding: 22px 18px; }
}
