:root {
  --ink: #202c3b;
  --muted: #637186;
  --line: #dce3ed;
  --paper: #f4f7fb;
  --accent: #2563eb;
  --soft: #e8eef8;
  --white: #fff;
  --radius: 16px;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7ea4f6;
  outline-offset: 3px;
}
button {
  color: inherit;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #2563eb66;
  border-color: var(--accent);
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
}
.demo-bar {
  background: #202c3b;
  color: #e1e9f5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 11px;
  line-height: 1.45;
}
.demo-bar strong {
  color: white;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #93b5f8;
  border-radius: 50%;
  flex: none;
}
.header {
  max-width: 1480px;
  margin: auto;
  padding: 24px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--paper);
}
.brand {
  display: flex;
  gap: 11px;
  text-align: left;
  align-items: center;
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 800;
  padding: 0;
}
.brand-logo {
  display: block;
  width: 246px;
  height: 64px;
  object-fit: cover;
}
.brand {
  display: block;
  flex-shrink: 0;
}
.brand small {
  margin: 0 0 0 17px;
  letter-spacing: 1.7px;
  font-weight: 500;
}
.brand-accent {
  font-weight: 400;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.65px;
  color: var(--muted);
  margin-top: 4px;
}
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav button {
  font-size: 13px;
  white-space: nowrap;
  padding: 9px 0;
  color: #637186;
}
.nav button.active {
  color: var(--ink);
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 13px 19px;
  border: 1px solid var(--line);
  background: white;
  min-height: 43px;
  line-height: 1.3;
}
.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn.dark {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.btn.subtle {
  background: var(--soft);
  border-color: transparent;
}
.btn.small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 12px;
}
.btn.wide {
  width: 100%;
}
.icon-btn {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  font-size: 20px;
}
.icon-btn.saved {
  background: #e8effe;
  border-color: #acc4fa;
  color: var(--accent);
}
#app {
  max-width: 1480px;
  margin: auto;
  padding: 18px 42px 45px;
  min-height: 75vh;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 24px;
  gap: 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  color: #637186;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1 {
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -1.6px;
  margin: 0 0 13px;
  font-weight: 650;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 0 0 18px;
}
h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}
.intro p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.intro-aside {
  width: 260px;
  padding: 20px 22px;
  border-left: 1px solid #cdd8e8;
  color: #617188;
  font-size: 12px;
  line-height: 1.65;
}
.intro-aside strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 7px;
}
.intro-aside .arrow-link {
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
  padding: 0;
}
.search-row {
  display: flex;
  border: 1px solid #cdd8e8;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  padding: 5px;
  margin-bottom: 24px;
  align-items: center;
  gap: 5px;
}
.search-row .search-icon {
  font-size: 25px;
  padding: 0 10px 0 14px;
  color: #75869f;
}
.search-row input {
  min-width: 0;
  flex: 1;
  padding: 12px 3px;
  border: 0;
  background: transparent;
  font-size: 14px;
}
.search-row input:focus {
  outline: 0;
}
.search-row .btn {
  padding-left: 32px;
  padding-right: 32px;
}
.layout {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 28px;
}
.sidebar {
  font-size: 12px;
}
.sidebar h2 {
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 14px;
  padding-left: 11px;
}
.category {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 9px;
  color: #617188;
  line-height: 1.5;
}
.category.active {
  background: #e2eafa;
  color: var(--ink);
  font-weight: 600;
}
.category span:last-child {
  color: #74849c;
  white-space: nowrap;
}
.sidebar-card {
  background: var(--ink);
  color: #fff;
  padding: 23px 19px;
  border-radius: 14px;
  margin-top: 22px;
}
.sidebar-card .eyebrow {
  color: #c8d5ea;
  font-size: 8px;
}
.sidebar-card h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 12px;
}
.sidebar-card p {
  color: #c2d0e5;
  font-size: 11px;
  line-height: 1.7;
}
.sidebar-card .btn {
  margin-top: 7px;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.tab {
  padding: 11px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  background: #e9eef8;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tab.active {
  background: var(--ink);
  color: white;
}
.tab span {
  opacity: 0.6;
  margin-left: 7px;
  font-size: 10px;
}
.filters {
  display: grid;
  grid-template-columns: 1.15fr 1.3fr 1fr 0.8fr 0.8fr auto;
  gap: 8px;
}
.filters input,
.filters select {
  min-width: 0;
  width: 100%;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  color: #55657c;
}
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 23px 0 15px;
  gap: 8px;
  font-size: 12px;
}
.result-head strong {
  font-size: 15px;
  font-weight: 600;
}
.result-head select {
  font-size: 11px;
  color: var(--muted);
  border: 0;
  background: transparent;
  max-width: 190px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.18s,
    border-color 0.18s;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #b6c7e3;
}
.card-cover {
  height: 164px;
  background: #edf1f7;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-cover svg {
  width: 100%;
  height: 100%;
  padding: 20px 20px 9px;
}
.card-cover .icon-btn {
  position: absolute;
  right: 11px;
  top: 11px;
  z-index: 1;
}
.card-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.7px;
  background: #ffffffe6;
  border-radius: 5px;
  padding: 5px 7px;
  z-index: 1;
  color: #66778f;
}
.illus-caption {
  position: absolute;
  bottom: 9px;
  right: 12px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #7889a1;
}
.card-body {
  padding: 16px;
}
.card .category-label {
  font-size: 9px;
  color: #76869e;
  margin-bottom: 8px;
}
.card-title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  text-align: left;
  padding: 0;
  letter-spacing: -0.2px;
  display: block;
}
.price {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.5px;
  margin: 11px 0 10px;
}
.card-meta {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.card-bottom {
  border-top: 1px solid #edf1f7;
  padding-top: 12px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #70819a;
  gap: 5px;
}
.small-tag {
  display: inline-block;
  background: #eff4fb;
  color: #4d678a;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 8px;
}
.empty {
  padding: 55px 25px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cdd8e8;
  border-radius: 15px;
  grid-column: 1/-1;
}
.empty h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer {
  border-top: 1px solid var(--line);
  max-width: 1396px;
  margin: 0 auto;
  padding: 23px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 10px;
}
.footer strong {
  font-size: 13px;
  color: var(--ink);
  margin-right: 18px;
}
.footer button {
  font-size: 10px;
  color: var(--muted);
  margin-left: 18px;
}
.footer > div {
  line-height: 1.8;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 26px;
}
.page-heading h1 {
  font-size: 32px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.notice {
  background: #e9eef8;
  border-radius: 10px;
  padding: 13px 16px;
  line-height: 1.7;
  font-size: 11px;
  color: #576e90;
  margin: 15px 0;
}
.status-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.mine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
}
.mine-status {
  font-size: 10px;
  color: #2563eb;
  margin-top: 8px;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.dialog-head .eyebrow {
  margin-bottom: 7px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  color: var(--ink);
  padding: 27px;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 30px 100px #202c3b30;
}
dialog::backdrop {
  background: #202c3bb3;
  backdrop-filter: blur(3px);
}
dialog .close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 5;
}
.detail-dialog {
  width: min(920px, 95vw);
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 25px;
}
.detail-media .card-cover {
  height: 260px;
  border-radius: 13px;
}
.photo-thumbs {
  padding: 3px;
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow: auto;
}
.photo-thumbs button {
  padding: 0;
  flex: none;
  width: 58px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.photo-thumbs button.active {
  border: 2px solid var(--cta, #ea580c);
  box-shadow: 0 0 0 2px var(--cta-shadow, #ea580c55);
}
.photo-thumbs button:not(.active) img {
  opacity: 0.6;
}
.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.photo-nav:hover {
  background: rgba(15, 23, 42, 0.8);
}
.photo-nav.prev {
  left: 10px;
}
.photo-nav.next {
  right: 10px;
}
.photo-index {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 13px;
  z-index: 2;
}
.photo-thumbs img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.detail-layout .price {
  font-size: 29px;
  margin: 0 0 12px;
}
.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  font-size: 12px;
  margin: 18px 0;
}
.detail-specs dt,
.detail-specs dd {
  border-bottom: 1px solid #edf1f7;
  padding: 9px 0;
  margin: 0;
  line-height: 1.5;
}
.detail-specs dt {
  color: var(--muted);
}
.description {
  line-height: 1.8;
  font-size: 13px;
  white-space: pre-wrap;
}
.detail-seller {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin: 19px 0;
}
.detail-seller p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0 0;
}
.form-dialog {
  width: min(770px, 96vw);
}
.form-steps {
  display: flex;
  gap: 5px;
  margin: 0 0 24px;
}
.form-step {
  height: 4px;
  flex: 1;
  background: #e4ebf5;
  border-radius: 3px;
}
.form-step.active {
  background: var(--accent);
}
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.type-choice {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px;
  text-align: left;
  background: #f8fafd;
}
.type-choice strong {
  font-size: 16px;
  display: block;
  margin-bottom: 7px;
}
.type-choice span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.type-choice.active {
  border-color: var(--accent);
  background: #edf3fe;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: block;
  font-size: 11px;
  color: #5d7493;
  line-height: 1.55;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  border: 1px solid #d7e1ef;
  border-radius: 8px;
  padding: 11px;
  background: white;
  color: var(--ink);
  margin-top: 6px;
  font-size: 13px;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field.full,
.full {
  grid-column: 1/-1;
}
.field-note {
  font-size: 10px;
  color: #76869e;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.65;
}
.check-row input {
  margin-top: 4px;
  accent-color: var(--accent);
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.form-error {
  background: #fceff1;
  color: #a32439;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 12px;
  margin: 12px 0;
  line-height: 1.5;
}
.upload {
  border: 1px dashed #c0d0ea;
  padding: 24px 16px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  background: #f8fafd;
  display: block;
}
.upload span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0;
}
.upload input {
  max-width: 100%;
  font-size: 11px;
}
.upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}
.upload-thumb {
  position: relative;
  width: 105px;
}
.upload-thumb img {
  width: 105px;
  height: 77px;
  object-fit: cover;
  border-radius: 8px;
}
.upload-thumb button {
  font-size: 9px;
  padding: 5px 4px;
  color: #5d7493;
}
.upload-thumb .remove {
  position: absolute;
  right: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 14px;
}
.review {
  background: #f3f7fc;
  border-radius: 12px;
  padding: 20px;
}
.review .detail-specs {
  margin: 10px 0;
}
.info-dialog {
  width: min(620px, 95vw);
}
.info-dialog p {
  font-size: 13px;
  line-height: 1.8;
  color: #5d7493;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.pricing-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px 12px;
}
.pricing-card .price {
  font-size: 21px;
}
.pricing-card p {
  font-size: 11px;
}
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 470px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.thread-list {
  border-right: 1px solid var(--line);
  background: #f9fbfd;
  padding: 10px;
}
.thread-row {
  width: 100%;
  text-align: left;
  padding: 15px 12px;
  border-radius: 8px;
}
.thread-row.active {
  background: #e6eefb;
}
.thread-row strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
.thread-row span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  display: block;
  margin-top: 5px;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-header {
  border-bottom: 1px solid var(--line);
  padding: 17px 22px;
}
.chat-header strong {
  font-size: 13px;
}
.chat-header span {
  font-size: 10px;
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.chat-messages {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 270px;
  max-height: 450px;
  overflow: auto;
}
.bubble {
  max-width: 85%;
  padding: 12px 15px;
  border-radius: 13px;
  background: #edf2fa;
  align-self: flex-start;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble.you {
  background: #202c3b;
  color: white;
  align-self: flex-end;
}
.bubble small {
  display: block;
  font-size: 9px;
  opacity: 0.6;
  margin-top: 6px;
}
.chat-compose {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
}
.chat-compose form {
  display: flex;
  gap: 10px;
}
.chat-compose textarea {
  resize: vertical;
  flex: 1;
  min-width: 0;
  min-height: 46px;
  max-height: 150px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  font-size: 12px;
}
.chat-tools {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  font-size: 10px;
  color: var(--muted);
}
.chat-tools button {
  font-size: 10px;
  text-decoration: underline;
}
.muted {
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 11px;
  box-shadow: 0 8px 35px #202c3b35;
  font-size: 12px;
  max-width: 90vw;
  line-height: 1.6;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-categories {
  display: none;
}
@media (min-width: 1550px) {
  .card-cover {
    height: 190px;
  }
}
@media (max-width: 1150px) {
  .header {
    padding: 22px 25px;
  }
  .nav {
    gap: 14px;
  }
  .nav button {
    font-size: 11px;
  }
  #app {
    padding: 15px 25px 40px;
  }
  .layout {
    grid-template-columns: 190px 1fr;
    gap: 20px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer {
    padding: 24px 25px;
  }
  .filters {
    grid-template-columns: repeat(3, 1fr);
  }
  .intro-aside {
    width: 230px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-logo {
    width: 224px;
    height: 58px;
  }
  .header > .btn {
    padding: 12px;
  }
}
@media (max-width: 760px) {
  .demo-bar {
    padding: 9px 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 8px;
    font-size: 9px;
  }
  .demo-bar > span:last-child {
    width: 100%;
    padding-left: 14px;
  }
  .header {
    padding: 19px 17px 12px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .brand {
    font-size: 24px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.7px;
  }
  .brand-logo {
    width: 218px;
    height: 57px;
  }
  .brand small {
    margin-left: 14px;
  }
  .header > .btn {
    margin-left: auto;
    font-size: 11px;
    min-height: 38px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow: auto;
    border-bottom: 1px solid var(--line);
    padding-bottom: 7px;
    gap: 16px;
  }
  .nav button {
    font-size: 11px;
  }
  #app {
    padding: 18px 17px 30px;
  }
  .intro {
    margin-bottom: 21px;
  }
  .intro-aside {
    display: none;
  }
  h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .intro p:not(.eyebrow) {
    font-size: 11px;
  }
  .search-row {
    margin-bottom: 20px;
  }
  .search-row input {
    font-size: 12px;
  }
  .search-row .search-icon {
    padding: 0 4px 0 7px;
    font-size: 21px;
  }
  .search-row .btn {
    padding: 11px 17px;
    font-size: 11px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .tab {
    font-size: 11px;
    padding: 10px;
  }
  .mobile-categories {
    display: block;
    margin-bottom: 10px;
  }
  .mobile-categories select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px;
    background: white;
    font-size: 12px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .filters select,
  .filters input {
    font-size: 10px;
    padding: 10px;
  }
  .filters .region-filter {
    grid-column: 1/-1;
  }
  .grid {
    gap: 12px;
  }
  .card-cover {
    height: 130px;
  }
  .card-cover svg {
    padding: 15px 8px 3px;
  }
  .card-body {
    padding: 12px;
  }
  .card .category-label {
    font-size: 8px;
  }
  .card-title {
    font-size: 12px;
  }
  .price {
    font-size: 17px;
  }
  .card-meta {
    font-size: 9px;
  }
  .card-bottom {
    font-size: 8px;
    display: block;
  }
  .small-tag {
    margin-bottom: 5px;
  }
  .card-badge {
    font-size: 7px;
    top: 9px;
    left: 9px;
    padding: 4px;
  }
  .icon-btn {
    height: 29px;
    width: 29px;
    font-size: 17px;
  }
  .card-cover .icon-btn {
    top: 8px;
    right: 8px;
  }
  .illus-caption {
    font-size: 6px;
    right: 8px;
  }
  .result-head {
    margin: 20px 0 13px;
  }
  .result-head strong {
    font-size: 13px;
  }
  .result-head select {
    font-size: 9px;
    max-width: 140px;
  }
  .footer {
    display: block;
    padding: 20px 17px;
    font-size: 9px;
  }
  .footer span {
    display: block;
    margin-top: 6px;
  }
  .footer > div:last-child {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  .footer button {
    margin-left: 0;
    font-size: 9px;
  }
  .detail-layout {
    display: block;
  }
  .detail-media .card-cover {
    height: 220px;
  }
  .detail-layout > .detail-content {
    margin-top: 23px;
  }
  dialog {
    padding: 20px 17px;
    border-radius: 15px;
    max-height: 94dvh;
  }
  .form-grid {
    gap: 13px;
  }
  .type-choice {
    padding: 17px 12px;
  }
  .type-choice strong {
    font-size: 13px;
  }
  .type-choice span {
    font-size: 10px;
  }
  .field {
    font-size: 10px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 12px;
    padding: 10px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions > .btn {
    font-size: 11px;
    padding: 11px 13px;
  }
  .form-actions > div {
    display: flex;
    gap: 5px;
  }
  .form-actions > div .btn {
    font-size: 10px;
    padding: 11px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .chat-layout {
    display: block;
  }
  .thread-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    overflow: auto;
  }
  .thread-row {
    min-width: 180px;
    max-width: 220px;
    padding: 12px;
  }
  .chat-messages {
    padding: 17px;
  }
  .chat-compose {
    padding: 12px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    padding: 15px;
  }
  .chat-tools {
    line-height: 1.6;
    flex-wrap: wrap;
  }
  .mine-actions .btn {
    font-size: 10px;
    padding: 8px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .btn {
    font-size: 10px;
    min-width: 105px;
    padding: 10px;
  }
  .dialog-head h2 {
    font-size: 20px;
    margin-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 390px) {
  .brand-logo {
    width: 183px;
    height: 48px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1px;
    margin-left: 12px;
  }
  .header > .btn {
    padding: 9px 10px;
    font-size: 10px;
  }
}

#form-model-choice,
#form-region-choice {
  width: 100%;
  min-width: 0;
}
.field > .field {
  margin-top: 8px;
}
.field > .field-note {
  margin-top: 5px;
  line-height: 1.5;
}
.filters select {
  text-overflow: ellipsis;
}

@media (max-width: 760px) {
  .filters select[data-filter="model"] {
    grid-column: 1/-1;
  }
}

#form-model-search {
  margin-bottom: 6px;
}

/* ===== Этап 1: читаемость, касания, мобильный сценарий внутри MAX ===== */
.brand-logo {
  width: auto;
  height: 48px;
  object-fit: contain;
}
.brand small {
  margin: 6px 0 0 2px;
}
.card .category-label,
.card-meta,
.card-bottom,
.small-tag,
.mine-status,
.field-note,
.notice,
.thread-row span,
.chat-header span,
.chat-tools,
.chat-tools button,
.upload-thumb button,
.detail-seller p,
.footer,
.footer button,
.sidebar-card p,
.result-head select,
.filters input,
.filters select {
  font-size: 12px;
}
.card-badge,
.illus-caption,
.bubble small,
.eyebrow,
.sidebar-card .eyebrow {
  font-size: 11px;
}
.field {
  font-size: 12px;
}
.upload {
  position: relative;
}
.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.upload:focus-within {
  outline: 3px solid #7ea4f6;
  outline-offset: 2px;
}
.card-cover:focus-visible {
  outline: 3px solid #7ea4f6;
  outline-offset: -3px;
}
.model-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.filters-toggle {
  display: none;
}
.detail-sticky {
  display: none;
}
@media (max-width: 760px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .demo-bar {
    padding: 8px 16px;
    font-size: 12px;
  }
  .demo-bar > span:last-child {
    display: none;
  }
  .header {
    padding: 14px 16px 8px;
    gap: 10px;
  }
  .brand-logo {
    height: 40px;
    width: auto;
  }
  .brand small {
    font-size: 10px;
    letter-spacing: 1.2px;
    margin-left: 2px;
  }
  .header > .btn {
    font-size: 14px;
    min-height: 44px;
    padding: 10px 14px;
  }
  /* Нижняя панель навигации: удобнее большим пальцем, как в мини-приложениях */
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    order: 0;
    width: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    gap: 0;
    justify-content: space-around;
    overflow: visible;
    box-shadow: 0 -6px 24px #202c3b14;
  }
  .nav button {
    flex: 1;
    font-size: 12px;
    min-height: 48px;
    padding: 6px 2px;
    white-space: normal;
    line-height: 1.25;
    border-radius: 10px;
  }
  .nav button.active {
    background: #e8effe;
    color: var(--accent);
  }
  #app {
    padding: 12px 16px 24px;
  }
  .intro {
    margin-bottom: 14px;
  }
  .intro .eyebrow,
  .intro p:not(.eyebrow) {
    display: none;
  }
  h1 {
    font-size: 24px;
    letter-spacing: -0.6px;
    margin-bottom: 0;
  }
  .search-row {
    margin-bottom: 14px;
  }
  .search-row input {
    font-size: 16px;
  }
  .search-row .btn {
    font-size: 14px;
    min-height: 44px;
  }
  .tab {
    font-size: 13px;
    min-height: 44px;
  }
  .mobile-categories select {
    font-size: 16px;
    min-height: 46px;
  }
  .filters-toggle {
    display: flex;
    width: 100%;
    font-size: 14px;
    min-height: 44px;
    margin-bottom: 8px;
  }
  .filters {
    display: none;
  }
  .filters.open {
    display: grid;
  }
  .filters select,
  .filters input {
    font-size: 16px;
    min-height: 44px;
  }
  .result-head select {
    font-size: 13px;
    max-width: 170px;
    min-height: 40px;
  }
  .result-head strong {
    font-size: 15px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    display: grid;
    grid-template-columns: 132px 1fr;
  }
  .card .card-cover {
    height: 100%;
    min-height: 150px;
  }
  .card-cover svg {
    padding: 10px 6px 4px;
  }
  .card-title {
    font-size: 15px;
  }
  .price {
    font-size: 18px;
    margin: 6px 0;
  }
  .card .category-label {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .card-meta {
    font-size: 12px;
    line-height: 1.5;
  }
  .card-bottom {
    font-size: 11px;
    padding-top: 8px;
    margin-top: 8px;
  }
  .card-bottom > span:last-child {
    display: none;
  }
  .small-tag {
    font-size: 11px;
  }
  .card-badge {
    font-size: 10px;
  }
  .illus-caption {
    display: none;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .btn.small,
  .mine-actions .btn {
    min-height: 40px;
    font-size: 13px;
    padding: 8px 12px;
  }
  .mine-actions {
    grid-column: 1/-1;
  }
  .footer {
    font-size: 12px;
  }
  .footer button {
    font-size: 13px;
    padding: 8px 0;
  }
  .page-heading > .btn {
    font-size: 13px;
    min-height: 44px;
  }
  /* Диалоги на весь экран: формы и карточки внутри MAX */
  dialog,
  dialog.detail-dialog,
  dialog.form-dialog,
  dialog.info-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
    padding: 0 16px;
  }
  .dialog-head {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 6;
    padding: 14px 0 12px;
    margin-bottom: 12px;
  }
  .dialog-head .icon-btn {
    width: 44px;
    height: 44px;
    flex: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .type-grid {
    grid-template-columns: 1fr;
  }
  .type-choice {
    padding: 16px;
  }
  .type-choice strong {
    font-size: 16px;
  }
  .type-choice span {
    font-size: 13px;
  }
  .field {
    font-size: 13px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    min-height: 46px;
  }
  .field-note {
    font-size: 12px;
  }
  .check-row {
    font-size: 14px;
  }
  .check-row input {
    width: 22px;
    height: 22px;
    flex: none;
  }
  .form-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 6;
    margin: 20px -16px 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    flex-wrap: nowrap;
    box-shadow: 0 -6px 18px #202c3b14;
  }
  .form-actions > .btn {
    font-size: 14px;
    padding: 10px 12px;
    min-height: 46px;
  }
  .form-actions > div {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
  }
  .form-actions > div .btn {
    font-size: 14px;
    min-height: 46px;
    padding: 10px 12px;
  }
  .form-actions > div .btn.small {
    font-size: 13px;
  }
  .form-actions .btn {
    white-space: nowrap;
  }
  .hide-sm {
    display: none;
  }
  .result-head .arrow-link {
    min-height: 40px;
    font-size: 14px;
  }
  .upload-thumb button {
    font-size: 12px;
    min-height: 32px;
  }
  .upload-thumb .remove {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  .detail-layout {
    padding-bottom: 12px;
  }
  .detail-specs {
    font-size: 14px;
  }
  .description {
    font-size: 15px;
  }
  .detail-content > .price,
  .detail-content > .btn.wide {
    display: none;
  }
  .detail-sticky {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 6;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    margin: 0 -16px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px #202c3b1f;
  }
  .detail-sticky .price {
    font-size: 19px;
    margin: 0;
  }
  .detail-sticky .btn {
    min-height: 46px;
    font-size: 14px;
    flex: none;
  }
  .chat-compose textarea {
    font-size: 16px;
  }
  .chat-tools button {
    min-height: 36px;
  }
  #toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
    font-size: 14px;
  }
}

.arrow-link {
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 760px) {
  .tab span {
    font-size: 12px;
  }
  .card-badge {
    font-size: 11px;
  }
  .brand small {
    font-size: 11px;
  }
}

body {
  background: var(--paper);
}
.confirm-dialog {
  width: min(420px, 92vw);
  padding: 22px;
}
.confirm-text {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  dialog.confirm-dialog {
    width: 92vw;
    height: auto;
    max-height: none;
    margin: auto;
    border-radius: 16px;
    padding: 20px;
  }
  .confirm-actions .btn {
    flex: 1;
    min-height: 46px;
  }
}

/* ================= Дизайн v2: современная витрина, приоритет телефона =================
   Палитра сохранена: синий #2563EB — действия; графит #202C3B — текст и тёмные панели.
   Добавлены только служебные цвета состояния (зелёный «проверка в работе», янтарный «требует ремонта»). */
:root {
  --ink: #202c3b;
  --ink-2: #34445a;
  --muted: #5b687b;
  --line: #e1e7ef;
  --paper: #f4f7fb;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --soft: #eaf0fd;
  --ok: #13804a;
  --ok-soft: #e5f5ec;
  --warn: #a5520a;
  --warn-soft: #fdf1e1;
  --shadow: 0 1px 2px #202c3b0f, 0 8px 24px #202c3b0d;
  font-family: Onest, Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
body {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.ic {
  width: 20px;
  height: 20px;
  flex: none;
}
.price,
.hero-stats strong,
.nudge-num {
  font-variant-numeric: tabular-nums;
}

/* Шапка */
.header {
  padding: 16px 42px;
  gap: 28px;
}
.brand-logo {
  height: 44px;
}
.nav {
  gap: 6px;
}
.nav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
}
.nav button .ic {
  width: 18px;
  height: 18px;
}
.nav button:hover {
  background: #e9eef6;
  color: var(--ink);
}
.nav button.active {
  color: var(--ink);
  background: #e6ecf7;
  font-weight: 600;
}
.nav .nav-fab {
  display: none;
}
#fav-count:not(:empty) {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
}
.header-cta {
  gap: 6px;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px #2563eb40;
}
.btn {
  border-radius: 12px;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary:hover {
  background: var(--accent-strong);
}

/* Первый экран */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin: 6px 0 22px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -1.6px;
  font-weight: 800;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero h1 span {
  color: var(--accent);
  font-weight: 700;
}
.hero p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}
.hero-text {
  align-self: center;
}
.hero-stats {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 10px;
  align-content: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-stats::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 28px solid #2563eb33;
  pointer-events: none;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.hero-stats strong {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}
.hero-stats span {
  font-size: 12px;
  color: #b9c6d9;
  line-height: 1.35;
}
.hero-cta {
  grid-column: 1/-1;
  min-height: 48px;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

/* Поиск */
.search-sticky {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--paper);
  padding: 6px 0 10px;
  margin-bottom: 6px;
}
.search-row {
  border: 1.5px solid #cbd6e6;
  border-radius: 14px;
  padding: 5px 5px 5px 14px;
  margin: 0;
  gap: 8px;
  box-shadow: var(--shadow);
}
.search-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px #2563eb22;
}
.search-row > .ic {
  color: #7a889c;
}
.search-row input {
  font-size: 16px;
}
.search-btn {
  min-height: 46px;
  padding: 0 26px;
}

/* Разделы: сегментированный переключатель */
.section-switch {
  display: flex;
  gap: 6px;
  background: #e7edf6;
  padding: 5px;
  border-radius: 14px;
  margin: 0 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-switch::-webkit-scrollbar {
  display: none;
}
.seg {
  flex: 1 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
}
.seg span {
  font-size: 12px;
  background: #d8e1ee;
  color: var(--muted);
  border-radius: 999px;
  padding: 1px 7px;
  font-weight: 600;
}
.seg.active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px #202c3b26;
}
.seg.active span {
  background: var(--accent);
  color: #fff;
}

/* Группы: чипсы (телефон), боковая панель (компьютер) */
.chips-row {
  display: none;
}
.category {
  font-size: 14px;
}
.category.active {
  background: var(--soft);
  color: var(--accent-strong);
}
.sidebar h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.sidebar-card {
  background: linear-gradient(160deg, #202c3b 0%, #2b3b52 100%);
  border-radius: 18px;
}
.sidebar-card h3 {
  font-size: 19px;
  font-weight: 700;
}
.sidebar-card p {
  font-size: 13px;
  line-height: 1.55;
}

/* Подсказка спроса: продающий элемент для продавцов */
.demand-nudge {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #cddaf3;
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 14px;
  box-shadow: var(--shadow);
}
.demand-nudge:hover {
  border-color: var(--accent);
}
.nudge-num {
  flex: none;
  min-width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  padding: 0 8px;
}
.demand-nudge.is-supply .nudge-num {
  background: var(--ink);
}
.demand-nudge strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.demand-nudge span:not(.nudge-num) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}
.demand-nudge > .ic {
  color: var(--accent);
}

/* Панель результатов */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
}
.toolbar strong {
  font-size: 15px;
  font-weight: 600;
  margin-right: auto;
}
.toolbar select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink);
  min-height: 40px;
}
.filters-toggle {
  display: none;
  gap: 7px;
}
.filters-toggle .badge {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
}
.filters {
  margin-bottom: 16px;
}
.filters input,
.filters select {
  font-size: 14px;
  padding: 11px;
  border-radius: 10px;
  color: var(--ink);
}
.result-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 22px 0 10px;
  font-size: 13px;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.arrow-link .ic {
  width: 18px;
  height: 18px;
}

/* Карточка */
.grid {
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-2px);
  border-color: #c3d2ea;
  box-shadow:
    0 2px 4px #202c3b12,
    0 14px 32px #202c3b17;
}
.card-cover {
  height: auto;
  aspect-ratio: 4/3;
  background: linear-gradient(180deg, #eef2f8, #e4eaf3);
}
.card-cover svg:not(.ic) {
  padding: 14% 8% 6%;
}
.illus-caption {
  display: none;
}
.kind-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px #202c3b26;
}
.kind-pill.buy {
  background: var(--ink);
  color: #fff;
}
.fav-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffffe8;
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: 0 1px 3px #202c3b26;
}
.fav-btn .ic {
  width: 20px;
  height: 20px;
}
.fav-btn.saved {
  color: #fff;
  background: var(--accent);
}
.fav-btn.saved .ic {
  fill: currentColor;
}
.photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  font-size: 11px;
  background: #202c3bcc;
  color: #fff;
  border-radius: 6px;
  padding: 3px 7px;
}
.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card .price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0;
  color: var(--ink);
}
.card.is-buy .price {
  color: var(--ink-2);
}
.card-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title:hover {
  color: var(--accent);
}
.card-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.4;
}
.chip-cnc {
  background: var(--soft);
  color: var(--accent-strong);
}
.chip-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.chip-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.card-place {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 6px;
}
.card-place .ic {
  width: 15px;
  height: 15px;
}
.card-source {
  margin-left: auto;
  font-size: 11px;
  color: #8794a7;
}
.mine-status {
  font-size: 12px;
  font-weight: 600;
}
.empty {
  border-radius: 18px;
}

/* Карточка объявления */
.detail-layout .price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}
.detail-media .card-cover {
  aspect-ratio: 4/3;
  height: auto;
  border-radius: 16px;
}
.detail-seller {
  border-radius: 14px;
  background: #f8fafd;
}

@media (max-width: 1150px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  .header {
    padding: 12px 16px 4px;
  }
  .brand-logo {
    height: 36px;
  }
  .brand small {
    display: none;
  }
  .header-cta {
    display: none;
  }
  /* Нижняя панель с центральной кнопкой «Разместить» */
  .nav {
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    gap: 2px;
    align-items: flex-end;
  }
  .nav button {
    flex: 1;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    min-height: 52px;
    padding: 6px 2px;
    border-radius: 12px;
    position: relative;
    background: none;
  }
  .nav button .ic {
    width: 23px;
    height: 23px;
  }
  .nav button.active {
    background: none;
    color: var(--accent);
  }
  .nav button:hover {
    background: none;
  }
  .nav .nav-fab {
    display: flex;
    color: var(--accent);
    font-weight: 600;
  }
  .nav .nav-fab .ic {
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: #fff;
    border-radius: 16px;
    padding: 9px;
    box-sizing: content-box;
    margin-top: -26px;
    box-shadow: 0 6px 16px #2563eb59;
    border: 3px solid #fff;
  }
  #fav-count:not(:empty) {
    position: absolute;
    top: 2px;
    left: calc(50% + 6px);
    font-size: 10px;
    min-width: 16px;
    height: 16px;
  }
  #app {
    padding: 6px 16px 20px;
  }
  .hero {
    gap: 12px;
    margin: 4px 0 8px;
  }
  .hero h1 {
    font-size: 23px;
    letter-spacing: -0.6px;
    margin: 0;
  }
  .hero h1 span {
    display: block;
    font-size: 17px;
    letter-spacing: -0.2px;
    margin-top: 2px;
  }
  .hero p {
    display: none;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    padding: 14px;
    border-radius: 16px;
    gap: 8px;
  }
  .hero-stats strong {
    font-size: 22px;
  }
  .hero-stats span {
    font-size: 11px;
  }
  .hero-stats .hero-cta {
    display: none;
  }
  .hero-stats::after {
    width: 120px;
    height: 120px;
    border-width: 18px;
    right: -40px;
    top: -50px;
  }
  .search-sticky {
    margin: 0 -16px 4px;
    padding: 8px 16px;
  }
  .search-row {
    padding-left: 12px;
  }
  .search-btn {
    padding: 0 16px;
    min-height: 44px;
  }
  .section-switch {
    margin: 0 -16px 10px;
    border-radius: 0;
    padding: 5px 16px;
    background: none;
    gap: 8px;
  }
  .seg {
    background: #e7edf6;
    flex: 0 0 auto;
    font-size: 14px;
  }
  .seg.active {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
  }
  .seg.active span {
    background: #ffffff2e;
  }
  .chips-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -16px 12px;
    padding: 2px 16px;
    scrollbar-width: none;
  }
  .chips-row::-webkit-scrollbar {
    display: none;
  }
  .cat-chip {
    flex: none;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
  }
  .cat-chip span {
    font-size: 12px;
    color: var(--muted);
  }
  .cat-chip.is-empty {
    color: #8794a7;
  }
  .cat-chip.active {
    background: var(--soft);
    border-color: var(--accent);
    color: var(--accent-strong);
    font-weight: 600;
  }
  .demand-nudge {
    padding: 10px 12px;
    border-radius: 14px;
  }
  .demand-nudge strong {
    font-size: 14px;
  }
  .demand-nudge span:not(.nudge-num) {
    font-size: 12px;
  }
  .toolbar {
    flex-wrap: nowrap;
  }
  .filters-toggle {
    display: inline-flex;
    width: auto;
    margin: 0;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }
  .toolbar strong {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
  }
  .toolbar select {
    font-size: 13px;
    max-width: 150px;
  }
  /* Сетка 2 колонки, как на привычных площадках */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card {
    display: flex;
    grid-template-columns: none;
    border-radius: 14px;
  }
  .card .card-cover {
    height: auto;
    min-height: 0;
    aspect-ratio: 1/1;
  }
  .card-body {
    padding: 10px 10px 12px;
    gap: 4px;
  }
  .card .price {
    font-size: 16px;
    margin: 0;
  }
  .card-title {
    font-size: 13px;
    line-height: 1.3;
  }
  .card-meta {
    font-size: 12px;
  }
  .card-tags .chip {
    font-size: 10.5px;
    padding: 2px 7px;
  }
  .card-place {
    font-size: 12px;
    padding-top: 4px;
  }
  .card-source {
    display: none;
  }
  .kind-pill {
    font-size: 11px;
    left: 8px;
    top: 8px;
    padding: 3px 8px;
  }
  .fav-btn {
    width: 34px;
    height: 34px;
    right: 6px;
    top: 6px;
  }
  .mine-actions .btn {
    flex: 1 1 100%;
  }
  .result-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-foot .muted {
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .card-tags {
    display: none;
  }
  .hero-stats span {
    font-size: 10.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active {
    transform: none;
  }
}

.card-cover .fav-btn .ic,
.card-cover .fav-btn svg {
  width: 20px;
  height: 20px;
  padding: 0;
}
.toolbar strong {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .card-cover .fav-btn .ic {
    width: 18px;
    height: 18px;
  }
  .toolbar select {
    max-width: 140px;
  }
}

/* ================= Яркая палитра (по запросу владельца 15.10.2026) =================
   Тёмные графитовые панели заменены синим градиентом. Графит остаётся только для текста.
   Три варианта: data-palette = blue | orange | teal (выбор на время согласования). */
:root {
  --ink: #16233a;
  --ink-2: #2b3b55;
  --muted: #56657c;
  --line: #dde6f3;
  --paper: #f3f7ff;
  --accent: #1f6bff;
  --accent-strong: #0d55e6;
  --soft: #e7efff;
  --hero-grad: linear-gradient(135deg, #1f6bff 0%, #3a86ff 55%, #1fb6ff 100%);
  --cta: #1f6bff;
  --cta-strong: #0d55e6;
  --cta-shadow: #1f6bff55;
  --buy: #7c4dff;
  --nudge: #1f6bff;
}
:root[data-palette="orange"] {
  --cta: #ea580c;
  --cta-strong: #c2410c;
  --cta-shadow: #ea580c55;
  --buy: #ea580c;
  --nudge: #ea580c;
  --hero-grad: linear-gradient(135deg, #1f6bff 0%, #2f7bff 60%, #4f9bff 100%);
}
:root[data-palette="teal"] {
  --cta: #0d9488;
  --cta-strong: #0f766e;
  --cta-shadow: #0d948855;
  --buy: #0d9488;
  --nudge: #0d9488;
  --hero-grad: linear-gradient(135deg, #1f6bff 0%, #1a8cf0 50%, #0fb5c8 100%);
}
body {
  background: var(--paper);
}
.demo-bar {
  background: #e3ecff;
  color: #1d3a73;
}
.demo-bar strong {
  color: #0d3aa8;
}
.status-dot {
  background: var(--accent);
}
.palette-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.palette-bar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  min-height: 36px;
}
.palette-bar button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--soft);
  font-weight: 600;
}
.palette-bar i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}
.header {
  background: transparent;
}
/* Кнопки «Разместить» — цвет действия выбранной палитры */
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
}
.header-cta,
.hero-cta,
.sidebar-card .btn.primary,
.empty .btn.primary,
.btn.primary[data-action="publish"],
.btn.primary[data-action="form-next"] {
  background: var(--cta);
  border-color: var(--cta);
  box-shadow: 0 8px 20px var(--cta-shadow);
}
.header-cta:hover,
.hero-cta:hover {
  background: var(--cta-strong);
}
.nav .nav-fab {
  color: var(--cta);
}
.nav .nav-fab .ic {
  background: var(--cta);
  box-shadow: 0 8px 18px var(--cta-shadow);
}
/* Первый экран: синий градиент вместо графита */
.hero h1 span {
  background: var(--hero-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats {
  background: var(--hero-grad);
  box-shadow: 0 14px 34px #1f6bff40;
}
.hero-stats::after {
  border-color: #ffffff26;
}
.hero-stats span {
  color: #e3edff;
}
.hero-stats .hero-cta {
  background: #fff;
  color: var(--cta);
  border-color: #fff;
  box-shadow: 0 8px 20px #0b3aa833;
}
.hero-stats .hero-cta:hover {
  background: #f1f6ff;
}
.sidebar-card {
  background: var(--hero-grad);
}
.sidebar-card .eyebrow,
.sidebar-card p {
  color: #e6eeff;
}
.sidebar-card .btn.primary {
  background: #fff;
  color: var(--cta);
  border-color: #fff;
  box-shadow: none;
}
/* Переключатели и метки */
.seg.active span {
  background: var(--accent);
}
.kind-pill.buy {
  background: var(--buy);
  color: #fff;
}
.nudge-num {
  background: var(--nudge);
}
.demand-nudge {
  border-color: #c9d9ff;
}
.demand-nudge.is-supply .nudge-num {
  background: var(--accent);
}
.card:hover {
  border-color: #b5cbff;
}
.category.active {
  background: var(--soft);
  color: var(--accent-strong);
}
.tab.active {
  background: var(--accent);
}
.bubble.you {
  background: var(--accent);
}
.detail-seller {
  background: #f5f8ff;
}
#toast {
  background: var(--ink);
}
@media (max-width: 760px) {
  .palette-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 16px;
    scrollbar-width: none;
  }
  .palette-bar button {
    flex: none;
  }
  .seg.active {
    background: var(--accent);
    color: #fff;
  }
  .seg.active span {
    background: #ffffff38;
  }
  .nav button.active {
    color: var(--accent);
  }
}

.btn.primary.header-cta,
.btn.primary.hero-cta {
  background: var(--cta);
  border-color: var(--cta);
}
.btn.primary.header-cta:hover {
  background: var(--cta-strong);
}
.hero-stats .btn.primary.hero-cta {
  background: #fff;
  border-color: #fff;
  color: var(--cta);
}
.card-cover {
  background: linear-gradient(180deg, #f2f6ff, #e5eeff);
}

/* Логотип «Патрон-лупа» (16.10.2026): ручка лупы следует цвету действия палитры */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
svg.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}
.brand small {
  margin: 0 0 0 2px;
}
@media (max-width: 760px) {
  svg.brand-logo {
    height: 36px;
  }
}

/* ===== Утверждено 16.10.2026: палитра «синий + оранжевый» =====
   Синий #1F6BFF — основа, тёмно-синий #0B1F4D/#16233A — текст,
   оранжевый #EA580C — кнопки «Разместить» (контраст с белым текстом), #FF6A13 — ручка лупы в логотипе. */
:root {
  --cta: #ea580c;
  --cta-strong: #c2410c;
  --cta-shadow: #ea580c55;
  --buy: #ea580c;
  --nudge: #ea580c;
  --hero-grad: linear-gradient(135deg, #1f6bff 0%, #2f7bff 60%, #4f9bff 100%);
}
.palette-bar {
  display: none;
}

/* Режим сервера: скрываем элементы демонстрации */
.server-mode .card-source,
.server-mode [data-action="export-data"],
.server-mode [data-action="import-data"],
.server-mode [data-action="reset"],
.server-mode [data-action="about"],
.server-mode [data-action="pricing"],
.server-mode .demo-bar:empty {
  display: none;
}
.server-mode .demo-bar { justify-content: flex-end; padding: 6px 24px; }

#toast[popover] {
  inset: auto;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  margin: 0;
  border: 0;
  overflow: visible;
}
@media (max-width: 760px) {
  #toast[popover] {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}
/* Поле с подсказками (модель, город): ввод текста + список совпадений под полем */
.combo {
  position: relative;
}
.combo-list {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 30;
  margin-top: 4px;
  max-height: 264px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid #d7e1ef;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(32, 44, 59, 0.16);
}
.combo-list[hidden] {
  display: none;
}
.combo-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 12px 13px;
  cursor: pointer;
}
.combo-item:last-child {
  border-bottom: 0;
}
.combo-item:hover,
.combo-item:focus {
  background: #edf3fe;
  outline: none;
}
.combo-empty {
  padding: 12px 13px;
  font-size: 13px;
  color: var(--muted);
}
.check-row.under-field {
  margin-top: -6px;
}
.search-elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.heading-actions .badge {
  margin-left: 4px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
}
.admin-claim {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}
.admin-claim summary {
  cursor: pointer;
}
.admin-claim form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  max-width: 360px;
}
.admin-claim input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d7e1ef;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
}
.saved-searches {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.saved-searches small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.saved-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.saved-apply {
  flex: 1;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
}
.saved-del {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  padding: 6px 10px;
  cursor: pointer;
}
.layout .filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .layout .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters .filter-wide {
    grid-column: 1/-1;
  }
}
.filters .combo input {
  width: 100%;
  font-size: 14px;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
#catalog-toolbar {
  scroll-margin-top: 84px;
}
#catalog-toolbar select {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 50%;
  margin-left: auto;
}
#result-count {
  white-space: nowrap;
}

/* Подпись группы на условном рисунке */
.card-cover .illus-caption {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3px;
  font-weight: 600;
  color: #4a5f80;
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 8px;
  border-radius: 999px;
  bottom: 8px;
  right: 8px;
}
.login-link {
  margin-left: auto;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.login-box p {
  margin: 0;
}
.login-qr {
  width: 220px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.login-box .btn.wide {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}
.login-status {
  font-size: 13px;
  color: var(--muted);
}

/* Вход: выбор мессенджера; связка аккаунтов */
.login-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.notice.accounts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
.notice.accounts small { flex-basis: 100%; color: var(--muted, #667085); }
.acc { font-size: 14px; color: var(--muted, #667085); }
.acc.on { color: #15803d; font-weight: 600; }
.link-code { font: 600 22px/1.2 ui-monospace, Menlo, monospace; text-align: center; letter-spacing: 1px; margin: 4px 0 8px; user-select: all; }
.mine-status .term { font-weight: 500; color: var(--muted, #667085); margin-left: 6px; }
.mine-status .term.soon { color: #b45309; }
pre.health { white-space: pre-wrap; font: 15px/1.6 inherit; font-family: inherit; margin: 0 0 12px; }

/* Непрочитанные и «Назад» */
.nav-badge:not(:empty) {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
}
@media (max-width: 760px) {
  .nav-badge:not(:empty) { position: absolute; top: 2px; left: calc(50% + 6px); font-size: 10px; min-width: 16px; height: 16px; box-shadow: 0 0 0 2px #fff; }
}
[data-action="nav"] { position: relative; }
.unread-dot {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; margin-left: 4px;
  background: #ef4444; color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; vertical-align: 1px;
}
.thread-row.has-unread strong { color: #111827; }
.badge.badge-new { background: #ef4444; color: #fff; }
.btn.back-btn { margin-bottom: 10px; padding: 6px 12px; }
.msg-ic { width: 20px; height: 20px; flex: none; vertical-align: -5px; margin-right: 8px; border-radius: 50%; }
.login-tabs .tab { display: inline-flex; align-items: center; }
.login-tabs .tab.active { background: #fff; color: var(--ink, #111827); box-shadow: inset 0 0 0 2px #2563eb; }
.btn.msg-btn, .btn.primary.msg-btn { background: #fff; color: var(--ink, #111827); border: 1px solid #d0d7e2; font-weight: 600; }
.btn.msg-btn .msg-ic { width: 22px; height: 22px; }
.acc { display: inline-flex; align-items: center; }
.acc .msg-ic { width: 18px; height: 18px; margin-right: 5px; }
.acc:not(.on) .msg-ic { filter: grayscale(1); opacity: 0.55; }
.login-link { display: inline-flex; align-items: center; }
.login-link .msg-ic { width: 16px; height: 16px; margin-right: -3px; box-shadow: 0 0 0 2px #fff; }
.login-link .msg-ic + .msg-ic { margin-right: 7px; }
.login-link .msg-ic { background: #fff; }
.doc-link { color: inherit; text-decoration: none; padding: 6px 10px; font-size: 14px; }
.doc-link:hover { text-decoration: underline; }
.consent-box .check-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; text-align: left; line-height: 1.45; }
.consent-box .check-row input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.form-error-inline { color: #dc2626; min-height: 1.2em; font-size: 14px; }
.my-footer { margin: 28px 0 8px; font-size: 14px; color: var(--muted, #667085); text-align: center; }
.link-btn { background: none; border: 0; padding: 0; color: #dc2626; font: inherit; text-decoration: underline; cursor: pointer; }
.btn.danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.delete-input { width: 100%; padding: 12px; font-size: 16px; border: 1px solid #d0d7e2; border-radius: 10px; margin: 6px 0 12px; box-sizing: border-box; }

/* Администратор: список участников */
.adm-users { display: grid; gap: 10px; max-height: 65vh; overflow: auto; }
.adm-user { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.adm-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-user .muted { color: var(--muted); }
.adm-user .small { font-size: 13px; margin-top: 3px; }
.adm-user .dot { width: 9px; height: 9px; border-radius: 50%; background: #c3cad6; flex: none; }
.adm-user .dot.on { background: #16a34a; box-shadow: 0 0 0 3px #16a34a33; }
.adm-list { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.adm-list li { margin: 3px 0; }
.adm-list .link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-align: left; font: inherit; }

.listing-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; margin: -4px 0 12px; }

/* Компактные кнопки в «Моих»: одна строка — «Изменить» + значки архива и удаления */
.card .mine-actions { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 10px; grid-column: 1/-1; }
.card .mine-actions .btn { flex: 1 1 0; min-width: 0; min-height: 32px; padding: 4px 6px; font-size: 12px; white-space: nowrap; }
.card .mine-actions .btn.ico { flex: 0 0 32px; width: 32px; padding: 0; font-size: 15px; }
.card .mine-actions .btn.primary { flex-basis: 100%; order: -1; }

/* Панель администратора в «Моих»: одна строка компактных кнопок */
.admin-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding-bottom: 2px; scrollbar-width: none; }
.admin-bar::-webkit-scrollbar { display: none; }
.admin-bar .btn { flex: none; min-height: 32px; padding: 4px 10px; font-size: 13px; white-space: nowrap; }
@media (max-width: 700px) {
  .page-heading { flex-wrap: wrap; gap: 10px; }
  .page-heading .heading-actions { width: 100%; flex-wrap: nowrap; }
  .page-heading .heading-actions .btn { flex: 1 1 auto; min-height: 36px; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
}

.transfer-link { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.transfer-link code { display: block; font-size: 12px; word-break: break-all; color: var(--muted); margin: 4px 0 8px; }
.transfer-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.claim-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.seo-listing { max-width: 900px; margin: 20px auto; padding: 0 16px; color: var(--ink); }
.seo-listing img { max-width: 100%; height: auto; border-radius: 10px; margin: 4px 4px 0 0; }
.seo-listing dt { font-weight: 600; margin-top: 6px; }
.seo-listing dd { margin: 0; }

/* Карточка объявления: кнопки сразу под ценой, характеристики плотнее */
.detail-actions { margin: 4px 0 14px; }
.detail-actions > .btn.wide { min-height: 44px; }
.detail-layout .detail-specs { margin: 8px 0 12px; }
.detail-layout .detail-specs dt, .detail-layout .detail-specs dd { padding: 6px 0; line-height: 1.35; }
.detail-layout .detail-seller { margin: 10px 0; padding: 12px 14px; }
.detail-layout .price { margin-bottom: 6px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.share-grid .btn { min-height: 42px; }
.share-url { display: block; font-size: 12px; color: var(--muted); word-break: break-all; }
.card .mine-actions .btn:not(.ico) { flex-basis: 100%; }

.share-grid .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.share-ic { width: 22px; height: 22px; border-radius: 6px; flex: none; }
dialog::backdrop { cursor: pointer; }

.detail-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.detail-mini .btn { width: 100%; justify-content: center; }
.detail-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.detail-links:empty { display: none; }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: #b42318; }

/* Телефон: подпись под логотипом и аккуратный подвал */
@media (max-width: 700px) {
  .brand small { display: block !important; font-size: 7.5px !important; letter-spacing: 1.4px !important; margin: 3px 0 0 !important; white-space: nowrap; }
  .footer { display: block !important; padding: 20px 16px calc(100px + env(safe-area-inset-bottom)) !important; }
  .footer > div:first-child strong { display: block; font-size: 15px; }
  .footer > div:first-child span { display: block; margin: 4px 0 0 !important; font-size: 12px; color: var(--muted); }
  .footer > div:last-child { display: flex !important; flex-wrap: wrap; gap: 6px 18px !important; margin-top: 14px !important; }
  .footer > div:last-child a, .footer > div:last-child button { font-size: 13px !important; padding: 4px 0 !important; margin: 0 !important; }
}
input[data-field="price"]:disabled { background: #f2f4f7; color: var(--muted); }

.pick-list { max-height: 50vh; overflow: auto; display: grid; gap: 4px; }
.pick-list .muted { color: var(--muted); font-size: 13px; }
