  body {
    font-family: sans-serif; margin: 20px auto; max-width: 1100px;
    background: #eef3e5; color: #2f3b2a;
  }
  h1 { margin-bottom: 4px; color: #33512b; }
  h1, h2, h3 { font-family: 'Kiwi Maru', sans-serif; }
  #shareSectionTitle, #fairyPromoTitle { color: #33512b; }
  #toolTagline { color: #33512b; font-weight: bold; margin: 0 0 4px 0; }
  #subtitle { color: #5c6b52; margin: 0 0 4px 0; font-style: italic; }
  #contactLine { color: #7c8873; font-size: 12px; margin: 0 0 16px 0; }
  #contactLine a { color: #4c7a3f; }
  #algorithmLine { color: #7c8873; font-size: 12px; margin: -12px 0 16px 0; }
  #algorithmLine a { color: #4c7a3f; }
  #langBar { margin-bottom: 16px; }
  #legend { background: #e2ead6; border: 1px solid #c9d6b8; padding: 12px 16px; margin: 16px 0 20px 0; border-radius: 6px; font-size: 14px; }
  #legend ul { margin: 0; padding-left: 20px; }
  #afterStatusSection { margin: 8px 0 16px 0; font-size: 13px; color: #556047; }
  #firstTagSectionTitle { margin: 20px 0 6px 0; color: #33512b; }
  .titleWithToggle { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .titleWithToggle h2 { margin-bottom: 0; }
  #displayModeTitle { margin: 20px 0 6px 0; }
  #s22Title { margin: 20px 0 6px 0; color: #33512b; }
  #s22 .advancedSettingsGroup + .advancedSettingsGroup { margin-top: 10px; }
  .highlightBox {
    background: #e2ead6;
    border: 1px solid #c9d6b8;
    padding: 12px 16px;
    margin: 16px 0 20px 0;
    border-radius: 6px;
  }
  #firstTagSection input { font-size: 16px; padding: 6px 10px; }
  .sectionDescription { font-size: 13px; color: #556047; margin: 4px 0 10px 0; }
  #shareDescription3 { margin: 10px 0 10px 0; }
  .infoBox { margin-bottom: 20px; padding: 10px 14px; background: #f4f7ee; border: 1px solid #d7e0c8; border-radius: 6px; }
  #periodSection { margin-top: 20px; }
  .boxTitle { margin: 0 0 8px 0; font-size: 14px; font-weight: bold; color: #33512b; }
  #searchResultTitle { margin: 16px 0 4px 0; color: #33512b; }
  #mapImageSection { margin: 16px 0; text-align: center; }
  #mapImage { max-width: 100%; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
  #fairyPromoImage { max-width: 100%; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); cursor: pointer; display: block; margin: 8px 0; }
  #snsShareSection {
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px 0 16px 0;
  }
  #snsShareSection h3 { margin: 0 0 6px 0; font-size: 14px; color: #33512b; }
  #imageCaptureSection, #hashtagSelectSection, #parentPostSection, #replyPrepSection {
    margin: 0px 0px 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid #c9d6bd;
    border-radius: 12px;
  }
  #hashtagGenreButtons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  .hashtagGroup { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
  .hashtagCheckboxLabel { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #33512b; cursor: pointer; }
  #replyPrepText {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f4f7ee;
    border: 1px solid #d7e0c8;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #2f3b2a;
    margin: 6px 0 10px 0;
  }
  #shareButtonsRow { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
  #copyUrlRow { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
  .copyMessage { font-size: 12px; color: #2e7d32; }
  #firstTagSection input#tagInput { width: 100%; box-sizing: border-box; }
  #andTagInput, #orTagInput, #excludeTagInput { width: 100%; box-sizing: border-box; font-size: 16px; padding: 6px 10px; }
  #fairyAnimContainer { position: relative; height: 44px; display: none; margin: 6px 0; overflow: hidden; }
  #fairyImg { position: absolute; top: 0; height: 40px; width: auto; transition: left 0.6s ease-in-out, transform 0.4s ease-in-out; }
  #allTagsControls { margin: 4px 0 12px 0; font-size: 13px; color: #0b4f6c; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  #tagHistoryList { margin: 0; padding-left: 4px; font-size: 13px; color: #0b4f6c; list-style: none; }
  #tagHistoryList li { margin: 2px 0; }
  .historyTagItem { cursor: pointer; text-decoration: underline; color: #0077B6; }
  .historyTagItem:hover { color: #005a8a; }
  #displayModeSection { margin-bottom: 12px; }
  .clickableTag { color: #0077B6; cursor: pointer; text-decoration: underline; }
  .clickableTag:hover { color: #005a8a; }
  input, button, select { padding: 6px 10px; font-size: 14px; }
  button { background: #4c7a3f; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
  button:hover { background: #3d6432; }
  #status { color: #556047; margin: 8px 0; }
  #graphWrap { position: relative; }
  #graph { border: 1px solid #c9d6b8; width: 100%; height: 75vh; cursor: grab; background: #f6f8f1; display: block; }
  #zoomControls { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; }
  #zoomControls button { width: 34px; height: 34px; font-size: 16px; }
  #graphLoadingOverlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(51, 81, 43, 0.9); color: #fff; padding: 14px 22px;
    border-radius: 8px; font-size: 15px; display: none; pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .leader { stroke: #b9c4a8; stroke-width: 1; }
  .label-text { font-size: 10px; pointer-events: none; fill: #33422b; }
  .link { }
  .node circle { cursor: pointer; }
  button.secondaryBtn { background: #8a9a7a; font-size: 12px; padding: 4px 8px; }
  #reshuffleRandomTagsBtn { background: #fff; color: #0077B6; border: 1px solid #0077B6; }
  #reshuffleRandomTagsBtn:hover { background: #eef3e5; }
  #copyGraphImageBtn, #copyReplyTextBtn { background: #fff; color: #33512b; border: 1px solid #33512b; box-shadow: none; font-family: 'Kiwi Maru', sans-serif; }
  #copyGraphImageBtn:hover, #copyReplyTextBtn:hover { background: #f4f7ee; }
  button.secondaryBtn:hover { background: #74855f; }
  button.highlightActionBtn { font-size: 15px; padding: 10px 20px; font-weight: bold; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
  #openAllTagsWindowBtn, #shareBlueskyBtn, #shareTagBtn {
    text-align: center;
    color: rgb(255, 255, 255);
    flex: 1 1 0%;
    background: #0077B6;
    border-color: #0077B6;
    font-size: 0.85rem;
    padding: 8px 14px;
  }
  #shareBlueskyBtn, #shareTagBtn {
    background: #d4a017;
    border-color: #d4a017;
    font-family: 'Kiwi Maru', sans-serif;
  }
  #openAllTagsWindowBtn {
    width: 100%;
    box-sizing: border-box;
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }
  #openAllTagsWindowBtnWrap {
    position: relative;
    height: 90px;
    margin: 10px 0;
  }

  .pulse-button {
    box-shadow: 0 4px 14px rgba(1, 76, 130, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    animation: pulseBreath 10s ease-in-out infinite;
  }

  @keyframes pulseBreath {
    0%,
    100% {
      box-shadow: 0 4px 14px rgba(1, 76, 130, 0.55);
      font-size: 1em;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }
    50% {
      box-shadow: 0 8px 36px rgba(1, 76, 130, 0.9);
      font-size: 1.1em;
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }
  }

  .pulse-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(1, 76, 130, 0.7);
    filter: brightness(1.05);
  }
  #openAllTagsWindowBtn.pulse-button:hover {
    transform: translateY(-50%) translateY(-2px);
  }
  :root { --accent: #2e7d32; }
  .textToggleBtn {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .textToggleBtn:hover { background: none; }
  #backToTopBtn {
    position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px;
    border-radius: 50%; background: #4c7a3f; color: #fff; font-size: 20px;
    border: none; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
  }
  #backToTopBtn:hover { background: #3d6432; }
  table { border-collapse: collapse; margin-top: 10px; font-size: 13px; background: #fbfdf8; }
  td, th { border: 1px solid #d7e0c8; padding: 4px 8px; }
  th { background: #e2ead6; }

  #layoutGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(12px, 3vw, 20px) clamp(12px, 3vw, 24px);
    align-items: start;
  }
  #layoutGrid .gridSectionFull { grid-column: 1 / -1; }
  .twoColGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(12px, 3vw, 20px) clamp(12px, 3vw, 24px);
    align-items: stretch;
  }
  #s31, #s32 { background: #d2e2e6; padding: 12px; border-radius: 8px; box-sizing: border-box; }
  #s41 { background: #eef3e5; padding: 12px; border-radius: 8px; box-sizing: border-box; }
  #s11, #s12 { display: flex; flex-direction: column; }
  #s11 { justify-content: center; }
  #displayModeBox { box-sizing: border-box; overflow: auto; }
  body { padding: clamp(8px, 3vw, 24px); }
  @media (max-width: 760px) {
    #layoutGrid { grid-template-columns: 1fr; }
    .twoColGrid { grid-template-columns: 1fr; }
  }
  @media (max-width: 480px) {
    #firstTagSection input#tagInput,
    #searchBtn,
    #periodSection { width: 100% !important; }
    .displayModeRow { font-size: 15px; }
  }

  #randomTagsSection { margin: 10px 0 16px 0; }
  #randomTagsTitle { font-size: 13px; color: #0b4f6c; }
  #randomTagsList { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
  #randomTagsList .clickableTag { font-size: 13px; }

  #s11InnerWrap { margin: 0 auto; }

  .displayModeRow { display: block; margin-bottom: 8px; }
  #rangeFrom, #rangeTo {
    font-size: 16px;
    padding: 4px 2px;
  }
  #rangeFrom::-webkit-inner-spin-button,
  #rangeTo::-webkit-inner-spin-button,
  #rangeFrom::-webkit-outer-spin-button,
  #rangeTo::-webkit-outer-spin-button {
    opacity: 1;
    -webkit-appearance: auto;
    width: 28px;
    height: 28px;
  }
  .advancedSettingsSpin {
    font-size: 18px;
    padding: 8px 6px;
    width: 110px;
  }
  .advancedSettingsSpin::-webkit-inner-spin-button,
  .advancedSettingsSpin::-webkit-outer-spin-button {
    opacity: 1;
    -webkit-appearance: auto;
    width: 32px;
    height: 32px;
    transform: scale(1.6);
    margin-left: 6px;
  }
  #applyDisplayBtn { background: #fff; color: #4c7a3f; border: 1px solid #4c7a3f; }
  #applyDisplayBtn:hover { background: #eef3e5; }
  #sbSection { display: flex; }
  #searchBtn { margin-top: 16px; width: 100%; box-sizing: border-box; font-size: 1.3em; padding: 14px 20px; flex: 1; }

  .advancedSettingsToggleBtn {
    background: #fff;
    color: #4c7a3f;
    border: 1px solid #4c7a3f;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    margin: 4px 0 4px 0;
  }
  .advancedSettingsToggleBtn:hover { background: #eef3e5; }
  .advancedSettingsGroup {
    padding: 10px 14px;
    background: #f4f7ee;
    border: 1px solid #d7e0c8;
    border-radius: 6px;
  }
  .advancedSettingsGroup h3 { margin: 0 0 6px 0; font-size: 14px; color: #33512b; }
  .groupTitleRow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
  .groupTitleRow h3 { margin: 0; }
  #genreFilterGroup { margin-top: 10px; }
  .advancedSettingsRow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
  #genreFilterButtons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
  .genreToggleBtn {
    background: #fff;
    color: #33512b;
    border: 2px solid #8a9a7a;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
  }
  .genreToggleBtn:hover { background: #eef3e5; }
  .genreToggleBtnActive {
    background: #eef3e5;
    color: #33512b;
    border-color: #4c7a3f;
  }
  .genreToggleBtnActive:hover { background: #dde8cb; }
