:root {
  --bg: #f2f4ef;
  --card: #ffffff;
  --ink: #172429;
  --muted: #5b6a6f;
  --line: #d7dfdb;
  --accent: #1f5b55;
  --danger: #a13228;
  --shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(160deg, #f7f9f4, var(--bg));
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", sans-serif;
}

.topbar {
  padding: 1rem 1rem 0.6rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #eef6f3, #f9f5ef);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #9b612d;
}

h1,
h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
}

h1 {
  margin-top: 0.2rem;
}

h2 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.console-link {
  margin-top: 0.55rem;
  display: inline-block;
  appearance: none;
  text-decoration: none;
  color: var(--accent);
  background: #eef5f3;
  border: 1px solid #c3d8d3;
  border-radius: 9px;
  padding: 0.42rem 0.62rem;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.console-link:active {
  transform: translateY(1px);
}

.danger-link {
  color: #8d241c;
  background: #fceeee;
  border-color: #e3b4b0;
}

.mobile-wrap {
  padding: 0.7rem 0.75rem 6rem;
  max-width: 680px;
  margin: 0 auto;
}

.hero-photo {
  margin: 0 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 60%;
}

.hero-photo p {
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  color: #3f5358;
}

.visit-form {
  display: grid;
  gap: 0.7rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 0.34rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd7d2;
  border-radius: 9px;
  padding: 0.58rem 0.6rem;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #9fc7c1;
  border-color: #7ba9a2;
}

input[readonly] {
  background: #f4f8f6;
  color: #3f5257;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.check-item input {
  width: auto;
}

.tips {
  border: 1px dashed #bfd2cd;
  border-radius: 9px;
  padding: 0.55rem;
  background: #f8fcfb;
  margin-bottom: 0.65rem;
}

.tips p {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  color: #34464c;
}

.tips p:last-child {
  margin-bottom: 0;
}

.media-preview {
  border: 1px dashed #bed0cb;
  border-radius: 9px;
  background: #fff;
  padding: 0.58rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.inline-check input {
  width: auto;
}

.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(242, 244, 239, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
}

details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

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

  .hero-photo img {
    height: 145px;
  }
}

.employee-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.42rem 0.8rem;
  background: #1f5a53;
  color: #fff;
  font-size: 0.84rem;
}

.employee-bar button {
  border: 1px solid #7fb8af;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 0.26rem 0.58rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
