/* Nataiji – shared teacher/professor PDF/photo import dialog, screen-only.
   These rules affect only the student importer, never other dialogs or reports. */
@media screen {
  html .nataiji-student-import-modal {
    background:rgba(5,32,49,.55)!important;
    padding:12px!important;
    backdrop-filter:blur(5px);
    align-items:center!important;
  }
  html .nataiji-student-import-modal .professor-modal-card {
    width:min(620px,100%)!important;
    max-width:100%!important;
    max-height:min(92dvh,850px)!important;
    overflow:auto!important;
    border-radius:24px!important;
    border:1px solid #d8e9e4!important;
    background:linear-gradient(180deg,#fff,#fcfefd)!important;
    box-shadow:0 22px 65px rgba(4,40,54,.22)!important;
    overscroll-behavior:contain;
  }
  html .nataiji-student-import-modal .professor-modal-card>header {
    position:sticky!important;
    top:0!important;
    z-index:4!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin:0!important;
    padding:16px 19px!important;
    border-bottom:1px solid #e5efec!important;
    background:rgba(255,255,255,.98)!important;
    border-radius:24px 24px 0 0!important;
  }
  html .nataiji-student-import-modal .nti-heading {
    display:flex;align-items:center;gap:11px;min-width:0;
  }
  html .nataiji-student-import-modal .nti-heading-icon {
    display:grid;place-items:center;
    flex:0 0 43px;width:43px;height:43px;
    border-radius:13px;background:#e6f6ef;color:#0b8b71;
  }
  html .nataiji-student-import-modal .nti-heading-icon svg {
    width:23px;height:23px;
  }
  html .nataiji-student-import-modal .nti-heading small {
    display:block;color:#6a817d;font-size:11px;font-weight:650;margin-bottom:2px;
  }
  html .nataiji-student-import-modal #nti-import-title {
    color:#10384b!important;font-size:19px!important;line-height:1.35!important;margin:0!important;
    text-align:start!important;
  }
  html .nataiji-student-import-modal [data-close] {
    flex:0 0 38px;width:38px;height:38px;padding:0!important;
    border:1px solid #dce9e7!important;border-radius:12px!important;
    color:#385962!important;background:#f9fbfa!important;
    font-size:23px!important;line-height:1!important;
  }
  html .nataiji-student-import-modal .professor-modal-body {
    padding:17px 19px 20px!important;
    display:grid!important;
    gap:13px!important;
    direction:inherit;
  }
  html .nataiji-student-import-modal .nti-steps {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;
    margin:1px 0 3px;
  }
  html .nataiji-student-import-modal .nti-steps>div {
    display:flex;align-items:center;justify-content:center;gap:6px;
    min-width:0;min-height:42px;
    border-radius:12px;border:1px solid #e5edeb;background:#f6f9f8;
    color:#768987;font-size:11px;font-weight:750;text-align:center;
    padding:7px 5px;
  }
  html .nataiji-student-import-modal .nti-steps b {
    display:grid;place-items:center;flex:0 0 22px;
    height:22px;width:22px;border-radius:8px;
    background:#e9eeed;color:#67827a;font-size:12px;
  }
  html .nataiji-student-import-modal .nti-steps>div.is-current {
    border-color:#a9dccc;background:#eaf8f2;color:#0a8068;
  }
  html .nataiji-student-import-modal .nti-steps>div.is-current b {
    background:#0a8c72;color:#fff;
  }
  html .nataiji-student-import-modal .nti-intro {
    color:#516d77;font-size:12.8px;font-weight:500;line-height:1.75;
    margin:0!important;
  }
  html .nataiji-student-import-modal .nti-upload-grid {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  }
  html .nataiji-student-import-modal .nti-upload-choice {
    display:flex!important;position:relative!important;
    flex-direction:column;align-items:center;justify-content:center;
    gap:7px!important;min-width:0;min-height:141px;
    padding:15px 10px!important;
    border:1px dashed #a8d5c9!important;border-radius:16px!important;
    background:linear-gradient(145deg,#f7fcfa,#eef9f4)!important;
    color:#17445a!important;
    text-align:center!important;
    cursor:pointer;touch-action:manipulation;
  }
  html .nataiji-student-import-modal .nti-upload-choice:nth-child(2) {
    border-color:#c7ddeb!important;background:linear-gradient(145deg,#fbfdff,#f0f8fc)!important;
  }
  html .nataiji-student-import-modal .nti-upload-icon {
    display:grid;place-items:center;width:38px;height:38px;
    background:#dcf4e9;border-radius:12px;color:#0a8b70;
  }
  html .nataiji-student-import-modal .nti-upload-choice:nth-child(2) .nti-upload-icon {
    background:#e1f1fb;color:#2479ad;
  }
  html .nataiji-student-import-modal .nti-upload-icon svg {
    width:22px;height:22px;
  }
  html .nataiji-student-import-modal .nti-upload-choice strong {
    font-size:13px;font-weight:800;line-height:1.4;
  }
  html .nataiji-student-import-modal .nti-upload-choice small {
    color:#708a90;font-size:10.5px;line-height:1.4;font-weight:500;
  }
  html .nataiji-student-import-modal .nti-upload-choice input[type=file] {
    position:absolute!important;inset:0!important;
    height:100%!important;width:100%!important;
    opacity:0!important;cursor:pointer!important;
    padding:0!important;margin:0!important;
  }
  html .nataiji-student-import-modal .nti-upload-choice:focus-within {
    outline:3px solid #249a7f;outline-offset:2px;
  }
  html .nataiji-student-import-modal .nti-upload-choice:active {
    background:#e7f7ef!important;
  }
  html .nataiji-student-import-modal .nti-upload-choice output {
    max-width:100%;overflow-wrap:anywhere;
    color:#0a806a;font-size:10.5px;font-weight:750;
  }
  html .nataiji-student-import-modal .nti-helper {
    margin:0!important;padding:10px 12px;
    background:#f5faf8;border:1px solid #e2ede9;
    border-radius:12px;color:#667d79;font-size:11.5px;line-height:1.65;
  }
  html .nataiji-student-import-modal .nti-cloud-disclosure {
    padding:11px 12px;background:#fffaf0;border:1px solid #f1dfb8;
    color:#6c5934;border-radius:12px;
  }
  html .nataiji-student-import-modal .nti-cloud-disclosure[hidden] {
    display:none!important;
  }
  html .nataiji-student-import-modal .nti-cloud-disclosure label {
    display:flex!important;flex-direction:row!important;align-items:flex-start;
    gap:9px;font-size:11.5px;line-height:1.6;font-weight:600;
  }
  html .nataiji-student-import-modal .nti-cloud-disclosure input {
    width:17px!important;height:17px!important;flex:none;margin:2px 0 0!important;
    accent-color:#0a9478;
  }
  html .nataiji-student-import-modal .nti-status {
    margin:0!important;color:#446b69;font-size:11.5px;line-height:1.5;
  }
  html .nataiji-student-import-modal .nti-status:empty {
    display:none;
  }
  html .nataiji-student-import-modal .nti-text-field {
    display:grid!important;gap:7px!important;
    color:#24475b!important;font-size:12.5px!important;font-weight:800!important;
  }
  html .nataiji-student-import-modal [data-text] {
    display:block;width:100%!important;min-height:105px;
    box-sizing:border-box;border:1px solid #d2e3e1!important;
    border-radius:13px!important;background:#fbfdfd!important;
    padding:12px!important;font:inherit;font-size:13px!important;line-height:1.6;
    resize:vertical;
  }
  html .nataiji-student-import-modal .nti-review-button,
  html .nataiji-student-import-modal .nti-save-button {
    display:flex;align-items:center;justify-content:center;gap:9px;
    min-height:49px;width:100%;
    border-radius:13px!important;font-size:13px!important;font-weight:850!important;
  }
  html .nataiji-student-import-modal .nti-review-button {
    color:#fff!important;background:linear-gradient(125deg,#0b997b,#087964)!important;
    border-color:#098a70!important;
    box-shadow:0 7px 17px rgba(7,122,96,.14)!important;
  }
  html .nataiji-student-import-modal .nti-save-button[hidden] {
    display:none!important;
  }
  html .nataiji-student-import-modal .nti-review-list {
    display:grid;gap:10px;
  }
  html .nataiji-student-import-modal .nti-review-list [data-row] {
    display:grid;gap:10px;padding:13px!important;
    background:#fff;border:1px solid #e0ebe8!important;
    border-radius:15px;box-shadow:0 4px 13px rgba(8,43,75,.035);
  }
  html .nataiji-student-import-modal .nti-review-list label {
    min-width:0;font-size:11.5px!important;color:#2b4b56;
  }
  html .nataiji-student-import-modal .nti-review-list input:not([type=checkbox]) {
    padding:9px 10px!important;font-size:12.5px!important;
    background:#fbfdfc!important;border-radius:10px!important;
    min-width:0;
  }
  html .nataiji-student-import-modal .nti-review-list select,
  html .nataiji-student-import-modal .nti-review-list input[type=date],
  html .nataiji-student-import-modal .nti-review-list input[type=tel] {
    display:block;width:100%;min-height:40px;box-sizing:border-box;
    border:1px solid #d4e4e0;border-radius:10px;background:#fbfdfc;
    color:#24475b;padding:9px 10px;font-size:12.5px;
  }
  html .nataiji-student-import-modal .nti-review-list [data-row] small {
    color:#5e7978;line-height:1.55;
  }
  html .nataiji-student-import-modal .nti-review-list input[type=checkbox] {
    flex:none;width:18px!important;height:18px!important;
    padding:0!important;margin:0 0 0 6px!important;
    accent-color:#0a8c72;
  }
  html .nataiji-student-import-modal .nti-review-list label:has(input[type=checkbox]) {
    display:flex!important;align-items:center!important;justify-content:flex-start!important;
    gap:6px!important;
  }
  html .nataiji-student-import-modal .nti-review-list [data-regenerate] {
    width:auto;justify-self:start;font-size:11.5px!important;
    padding:8px 12px!important;border-radius:10px!important;
    background:#eaf7f1!important;border-color:#cce7dc!important;color:#0d7d69!important;
  }
  html .nataiji-student-import-modal button:focus-visible,
  html .nataiji-student-import-modal textarea:focus-visible {
    outline:3px solid #179679;outline-offset:3px;
  }
  @media(max-width:640px){
    html .nataiji-student-import-modal {
      padding:8px!important;align-items:center!important;
    }
    html .nataiji-student-import-modal .professor-modal-card {
      width:100%!important;max-width:100%!important;max-height:94dvh!important;
      border-radius:21px!important;
    }
    html .nataiji-student-import-modal .professor-modal-card>header {
      padding:12px 14px!important;border-radius:21px 21px 0 0!important;
    }
    html .nataiji-student-import-modal #nti-import-title {
      font-size:16.5px!important;
    }
    html .nataiji-student-import-modal .professor-modal-body {
      padding:12px 13px calc(17px + env(safe-area-inset-bottom))!important;
      gap:12px!important;
    }
    html .nataiji-student-import-modal .nti-steps {
      gap:4px;
    }
    html .nataiji-student-import-modal .nti-steps>div {
      flex-direction:column;gap:4px;min-height:52px;
      font-size:10px;padding:5px 3px;
    }
    html .nataiji-student-import-modal .nti-upload-grid {
      gap:8px;
    }
    html .nataiji-student-import-modal .nti-upload-choice {
      min-height:120px;padding:10px 6px!important;
    }
    html .nataiji-student-import-modal .nti-upload-choice strong {
      font-size:11.5px;
    }
  }
  @media(max-width:350px){
    html .nataiji-student-import-modal .nti-upload-grid {
      grid-template-columns:1fr;
    }
    html .nataiji-student-import-modal .nti-upload-choice {
      min-height:85px;
    }
  }
  @media(prefers-reduced-motion:reduce) {
    html .nataiji-student-import-modal * {
      scroll-behavior:auto!important;transition:none!important;
    }
  }
}

/* Clear one-tap OCR method selection after choosing a photo.
   No automatic upload to the cloud. */
@media screen {
  html .nataiji-student-import-modal .nti-reading-choice {
    display:grid;gap:10px;padding:14px 13px;
    border:1px solid #cfebe0;border-radius:17px;
    background:linear-gradient(145deg,#fbfefc,#effaf5);
    color:#1b4651;box-shadow:0 5px 16px rgba(14,103,83,.045);
  }
  html .nataiji-student-import-modal .nti-reading-choice[hidden] {
    display:none!important;
  }
  html .nataiji-student-import-modal .nti-reading-choice > strong {
    font-size:15px;font-weight:850;
  }
  html .nataiji-student-import-modal .nti-reading-hint {
    margin:0!important;color:#52736d;
    font-size:12px;line-height:1.5;
  }
  html .nataiji-student-import-modal .nti-smart-choice {
    width:100%;min-height:53px;
    display:flex;align-items:center;justify-content:center;
    padding:11px 13px!important;
    border:1px solid #0c8e74!important;
    border-radius:13px!important;
    background:linear-gradient(115deg,#0b9479,#067964)!important;
    color:white!important;
    box-shadow:0 9px 20px rgba(8,131,106,.17)!important;
    font-weight:850!important;font-size:13px!important;
    line-height:1.4!important;text-align:center!important;
    white-space:normal;
  }
  html .nataiji-student-import-modal .nti-smart-disclosure {
    margin:0!important;padding:9px 11px;
    border:1px solid #dbeae5;border-radius:10px;
    background:#fff;color:#4d6871;
    font-size:11px;line-height:1.65;
  }

  html .nataiji-student-import-modal .nti-smart-choice:focus-visible {
    outline:3px solid #0d9478;outline-offset:3px;
  }
  @media(max-width:640px) {
    html .nataiji-student-import-modal .nti-reading-choice {
      gap:9px;padding:12px;
    }
    html .nataiji-student-import-modal .nti-smart-choice {
      min-height:56px;font-size:12.5px!important;
    }
  }
}
/* Compact file/camera cards in both teacher and professor contexts. */
@media screen {
 html .nataiji-student-import-modal .nti-heading-icon svg {display:block!important;width:23px!important;height:23px!important;max-width:23px!important;max-height:23px!important}
 html .nataiji-student-import-modal .nti-upload-icon svg {display:block!important;width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important}
 html .nataiji-student-import-modal .nti-upload-choice {flex-direction:row!important;justify-content:flex-start!important;text-align:start!important;gap:10px!important;min-height:100px!important;padding:13px 11px!important}
 html .nataiji-student-import-modal .nti-upload-icon {flex:0 0 38px!important}
 html .nataiji-student-import-modal .nti-upload-copy {min-width:0;flex:1;display:grid;gap:3px;align-content:center}
 html .nataiji-student-import-modal .nti-upload-copy strong,html .nataiji-student-import-modal .nti-upload-copy small {display:block;overflow-wrap:anywhere;min-width:0}
 html .nataiji-student-import-modal .nti-upload-choice output:not(:empty) {position:absolute;bottom:3px;inset-inline:11px;max-width:calc(100% - 22px);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:start}
 html .nataiji-student-import-modal .nti-upload-choice:has(output:not(:empty)) {padding-bottom:23px!important}
 html .nataiji-student-import-modal [data-file],html .nataiji-student-import-modal [data-camera] {display:block!important;opacity:0!important}
 @media(max-width:640px){html .nataiji-student-import-modal .nti-upload-choice{min-height:91px!important;padding:11px 9px!important;gap:7px!important}html .nataiji-student-import-modal .nti-upload-icon{flex-basis:34px!important;width:34px!important;height:34px!important}html .nataiji-student-import-modal .nti-upload-copy strong{font-size:11.5px!important;line-height:1.45!important}html .nataiji-student-import-modal .nti-upload-copy small{font-size:10px!important}}
 @media(max-width:350px){html .nataiji-student-import-modal .nti-upload-choice{min-height:77px!important}}
}
