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

.reset {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 0;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(120, 120, 128, .14);
  border-radius: 18px;
  padding: 5px;
  margin-bottom: 22px;
}

.mode-tabs button,
.segmented button,
.chips button {
  border: 0;
  min-height: 44px;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, background .16s ease;
}

button:active { transform: scale(.97); }

.mode-tabs button.active,
.segmented button.active,
.chips button.active {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 6px 18px rgba(36, 129, 204, .22);
}

label.section-title {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px;
  box-shadow: var(--shadow);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips button {
  min-width: 56px;
  padding: 0 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.quick-grid button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.quick-grid button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
}

.price-card,
.text-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.price-box input::placeholder,
textarea::placeholder { color: var(--muted); }

.hidden { display: none; }

textarea {
  width: 100%;
  min-height: 88px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}
=

.tags-field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 56px;
  align-items: flex-start;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-field input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  min-width: 140px;
  flex: 1;
}

.tag {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  flex: 0 1 auto;

  padding: 7px 12px;
  border-radius: 999px;

  background: rgba(36,129,204,.12);
  color: var(--accent);

  font-size: 14px;
  font-weight: 500;

  border: none;
  outline: none;
  box-shadow: none;
}

.tag-remove {
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s ease;
}

.tag-remove:hover {
  opacity: 1;
}

.section {
  margin-top: 28px;
}

.mode-tabs button,
.segmented button,
.chips button,
.quick-grid button {
  min-height: 46px;
  font-size: 14px;
}

.price-card,
.text-card {
  padding: 14px;
  border-radius: 20px;
}


.tags-field input {
  min-width: 110px;
  font-size: 16px;
}

.tag {
  max-width: 100%;
  word-break: break-word;
}


.tags-error {
  min-height: 18px;
  margin-top: 6px;
  color: #e5484d;
  font-size: 12px;
  font-weight: 600;
}

#filtersScreen {
    position: fixed;
    inset: 0;
    z-index: 600;
    overflow: hidden;
    background: var(--bg);
}

#filtersScreen main {
    max-width: 800px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
    padding-top: 16px;
}
