:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #1d2428;
  --muted: #617078;
  --line: #d9e0e3;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --soft: #e8f3f1;
  --warning: #8a5a00;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.shell {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.intro {
  padding: 16px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text);
}

.brand-clock {
  position: relative;
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(from 0deg, #0f766e, #3730a3, #0f766e);
  border: 3px solid #0f766e;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fff, 0 4px 12px rgba(29, 36, 40, 0.12);
}

.brand-clock::before,
.brand-clock::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 4px;
  background: #0f766e;
  transform: translateX(-50%);
}

.brand-clock::before {
  top: 4px;
}

.brand-clock::after {
  bottom: 4px;
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 3px;
  background: #1d2428;
  border-radius: 999px;
  transform-origin: bottom center;
}

.clock-hand.hour {
  height: 11px;
  transform: translateX(-50%) rotate(315deg);
}

.clock-hand.minute {
  height: 15px;
  transform: translateX(-50%) rotate(52deg);
}

.clock-centre {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: #3730a3;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.18rem;
}

.lede {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.panel {
  margin-top: 16px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(29, 36, 40, 0.06);
}

.feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feedback h2 {
  margin-bottom: 4px;
}

.feedback p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head p,
.note {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.grid {
  display: grid;
  gap: 14px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: 1.2fr 1fr 1fr;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

label span {
  font-size: 0.9rem;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid #cbd5d9;
  border-radius: 6px;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

button,
.calendar-button,
.feedback-button {
  min-height: 42px;
  padding: 10px 14px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
button:focus-visible,
.calendar-button:hover,
.calendar-button:focus-visible,
.feedback-button:hover,
.feedback-button:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.calendar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #3730a3;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.calendar-button:hover,
.calendar-button:focus-visible {
  color: #fff;
  background: #3730a3;
  border-color: #3730a3;
}

.ghost-button {
  color: var(--accent);
  background: #fff;
  border-color: var(--line);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  color: #fff;
}

.time-strip,
.result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.time-strip > div,
.result > div {
  min-height: 92px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid #c7e4df;
  border-radius: 8px;
}

.time-strip .client-card,
.result .client-card {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.time-strip .client-card strong,
.result .client-card strong {
  color: #3730a3;
}

.time-strip span,
.result span,
.result small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.time-strip strong,
.result strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  line-height: 1.15;
}

.result small {
  margin-top: 8px;
}

.note {
  margin-top: 12px;
  color: var(--warning);
}

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

.status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--accent-dark);
  font-weight: 700;
}

@media (max-width: 720px) {
  .section-head,
  .actions,
  .feedback {
    display: grid;
  }

  .two,
  .three,
  .time-strip,
  .result {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 16px;
  }

  button {
    width: 100%;
  }

  .calendar-button,
  .feedback-button {
    width: 100%;
  }
}
