:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #fff;
  --ink: #0a0a0a;
  --muted: #5c5c60;
  --line: #e4e4e6;
  --accent: #0866ff;
  --tint: #edf4ff;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0866ff;
  outline-offset: 3px;
}
.top {
  background: #2c2c2e;
  color: #f2f2f2;
}
.top-inner,
.nav-inner,
.shell,
footer {
  max-width: 1440px;
  margin: auto;
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 23px 36px;
  flex-wrap: wrap;
}
.brand {
  color: inherit;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -1px;
}
.brand span {
  font-weight: 400;
  color: #b6b6ba;
}
.city-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c5c5c9;
  font-size: 12px;
}
.city-label select {
  background: #414143;
  color: #fff;
  border: 0;
  border-radius: 24px;
  padding: 10px;
  max-width: 230px;
}
.account {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
  font-size: 13px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 11px 18px;
  border-radius: 999px;
  text-align: center;
  font-size: 14px;
  min-height: 44px;
}
.button:hover {
  text-decoration: none;
  background: #f0f2f5;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.button.primary:hover {
  background: #0756d8;
}
.button.top-login {
  color: #f2f2f2;
  border-color: #5c5c60;
  background: transparent;
}
.button.top-login:hover {
  background: #414143;
}
.button.subtle {
  background: transparent;
}
.navigation {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 36px;
}
.nav-button {
  padding: 11px 18px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-button:hover {
  background: var(--bg);
  text-decoration: none;
}
.nav-button[aria-current="page"] {
  background: var(--tint);
  color: var(--accent);
  font-weight: 600;
}
.shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  padding: 32px 36px 50px;
  align-items: start;
}
main {
  min-width: 0;
}
.architecture {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aside-label,
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.project-tile {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  text-align: left;
  color: var(--ink);
  display: block;
}
.project-tile:hover .project-link {
  text-decoration: underline;
}
.project-copy {
  padding: 16px;
  display: grid;
  gap: 5px;
}
.project-copy strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}
.project-copy > span {
  font-size: 12px;
  color: var(--muted);
}
.project-copy .project-link {
  color: var(--accent);
  margin-top: 8px;
  font-weight: 600;
}
.aside-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.house-art {
  display: block;
  height: 116px;
  position: relative;
  background: linear-gradient(155deg, #e8f1ff, #c3d8f4);
  overflow: hidden;
}
.house-front {
  position: absolute;
  left: 34px;
  top: 48px;
  width: 143px;
  height: 70px;
  background: #f2eee4;
  transform: skewY(-5deg);
}
.house-roof {
  position: absolute;
  width: 154px;
  height: 20px;
  left: 30px;
  top: 31px;
  background: #414b44;
  transform: skewY(-5deg);
  z-index: 2;
}
.house-window {
  position: absolute;
  top: 64px;
  left: 44px;
  width: 80px;
  height: 43px;
  background: repeating-linear-gradient(
    90deg,
    #3c5550 0 24px,
    #e1dccd 25px 28px
  );
  transform: skewY(-5deg);
  z-index: 3;
}
.house-door {
  position: absolute;
  left: 141px;
  top: 66px;
  width: 25px;
  height: 51px;
  background: #8a7866;
  transform: skewY(-5deg);
}
.blueprint-art {
  display: block;
  height: 110px;
  background:
    linear-gradient(90deg, transparent 49%, #c8d5e8 50% 51%, transparent 52%),
    linear-gradient(0deg, transparent 49%, #c8d5e8 50% 51%, transparent 52%),
    #edf3fc;
  background-size: 20px 20px;
  position: relative;
}
.blueprint-art:after {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  top: 20px;
  bottom: 20px;
  border: 3px solid #647d9e;
  background:
    linear-gradient(90deg, transparent 47%, #647d9e 48% 50%, transparent 51%),
    linear-gradient(0deg, transparent 54%, #647d9e 55% 58%, transparent 59%);
}
.build-art {
  display: block;
  height: 110px;
  background: linear-gradient(160deg, #e9e3d9, #c7c6b6);
  position: relative;
  overflow: hidden;
}
.build-art:before {
  content: "";
  position: absolute;
  left: 45px;
  top: 35px;
  width: 130px;
  height: 75px;
  background:
    repeating-linear-gradient(0deg, transparent 0 14px, #c2b19a 15px 17px),
    #dfcfb9;
  border-top: 8px solid #81796c;
}
.build-art:after {
  content: "";
  position: absolute;
  left: 65px;
  top: 60px;
  width: 30px;
  height: 50px;
  background: #5d6d63;
  box-shadow: 55px 0 #5d6d63;
}
.build-art span {
  position: absolute;
  top: 14px;
  left: 28px;
  width: 160px;
  height: 5px;
  background: #81796c;
  transform: rotate(-15deg);
}
h1 {
  font-size: clamp(29px, 3.2vw, 44px);
  font-weight: 650;
  letter-spacing: -1.4px;
  line-height: 1.1;
  margin: 12px 0 14px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0;
}
h3 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0;
}
p {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0;
}
.intro {
  margin-bottom: 24px;
}
.search {
  display: flex;
  gap: 8px;
  margin: 22px 0 18px;
}
.search input {
  flex: 1;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.tabs button {
  border: 0;
  border-radius: 99px;
  background: var(--surface);
  padding: 11px 18px;
  min-height: 44px;
  color: var(--muted);
}
.tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 218px;
  gap: 24px;
}
.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.list {
  display: grid;
  gap: 12px;
  align-content: start;
}
.listing {
  border-radius: 18px;
  padding: 22px;
  background: var(--surface);
  min-width: 0;
  overflow-wrap: anywhere;
}
.listing-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border-radius: 16px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meta,
.small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.badge {
  display: inline-flex;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--muted);
  margin: 0 5px 4px 0;
}
.online {
  color: #1d7a3a;
}
.money {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.6px;
  margin: 8px 0;
}
.listing-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.actions-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rail-dark {
  background: #0a0a0a;
  border-radius: 18px;
  padding: 22px;
  color: #f2f2f2;
}
.rail-dark .eyebrow {
  color: #a8cdff;
}
.rail-dark h3 {
  margin: 12px 0;
}
.rail-dark p {
  color: #b6b6ba;
  font-size: 13px;
  margin: 10px 0 18px;
}
.actions-rail .button {
  width: 100%;
}
.rail-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.rail-card p {
  font-size: 13px;
}
.rail-card .button {
  margin-top: 10px;
}
.more {
  margin-top: 20px;
}
.notice {
  font-size: 14px;
  color: var(--accent);
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.notice:not(:empty) {
  padding: 15px 0;
}
.notice.error {
  color: #b3261e;
}
.error-box {
  padding: 18px;
  border: 1px solid #efc8c4;
  border-radius: 16px;
}
.empty {
  padding: 28px 20px;
  border: 1px dashed #c7c7cc;
  border-radius: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}
.form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px;
}
textarea {
  resize: vertical;
}
.check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  line-height: 1.6;
}
.check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
}
.form .button {
  justify-self: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.section-space {
  margin-top: 22px;
}
.detail-section {
  margin-top: 20px;
  white-space: pre-line;
}
.gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.gallery img {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
}
.work-previews, .work-media {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.work-previews img {
  width: 88px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}
.master-portfolio { margin: 20px 0; }
.work-posts { display: grid; gap: 16px; }
.work-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.work-media > .work-frame {
  flex: 0 0 auto;
  max-width: 100%;
}
.work-media img, .work-media video {
  display: block;
  width: 240px;
  max-width: 100%;
  height: 190px;
  object-fit: contain;
  background: #f4f6f8;
  border-radius: 10px;
}
.work-card p { white-space: pre-line; overflow-wrap: anywhere; }
.works-feed {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.work-listing .work-card { border: 0; padding: 0; margin: 14px 0; }
.work-listing .listing-foot { flex-wrap: wrap; }
.work-listing .work-media > .work-frame {
  flex: 0 0 100%;
  width: 100%;
}
.work-listing .work-media img, .work-listing .work-media video {
  width: 100%;
  height: 320px;
}
.work-frame { position: relative; width: 240px; }
.work-photo { display: block; padding: 0; border: 0; border-radius: 10px; background: #f4f6f8; cursor: zoom-in; }
.work-video { min-width: 0; min-height: 190px; }
.work-listing .work-video { min-height: 320px; }
.expand-video { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 1px solid #ffffff70; border-radius: 12px; color: #fff; background: #101828d9; font-size: 26px; cursor: pointer; }
.media-viewer-open { overflow: hidden; }
#media-viewer { width: min(1200px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #ffffff30; border-radius: 20px; color: #fff; background: #101318; overflow: auto; }
#media-viewer::backdrop { background: #070b12e6; backdrop-filter: blur(8px); }
.media-toolbar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
#media-title { flex: 1; min-width: 0; margin: 0; font-size: 16px; overflow-wrap: anywhere; }
#media-count { flex: 0 0 auto; color: #cbd5e1; font-variant-numeric: tabular-nums; }
#media-viewer button { flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid #ffffff40; border-radius: 12px; background: #ffffff12; color: #fff; font-size: 24px; cursor: pointer; }
#media-viewer button:disabled { opacity: .3; cursor: default; }
#media-stage { display: grid; place-items: center; min-height: 160px; background: #080b10; }
#media-stage > img, #media-stage > video { display: block; width: 100%; max-height: calc(100dvh - 180px); object-fit: contain; }
.media-navigation { display: flex; justify-content: center; gap: 16px; padding: 12px 16px; }
.work-reactions { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.work-reactions button, .work-views { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.work-reactions button { min-height: 44px; padding: 6px 8px; border: 0; border-radius: 12px; background: transparent; }
.work-reactions svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.work-reactions button[aria-pressed="true"] { color: #f43f70; }
.work-reactions button[aria-pressed="true"] svg { fill: currentColor; }
.work-reactions button:active { transform: scale(.97); }
.work-sharing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.media-layout { display: grid; grid-template-columns: minmax(0, 1fr); height: min(74dvh, 760px); }
.media-main { display: grid; grid-template-columns: minmax(0, 1fr) 84px; position: relative; min-width: 0; min-height: 0; background: #080b10; }
.media-layout #media-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; min-height: 0; min-width: 0; overflow: hidden; }
.media-layout #media-stage > img, .media-layout #media-stage > video { width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.media-details { display: contents; }
#media-work-meta { position: absolute; z-index: 1; left: 16px; bottom: 54px; max-width: min(380px, calc(100% - 110px)); padding: 10px 12px; border-radius: 12px; background: #080b10b8; pointer-events: auto; }
#media-work-meta strong { font-size: 14px; }
#media-work-meta p { margin: 5px 0 0; color: #cbd5e1; font-size: 12px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; max-height: 4.5em; overflow: auto; }
#media-actions { flex-direction: column; justify-content: end; gap: 15px; margin: 0; padding: 16px 4px; }
#media-actions button, #media-actions .work-views { flex-direction: column; width: 70px; min-height: 50px; height: auto; border: 0; background: transparent; color: #e2e8f0; font-size: 12px; gap: 6px; }
#media-actions button[aria-pressed="true"] { color: #fb638a; }
#media-actions #reels-sound { font-size: 10px; color: #cbd5e1; }
#media-actions svg { width: 26px; height: 26px; }
.media-layout #media-stage.reels-stage { display: block; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.reels-stage::-webkit-scrollbar { display: none; }
.reel-slide { width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.reel-slide img, .reel-slide video { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; touch-action: pan-y; }
#media-status { margin: 0; padding: 0 16px 12px; font-size: 13px; color: #fbbf24; }
#media-status:empty { display: none; }
#media-viewer.comments-open .media-layout { grid-template-columns: minmax(0, 1fr) 340px; }
#work-comments { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 16px; border-left: 1px solid #ffffff20; background: #151a22; color: #e2e8f0; }
.comments-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.comments-head h3 { margin: 0; font-size: 16px; }
#comments-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-top: 16px; }
.work-comment { display: flex; align-items: start; gap: 10px; margin-bottom: 18px; }
.work-comment > div { flex: 1; min-width: 0; }
.work-comment .avatar { width: 32px; height: 32px; flex: 0 0 32px; font-size: 11px; background: #263246; color: #dbeafe; }
.work-comment strong { font-size: 12px; overflow-wrap: anywhere; }
.work-comment p { margin: 5px 0; color: #e2e8f0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.work-comment time { font-size: 11px; color: #94a3b8; }
#work-comments .delete-comment { width: auto; height: auto; min-height: 28px; border: 0; padding: 4px 6px; font-size: 11px; color: #94a3b8; background: transparent; }
#comments-status { color: #b6c3d4; font-size: 12px; }
#work-comments #more-comments, #work-comments #comments-login, #work-comment-form button { width: auto; min-height: 40px; height: auto; padding: 8px 12px; font-size: 13px; }
#comment-compose { border-top: 1px solid #ffffff20; margin-top: 12px; padding-top: 14px; }
#comment-compose p, #comment-compose label { font-size: 12px; color: #b6c3d4; }
#work-comment-form { display: grid; gap: 8px; }
#work-comment-body { width: 100%; resize: vertical; min-height: 60px; max-height: 160px; padding: 10px; border: 1px solid #ffffff35; border-radius: 12px; background: #080b10; color: #fff; font: inherit; font-size: 14px; }
#work-comment-form button { justify-self: end; background: #0866ff; border-color: #0866ff; }
#media-viewer #more-reels { width: auto; padding: 0 12px; font-size: 13px; }
@media (max-width: 760px) {
  #media-viewer { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 16px; }
  .media-toolbar { padding: 8px 12px; gap: 10px; }
  .media-layout { height: calc(100dvh - 150px); }
  .media-main { grid-template-columns: minmax(0, 1fr) 62px; }
  #media-actions button, #media-actions .work-views { width: 54px; }
  #media-work-meta { left: 8px; max-width: calc(100% - 80px); bottom: 46px; }
  #media-viewer.comments-open .media-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(260px, 55%); }
  #media-viewer.comments-open #media-work-meta { display: none; }
  #work-comments { border-left: 0; border-top: 1px solid #ffffff20; padding: 10px 12px; }
  #work-comment-body { font-size: 16px; }
  #work-comment-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  #work-comment-form label { grid-column: 1 / -1; }
  #comment-compose { padding-top: 8px; margin-top: 8px; }
  .media-navigation { padding: 8px 12px; }
  .reels-viewer .media-navigation { padding-block: 0; }
  .reels-viewer #previous-media, .reels-viewer #next-media { display: none; }
  .reels-viewer #more-reels { margin-block: 8px; }
}
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.service-row > div {
  min-width: 0;
}
.detail-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.detail-block p {
  white-space: pre-line;
}
.work-note-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 16px 0 0;
}
.work-note-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.work-note-photo img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  border-radius: 12px;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.steps span {
  padding: 8px 12px;
  background: var(--tint);
  color: var(--accent);
  border-radius: 99px;
  font-size: 12px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 36px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 13px;
}
.download-links,
.legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.legal {
  align-items: center;
  font-size: 12px;
}
.legal span {
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 22px;
  padding: 26px;
  background: var(--surface);
  color: var(--ink);
  width: min(690px, calc(100% - 28px));
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #0008;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.modal-head .button {
  padding: 8px 14px;
  font-size: 22px;
}
.modal-head h2 {
  overflow-wrap: anywhere;
}
#modal.order-chat-dialog {
  height: min(720px, 90dvh);
  max-height: none;
  padding: 0;
  overflow: hidden;
}
.order-chat-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.order-chat-dialog > .modal-head {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.order-chat-dialog > .modal-head h2 { margin: 0; font-size: 18px; }
.order-chat-dialog > #modal-status:empty { display: none; }
.order-chat { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.order-chat-context, .order-chat-footer { padding: 10px 16px; }
.order-chat-context { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.order-chat-context select { max-width: min(55vw, 240px); margin-left: 6px; min-height: 44px; font-size: 16px; }
.order-chat-context select:disabled { opacity: 1; color: var(--ink); }
.order-chat-log { overflow: auto; overscroll-behavior: contain; background: #f6f7f9; padding: 12px 16px; }
.chat-message {
  width: fit-content;
  max-width: 86%;
  margin: 0 0 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 15px 15px 15px 4px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.chat-message p { margin: 0; white-space: pre-wrap; }
.chat-message small { display: block; margin-top: 3px; color: var(--muted); }
.chat-message.chat-mine { margin-left: auto; border-radius: 15px 15px 4px 15px; background: #eaf2ff; color: #162b48; }
.chat-message.chat-mine small { color: #4a5d78; }
.chat-message.chat-system { margin-inline: auto; text-align: center; }
.order-chat-footer { border-top: 1px solid var(--line); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.order-chat-status { margin: 0 0 6px; }
.order-chat-status:empty { display: none; }
.order-chat-form { display: flex; align-items: end; gap: 8px; margin: 0; }
.order-chat-form textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 110px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
@media (max-width: 620px) {
  #modal.order-chat-dialog {
    position: fixed;
    inset: var(--chat-top, 0px) 0 auto;
    margin: 0;
    width: 100%;
    max-width: none;
    height: var(--chat-height, 100dvh);
    border-radius: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .order-chat { animation: order-chat-in 140ms ease-out; }
  .order-chat-form button:active:not(:disabled) { transform: scale(.97); }
  @keyframes order-chat-in {
    from { opacity: .65; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 5;
  background: var(--surface);
  padding: 15px;
}
.skip:focus {
  top: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .actions-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .actions-rail > .small {
    grid-column: 1/-1;
  }
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
  }
  .top-inner,
  .nav-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
  .shell {
    padding: 26px 24px;
  }
}
@media (max-width: 720px) {
  .top-inner {
    gap: 14px;
    padding: 18px;
  }
  .account {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .city-label {
    margin-left: auto;
  }
  .city-label select {
    max-width: 150px;
  }
  .shell {
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    gap: 24px;
  }
  .architecture {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .aside-label,
  .aside-note {
    grid-column: 1/-1;
  }
  .house-art,
  .blueprint-art,
  .build-art {
    height: 75px;
  }
  .house-front {
    left: 12px;
    top: 34px;
    width: 100px;
  }
  .house-roof {
    left: 8px;
    top: 22px;
    width: 110px;
    height: 13px;
  }
  .house-window {
    left: 20px;
    top: 43px;
    width: 65px;
    height: 30px;
  }
  .house-door {
    display: none;
  }
  .blueprint-art:after {
    inset: 13px;
  }
  .build-art:before {
    left: 12px;
    top: 20px;
    width: 100px;
  }
  .build-art:after {
    left: 27px;
    top: 42px;
    width: 20px;
    box-shadow: 40px 0 #5d6d63;
  }
  .build-art span {
    left: 10px;
    width: 110px;
    top: 12px;
  }
  .project-copy {
    padding: 10px;
    gap: 6px;
  }
  .project-copy strong {
    font-size: 13px;
  }
  .project-copy > span {
    font-size: 11px;
  }
  .project-copy > span:not(.project-link) {
    display: none;
  }
  .project-copy .project-link {
    margin: 0;
  }
  .nav-inner {
    padding: 10px;
    gap: 3px;
  }
  .nav-button {
    padding: 9px 11px;
    font-size: 12px;
  }
  main {
    width: 100%;
  }
  .actions-rail {
    grid-template-columns: 1fr;
  }
  .actions-rail > .small {
    grid-column: auto;
  }
  .search {
    flex-wrap: wrap;
  }
  .search input {
    flex-basis: 60%;
    font-size: 16px;
  }
  .tabs {
    gap: 6px;
  }
  .tabs button {
    padding: 10px 12px;
    font-size: 13px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .listing {
    padding: 18px;
  }
  dialog {
    padding: 20px;
  }
  footer {
    padding: 25px 18px;
  }
  .form input,
  .form textarea,
  .form select {
    font-size: 16px;
  }
}
.guest-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: var(--tint);
  border-radius: 18px;
  margin-bottom: 26px;
}
.guest-preview strong {
  font-size: 16px;
}
.guest-preview p {
  font-size: 12px;
  margin: 6px 0 0;
  max-width: 580px;
}
.guest-preview .button {
  flex-shrink: 0;
}
.sample-work {
  max-width: 310px;
  margin-top: 14px;
}
.sample-work .house-art {
  border-radius: 14px;
  height: 145px;
}
@media (max-width: 850px) {
  .guest-preview {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Preserve the original three-store download section. */
.stores-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.section-card {
  border-radius: 30px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.14);
}

.section-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.section-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.stores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.store-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 236px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 16px 30px rgba(148, 163, 184, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(148, 163, 184, 0.2);
}

.store-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.store-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.store-mark svg {
  width: 34px;
  height: 34px;
  display: block;
}

.store-mark.play {
  background: linear-gradient(180deg, #0b1020, #1e293b);
}

.store-mark.rustore {
  background: linear-gradient(180deg, #2f7dff, #1557f5);
}

.store-mark.appstore {
  background: linear-gradient(180deg, #fcfcfc, #ffffff);
}

.store-status {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.store-status.live {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
}

.store-status.soon {
  background: rgba(245, 158, 11, 0.12);
  color: #9a6700;
}

.store-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
}

.store-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.store-link.disabled {
  background: rgba(148, 163, 184, 0.22);
  color: #475569;
  pointer-events: none;
}

.stores-wrap {
  max-width: 1368px;
  margin: 30px auto;
  display: block;
  padding: 0 24px;
}
.stores-wrap .section-card {
  box-shadow: none;
  border: 1px solid var(--line);
  background: #fff;
}
.store-card {
  box-shadow: none;
}
.store-link {
  background: var(--accent);
}

/* Account entry is on the right, below the grey header. */
.nav-inner {
  align-items: center;
}
.account-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.account {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}
.register-button {
  color: var(--accent);
  border-color: var(--accent);
}
.listing {
  border: 1px solid var(--line);
}
.avatar,
.badge,
.tabs button {
  background: #f0f2f5;
}
.tabs button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}
.rail-dark {
  background: #edf4ff;
  color: var(--ink);
  border: 1px solid #d9e7ff;
}
.rail-dark .eyebrow {
  color: var(--accent);
}
.rail-dark p {
  color: var(--muted);
}
.brand span {
  color: #c5c5c9;
}
@media (max-width: 1100px) {
  .account {
    flex-basis: 100%;
    justify-content: flex-end;
  }
}
@media (max-width: 720px) {
  .account {
    justify-content: flex-end;
    width: 100%;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .account-label {
    margin-right: auto;
  }
  .stores-wrap {
    padding: 0 16px;
  }
  .stores {
    grid-template-columns: 1fr;
  }
  .stores-wrap .section-card {
    padding: 22px;
  }
  .store-card {
    min-height: 220px;
  }
  .store-title {
    font-size: 22px;
  }
}
.project-photo {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
}
.support-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.support-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  background: var(--surface);
}
.support-card p {
  margin: 12px 0 22px;
}
@media (max-width: 720px) {
  .project-photo {
    height: 85px;
  }
  .support-contacts {
    grid-template-columns: 1fr;
  }
}
.nav-inner {
  gap: 5px;
}
.nav-button {
  padding: 11px 12px;
}
@media (max-width: 720px) {
  .nav-button {
    padding: 9px 11px;
  }
}
.shell.without-sidebar {
  grid-template-columns: minmax(0, 1fr);
}
.button.primary:hover {
  background: var(--accent);
  filter: brightness(0.92);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: var(--accent);
}
.phone-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.phone-prefix {
  padding-left: 16px;
  padding-right: 12px;
  flex-shrink: 0;
  font-weight: 600;
}
.phone-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.phone-input:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.phone-input input:focus-visible {
  outline: none;
}
.qr-login {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.qr-login p { margin: 0; }
.login-qr {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line, #e1e4e8);
  border-radius: 12px;
}
.top .account {
  flex-basis: auto;
  margin-left: auto;
  color: #f2f2f2;
  width: auto;
  border: 0;
  padding: 0;
  margin-top: 0;
}
.top .register-button {
  background: #fff;
}
.top #account-name {
  max-width: 180px;
  overflow-wrap: anywhere;
}
.top #logout {
  background: #fff;
}
@media (max-width: 650px) {
  .top .account {
    flex-basis: 100%;
    justify-content: flex-end;
  }
  .top .account-label {
    margin-right: auto;
  }
}

/* Inactive desktop additions must not alter the existing narrow-screen layout. */
.desktop-only { display: none; }
.brand .brand-name { color: inherit; font-weight: inherit; }
