:root {
    --primary: #5360fd;
    --secondary: #eef2fa;
    --accent: #e1e7fa;
    --error: #e6484f;
    --radius: 8px;
    --shadow: 0 2px 12px 0 rgba(83,96,253,0.03), 0 1px 4px 0 rgba(0,0,0,0.06);
  }
  body {
    margin: 0; background: var(--secondary); color: #222;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif; font-size: 1.06rem;
  }
  .container {
    max-width: 480px;
    margin: 32px auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.5rem 1rem 1.5rem;
  }
  header { margin-bottom: 1.2rem; }
  header h1 { font-size: 2rem; }
  .card {
    background: var(--accent);
    padding: 1.2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
  }
  .mode-switch { margin-bottom: .7rem; display: flex; gap: .5rem;}
  .mode-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .5em 1.25em;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s;
    opacity: 0.8;
  }
  .mode-btn.active { background: #3540f7; opacity: 1;}
  .requirements { margin-bottom: 1rem; background: #f6f8fd; padding: .6rem; border-radius: var(--radius); color: #4860c5;}
  .requirements ul { margin:0; padding-left:1.2em;}
  .form-row { margin-bottom: .8rem; display: flex; align-items: center; gap:.8em;}
  .form-row label { flex: 1; min-width: 88px; }
  .form-row input, .form-row select {
    flex:2;
    padding: .5em .55em;
    border: 1px solid #cfd7e7; border-radius: var(--radius);
    background: #fff; font-size: 1rem;
  }
  .file-row input[type=file] { display: none; }
  .upload-label {
    display: inline-block;
    border: 1px solid var(--primary);
    background: #f2f3fd;
    border-radius: var(--radius);
    padding: .55em 1em;
    cursor: pointer;
    color: #5360fd;
    font-weight: 500;
  }
  .error-msg {
    color: var(--error);
    margin-bottom: .5rem;
    font-size: 0.97rem;
    min-height: 1em;
  }
  .preview-card { text-align: center;}
  .preview-images { display:flex; gap:.78em; justify-content: center; }
  .preview-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid #d6def8;
    background:#f6f8fd;
    box-shadow: var(--shadow);
    margin-bottom:.3em;
  }
  .preview-card p { margin-bottom:0.2em;}
  .result-meta {
    color: #6868a0;
    font-size: 0.98em;
  }
  .result-info { margin:0.7em auto; color:#232485; font-size:1.05rem;}
  .main-btn, .secondary-btn {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    letter-spacing:0.03em;
    font-size: 1.09rem;
    margin-top:.7em;
  }
  .main-btn {
    background: var(--primary); color:#fff; border:none;
    padding: .55em 1.4em; cursor:pointer;
  }
  .secondary-btn {
    background: #f2f2f8; color: #5360fd; border:none;
    padding: .48em 1.2em; cursor:pointer;
    margin-left:.4em;
  }
  footer { padding-top:.7em; margin-top:1.1em; text-align: center; font-size: 0.93rem; color:#6c76a5;}
  .hidden { display: none !important;}
  @media (max-width: 600px) {
    .container {padding:1rem;}
    .preview-img {width:80px; height:80px;}
  }
  