 
  main {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 16px 32px 16px;  /* padding-top을 header 높이만큼(예: 80px) */
  }
  
  .tool-header {
    text-align: center;
    margin-bottom: 24px;
  }
  .tool-header h1 {
    font-size: 2rem;
    color: #2a7cff;
  }
  .tool-header p {
    color: #555;
  }
  
  .uploader {
    text-align: center;
    margin-bottom: 24px;
  }
  #drop-area {
    border: 2px dashed #2a7cff;
    border-radius: 8px;
    min-height: 80px;
    background: #f0f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    outline: none;
  }
  #drop-area:focus, #drop-area.dragover {
    background: #d0e4ff;
    border-color: #1a5fcc;
  }
  .upload-label {
    display: block;
    color: #2a7cff;
    font-size: 1.1rem;
    padding: 24px 0;
    cursor: pointer;
    background: none;
    border: none;
  }
  .upload-label:hover {
    background: #d0e4ff;
  }
  #drop-area {
    border: 2px dashed #2a7cff;
    border-radius: 8px;
    min-height: 60px;
    margin-top: 12px;
    background: #f0f6ff;
  }
  
  .file-list-section, .result-section {
    margin-top: 24px;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  #file-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
  }
  #file-list li {
    margin-bottom: 6px;
    color: #333;
    word-break: break-all;   /* 추가 */
    /* 또는 word-wrap: break-word; */
    white-space: normal;     /* 혹시 white-space: nowrap;이 있을 경우 normal로 */
    max-width: 100%;
  }
  #result-list, #file-list {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  
  #convert-btn, #download-all-btn {
    background: #2a7cff;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
  }
  #convert-btn:hover, #download-all-btn:hover {
    background: #1a5fcc;
  }
  
  .progress-section {
    margin-top: 24px;
    text-align: center;
  }
  #progress-bar {
    width: 100%;
    height: 12px;
    background: #e6f0ff;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
  }
  #progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: #2a7cff;
    transition: width 0.3s;
    border-radius: 6px;
    position: absolute;
    left: 0; top: 0;
  }
  #progress-bar[data-progress]::after {
    width: attr(data-progress %);
  }
  
  #result-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
  }
  .result-item {
    background: #e6f0ff;
    border-radius: 6px;
    padding: 8px 12px;
    color: #2a7cff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;   /* 추가 */
    /* 또는 word-wrap: break-word; */
    white-space: normal;
    max-width: 100%;
  }
  .result-item a {
    color: #2a7cff;
    text-decoration: underline;
    font-size: 0.95rem;
  }
  
  .howto {
    margin-top: 32px;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .howto h3 {
    margin-top: 0;
    color: #2a7cff;
  }
  .howto ol {
    margin: 0;
    padding-left: 20px;
  }
  .howto li {
    margin-bottom: 6px;
    color: #333;
  }
  
  @media (max-width: 600px) {
    header {
        flex-direction: row;      /* row로 고정 */
        align-items: center;
        padding: 8px 8px;
      }
      .logo {
        font-size: 1.4rem;
      }
      .lang-switch {
        gap: 4px;
        min-width: 60px;
      }
    main {
        padding: 80px 16px 32px 16px;  /* padding-top을 header 높이만큼(예: 80px) */
    }
    .upload-label {
      width: 100%;
      box-sizing: border-box;
    }
    #result-list {
      flex-direction: column;
      gap: 8px;
    }
  }