:root {
  color-scheme: light;
  --ink: #172f30;
  --muted: #526669;
  --teal: #0e655b;
  --dark: #132d2f;
  --canvas: #f3f5ef;
  --paper: #fff;
  --line: #d7e1d9;
  --accent: #ddedbc;
  --warn: #7d5317;
  --radius: 16px;
  font: 16px/1.48 "Segoe UI", "Arial", sans-serif;
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0; color: var(--ink); background: var(--canvas); min-height: 100vh; display: flex; flex-direction: column }
a { color: var(--teal); text-underline-offset: .17em }
button, input, select { font: inherit }
button, select, summary { cursor: pointer }
button:disabled { cursor: default; opacity: .63 }
input, select, button, summary, a { -webkit-tap-highlight-color: transparent }
:focus-visible { outline: 3px solid #ad730f; outline-offset: 3px }
h1, h2, h3, p { margin: 0 }
h1 { max-width: 24ch; font-size: clamp(2.15rem, 3.8vw, 4rem); line-height: 1.05; letter-spacing: -.055em; overflow-wrap: anywhere }
h2 { font-size: 1.32rem; line-height: 1.2; letter-spacing: -.025em }
h3 { font-size: 1.14rem; line-height: 1.24; letter-spacing: -.01em }
small { font-size: .82rem }
form { margin: 0 }
img { display: block; max-width: 100% }
.shell { width: min(1280px, 100% - 64px); margin-inline: auto }
.site-header { background: var(--dark); color: #fff; position: relative; z-index: 1 }
.header-layout { display: flex; align-items: center; gap: clamp(14px, 3vw, 48px); min-height: 79px }
.brand { flex: 0 0 auto; display: flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; font-weight: 780; font-size: 1.25rem; letter-spacing: -.024em; line-height: 1.04 }
.brand span span { color: #cbe4a6 }
.brand small { display: block; margin-top: 5px; font-size: .59rem; letter-spacing: .12em; font-weight: 700; color: #afc1ba }
.brand-icon { display: flex; align-items: end; gap: 3px; justify-content: center; padding-bottom: 10px; height: 39px; width: 39px; border-radius: 12px; background: var(--accent) }
.brand-icon i { width: 4px; background: var(--dark); border-radius: 2px }
.brand-icon i:nth-child(1) { height: 9px }
.brand-icon i:nth-child(2) { height: 14px }
.brand-icon i:nth-child(3) { height: 20px }
.header-layout nav { display: flex; gap: clamp(3px, .7vw, 11px); align-items: center; flex: 1 }
.header-layout nav a { color: #cad7d1; text-decoration: none; white-space: nowrap; padding: 9px 10px; border-radius: 8px; font-size: .93rem }
.header-layout nav a:hover, .header-layout nav a[aria-current] { color: #fff; background: #294949 }
.avatar { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #6f9187; border-radius: 50%; text-decoration: none; color: #e4efcd; font-weight: 770 }
.private { margin-left: auto; font-size: .91rem; color: #c6d6cc }
.main { flex: 1; padding-block: 34px 60px }
.headline { display: flex; gap: 20px; justify-content: space-between; align-items: end; margin-bottom: 23px }
.headline p:not(.eyebrow), .intro { color: var(--muted); margin-top: 11px; max-width: 58ch }
.eyebrow { color: var(--teal); font-weight: 770; font-size: .77rem; letter-spacing: .13em; margin-bottom: 8px; text-transform: uppercase }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius) }
.filter-panel, .section { padding: clamp(15px, 2.4vw, 27px) }
.filter-panel { display: grid; gap: 13px }
.quick-fields, .basic-fields, .extra-fields { display: grid; align-items: end; gap: 13px }
.quick-fields { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, .85fr) }
.basic-fields { grid-template-columns: repeat(3,minmax(0,1fr)) }
.catalog-fields { grid-template-columns: repeat(4,minmax(0,1fr)) }
.extra-fields { grid-template-columns: repeat(4,minmax(0,1fr)); margin-block: 10px }
.field { display: grid; gap: 5px; color: var(--muted); font-weight: 680; font-size: .85rem; min-width: 0 }
.field input, .field select, .region-picker summary { min-height: 44px; width: 100%; border: 1px solid #bacfc4; border-radius: 8px; padding: 8px 11px; color: var(--ink); background: #fafcf9; font-size: .97rem; font-weight: 500 }
.field input::placeholder { color: #596e70 }
.check { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: .88rem; line-height: 1.32; min-height: 34px }
.check input { accent-color: var(--teal); width: 17px; height: 17px; flex: 0 0 auto }
.region-picker { position: relative; min-width: 0 }
.region-picker summary { font-weight: 650; display: list-item; list-style-position: inside; padding-top: 10px }
.region-list { position: absolute; z-index: 2; top: calc(100% + 6px); right: 0; min-width: min(300px,72vw); padding: 9px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 7px 25px #132d2f20 }
.region-options { max-height: min(270px,40vh); overflow: auto; margin-block: 4px }
.region-options [hidden] { display: none }
.extra { border-top: 1px solid var(--line); padding-top: 10px }
summary { color: var(--teal); font-weight: 680 }
.options, .actions { display: flex; flex-wrap: wrap; gap: 9px 14px; align-items: center }
.actions .field { min-width: 125px }
.actions:has(.field) { align-items: end }
.primary, .secondary, .quiet, .following, .danger { display: inline-flex; gap: 5px; align-items: center; justify-content: center; min-height: 43px; padding: 8px 13px; border-radius: 8px; font-size: .92rem; font-weight: 730; text-align: center; text-decoration: none; line-height: 1.2; border: 1px solid transparent }
.primary { background: var(--teal); color: #fff; border-color: var(--teal) }
.primary:hover { background: #074c45 }
.secondary { color: var(--ink); background: #fff; border-color: #b6c8be }
.secondary:hover, .following:hover { background: #edf3e6 }
.following { background: #e9f2cf; color: #28450d; border-color: #c4d6a5 }
.quiet { background: transparent; color: var(--teal) }
.quiet:hover { background: #e7f1e8 }
.danger { border-color: #d2a59a; background: #fff5f1; color: #8d2922 }
.results { margin-top: 27px }
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; flex-wrap: wrap }
.result-head a { margin-left: .5em }
.result-head span { color: var(--muted); font-size: .9rem }
.cards, .source-grid { display: grid; gap: 15px; grid-template-columns: repeat(3,minmax(0,1fr)) }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip }
.media { position: relative; background: linear-gradient(132deg,#dae6d9,#eaf0dc 55%,#c9dccf); overflow: hidden; aspect-ratio: 16/9; color: #37504b }
.media img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; background: #e2ebe2 }
.media img.failed { visibility: hidden }
.media-empty { position: absolute; inset: 0; display: grid; align-content: center; justify-content: center; text-align: center; font-weight: 750 }
.media-empty small { display: block; color: #455e57; font-weight: 500 }
.card-body { padding: 15px; display: flex; flex-direction: column; flex: 1; gap: 8px }
.card-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between }
.card h3 { margin-top: 3px; overflow-wrap: anywhere }
.card h3 a, .list-item h2 a { color: var(--ink); text-decoration: none }
.card h3 a:hover, .list-item h2 a:hover { color: var(--teal); text-decoration: underline }
.source-mini, .place, .card-cost small, .card-footer small, .muted, .discrete { color: var(--muted) }
.source-mini { font-size: .76rem; font-weight: 720; white-space: nowrap }
.status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 8px; border-radius: 7px; background: #eaedef; font-size: .76rem; font-weight: 750; color: #32474b }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto }
.s-open { color: #126044; background: #e0f0d7 }
.s-upcoming, .s-running { color: #1a5471; background: #e5f1f9 }
.s-verify, .s-suspended { color: var(--warn); background: #fcf0d6 }
.s-cancelled { color: #8d2922; background: #f9e4e0 }
.card-cost { padding-top: 6px; margin-top: auto }
.card-cost strong { font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums }
.card-cost small, .card-footer small, .card-footer b { display: block }
.card-cost small:empty { display: none }
.card-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px }
.card-footer b { font-size: .84rem }
.card-footer .follow button { padding-inline: 8px }
.empty { text-align: center; padding: clamp(28px,6vw,65px) 15px }
.empty h1 { margin-inline: auto }
.empty p { margin: 8px auto 15px; color: var(--muted) }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 20px }
.pagination [aria-current] { display: grid; min-height: 43px; min-width: 43px; place-items: center; border-radius: 8px; background: var(--teal); color: #fff; font-weight: 730 }
.crumb { margin: 0 0 13px; font-size: .92rem }
.detail-head h1 { font-size: clamp(1.95rem,3.8vw,3.6rem); max-width: 33ch }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.36fr) minmax(0,1fr); gap: 16px; align-items: start }
.detail-main, .detail-side, .list-stack, .stacked { display: grid; gap: 13px; min-width: 0 }
.detail-main > .media { border-radius: var(--radius) }
.detail-main > .media img { object-fit: contain; background: #e3ebe2 }
.photo-trigger { display: block; width: 100%; padding: 0; border: 0; text-align: inherit; cursor: zoom-in }
.action-box { padding: clamp(17px,2.4vw,29px); background: #eaf3db; border-color: #c3d6af }
.big-price { font-size: clamp(1.9rem,3.1vw,3.15rem); font-weight: 780; line-height: 1.07; letter-spacing: -.04em; margin-block: 10px 6px }
.time-left { font-weight: 730; color: #1d5c48; margin-block: 8px }
.cost-note { color: #604615; font-weight: 700; margin-bottom: 9px }
.cost-note:empty { display: none }
.action-box .actions { margin-block: 12px 8px }
.discrete { font-size: .85rem }
.section h2 { margin-bottom: 10px }
dl { display: grid; gap: 0; margin: 0 }
dl > div { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr); gap: 12px; padding: 8px 0; border-top: 1px solid #e6ede7 }
dt { color: var(--muted); font-size: .9rem }
dd { margin: 0; overflow-wrap: anywhere }
.budget-inline { display: flex; align-items: end; gap: 8px; margin-bottom: 9px }
.budget-inline .field { flex: 1 }
.thumbnails { display: flex; overflow: auto; gap: 8px }
.photo-thumbnail { flex: 0 0 auto; padding: 0; border: 0; border-radius: 8px; background: #e3ebe2; min-width: 64px }
.thumbnails img { height: 64px; max-width: 112px; width: auto; border-radius: 8px; object-fit: cover }
.thumbnails img.failed { visibility: hidden }
.photo-viewer { width: min(100% - 24px, 1180px); max-width: none; max-height: 100%; padding: 0; margin: auto; border: 1px solid #58736e; border-radius: 16px; background: #112728; color: #fff }
.photo-viewer::backdrop { background: #091515e8 }
body:has(.photo-viewer[open]) { overflow: hidden }
.photo-viewer-bar { min-height: 53px; display: flex; align-items: center; justify-content: space-between; padding: 5px 9px 5px 16px; border-bottom: 1px solid #47625d }
.photo-count { font-size: .9rem; font-variant-numeric: tabular-nums }
.photo-viewer-body { display: grid; align-items: center; grid-template-columns: auto minmax(0,1fr) auto; gap: clamp(4px,1vw,12px); padding: 9px }
.photo-viewer-frame { grid-column: 2; grid-row: 1; height: min(75dvh, 760px); display: grid; place-items: center; min-width: 0 }
.photo-viewer-frame img { width: 100%; height: 100%; object-fit: contain; min-height: 0; color: #fff }
.photo-viewer [hidden] { display: none }
.photo-viewer-control { min-width: 44px; min-height: 44px; border: 1px solid #66857f; border-radius: 9px; color: #fff; background: #294949; font-size: 1.65rem; line-height: 1; padding: 0 6px }
.photo-viewer-control:hover { background: #3a6260 }
.photo-prev { grid-column: 1; grid-row: 1 }
.photo-next { grid-column: 3; grid-row: 1 }
.photo-error { color: #e3eae4; text-align: center }
.long { margin-top: 7px; white-space: pre-line; overflow-wrap: anywhere }
.block { display: block; color: var(--muted) }
.evidence { font-size: .83rem }
.evidence small { display: block; color: var(--muted) }
.link-list { margin: 0 0 9px; padding-left: 20px; overflow-wrap: anywhere }
.timeline { padding: 0; margin: 0; list-style: none }
.timeline li { border-top: 1px solid var(--line); display: grid; gap: 3px; padding: 9px 0; overflow-wrap: anywhere }
.timeline time, .timeline small { color: var(--muted); font-size: .83rem }
.list-item { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 13px }
.list-item p { color: var(--muted); margin-top: 5px }
.admin-list { padding: 0; margin: 12px 0 0; list-style: none }
.admin-list li { border-top: 1px solid var(--line); padding: 8px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px }
.admin-list li form { margin-left: auto }
.section > p { margin-bottom: 10px }
.source-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 14px }
.source-grid .card-top h2 { margin: 0 }
.source-grid .card-top { margin-bottom: 10px }
.feedback { background: #e5f2dd; color: #284d35; border: 1px solid #c5dbbd; padding: 9px 12px; border-radius: 9px; margin-block: 6px 13px; overflow-wrap: anywhere }
.feedback.error { color: #7c2920; background: #f9ece6; border-color: #ebc7bb }
.auth { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); align-items: center; gap: clamp(15px,7vw,95px); min-height: min(550px,70vh); max-width: 980px; margin-inline: auto }
.auth h1 { font-size: clamp(2.8rem,6.1vw,6.35rem) }
.auth-form { padding: clamp(17px,3vw,32px) }
.auth-form form { display: grid; gap: 12px; margin-block: 13px }
.passkey-button { width: 100%; margin-bottom: 8px }
.security-form { max-width: 470px; margin-block: 10px }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 5px 16px; padding-left: 20px; margin-bottom: 4px }
.admin-list li > .actions { margin-left: auto }
.admin-list li > .actions form { margin-left: 0 }
.admin-list .field { font-weight: 600 }
footer { color: #cee0d4; background: var(--dark); font-size: .82rem }
.footer-layout { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 8px }
@media (max-width: 1020px) {
  .shell { width: calc(100% - 36px) }
  .header-layout { gap: 13px }
  .header-layout nav a { padding-inline: 6px; font-size: .84rem }
}
@media (max-width: 840px) {
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .header-layout { flex-wrap: wrap; gap: 0; padding-top: 11px; min-height: 0 }
  .header-layout nav { order: 3; width: 100%; flex: 0 0 100%; overflow-x: auto; padding-block: 8px; gap: 5px }
  .header-layout nav a { padding-inline: 8px; font-size: .87rem }
  .avatar { margin-left: auto }
  .site-header:has(.private) .header-layout { padding-bottom: 11px }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 24px) }
  .header-layout nav { flex-wrap: wrap; overflow: visible }
  .main { padding-block: 20px 34px }
  .headline { align-items: start; flex-wrap: wrap; gap: 10px; margin-bottom: 14px }
  .headline > div { min-width: 0 }
  .headline p:not(.eyebrow) { margin-top: 7px }
  .quick-fields, .basic-fields, .extra-fields, .source-grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .catalog-fields > .field:nth-child(-n+2) { grid-column: auto }
  .quick-fields > :first-child, .basic-fields > :last-child { grid-column: 1 / -1 }
  .cards { grid-template-columns: minmax(0,1fr) }
  .detail-grid { grid-template-columns: minmax(0,1fr) }
  .detail-side { order: -1 }
  .detail-grid { display: flex; flex-direction: column }
  .detail-main, .detail-side { display: contents }
  .detail-grid > div > * { width: 100%; max-width: 100%; min-width: 0 }
  .detail-grid .action-box { order: -5 }
  .detail-grid .detail-main > .media { order: -4 }
  .detail-grid .thumbnails { order: -3 }
  .detail-grid .detail-side > .section { order: -2 }
  .auth { grid-template-columns: minmax(0,1fr); align-content: start; padding-top: 20px }
  .source-grid { grid-template-columns: minmax(0,1fr) }
  .list-item { align-items: start; flex-direction: column }
  .basic-fields label:has(select[name="status"]) { grid-column: 1 / -1 }
  .photo-viewer { width: calc(100% - 12px) }
  .photo-viewer-body { grid-template-columns: 1fr 1fr; gap: 6px }
  .photo-viewer-frame { grid-column: 1 / -1; height: min(58dvh, 560px) }
  .photo-prev, .photo-next { grid-row: 2; width: 100% }
  .photo-next { grid-column: 2 }
}
@media (max-width: 345px) {
  .quick-fields, .basic-fields, .extra-fields { grid-template-columns: minmax(0,1fr) }
}
