html { scrollbar-gutter: stable; }
.postal-app-header {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px;
  min-height: 72px; box-sizing: border-box; padding: 10px clamp(16px, 4vw, 52px);
  background: #fff; border-bottom: 1px solid #dce6ec; font: 600 14px/1.4 "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
}
.postal-app-header a, .postal-app-navigation a { color: #31516d; text-decoration: none; white-space: nowrap; }
.postal-app-header a:hover, .postal-app-navigation a:hover { text-decoration: underline; }
.postal-app-brand { display: block; width: fit-content; }
.postal-app-brand img { display: block; width: 176px; max-width: 100%; height: auto; }
.postal-app-tabs, .postal-site-links { display: flex; gap: 6px; align-items: center; }
.postal-app-navigation { display: flex; justify-content: center; padding: 10px 16px 0; font: 600 14px/1.4 "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif; }
.postal-app-tabs { padding: 3px; border: 1px solid #dce6ec; border-radius: 10px; background: #fff; }
.postal-app-tabs a { min-width: 86px; padding: 8px 12px; box-sizing: border-box; text-align: center; border-radius: 7px; }
.postal-app-tabs a[aria-current="page"] { color: #005e6d; background: #dceff2; font-weight: 700; }
.postal-site-links { justify-self: end; gap: clamp(10px, 2vw, 26px); }
.postal-app-header [hidden], .postal-app-navigation[hidden] { display: none !important; }
.postal-app-header #postal-logout {
  border: 1px solid #dce6ec; border-radius: 7px; min-height: 34px; padding: 4px 8px;
  color: #31516d; background: #fff; font: inherit; white-space: nowrap; cursor: pointer;
}
.postal-app-header #postal-logout:hover { background: #eaf7fa; }
.postal-language { position: relative; color: #355d7b; }
.postal-language summary { list-style: none; white-space: nowrap; cursor: pointer; padding-block: 6px; }
.postal-language summary::-webkit-details-marker { display: none; }
.postal-language summary::before { content: '◉'; font-size: 10px; margin-right: 7px; }
.postal-language summary::after { content: '▾'; font-size: 10px; margin-left: 5px; }
.postal-language-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 200; min-width: 145px;
  padding: 7px; background: rgba(255,255,255,.95); backdrop-filter: blur(14px);
  border: 1px solid rgba(53,93,123,.18); border-radius: 10px; box-shadow: 0 12px 30px rgba(6,38,64,.16);
}
.postal-app-header .postal-language-list button {
  display: block; width: 100%; min-height: 0; padding: 7px 10px; border: 0; border-radius: 7px;
  background: transparent; text-align: left; font: inherit; color: #355d7b; cursor: pointer;
}
.postal-app-header .postal-language-list button:hover,
.postal-app-header .postal-language-list button[aria-current="true"] { background: #e9f6f7; }
:is(.portal-main) #login-view { container-type: inline-size; }
:is(.portal-main) #login-view h1 { white-space: nowrap; font-size: clamp(1rem, 7.6cqi, 2.4rem); letter-spacing: normal; }
main.portal-main { padding-block-start: 12px; }
main h1.postal-page-title, main .dashboard h1.postal-page-title {
  margin: 0; color: #193652; font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700; line-height: 1.23; letter-spacing: .02em;
}
@media (max-width: 700px) {
  main h1.postal-page-title, main .dashboard h1.postal-page-title { font-size: clamp(1.55rem, 8vw, 2.1rem); line-height: 1.35; }
}
@media (max-width: 740px) {
  .postal-app-header { gap: 8px 12px; }
  .postal-app-brand img { width: 142px; }
  .postal-site-links { flex-wrap: wrap; justify-content: flex-end; font-size: 12px; }
}
