[hidden] { display: none !important; }

:root {
  color-scheme: light;
  --app-bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #172033;
  --text-muted: #667085;
  --text-subtle: #98a2b3;
  --border: #e5e9f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #027a48;
  --success-soft: #ecfdf3;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.security-intro { display: flex; gap: 14px; align-items: flex-start; margin: 8px 0 16px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.security-intro h1, .security-intro h2 { margin: 0 0 6px; font-size: 20px; }
.security-intro p { margin: 0; color: var(--text-muted); line-height: 1.45; }
.security-icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-size: 10px; letter-spacing: 2px; }
.security-link { display: block; margin: 18px 0; color: var(--primary-dark); text-align: center; font-weight: 650; text-decoration: none; }
.form-success { color: var(--success); }

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--app-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-viewport {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--app-bg);
}

.app-header {
  position: sticky;
  z-index: 10;
  top: 0;
  padding: max(18px, env(safe-area-inset-top)) 18px 14px;
  border-bottom: 1px solid rgba(229, 233, 240, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-header h1,
.detail-hero h2,
.seller-detail h3 {
  margin: 0;
  letter-spacing: -0.025em;
}

.app-header h1 {
  font-size: 25px;
  line-height: 1.15;
}

.app-eyebrow,
.section-label {
  margin: 0 0 5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: #bfdbfe;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.filter-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 43px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  background: var(--surface-muted);
  color: var(--text);
}

.field textarea {
  min-height: 92px;
  padding-top: 11px;
  padding-bottom: 11px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.button {
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 650;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-primary:not(:disabled):hover {
  background: var(--primary-dark);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.app-content {
  padding: 16px 14px 28px;
}

.app-content-with-nav {
  padding-bottom: calc(92px + var(--safe-bottom));
}

.notice {
  margin-bottom: 14px;
  padding: 14px 15px;
  border: 1px solid #fecaca;
  border-radius: 13px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.5;
}

.offer-list {
  display: grid;
  gap: 12px;
}

.request-list,
.response-list {
  display: grid;
  gap: 12px;
}

.request-card,
.response-card,
.editor-card {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.request-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.request-amount {
  margin: 0 0 3px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.request-location,
.request-deadline,
.request-description,
.response-count,
.request-owner,
.sheet-context,
.response-comment,
.response-state {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.request-location,
.request-deadline,
.request-description,
.response-count,
.response-comment,
.response-state {
  margin: 0;
}

.request-deadline {
  margin-top: 15px;
  font-size: 12px;
}

.request-description {
  margin-top: 7px;
}

.response-count {
  margin-top: 9px;
  font-weight: 650;
}

.request-owner {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  color: var(--text-muted);
  text-decoration: none;
}

.avatar-small {
  flex-basis: 23px;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  font-size: 8px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-actions .button {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  font-size: 12px;
  text-decoration: none;
}

.button-outline {
  border-color: #bfdbfe;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.button-danger {
  border-color: #fecaca;
  background: var(--danger-soft);
  color: var(--danger);
}

.button-full {
  width: 100%;
}

.sheet-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.bottom-sheet {
  position: fixed;
  z-index: 31;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 760px);
  max-height: calc(100vh - 36px);
  margin: auto;
  padding: 8px 18px calc(20px + var(--safe-bottom));
  overflow: auto;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  box-shadow: 0 -18px 50px rgba(15, 23, 42, 0.18);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 2px auto 15px;
  border-radius: 999px;
  background: #d0d5dd;
}

.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-heading h2 {
  margin: 0;
  font-size: 20px;
}

.sheet-heading .icon-button {
  font-size: 22px;
}

.sheet-context {
  margin: 8px 0 15px;
}

.bottom-sheet form,
.editor-card {
  display: grid;
  gap: 13px;
}

.sheet-open {
  overflow: hidden;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
}

.app-gate {
  display: grid;
  align-content: center;
  min-height: 80vh;
  text-align: center;
}

.app-gate .loading-card {
  width: 70px;
  height: 70px;
  margin: 0 auto;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
}

.request-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-control {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d0d5dd;
  transition: background 0.15s ease;
}

.toggle-control::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  content: "";
  transition: transform 0.15s ease;
}

.request-toggle:checked + .toggle-control {
  background: var(--primary);
}

.request-toggle:checked + .toggle-control::after {
  transform: translateX(16px);
}

.request-toggle:focus-visible + .toggle-control {
  outline: 3px solid #bfdbfe;
}

.confirm-dialog {
  width: min(calc(100% - 28px), 430px);
  padding: 20px;
  border: 0;
  border-radius: 17px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.confirm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.confirm-dialog h2 {
  margin: 0 0 7px;
  font-size: 19px;
}

.confirm-dialog p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-page {
  max-width: 620px;
  margin: 0 auto;
}

.response-card .seller-row {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.response-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.response-terms div {
  display: grid;
  gap: 3px;
  padding: 11px;
  border-radius: 11px;
  background: var(--surface-muted);
}

.response-terms span {
  color: var(--text-subtle);
  font-size: 10px;
  text-transform: uppercase;
}

.response-comment {
  margin-top: 12px;
}

.response-state {
  margin-top: 12px;
  font-weight: 700;
}

.offer-card,
.detail-section,
.detail-hero {
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.offer-card-link {
  display: block;
  padding: 17px;
  color: inherit;
  text-decoration: none;
}

.offer-card-link:hover,
.offer-card-link:focus-visible {
  border-radius: 17px;
  outline: 3px solid #dbeafe;
}

.offer-card-topline,
.seller-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.offer-amount {
  margin: 0 0 3px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.offer-location,
.seller-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
}

.seller-row {
  justify-content: flex-start;
  margin: 17px 0 14px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.avatar {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.seller-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.seller-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: #475467;
  font-size: 11px;
  font-weight: 600;
}

.empty-state {
  padding: 44px 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 17px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 17px;
}

.load-more {
  display: block;
  margin: 15px auto 0;
}

.loading-card,
.loading-block,
.loading-line {
  position: relative;
  overflow: hidden;
  background: #e9edf3;
}

.loading-card::after,
.loading-block::after,
.loading-line::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.72) 50%, transparent 80%);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.35s infinite;
}

.loading-card {
  height: 194px;
  border-radius: 17px;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(var(--nav-columns, 4), minmax(0, 1fr));
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 8px 5px calc(8px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
}

.nav-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 5px 2px;
  color: var(--text-subtle);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.disabled {
  opacity: 0.62;
}

.compact-header {
  padding-bottom: 12px;
}

.compact-header .header-row {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
}

.compact-header h1 {
  font-size: 18px;
  text-align: center;
}

.header-spacer {
  width: 42px;
}

.detail-content {
  display: grid;
  gap: 14px;
  padding-bottom: 132px;
}

.detail-skeleton {
  display: grid;
  gap: 13px;
  padding: 18px;
  border-radius: 17px;
  background: var(--surface);
}

.loading-line {
  width: 62%;
  height: 15px;
  border-radius: 6px;
}

.loading-line-large {
  width: 82%;
  height: 28px;
}

.loading-block {
  height: 130px;
  margin-top: 10px;
  border-radius: 12px;
}

#detail-data {
  display: grid;
  gap: 14px;
}

#detail-data[hidden] {
  display: none;
}

.detail-hero,
.detail-section {
  padding: 18px;
}

.detail-hero .status-badge {
  float: right;
  margin-left: 14px;
}

.detail-hero h2 {
  margin-top: 4px;
  font-size: 27px;
}

.detail-location,
.seller-detail p,
.detail-description,
.detail-muted p {
  margin: 7px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 19px;
}

.detail-stats div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-muted);
}

.detail-stats strong {
  overflow-wrap: anywhere;
}

.detail-stats span {
  color: var(--text-muted);
  font-size: 11px;
}

.seller-detail {
  display: flex;
  align-items: center;
  gap: 13px;
}

.avatar-large {
  flex-basis: 52px;
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.seller-detail h3 {
  font-size: 17px;
}

.seller-detail p.section-label,
.detail-section p.section-label {
  margin-top: 0;
}

.detail-muted {
  box-shadow: none;
}

.detail-actions {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 14px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
}

.detail-actions .button {
  width: 100%;
}

.detail-actions p {
  margin: 7px 0 0;
  color: var(--text-subtle);
  font-size: 10px;
  text-align: center;
}

@media (min-width: 620px) {
  .app-viewport {
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }

  .offer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-card::after,
  .loading-block::after,
  .loading-line::after {
    animation: none;
  }
}

.deal-list,
.chat-list {
  display: grid;
  gap: 12px;
}

.deal-card,
.chat-card {
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
}

.deal-card { display: grid; gap: 10px; padding: 16px; }
.deal-party { margin: 0; color: var(--text-muted); }
.deal-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #166534; background: #dcfce7; font-size: 11px; font-weight: 750; }
.deal-status[data-status="Disputed"] { color: #991b1b; background: #fee2e2; }
.deal-status[data-status="Completed"] { color: #1e40af; background: #dbeafe; }
.deal-status[data-status="Canceled"] { color: var(--text-muted); background: var(--surface-muted); }
.dispute-panel { border: 1px solid #fecaca; color: #991b1b; background: #fff1f2; }
.dispute-panel p { margin: 6px 0 0; color: #9f1239; }

.history-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.history-list li { position: relative; display: grid; gap: 3px; padding-left: 20px; }
.history-list li::before { position: absolute; top: 5px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); content: ""; }
.history-list span { color: var(--text-muted); font-size: 12px; }

.profile-page { padding-bottom: 108px; }
.editor-card { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.profile-heading { display: flex; align-items: center; gap: 14px; }
.profile-heading h2, .profile-heading p { margin: 0; }
.profile-heading p { margin-top: 4px; color: var(--text-muted); }
.balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.balance-grid:has(> div:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.balance-grid div { display: grid; gap: 5px; min-width: 0; padding: 12px; border-radius: 13px; background: var(--surface-muted); }
.balance-grid span { color: var(--text-muted); font-size: 11px; }
.balance-grid strong { overflow-wrap: anywhere; }
.tag-field { margin: 0; padding: 0; border: 0; }
.tag-field legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.selection-tags, .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.multi-select-button { display: block; width: 100%; min-height: 43px; padding: 10px 36px 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-muted); color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.multi-select-button::after { content: "⌄"; float: right; margin-right: -22px; color: var(--text-muted); }
.multi-select-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.multi-select-dialog { width: min(440px, calc(100% - 28px)); max-height: 85dvh; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.multi-select-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.multi-select-dialog h2 { margin: 0 0 14px; font-size: 20px; }
.multi-select-dialog > input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-muted); color: var(--text); }
.multi-select-options { max-height: 42dvh; overflow-y: auto; margin: 12px 0; overscroll-behavior: contain; }
.multi-select-option { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.multi-select-option input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.multi-select-option span { color: var(--text); font-size: 14px; font-weight: 400; }
.selection-tag input { position: absolute; opacity: 0; pointer-events: none; }
.selection-tag span, .tag-list span { display: inline-flex; padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); background: var(--surface); font-size: 12px; cursor: pointer; }
.selection-tag input:checked + span { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.public-profile { padding-top: 10px; }

.chat-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; }
.chat-copy { display: grid; gap: 3px; min-width: 0; }
.chat-copy > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-link-label { color: var(--primary); font-size: 12px; font-weight: 700; }
.chat-meta { color: var(--text-muted); font-size: 12px; }
.unread-badge { min-width: 22px; padding: 4px 6px; border-radius: 999px; color: white; background: var(--primary); font-size: 11px; text-align: center; }
.chat-header-copy { min-width: 0; text-align: center; }
.chat-header-copy a { color: var(--primary); font-size: 11px; font-weight: 700; text-decoration: none; }
.chat-content { height: calc(100dvh - 145px); padding-bottom: 12px; overflow: hidden; }
.messages { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0; overflow-y: auto; padding-bottom: 16px; scroll-padding-bottom: 16px; }
.message { flex-shrink: 0; align-self: flex-start; max-width: 82%; padding: 9px 11px 6px; border-radius: 15px 15px 15px 4px; background: var(--surface); box-shadow: var(--shadow-sm); }
.message-mine { align-self: flex-end; border-radius: 15px 15px 4px; background: var(--primary-soft); }
.message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.message time { display: block; margin-top: 3px; color: var(--text-subtle); font-size: 9px; text-align: right; }
.message-author { display: block; margin-bottom: 5px; font-size: 11px; color: var(--text-muted); }
.profile-settings { display: grid; gap: 10px; margin-top: 12px; }
.profile-settings > .section-label { margin: 0; font-size: 14px; text-align: center; }
.profile-menu { display: grid; gap: 10px; }
.profile-settings-link { display: flex; align-items: center; text-decoration: none; }
.profile-settings-link > .section-label { margin: 0; }
.profile-settings .block-section { margin-top: 0; }
.custom-tag-input { min-width: 120px; max-width: 190px; padding: 8px; border: 1px solid var(--border); border-radius: 9px; font: inherit; }
#request-form { display: flex; flex-direction: column; }
#request-form .form-error, #request-form > button { order: 100; }
.chat-content { display: flex; flex-direction: column; height: calc(100dvh - 190px); }
.chat-content .messages { flex: 1; height: auto; }
.message-composer { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: end; gap: 8px; width: min(100%, 760px); margin: auto; padding: 9px 12px calc(9px + var(--safe-bottom)); border-top: 1px solid var(--border); background: rgba(255,255,255,.97); }
.message-composer textarea { min-height: 42px; max-height: 112px; padding: 10px 12px; resize: none; border: 1px solid var(--border); border-radius: 14px; font: inherit; }
.send-button { color: white; background: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.blocked-warning { align-self: start; width: fit-content; padding: 5px 8px; border-radius: 999px; color: #991b1b; background: #fee2e2; font-size: 11px; font-weight: 750; }
.block-section { margin-top: 14px; }
.block-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.block-row:last-child { border-bottom: 0; }
.block-row .button { width: auto; padding: 7px 11px; }
.seller-profile-link { color: inherit; text-decoration: none; }
.rating-field { margin: 0; padding: 0; border: 0; }
.rating-field legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.rating-options { display: flex; flex-direction: row; justify-content: flex-start; gap: 5px; }
.rating-options input { position: absolute; opacity: 0; }
.rating-options span { color: #cbd5e1; font-size: 32px; cursor: pointer; }
.rating-options label:has(input:checked) span,
.rating-options label:has(~ label input:checked) span { color: #f59e0b; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 13px; }

.workspace-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.workspace-navigation[hidden] { display: none; }
.workspace-navigation > div { display: flex; flex-wrap: wrap; align-content: start; gap: 6px; min-width: 0; }
.workspace-navigation strong { width: 100%; color: var(--text-subtle); font-size: 12px; }
.workspace-navigation a { padding: 6px 8px; border-radius: 8px; color: var(--primary); text-decoration: none; font-size: 12px; }
.workspace-navigation a[aria-current=page] { background: var(--primary-soft); font-weight: 700; }
.form-success { padding: 10px; color: #166534; background: #dcfce7; border-radius: 8px; }
.field-help { margin: 0; color: var(--text-subtle); font-size: 12px; }

.rating-options label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.review-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review-item p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.review-item time { color: var(--text-subtle); font-size: 12px; }
