/* Compact About panel, shared across desktop and mobile. */
  [data-about-dialog] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    background: #faf9f6;
    color: #272622;
  }
  [data-about-header] {
    position: relative;
    flex: 0 0 auto;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px !important;
    background: #faf9f6;
    border-bottom-width: 1px;
    border-color: #e3ded5;
  }
  [data-about-header] h1 { font-size: 18px !important; line-height: 1.3; letter-spacing: .06em; }
  [data-about-header] button { min-width: 44px; min-height: 44px; }
  [data-about-content] {
    flex: 1 1 0%;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y pinch-zoom;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  }
  [data-about-content]::-webkit-scrollbar,
  [data-about-dialog]::-webkit-scrollbar { display: none; width: 0; height: 0; }
  [data-about-content] > .mb-8 { margin-bottom: 20px !important; }
  [data-about-content] .mb-6 { margin-bottom: 12px !important; }
  [data-about-content] .mb-4 { margin-bottom: 10px !important; }
  [data-about-content] .mb-3 { margin-bottom: 8px !important; }
  [data-about-content] .mb-2 { margin-bottom: 6px !important; }
  [data-about-content] .p-6,
  [data-about-content] .p-4 { padding: 12px !important; }
  [data-about-content] .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-block-start: 18px !important; margin-block-end: 0 !important;
  }
  [data-about-content] .space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-block-start: 12px !important; margin-block-end: 0 !important;
  }
  [data-about-content] .border-l-4 { padding-left: 12px !important; border-left-width: 2px; border-left-color: #c8b99f !important; }
  [data-about-content] [style*="line-height"] { line-height: 1.6 !important; }
  [data-about-content] p,
  [data-about-content] li { font-size: 14px !important; line-height: 1.6 !important; }
  [data-about-content] h2 { font-size: 17px !important; line-height: 1.35 !important; letter-spacing: .015em; }
  [data-about-content] h3 { font-size: 16px !important; line-height: 1.4 !important; margin-bottom: 6px !important; }
  [data-about-content] h4 { font-size: 15px !important; line-height: 1.4 !important; margin-bottom: 6px !important; }
  [data-about-profile] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding: 4px 0 0;
  }
  [data-about-profile] > h2 {
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-size: 28px !important;
    letter-spacing: .04em;
    margin: 0 !important;
  }
  [data-about-profile] > .flex { gap: 6px 12px !important; margin: 0 !important; font-size: 13px !important; }
  [data-about-profile] > .flex:first-of-type { grid-column: 1 / -1; grid-row: 2; color: #656059; }
  [data-about-profile] > .flex:last-of-type { grid-column: 2; grid-row: 1; }
  [data-about-profile] .inline-block {
    padding: 4px 9px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    background: transparent;
    border: 1px solid #d8cebe;
    color: #705d41;
    border-radius: 4px;
  }
  [data-about-content] > .p-6.bg-gray-50 {
    padding: 12px 14px !important;
    background: #f2efe8;
    border-color: #e3dccf;
    border-radius: 6px;
  }
  [data-about-content] .space-y-4 > .p-4.bg-gray-50 {
    background: transparent;
    padding: 0 0 12px !important;
    border-radius: 0;
    border-bottom: 1px solid #e6e0d7;
  }
  [data-about-content] .space-y-4 > .p-4.bg-gray-50:last-child { border-bottom: 0; padding-bottom: 0 !important; }
  [data-about-content] .border-l-4 > p:first-of-type { font-size: 13px !important; color: #6a645b; }
  [data-about-content] a { color: #745b38; text-decoration-color: #bdaa8a; text-underline-offset: 3px; }

[data-about-content] { width: 100%; max-width: 960px; margin-inline: auto; }
@media (min-width: 768px) {
  [data-about-header] { padding: 10px 32px !important; }
  [data-about-header] > div { max-width: 896px; margin-inline: auto; }
  [data-about-content] { padding: 20px 32px 36px !important; }
  [data-about-content] > .mb-8 { margin-bottom: 24px !important; }
  [data-about-profile] > h2 { font-size: 30px !important; }
}
