/* Портал снимков: страницы для пациента и сотрудника. Светлые и спокойные —
   пациент открывает их с телефона, часто в коридоре клиники. */

:root {
  --ink: #16202e;
  --muted: #6b7889;
  --line: #e3e8ef;
  --bg: #f6f8fb;
  --card: #fff;
  --accent: #1d4ed8;
  --accent-soft: #eef3ff;
  --ok: #0f766e;
  --warn: #b45309;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.top b {
  font-weight: 600;
  letter-spacing: .01em;
}

.top .sp {
  margin-left: auto;
}

.top a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.top a:hover {
  color: var(--accent);
}

h1 {
  font-size: 23px;
  font-weight: 600;
  margin: 22px 0 4px;
  letter-spacing: -.01em;
}

.sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.study {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.study .info {
  flex: 1;
  min-width: 180px;
}

.study .name {
  font-weight: 500;
}

.study .meta {
  color: var(--muted);
  font-size: 14px;
}

.btn {
  appearance: none;
  display: inline-block;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 9px 16px;
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.07);
}

.btn.ghost {
  background: var(--card);
  color: var(--accent);
}

.btn.quiet {
  background: var(--card);
  color: var(--muted);
  border-color: var(--line);
}

.btn:disabled {
  opacity: .5;
  cursor: default;
}

.note {
  background: var(--accent-soft);
  border: 1px solid #dbe6ff;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 15px;
  margin-bottom: 18px;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.gone {
  color: var(--warn);
  font-size: 14px;
}

input[type="text"],
input[type="search"],
input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  font: inherit;
  background: var(--card);
  color: var(--ink);
}

input:focus {
  outline: 2px solid #c7d7ff;
  border-color: var(--accent);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f1f4f9;
  font-weight: 500;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.link-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.link-box input {
  font: 400 14px/1.4 Geist Mono, ui-monospace, monospace;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
}

.tag.off {
  background: #fdecec;
  color: #b42318;
}

.foot {
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .wrap {
    padding: 16px 13px 50px;
  }

  h1 {
    font-size: 20px;
  }

  .btn {
    padding: 10px 14px;
  }
}
