/* ИИ-1 демо: чисто, спокойно, тап-паттерн (продукт живёт и на телефоне) */
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 -apple-system, "Segoe UI", Roboto, sans-serif;
       color: #1c2733; background: #f4f6f8; }
main { max-width: 1280px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; display: flex; gap: 12px; align-items: center; }
a { color: #0a5ac4; text-decoration: none; }
.muted { color: #7a8794; font-size: 13px; }
.err { color: #b3261e; }

.topnav { display: flex; gap: 18px; align-items: center; background: #fff;
          padding: 10px 16px; border-bottom: 1px solid #e2e7ec; }
.topnav .brand { font-weight: 600; }
.topnav .right, .vhead .right { margin-left: auto; }
.demo-badge { font-size: 11px; background: #eef3fb; color: #0a5ac4;
              padding: 1px 7px; border-radius: 9px; vertical-align: middle; }

.btn { display: inline-block; background: #0a5ac4; color: #fff; border: 0;
       padding: 8px 16px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn:disabled { background: #b9c4cf; cursor: default; }
.btn.ghost { background: #fff; color: #0a5ac4; border: 1px solid #0a5ac4; }
button { font: inherit; }

/* логин */
.login-body { display: grid; place-items: center; min-height: 100vh; background: #f4f6f8; }
.login-card { background: #fff; padding: 32px; border-radius: 14px; width: 320px;
              box-shadow: 0 4px 20px rgba(20, 40, 60, .08); display: grid; gap: 12px; }
.login-card h1 { font-size: 19px; margin: 0; }
.login-card input { padding: 10px; border: 1px solid #cfd8e0; border-radius: 8px; }
.login-card button { background: #0a5ac4; color: #fff; border: 0; padding: 11px;
                     border-radius: 8px; cursor: pointer; }

/* пакеты */
.upload-card { background: #fff; border: 1px solid #e2e7ec; border-radius: 12px;
               padding: 16px; display: grid; gap: 10px; max-width: 520px; margin-bottom: 20px; }
.upload-card input[type=text], .upload-card input:not([type]) {
  padding: 9px; border: 1px solid #cfd8e0; border-radius: 8px; }
.upload-card button { background: #0a5ac4; color: #fff; border: 0; padding: 11px;
                      border-radius: 8px; cursor: pointer; }
.jobs-table { width: 100%; border-collapse: collapse; background: #fff;
              border-radius: 12px; overflow: hidden; }
.jobs-table th, .jobs-table td { text-align: left; padding: 10px 14px;
                                 border-bottom: 1px solid #eef1f4; }
.badge { padding: 3px 10px; border-radius: 10px; font-size: 13px; }
.b-proc { background: #fff4d6; } .b-ready { background: #e1efff; }
.b-done { background: #e2f6e5; } .b-err { background: #fde3e1; }

/* верификация */
.vhead { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.vgrid { display: grid; grid-template-columns: 5fr 7fr; gap: 14px; align-items: start; }
.checklist { max-height: calc(100vh - 130px); overflow-y: auto; padding-right: 4px; }
.grp { background: #fff; border: 1px solid #e2e7ec; border-radius: 12px;
       margin: 0 0 12px; padding: 8px 12px 12px; }
.grp legend { font-weight: 600; font-size: 13px; color: #46525e; padding: 0 6px; }
.oprow { display: flex; gap: 10px; flex-wrap: wrap; }
.oprow label { display: grid; gap: 3px; font-size: 13px; color: #46525e; }
.oprow input { padding: 8px; border: 1px solid #cfd8e0; border-radius: 8px; width: 140px; }

.step { border-left: 4px solid #c7cfd6; border-radius: 6px; padding: 6px 8px; margin: 8px 0; }
.step .steph { display: flex; gap: 8px; align-items: baseline; }
.step .steph label { font-size: 13px; color: #46525e; font-weight: 600; }
.step .why { font-size: 12px; color: #9a6b00; }
.steprow { display: flex; gap: 6px; margin-top: 4px; }
.steprow input { flex: 1; padding: 9px; border: 1px solid #cfd8e0; border-radius: 8px;
                 min-width: 0; }
.steprow button { border: 1px solid #cfd8e0; background: #fff; border-radius: 8px;
                  padding: 0 10px; cursor: pointer; }
.steprow .ok { color: #1d7a2f; font-weight: 700; }
.steprow .unread { color: #8b1e14; font-size: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #c7cfd6; flex: none;
       align-self: center; }
.s-yellow { border-left-color: #e5a800; background: #fffaf0; }
.s-yellow .dot { background: #e5a800; }
.s-red { border-left-color: #d3372c; background: #fff5f4; }
.s-red .dot { background: #d3372c; }
.s-green { border-left-color: #2e9e44; background: #f4fbf5; }
.s-green .dot { background: #2e9e44; }
.s-unread { border-left-color: #8b1e14; background: #f6f1f0; opacity: .8; }
.s-unread .dot { background: #8b1e14; }
.keyshelp { margin: 4px 2px; }

.docpane { position: sticky; top: 10px; max-height: calc(100vh - 130px);
           overflow: auto; background: #2b3540; border-radius: 12px; padding: 10px; }
.docpane img { display: block; width: 100%; margin: 0 auto 10px; border-radius: 4px; }
.doctools { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px;
            align-items: center; padding-bottom: 8px; }
.doctools button { width: 34px; height: 30px; border: 0; border-radius: 6px; cursor: pointer; }
.doctools .muted { color: #b9c4cf; }

/* реестр */
.tscroll { overflow-x: auto; background: #fff; border-radius: 12px; }
.reg-table { border-collapse: collapse; font-size: 13px; min-width: 1400px; }
.reg-table th, .reg-table td { border: 1px solid #eef1f4; padding: 6px 9px;
                               text-align: left; vertical-align: top; }
.reg-table th { background: #f6f8fa; position: sticky; top: 0; }
.notes-list { background: #fff; border-radius: 12px; padding: 14px 14px 14px 34px; }
.notes-list li { margin: 4px 0; }

.about { background: #fff; border-radius: 12px; padding: 22px 26px; max-width: 800px; }
.about h1 { font-size: 21px; } .about h2 { font-size: 17px; margin-top: 22px; }

/* телефон/планшет — просмотр (решение заказчика: загрузка только с компьютера) */
@media (max-width: 900px) {
  .vgrid { grid-template-columns: 1fr; }
  .docpane, .checklist { max-height: none; position: static; }
  .steprow button { padding: 8px 12px; }
}
