    *,
    *::before,
    *::after {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    :root {
      --font: var(--font-family-base, "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
      --accent: #ff5a00;
      --accent2: #ff5000;
      --radius: 16px;
      --radius-sm: 11px;
      --bg: #f4f5f7;
      --surface: #ffffff;
      --border: rgba(17, 17, 17, 0.10);
      --text: #111111;
      --muted: rgba(17, 17, 17, 0.42);
      --danger: #ff3b30;
      --green: #1f8f4d;
    }

    html,
    body {
      min-height: 100%;
    }

    .dr-root {
      font-family: var(--font);
      -webkit-font-smoothing: antialiased;
      color: var(--text);
      max-width: 680px;
      margin: 0 auto;
      padding-bottom: 40px;
    }

    .dr-sub {
      margin: 0 0 20px;
      font-size: 14px;
      line-height: 1.45;
    }

    .topbar {
      display: flex;
      align-items: center;
      margin-bottom: 18px;
    }

    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 16px;
      font-weight: 600;
      color: var(--accent);
      text-decoration: none;
      padding: 6px 0;
    }

    .mi-header {
      width: 100%;
      margin-bottom: 26px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      text-align: center;
    }

    .mi-logo {
      display: block;
      margin: 0 auto;
      height: 52px;
      width: auto;
      max-width: 58vw;
    }

    .mi-title {
      margin: 0;
      font-size: clamp(24px, 5vw, 30px);
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.03em;
      line-height: 1.05;
    }

    .sub {
      font-size: 14px;
      color: var(--muted);
      margin: 0;
      line-height: 1.4;
    }

    .section {
      background: var(--surface);
      border-radius: var(--radius);
      padding: 20px;
      margin-bottom: 16px;
      box-shadow: 0 1px 4px rgba(17, 17, 17, 0.06);
    }

    .section-title {
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--muted);
      margin: 0 0 16px;
    }

    .field {
      margin-bottom: 14px;
    }

    .field:last-child {
      margin-bottom: 0;
    }

    .field > label {
      display: block;
      font-size: 13px;
      font-weight: 700;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .req {
      color: var(--danger);
      margin-left: 2px;
    }

    input,
    select,
    textarea {
      width: 100%;
      padding: 12px 14px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--bg);
      font-size: 16px;
      font-family: inherit;
      color: var(--text);
      outline: none;
      transition: border-color 0.15s;
      -webkit-appearance: none;
      appearance: none;
    }

    textarea {
      min-height: 108px;
      resize: vertical;
      line-height: 1.45;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--accent);
    }

    input.err {
      border-color: var(--danger);
    }

    .field-hint {
      font-size: 12px;
      color: var(--muted);
      margin-top: 5px;
      line-height: 1.35;
    }

    .field-hint.ok {
      color: var(--green);
    }

    .field-hint.err {
      color: var(--danger);
    }

    .grid2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    @media (max-width: 520px) {
      .grid2 {
        grid-template-columns: 1fr;
      }
    }



    
    .check-options {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
    }
    

    
    .check-option {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      width: 100%;
      padding: 9px 10px;
      border: 1.5px solid var(--border);
      border-radius: 999px;
      background: var(--bg);
      font-size: 14px;
      font-weight: 800;
      color: var(--text);
      cursor: pointer;
      user-select: none;
      transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
    }
    

    
    .check-option input[type="checkbox"] {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
      appearance: none !important;
      -webkit-appearance: none !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    .check-option span::before {
      display: none !important;
      content: none !important;
    }


    .check-option:has(input:checked) {
      border-color: var(--accent);
      background: #fff5eb;
      color: var(--accent);
    }

    .conditional {
      display: none;
    }

    .conditional.show {
      display: block;
    }

    .inline-note {
      background: #fff7ef;
      border: 1.5px solid rgba(255, 90, 0, 0.18);
      border-radius: var(--radius-sm);
      padding: 12px 14px;
      color: rgba(17, 17, 17, 0.70);
      font-size: 13px;
      line-height: 1.5;
      margin-bottom: 14px;
    }

    .attachment-drop {
      border: 2px dashed rgba(17, 17, 17, 0.18);
      border-radius: var(--radius-sm);
      padding: 18px;
      text-align: center;
      background: var(--bg);
      cursor: pointer;
    }

    .attachment-drop strong {
      display: block;
      font-size: 15px;
      margin-bottom: 4px;
    }

    .attachment-drop span {
      font-size: 13px;
      color: var(--muted);
    }

    .attachment-input {
      display: none;
    }

    .attachment-preview {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 12px;
    }

    .attachment-item {
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--bg);
      padding: 8px;
    }

    .attachment-thumb {
      width: 56px;
      height: 56px;
      border-radius: 10px;
      background: #fff;
      border: 1px solid var(--border);
      object-fit: cover;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      flex-shrink: 0;
    }

    .attachment-meta {
      min-width: 0;
      flex: 1;
    }

    .attachment-name {
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .attachment-size {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }

    .attachment-remove {
      border: none;
      background: #fff0f0;
      color: #b00020;
      border-radius: 10px;
      padding: 9px 10px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      width: auto;
    }

    .submit-btn,
    .clear-btn {
      width: 100%;
      padding: 16px;
      border: none;
      border-radius: var(--radius);
      font-size: 17px;
      font-weight: 800;
      font-family: inherit;
      cursor: pointer;
      margin-top: 8px;
    }

    .submit-btn {
      background: var(--accent);
      color: #fff;
    }

    .submit-btn:active {
      background: var(--accent2);
    }

    .submit-btn:disabled {
      background: #ccc;
      cursor: not-allowed;
    }

    .clear-btn {
      background: transparent;
      color: var(--text);
      border: 1.5px solid var(--border);
    }

    .overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      z-index: 100;
      align-items: center;
      justify-content: center;
      padding: 18px;
    }

    .overlay.show {
      display: flex;
    }

    .overlay-box {
      background: var(--surface);
      border-radius: var(--radius);
      padding: 32px 24px;
      max-width: 360px;
      width: 100%;
      text-align: center;
    }

    .overlay-icon {
      font-size: 44px;
      margin-bottom: 12px;
    }

    .overlay-title {
      font-size: 20px;
      font-weight: 800;
      margin: 0 0 8px;
    }

    .overlay-msg {
      font-size: 14px;
      color: var(--muted);
      margin: 0 0 20px;
      line-height: 1.5;
    }

    .overlay-btn {
      display: inline-block;
      padding: 12px 32px;
      background: var(--accent);
      color: #fff;
      border-radius: 12px;
      font-weight: 700;
      font-size: 16px;
      border: none;
      cursor: pointer;
      font-family: inherit;
      width: auto;
    }

    .overlay-btn.secondary {
      background: #f2f2f2;
      color: var(--text);
      border: 1.5px solid var(--border);
    }

    .overlay-btn-row {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .spinner {
      width: 36px;
      height: 36px;
      border: 4px solid #eee;
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
      margin: 0 auto 16px;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .hidden-field {
      position: absolute;
      left: -9999px;
      opacity: 0;
      width: 1px;
      height: 1px;
    }
