* { box-sizing: border-box; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f1f5f9; margin: 0; padding: 24px 16px 48px; color: #111827;
  }
  h1 { font-size: 24px; font-weight: 700; text-align: center; margin: 0 0 8px; }
  .subtitle { text-align: center; color: #6b7280; font-size: 14px; margin: 0 0 28px; }
  form {
    max-width: 520px; margin: 0 auto; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
  .required::after { content: " *"; color: #dc2626; }
  input[type="text"], input[type="url"] {
    width: 100%; padding: 10px 12px; font-size: 15px;
    border: 1px solid #d1d5db; border-radius: 8px;
    outline: none; background: #fff; color: inherit;
    margin-bottom: 16px; font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  input[type="text"]:focus, input[type="url"]:focus {
    border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  }
  .hint { font-size: 12px; color: #9ca3af; margin: -12px 0 16px; }
  .drop {
    border: 2px dashed #d1d5db; border-radius: 10px;
    padding: 20px; text-align: center; cursor: pointer;
    background: #fafafa; transition: border-color 0.15s, background 0.15s;
    margin-bottom: 16px;
  }
  .drop:hover, .drop.over { border-color: #2563eb; background: #eff6ff; }
  .drop input { display: none; }
  .drop-text { font-size: 14px; color: #6b7280; }
  .drop-text strong { color: #2563eb; }
  .drop-hint { font-size: 12px; color: #9ca3af; margin-top: 6px; }
  .preview { margin-top: 12px; display: none; text-align: center; }
  .preview.show { display: block; }
  .preview img {
    max-width: 160px; max-height: 160px; border-radius: 8px;
    border: 1px solid #e5e7eb; background: #fff;
    object-fit: contain;
  }
  .file-info { font-size: 12px; color: #6b7280; margin-top: 8px; word-break: break-all; }
  .file-info.clear { color: #065f46; }
  button {
    width: 100%; min-height: 46px; padding: 12px 16px;
    font-size: 15px; font-weight: 600; color: white;
    background: #2563eb; border: none; border-radius: 8px;
    cursor: pointer; font-family: inherit;
    transition: background 0.15s, transform 0.1s;
  }
  button:hover:not(:disabled) { background: #1d4ed8; }
  button:active:not(:disabled) { transform: scale(0.98); }
  button:disabled { background: #93c5fd; cursor: wait; }
  .message {
    margin: 0 0 16px; padding: 12px 14px; border-radius: 8px;
    font-size: 14px; line-height: 1.4; display: none;
  }
  .message.show { display: block; }
  .message.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
  .message.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .progress { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; margin-top: 12px; display: none; }
  .progress.show { display: block; }
  .progress-bar { height: 100%; background: #2563eb; width: 0%; transition: width 0.2s ease; }

.hidden { display: none !important; }
