:root {
  color-scheme: light;
  --ink: #1f2524;
  --muted: #6f6861;
  --line: #e5cdbf;
  --paper: #fff7ed;
  --panel: #fffaf3;
  --tile-blue: #087489;
  --tile-blue-2: #10a9b5;
  --turquoise: #20c4c7;
  --rose-gold: #bd7f73;
  --rose-gold-2: #e4b7a9;
  --deep-rose: #7f4c4b;
  --charcoal: #203331;
  --pearl: #fff8f2;
  --shadow: 0 22px 70px rgba(43, 35, 31, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(32, 196, 199, 0.18), transparent 28rem),
    linear-gradient(315deg, rgba(228, 183, 169, 0.56), transparent 34rem),
    linear-gradient(135deg, #fff4e8 0%, #fffaf3 42%, #effffc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  /* LOCKED REMEYA TILE: square repeat. Do not change shape without user approval. */
  background-image: url("tile-pattern-main.svg");
  background-position: 0 0;
  background-size: 360px 360px;
  pointer-events: none;
}

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

.gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(32, 51, 49, 0.72), rgba(32, 51, 49, 0.72)),
    linear-gradient(135deg, rgba(24, 183, 188, 0.22), rgba(189, 127, 115, 0.26));
  backdrop-filter: blur(10px);
}

.gate.is-hidden {
  display: none;
}

.gate__panel {
  width: min(680px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 250, 245, 0.72);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.gate__panel::before {
  content: "";
  display: block;
  height: 8px;
  margin: -34px -34px 26px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--rose-gold), var(--turquoise), var(--rose-gold-2));
}

.gate__panel h1,
.topbar h2 {
  margin: 0;
  letter-spacing: 0;
}

.gate__panel p {
  color: var(--muted);
  line-height: 1.6;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 318px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-right: 1px solid rgba(255, 250, 245, 0.18);
  background:
    linear-gradient(180deg, rgba(11, 75, 83, 0.72), rgba(9, 92, 101, 0.84)),
    linear-gradient(135deg, rgba(255, 250, 245, 0.09), transparent 18rem),
    linear-gradient(180deg, #0b7e8c, #0a6f7b);
  color: var(--pearl);
  overflow-y: auto;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  /* LOCKED REMEYA TILE: inverse square repeat for the turquoise sidebar. */
  background-image: url("tile-pattern-sidebar.svg");
  background-position: center top;
  background-size: 360px 360px;
  pointer-events: none;
}

.sidebar > * {
  position: relative;
}

.brand {
  position: relative;
  display: grid;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.brand::before {
  content: none;
}

.brand::after {
  content: none;
}

.brand > * {
  position: relative;
  z-index: 1;
}

.brand__logo {
  display: block;
  width: min(116%, 322px);
  height: auto;
  max-height: 222px;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: none;
  transform: translateX(-14px);
}

.brand__tagline-wrap {
  width: min(96%, 286px);
  margin: -18px auto 0;
  color: rgba(255, 250, 245, 0.95);
  text-align: center;
}

.brand__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.brand__tagline-line {
  position: relative;
  flex: 1 1 42px;
  max-width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174, 112, 92, 0.95), rgba(255, 250, 245, 0.72));
}

.brand__tagline-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  width: 6px;
  height: 6px;
  background: #a96c58;
  transform: translateY(-50%) rotate(45deg);
}

.brand__tagline-line:first-child {
  transform: scaleX(-1);
}

.brand__tagline-under {
  display: block;
  position: relative;
  width: 48%;
  height: 9px;
  margin: 4px auto 0;
  background:
    linear-gradient(90deg, transparent, rgba(174, 112, 92, 0.9), rgba(255, 250, 245, 0.7), rgba(174, 112, 92, 0.9), transparent) center / 100% 1px no-repeat;
}

.brand__tagline-under::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #a96c58;
  transform: translate(-50%, -50%) rotate(45deg);
}

.publisher-card {
  padding: 12px 14px;
  border: 1px solid rgba(255, 250, 245, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.1);
}

.publisher-card p {
  margin: 0;
  color: rgba(255, 250, 245, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.publisher-card__title {
  margin-bottom: 4px !important;
  color: var(--pearl) !important;
  font-weight: 850;
}

.publisher-card a {
  display: inline-block;
  margin-top: 8px;
  color: var(--pearl);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.publisher-card a:hover {
  text-decoration: underline;
}

.field-label,
.eyebrow {
  margin: 0 0 8px;
  color: var(--deep-rose);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar .field-label {
  color: rgba(255, 250, 245, 0.82);
}

.select,
.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.select {
  padding: 12px 13px;
}

.sidebar .select {
  border-color: rgba(255, 250, 245, 0.28);
  background: rgba(255, 250, 245, 0.97);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.nav__item {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(255, 250, 245, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.1);
  color: rgba(255, 250, 245, 0.88);
  text-align: left;
  cursor: pointer;
}

.nav__item:hover,
.nav__item.is-active {
  border-color: rgba(255, 250, 245, 0.6);
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.26), rgba(228, 183, 169, 0.18));
  color: var(--pearl);
}

.main {
  position: relative;
  padding: 24px clamp(18px, 4vw, 54px) 46px;
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.48), rgba(255, 250, 245, 0.62)),
    radial-gradient(circle at 75% 0, rgba(32, 196, 199, 0.1), transparent 22rem),
    radial-gradient(circle at 18% 16%, rgba(228, 183, 169, 0.12), transparent 26rem);
}

.iznik-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.iznik-band button {
  position: relative;
  isolation: isolate;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 250, 245, 0.92);
  background:
    linear-gradient(90deg, rgba(13, 111, 124, 0.94), rgba(32, 196, 199, 0.7), rgba(189, 127, 115, 0.8));
  box-shadow: 0 8px 22px rgba(43, 35, 31, 0.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  opacity: 0.82;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(43, 35, 31, 0.28);
}

.iznik-band button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iznik-band button small {
  display: inline-grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 250, 245, 0.38);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.16);
  color: rgba(255, 250, 245, 0.94);
  font-size: 11px;
  font-weight: 900;
}

.iznik-band button::before {
  content: "";
  position: absolute;
  inset: -42px -12px;
  z-index: -1;
  /* LOCKED REMEYA TILE: top action bars reuse the same square motif at a smaller scale. */
  background-image: url("tile-pattern-sidebar.svg");
  background-position: center;
  background-size: 156px 156px;
  opacity: 0.44;
  pointer-events: none;
}

.iznik-band button::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 3px;
  height: 2px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 245, 0.5), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.iznik-band button:hover,
.iznik-band button:focus-visible {
  opacity: 1;
  outline: 2px solid rgba(32, 196, 199, 0.35);
  outline-offset: 2px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topbar h2 {
  max-width: 560px;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.16;
  text-wrap: balance;
}

.button {
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(43, 35, 31, 0.08);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, #0a6f7b, #1fb9bf);
}

.button--secondary {
  color: var(--tile-blue);
  border-color: rgba(13, 111, 124, 0.22);
  background: rgba(255, 250, 245, 0.96);
}

.search-panel {
  margin-top: 22px;
  padding: 17px;
  border: 1px solid rgba(189, 127, 115, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 250, 245, 0.98), rgba(255, 250, 245, 0.94)),
    radial-gradient(ellipse at 100% 0, rgba(32, 196, 199, 0.14), transparent 20rem);
  box-shadow: 0 18px 46px rgba(43, 35, 31, 0.1);
}

.search {
  position: relative;
  display: block;
}

.search__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--tile-blue);
  font-size: 20px;
}

.search input {
  min-height: 58px;
  padding: 0 18px 0 48px;
  font-size: 17px;
  background: rgba(255, 253, 249, 0.98);
  outline: none;
}

.search input:focus {
  border-color: var(--tile-blue-2);
  box-shadow: 0 0 0 4px rgba(17, 163, 173, 0.14);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(13, 111, 124, 0.2);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.84);
  color: var(--tile-blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
}

.chip:hover,
.chip.is-active {
  color: #fff;
  background: var(--tile-blue);
}

.view-intro {
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card,
.index-card,
.source-group {
  border: 1px solid rgba(189, 127, 115, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 249, 242, 0.96)),
    linear-gradient(135deg, rgba(32, 196, 199, 0.05), transparent 12rem);
  box-shadow: 0 18px 44px rgba(43, 35, 31, 0.09);
}

.card {
  display: flex;
  min-height: 284px;
  flex-direction: column;
  padding: 18px;
}

.card::before,
.index-card::before,
.source-group::before {
  content: "";
  display: block;
  height: 4px;
  margin: -18px -18px 14px;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255, 250, 245, 0.72) 43% 57%, transparent 58%),
    linear-gradient(90deg, var(--rose-gold), var(--turquoise), var(--rose-gold-2));
}

.card__top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #0a6772;
  background: rgba(24, 183, 188, 0.1);
  font-size: 12px;
  font-weight: 850;
}

.save {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(13, 111, 124, 0.16);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.save.is-saved {
  color: var(--deep-rose);
  background: rgba(189, 127, 115, 0.14);
}

.card h3,
.index-card h3,
.source-group h3 {
  margin: 14px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.card p,
.index-card p,
.source-group p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(189, 127, 115, 0.1);
  color: var(--deep-rose);
  font-size: 12px;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.card__actions .button {
  flex: 1;
}

.index-card,
.source-group {
  padding: 18px;
}

.index-card .button {
  margin-top: 14px;
}

.index-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.index-card__actions .button {
  margin-top: 0;
}

.source-group {
  grid-column: 1 / -1;
}

.source-overview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.55fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(189, 127, 115, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13, 111, 124, 0.94), rgba(18, 91, 101, 0.9)),
    url("tile-pattern-sidebar.svg");
  color: #fff;
  box-shadow: 0 22px 54px rgba(43, 35, 31, 0.16);
}

.source-overview__eyebrow,
.source-group__label {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-overview h3 {
  margin: 8px 0;
  font-size: 28px;
  line-height: 1.1;
}

.source-overview p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.source-overview__stats {
  display: grid;
  gap: 8px;
}

.source-overview__stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.source-overview__stats strong {
  color: #fff;
  font-size: 20px;
}

.source-overview__quality {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-group {
  position: relative;
  overflow: hidden;
}

.source-group__header {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
}

.source-group__label {
  color: var(--deep-rose);
}

.source-group__levels,
.source-group__traditions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-group__levels {
  justify-content: flex-end;
}

.source-group__traditions {
  margin-top: 10px;
}

.source-group__traditions span {
  padding: 5px 8px;
  border: 1px solid rgba(13, 111, 124, 0.14);
  border-radius: 999px;
  color: var(--tile-blue);
  background: rgba(24, 183, 188, 0.08);
  font-size: 12px;
  font-weight: 780;
}

.source-group h4 {
  margin: 18px 0 0;
  color: var(--deep-rose);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-group__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.source-item {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 12px;
  border: 1px solid rgba(13, 111, 124, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
}

.source-item__top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.source-item strong {
  display: block;
  margin-bottom: 4px;
}

.source-item__reference {
  margin: 4px 0 8px !important;
  color: var(--deep-rose) !important;
  font-size: 13px;
  font-weight: 780;
}

.source-item__button {
  width: fit-content;
  margin-top: auto;
}

.empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(13, 111, 124, 0.25);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.6);
  color: var(--muted);
}

.dialog {
  width: min(780px, calc(100% - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}

.dialog::backdrop {
  background: rgba(32, 51, 49, 0.58);
  backdrop-filter: blur(8px);
}

.dialog__card {
  position: relative;
  max-height: 86vh;
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dialog__close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(13, 111, 124, 0.16);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  font-size: 22px;
}

.detail h2 {
  margin: 0 40px 10px 0;
  font-size: 34px;
  line-height: 1.08;
}

.detail__summary {
  color: var(--muted);
  line-height: 1.6;
}

.detail__shopping {
  margin-top: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.detail-block {
  padding: 14px;
  border: 1px solid rgba(189, 127, 115, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(32, 196, 199, 0.06), rgba(228, 183, 169, 0.08));
}

.detail-block h4 {
  margin: 0 0 8px;
  color: var(--charcoal);
  font-size: 16px;
  letter-spacing: 0;
}

.detail-hint {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.detail-block ul,
.detail-block ol {
  margin: 0;
  padding-left: 20px;
  color: var(--charcoal);
  line-height: 1.55;
}

.detail-block p,
.detail-block li {
  color: var(--charcoal);
}

.ingredient-actions {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredient-actions li {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  line-height: 1.45;
}

.mini-add {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(13, 111, 124, 0.18);
  border-radius: 8px;
  color: var(--tile-blue);
  background: rgba(255, 250, 245, 0.86);
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.mini-add:hover {
  color: #fff;
  background: var(--tile-blue);
}

.source-link {
  color: var(--tile-blue);
  font-weight: 850;
}

.shopping-panel {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(189, 127, 115, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(255, 247, 237, 0.92)),
    linear-gradient(135deg, rgba(32, 196, 199, 0.08), transparent 12rem);
  box-shadow: 0 12px 32px rgba(43, 35, 31, 0.08);
}

.shopping-panel__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.shopping-country {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.shopping-country select {
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  border: 1px solid rgba(13, 111, 124, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 245, 0.82);
}

.shopping-list {
  display: grid;
  gap: 10px;
}

.affiliate-note {
  margin: -6px 0 12px;
  color: rgba(111, 103, 96, 0.78);
  font-size: 11px;
  line-height: 1.45;
}

.shopping-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(13, 111, 124, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.shopping-item label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-weight: 850;
}

.shopping-item label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shopping-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--tile-blue);
  flex: 0 0 auto;
}

.shopping-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.shopping-item__actions .button {
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.shopping-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.shopping-item.is-checked label span {
  color: var(--muted);
  text-decoration: line-through;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 250, 245, 0.48);
  border-radius: 8px;
  color: var(--pearl);
  background: linear-gradient(135deg, var(--tile-blue), var(--turquoise));
  box-shadow: var(--shadow);
  font-weight: 850;
}

.suggest-form h2 {
  margin: 0 40px 8px 0;
  font-size: 34px;
  line-height: 1.08;
}

.suggest-form__intro,
.suggest-form__message {
  color: var(--muted);
  line-height: 1.55;
}

.suggest-form label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--deep-rose);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.suggest-form input,
.suggest-form textarea {
  width: 100%;
  border: 1px solid rgba(189, 127, 115, 0.25);
  border-radius: 8px;
  background: rgba(255, 250, 245, 0.86);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
}

.suggest-form input {
  min-height: 50px;
  padding: 0 14px;
}

.suggest-form textarea {
  resize: vertical;
  min-height: 126px;
  padding: 14px;
}

.suggest-form input:focus,
.suggest-form textarea:focus {
  outline: none;
  border-color: var(--tile-blue-2);
  box-shadow: 0 0 0 4px rgba(17, 163, 173, 0.14);
}

.suggest-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.suggest-form__message {
  min-height: 24px;
  margin: 12px 0 0;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar__actions {
    justify-content: flex-start;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .source-overview {
    grid-template-columns: 1fr;
  }

  .source-group__header {
    flex-direction: column;
  }

  .source-group__levels {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .gate__panel {
    padding: 22px;
  }

  .gate__panel::before {
    margin: -22px -22px 20px;
  }

  .results {
    grid-template-columns: 1fr;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .iznik-band {
    grid-template-columns: repeat(3, minmax(42px, 1fr));
  }

  .shopping-item {
    grid-template-columns: 1fr;
  }

  .shopping-item .button {
    justify-self: start;
  }
}
