:root {
  --brand: #202020;
  --accent: #e1fa68;
  --paper: #f7f7f2;
  --line: #d4d6ca;
  --soft: #e8ebe0;
  --muted: #56594e;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: #20221e;
  font: 1rem/1.55 "DM Sans", system-ui, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  margin: 0.3em 0;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 0.55em;
}
h3 {
  font-size: 1.45rem;
  margin-bottom: 0.55em;
}
small {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}
p {
  color: #474a41;
}
button,
input,
textarea,
select {
  font: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #5472ba;
  outline-offset: 3px;
}
.wrap {
  width: min(1250px, calc(100% - 9vw));
  margin-inline: auto;
}
header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.bar,
.footrow {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 68px);
  justify-content: space-between;
}
.bar {
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--brand);
}
.brand img {
  height: 46px;
  max-width: 195px;
  object-fit: contain;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transform: skew(-18deg);
  width: 32px;
  height: 32px;
}
.mark i {
  width: 8px;
  height: 23px;
  background: currentColor;
}
.mark i:nth-child(2) {
  height: 31px;
}
.mark i:last-child {
  height: 16px;
}
.bar nav {
  display: flex;
  gap: 2.1rem;
  align-items: center;
  font-size: 0.96rem;
  font-weight: 550;
}
.bar nav a:hover,
.under:hover {
  text-decoration: underline;
}
.account,
.btn,
button {
  background: var(--brand);
  color: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
  min-height: 42px;
}
.account {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--brand);
  border-radius: 100px;
  padding: 0.53rem 1.1rem;
}
.usericon {
  width: 14px;
  height: 15px;
  position: relative;
}
.usericon:before,
.usericon:after {
  content: "";
  position: absolute;
  border: 1.5px solid currentColor;
  left: 50%;
  transform: translateX(-50%);
}
.usericon:before {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  top: 0;
}
.usericon:after {
  width: 13px;
  height: 6px;
  border-radius: 9px 9px 2px 2px;
  bottom: 0;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(35px, 5.1vw, 76px) 0 32px;
}
.hero p {
  max-width: 300px;
  font-size: 1.03rem;
  margin: 0 0 0.35rem;
}
.eyebrow,
.productinfo small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 720;
  font-size: 0.79rem;
}
.inkdots {
  letter-spacing: -0.4em;
  color: #21251c;
  margin-right: 9px;
  background: var(--accent);
  border-radius: 20px;
  padding: 1px 9px 2px 5px;
}
.hero h1 {
  font-size: clamp(3rem, 6.1vw, 6.1rem);
  margin: 14px 0 0;
  letter-spacing: -0.054em;
  line-height: 0.98;
}
.hero em {
  font-weight: 460;
  font-family: Georgia, serif;
  letter-spacing: -0.061em;
}
.categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.catcard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
  background: #30322c;
  aspect-ratio: 1.65;
  color: white;
}
.catcard:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    transparent 15%,
    rgba(10, 12, 8, 0.15) 45%,
    rgba(10, 12, 8, 0.76) 100%
  );
}
.catcard img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.catcard:hover img {
  transform: scale(1.025);
}
.catcard > div {
  position: absolute;
  bottom: 8%;
  left: 6%;
}
.catcard h2 {
  font-size: clamp(2rem, 3.7vw, 3.7rem);
  margin-bottom: 0.32em;
  letter-spacing: -0.047em;
}
.catcard span {
  display: inline-block;
  background: var(--accent);
  color: #202020;
  padding: 0.54rem 0.95rem;
  border-radius: 100px;
  font-weight: 660;
  font-size: 0.88rem;
}
.catalogarea,
.guide {
  margin-top: clamp(40px, 5.5vw, 80px);
}
.heading,
.rate,
.rowlink,
.photoline,
.inliner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.heading,
.rowlink {
  justify-content: space-between;
}
.heading {
  align-items: baseline;
}
.under {
  text-underline-offset: 4px;
  text-decoration: underline;
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 8px 0 25px;
}
.filters a {
  border: 1px solid var(--line);
  padding: 0.45rem 1rem;
  border-radius: 99px;
  font-size: 0.92rem;
  font-weight: 550;
}
.filters a.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.servicecard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.productphoto {
  aspect-ratio: 1.65;
  background: var(--soft);
  overflow: hidden;
}
.productphoto img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.productinfo {
  padding: 1.1rem 1.25rem 1.35rem;
}
.productinfo small {
  color: #616651;
}
.productinfo h3 {
  margin: 0.6rem 0 0.95rem;
}
.rate {
  gap: 0.2rem;
  font-size: 0.94rem;
}
.rate span {
  color: var(--muted);
}
.guide {
  border-block: 1px solid var(--line);
  padding: 2.4rem 0;
  margin-bottom: 3rem;
}
.guide h2 {
  margin: 0.6rem 0;
}
.guide p {
  white-space: pre-line;
  max-width: 78ch;
}
.footrow {
  min-height: 90px;
  flex-wrap: wrap;
  padding-block: 1rem;
}
footer {
  background: var(--soft);
}
.section {
  padding-block: 2.6rem 4.5rem;
  min-height: 65vh;
}
.section > h1 {
  margin-bottom: 0.6em;
}
.servicegrid,
.authgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  margin-top: 1.6rem;
}
.servicegrid h1 {
  font-size: clamp(2.5rem, 4vw, 4.4rem);
}
.gallery {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}
.thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.thumbs button {
  background: white;
  padding: 3px;
  border: 1px solid var(--line);
}
.thumbs img,
.photoline img {
  width: 72px;
  height: 65px;
  object-fit: cover;
}
.formcard,
.panelcard {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: clamp(1.1rem, 2.5vw, 2rem);
  margin: 1.3rem 0;
}
.formcard {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.formcard h2,
.panelcard h2,
.dashboard h2 {
  font-size: 1.55rem;
  margin: 0 0 0.3rem;
}
.formcard h3,
.formcard p {
  margin: 0;
}
.formcard button {
  justify-self: start;
}
label {
  display: grid;
  gap: 0.32rem;
  font-size: 0.93rem;
  font-weight: 600;
}
.fields,
.authgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.fields:has(> :nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
input,
select,
textarea {
  display: block;
  min-width: 0;
  width: 100%;
  border: 1px solid #bcc0b5;
  border-radius: 6px;
  background: #fff;
  color: #21231e;
  padding: 0.62rem 0.7rem;
  line-height: 1.4;
}
select {
  appearance: none;
  padding-right: 1.8rem;
  background-image: linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}
textarea {
  resize: vertical;
}
.tick {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tick input {
  width: 18px;
  height: 18px;
}
.preview {
  max-height: 90px;
  max-width: 220px;
}
[hidden] {
  display: none !important;
}
input[type="color"] {
  height: 43px;
  padding: 3px;
}
.quiet {
  background: var(--soft);
  color: #252620;
}
.dashboard {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 3rem;
  padding-block: 2.5rem;
}
.dashboard aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.dashboard aside strong {
  font-size: 1.14rem;
  margin-bottom: 0.6rem;
}
.dashboard aside a {
  font-size: 0.94rem;
  padding: 0.4rem 0.1rem;
}
.dashboard aside a:hover {
  text-decoration: underline;
}
.panelbody {
  min-width: 0;
}
.panelbody h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0 0 1.25rem;
}
.search {
  display: flex;
  gap: 0.6rem;
  align-items: end;
  margin-block: 1rem;
}
.rowlink {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.rowlink:last-child {
  border: 0;
}
.rowlink small,
.panelcard small {
  display: block;
}
.status,
.notice {
  background: #e8f2ce;
  color: #344119;
  border-radius: 5px;
  padding: 0.35rem 0.7rem;
}
.status {
  font-size: 0.85rem;
}
.pending {
  background: #f1ebd9;
  color: #5b4b22;
}
.notice {
  padding: 1rem;
}
.notice a {
  text-decoration: underline;
}
.tablewrap {
  overflow: auto;
}
.kt-table {
  width: 100%;
  border-collapse: collapse;
}
.kt-table th,
.kt-table td {
  padding: 0.7rem;
  text-align: left;
  white-space: nowrap;
}
.inliner input {
  width: 100px;
}
.inliner button,
.quiet {
  font-size: 0.86rem;
}
.photoline label {
  max-width: 115px;
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin: 1rem 0 0;
}
dd {
  margin: 0;
  text-align: right;
}
@media (max-width: 850px) {
  .bar nav {
    gap: 0.8rem;
  }
  .bar nav a:last-child {
    display: none;
  }
  .hero {
    display: block;
  }
  .hero p {
    max-width: 52ch;
    margin-top: 1rem;
  }
  .dashboard {
    gap: 1rem;
    grid-template-columns: 155px minmax(0, 1fr);
  }
}
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .bar {
    min-height: 64px;
    gap: 0.5rem;
  }
  .bar nav {
    display: none;
  }
  .brand {
    font-size: 1.28rem;
  }
  .brand img {
    max-width: 145px;
  }
  .hero {
    padding: 2rem 0 1.3rem;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 10.2vw, 4rem);
  }
  .hero p {
    font-size: 0.96rem;
  }
  .categories {
    gap: 0.72rem;
  }
  .catcard {
    aspect-ratio: 0.8;
    border-radius: 10px;
  }
  .catcard > div {
    left: 7%;
    right: 5%;
    bottom: 8%;
  }
  .catcard h2 {
    font-size: clamp(1.45rem, 5.3vw, 2.3rem);
  }
  .catcard span {
    font-size: 0.77rem;
    padding: 0.38rem 0.55rem;
  }
  .cards,
  .servicegrid,
  .authgrid,
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards {
    gap: 1rem;
  }
  .productphoto {
    aspect-ratio: 1.9;
  }
  .heading {
    display: block;
  }
  .heading .under {
    font-size: 0.9rem;
  }
  .filters {
    margin-top: 1rem;
  }
  .section {
    padding: 1.65rem 0 3rem;
  }
  .servicegrid {
    gap: 1.3rem;
  }
  .gallery {
    aspect-ratio: 1.35;
  }
  .authgrid {
    gap: 0;
  }
  .dashboard {
    padding-top: 1rem;
  }
  .dashboard aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3px 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.6rem;
  }
  .dashboard aside strong {
    display: none;
  }
  .dashboard aside a {
    font-size: 0.88rem;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .formcard,
  .panelcard {
    margin: 1rem 0;
  }
  .footrow {
    gap: 1rem;
  }
  .footrow div:empty {
    display: none;
  }
  .status {
    white-space: normal;
  }
  .filters a {
    padding: 0.45rem 0.75rem;
  }
  .photoline {
    gap: 8px;
    flex-wrap: wrap;
  }
  .photoline img {
    width: 48px;
  }
  .bar > span {
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.nav-entry,
.type-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 0 0 12px;
  min-width: 0;
}
.nav-entry {
  display: grid;
  gap: 10px;
}
.nav-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-actions button {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}
.type-preview {
  display: grid;
  gap: 4px;
}
.type-preview i {
  font-size: 1.5em;
}
.type-preview strong {
  font-size: 1.65em;
}

.sales-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  margin: 1rem 0;
}
.sales-counts .panelcard { margin: 0; }
.sales-counts strong { font-size: 2rem; }
.variant{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.5rem;margin-bottom:.8rem;align-items:end}
.privacy-note{padding:12px 0;font-size:.86rem}.privacy-note summary{cursor:pointer}

.request-progress { display: none; }
.request-progress.htmx-request { display: inline; }
