:root {
  color-scheme: light;
  --bg: #f7f7f3;
  --panel: #ffffff;
  --ink: #1e2524;
  --muted: #66706d;
  --line: #d9ddd6;
  --accent: #12614f;
  --accent-soft: #e4f2ed;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.4;
}

a {
  color: inherit;
  opacity: 0.84;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 36px;
}

.app-header {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.brand {
  min-width: 0;
}

.brand-title {
  display: block;
  margin: 0;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.08;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.app-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.app-nav a.active {
  color: var(--accent);
  opacity: 1;
}

.search {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

input,
button {
  font: inherit;
  border: 1px solid rgba(127, 127, 127, 0.4);
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: inherit;
}

input {
  width: 100%;
  box-sizing: border-box;
  text-transform: uppercase;
  min-width: 0;
  background: var(--panel);
  padding-left: 34px;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 97, 79, 0.16);
  outline: 0;
}

.search-field::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-57%);
  pointer-events: none;
}

.search-field::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 27px;
  width: 7px;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

button {
  cursor: pointer;
  font-weight: 650;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  min-width: 76px;
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 16px, 1040px);
    padding-top: 12px;
  }

  .app-header {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .brand-title {
    font-size: 23px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media print {
  .app-nav,
  .search {
    display: none;
  }
}
