:root {
  --ink: #17202a;
  --text: #344054;
  --muted: #667085;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --line: #d8dee8;
  --blue: #0b6f85;
  --green: #247a4d;
  --yellow: #9a6b08;
  --red: #b42318;
  --shadow: 0 24px 60px rgba(17, 24, 39, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(130deg, rgba(11, 111, 133, .16), rgba(36, 122, 77, .08)), var(--soft);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
h1, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 7vw, 72px) 0;
}

.hero-panel, .card-panel, .admin-panel {
  border: 1px solid rgba(216, 222, 232, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.hero-panel, .card-panel {
  max-width: 760px;
  padding: clamp(28px, 6vw, 56px);
}

.hero-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-panel { padding: clamp(20px, 4vw, 34px); }

.eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary { color: #fff; background: var(--blue); }
.button.secondary { color: var(--blue); background: #e8f5f8; }
.button.danger { color: #fff; background: var(--red); }
.button.wide { width: 100%; min-height: 58px; font-size: 18px; }

.notice {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.notice.success { color: var(--green); background: #eaf6ef; }
.notice.warning { color: var(--yellow); background: #fff8e6; }
.notice.error { color: var(--red); background: #feeceb; }

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.details div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

dt { color: var(--muted); font-size: 13px; font-weight: 800; }
dd { margin: 4px 0 0; color: var(--ink); font-weight: 800; }

.access-form, .admin-form {
  display: grid;
  gap: 14px;
}

.access-form label, .admin-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

#pin {
  min-height: 58px;
  font-size: 26px;
  text-align: center;
}

.support {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.success-panel h1 { color: var(--green); }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-header h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 44px);
}

.admin-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.table-wrap {
  width: 100%;
  margin-top: 22px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

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

th {
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

td span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.copy-field {
  min-width: 300px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .admin-form, .details { grid-template-columns: 1fr; }
  .admin-header { align-items: flex-start; flex-direction: column; }
}
