@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --bg: #f8f7f3;
  --surface: #fffefa;
  --ink: #23231f;
  --muted: #625f57;
  --line: #e3ded4;
  --line-strong: #cdc6bb;
  --accent: #a43828;
  --accent-soft: #f6e9e3;
  --accent-dark: #8a3023;
  --shadow: none;
  --radius: 14px;
}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1rem/1.55 'DM Sans',sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3,.brand,strong{font-family:Manrope,'DM Sans',sans-serif}
h1{font-size:clamp(2.15rem,4vw,3.5rem);line-height:1.03;letter-spacing:-.055em;margin:.35rem 0 .7rem}
h2{font-size:1.13rem;letter-spacing:-.025em;margin:0}
h3{margin:0}
p{margin:0;color:var(--muted)}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{color:inherit}
.icon{width:1.15rem;height:1.15rem;display:block;flex:0 0 auto}
.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}

.workspace {
  --rail-width: 214px;
  padding-left: var(--rail-width);
}

.workspace-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--rail-width);
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  padding: 1.8rem 1.1rem 1.2rem;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.06em;
}

.workspace-nav .brand {
  margin-left: .55rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1;
}

.workspace-nav nav {
  display: grid;
  gap: .3rem;
}

.workspace-nav nav a,
.nav-logout {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  padding: .6rem .8rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.workspace-nav nav a:hover,
.nav-logout:hover {
  background: var(--bg);
  color: var(--ink);
}

.workspace-nav nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-form {
  margin: auto 0 0;
}

.nav-logout {
  width: 100%;
}

.guest-nav {
  width: min(100%, 1300px);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
}

.container {
  width: min(100%, 1320px);
  min-width: 0;
  margin: 0 auto;
  padding: clamp(2.25rem, 4.3vw, 4.3rem) clamp(1.4rem, 4vw, 3.75rem) 4rem;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: .5rem;
  left: .5rem;
  padding: .75rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;margin-bottom:2rem}
.page-head p{font-size:.95rem;max-width:620px}
.eyebrow{font-size:.7rem;text-transform:uppercase;font-weight:700;letter-spacing:.13em;color:#8b8b94}
.eyebrow span,.detail-summary .eyebrow span{display:inline-block;width:3px;height:3px;border-radius:50%;background:#b1b1b8;vertical-align:middle;margin:0 .45rem}

.button{appearance:none;border:0;border-radius:12px;min-height:44px;padding:.72rem 1rem;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-size:.87rem;font-weight:700;cursor:pointer;transition:transform .16s,background .16s,box-shadow .16s,color .16s}
.button:hover{transform:translateY(-1px)}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.button.primary{background:var(--accent);color:#fff}
.button.primary:hover{background:var(--accent-dark)}
.button.secondary{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-strong)}
.button.secondary:hover{background:#f4f4f5}
.button.quiet{min-height:36px;padding:.45rem .65rem;background:var(--accent-soft);color:var(--accent-dark)}
.button.full{width:100%}
.button:disabled{cursor:not-allowed;opacity:.42;transform:none}
.button.is-loading:before{content:'';width:14px;height:14px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.alert{padding:.85rem 1rem;border-radius:13px;margin:0 0 1.25rem;font-size:.88rem;border:1px solid}
.alert.error{background:#fff2f1;color:#943d39;border-color:#f2cecb}
.alert.success{background:#effaf5;color:#176f53;border-color:#cce9dc}
.alert.warning{background:#fff8e8;color:#865d1b;border-color:#efdfb8}
.alert a{text-decoration:underline;font-weight:700}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}

/* Inventory */
.inventory-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.35rem;
}

.inventory-head h1 {
  font-size: clamp(3.15rem, 6.3vw, 5.3rem);
  line-height: .98;
  letter-spacing: -.075em;
  margin: 0 0 .55rem;
}

.inventory-head p {
  font-size: .95rem;
}

.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.inventory-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(185px, 244px);
  align-items: center;
  gap: .85rem;
  padding: .75rem 0;
  border-block: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.filter-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .7rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}

.filter-tabs a span {
  color: inherit;
  opacity: .74;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.filter-tabs a:hover {
  background: #ece9e2;
}

.filter-tabs a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.search-form {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.search-form:focus-within {
  border-color: var(--accent);
  outline: 2px solid var(--accent-soft);
}

.search-form input {
  flex: 1;
  min-width: 4rem;
  min-height: 42px;
  border: 0;
  background: transparent;
  margin: 0;
  padding: .55rem .4rem .55rem .75rem;
  box-shadow: none;
  outline: none;
  font-size: 1rem;
}

.search-form input:focus {
  box-shadow: none;
  outline: none;
}

.search-form button {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  align-self: stretch;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.8rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing-card {
  display: block;
  min-width: 0;
  border-radius: 12px 12px 4px 4px;
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 4.35;
  overflow: hidden;
  isolation: isolate;
  border-radius: 12px;
  background: #e9e6df;
}

.card-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.listing-card:hover .card-image img {
  transform: scale(1.035);
}

.listing-card:hover h2 {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .83rem;
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: #efede8;
  color: #4e4a42;
  padding: .28rem .55rem;
  font-size: .75rem;
  font-weight: 700;
}

.status.draft { background: #faecd8; color: #674618; }
.status.listed, .status.connected-status { background: #e5f3e8; color: #256041; }
.status.sold { background: #e7edf8; color: #344f7a; }

.card-status {
  position: absolute;
  top: .65rem;
  left: .65rem;
}

.photo-count {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .44rem;
  border-radius: 6px;
  background: #22221ee0;
  color: white;
  font-size: .75rem;
  font-weight: 700;
}

.photo-count .icon {
  width: .875rem;
  height: .875rem;
}

.listing-copy {
  padding: .75rem .05rem .1rem;
}

.listing-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6rem;
}

.listing-line h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font: 700 1rem/1.35 'DM Sans', system-ui, sans-serif;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.listing-price {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: .96rem;
  font-variant-numeric: tabular-nums;
}

.listing-category {
  margin-top: .18rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .85rem;
}

.muted {
  font-size: .82rem;
  color: var(--muted);
}

.empty {
  padding: 3.25rem 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto .9rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.empty h2 { font-size: 1.35rem; }
.empty p { margin: .4rem 0 1.1rem; }

/* create */
.create-head{align-items:center}
.step-pill{display:flex;align-items:center;gap:.55rem;background:#fff;border:1px solid var(--line);border-radius:999px;padding:.45rem .7rem;font-size:.72rem;font-weight:700;color:#7b7b84;white-space:nowrap}
.step-pill span{width:22px;height:22px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:.65rem}.step-pill span:last-of-type{background:#ededf0;color:#85858d}.step-pill i{width:22px;height:1px;background:var(--line-strong)}
.create-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:1.25rem;align-items:start}
.upload-workspace{background:#fff;border:1px solid var(--line);border-radius:22px;padding:1rem;min-height:590px;box-shadow:var(--shadow)}
.dropzone{min-height:556px;border:1.5px dashed #cbcbd1;border-radius:16px;background:#fafafa;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:.42rem;cursor:pointer;margin:0;transition:background .16s,border-color .16s}
.dropzone:hover,.dropzone.is-dragging{background:var(--accent-soft);border-color:var(--accent)}
.dropzone.has-files{min-height:170px;margin-bottom:1rem}
.dropzone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.upload-mark{width:52px;height:52px;border-radius:16px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin-bottom:.5rem}
.upload-mark .icon{width:1.5rem;height:1.5rem}
.dropzone strong{font-size:1rem}.dropzone>span:not(.upload-mark):not(.button){font-size:.85rem;color:#777780}.dropzone small{font-size:.72rem;color:#a0a0a8;margin-top:.15rem}.choose-button{margin-top:.9rem;pointer-events:none}
.photo-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.preview-card{position:relative;border-radius:13px;overflow:hidden;background:#f1f1f3;border:1px solid var(--line)}
.preview-card img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.preview-meta{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.58rem .65rem;background:#fff}.preview-meta span{font-size:.72rem;font-weight:700}.preview-meta small{font-size:.64rem;color:#96969e}
.preview-remove{position:absolute;top:.45rem;right:.45rem;width:29px;height:29px;border:0;border-radius:9px;background:rgba(24,24,27,.76);color:#fff;display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(5px)}.preview-remove svg{width:14px;height:14px}
.create-sidebar{background:#1d1d21;color:#fff;border-radius:22px;padding:1.6rem;position:sticky;top:94px;box-shadow:0 18px 38px rgba(24,24,27,.12)}
.sidebar-icon{width:42px;height:42px;border-radius:13px;background:#332f51;color:#a99ffb;display:grid;place-items:center;margin-bottom:1.2rem}.sidebar-icon .icon{width:1.35rem;height:1.35rem}
.create-sidebar h2{font-size:1.22rem;margin-bottom:.45rem}.create-sidebar>p{font-size:.83rem;color:#a7a7b0}
.capture-list{display:grid;gap:0;margin:1.6rem 0}.capture-list>div{display:grid;grid-template-columns:28px 1fr;gap:.65rem;padding:.8rem 0;border-top:1px solid #333338}.capture-list>div:last-child{border-bottom:1px solid #333338}.capture-list>div>span{font:700 .66rem Manrope;color:#777780;padding-top:.15rem}.capture-list p{font-size:.76rem;color:#8f8f98;line-height:1.45}.capture-list strong{display:block;color:#f4f4f5;font-size:.79rem;margin-bottom:.15rem}.create-sidebar .button.primary{background:#fff;color:#1d1d21}.create-sidebar .button.primary:before{border-color:rgba(24,24,27,.2);border-top-color:#18181b}.privacy-note{text-align:center;margin-top:.8rem!important;font-size:.68rem!important}

/* forms and editor */
.back-link{display:inline-flex;align-items:center;gap:.35rem;margin-bottom:1.25rem;color:#73737c;font-size:.8rem;font-weight:700}.back-link .icon{width:.95rem}
.detail-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:2rem;align-items:center;margin-bottom:2rem}
.listing-gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:.55rem;height:430px;overflow:hidden;border-radius:20px}
.listing-gallery img{width:100%;height:100%;object-fit:cover;background:#e7e7e9;min-width:0}.listing-gallery .gallery-cover{grid-row:1/3}.listing-gallery img:nth-child(n+6){display:none}
.listing-gallery:has(img:only-child){grid-template-columns:1fr;grid-template-rows:1fr}.listing-gallery img:only-child{grid-row:auto}
.detail-summary{padding:1rem}.detail-summary h1{font-size:clamp(2rem,3.4vw,3rem);margin:.6rem 0 .75rem}.detail-summary>p{font-size:.9rem}.summary-meta{display:flex;align-items:center;gap:.7rem;margin-top:1.15rem;color:#92929b;font-size:.72rem}
.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:1.25rem;align-items:start}.editor-column,.detail-sidebar{display:grid;gap:1rem}.detail-sidebar{position:sticky;top:92px}
.form-section{padding:1.5rem}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}.panel-title h2{margin-top:.25rem}.ai-tag{font-size:.68rem;font-weight:700;color:#6356c4;background:var(--accent-soft);padding:.42rem .6rem;border-radius:8px;white-space:nowrap}.section-help{font-size:.78rem;margin:-.6rem 0 1rem}
label {
  display: block;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

label small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin: .15rem 0;
}

input, textarea, select {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 10px;
  padding: .65rem .8rem;
  margin-top: .38rem;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder, textarea::placeholder { color: #777169; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}
textarea{resize:vertical;line-height:1.55;min-height:100px}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .8rem center;padding-right:2.4rem}
.field-grid{display:grid;gap:.8rem}.field-grid.two{grid-template-columns:repeat(2,1fr)}.field-grid.three{grid-template-columns:repeat(3,1fr)}.field-grid label{min-width:0}
.input-prefix,.input-suffix{position:relative;display:block}.input-prefix input{padding-left:1.8rem}.input-prefix:before{content:'$';position:absolute;left:.75rem;bottom:.72rem;color:#7d7d86;font-size:.84rem;z-index:1}.input-suffix input{padding-right:2.8rem}.input-suffix:after{content:'USD';position:absolute;right:.75rem;bottom:.75rem;color:#92929a;font-size:.64rem;font-weight:700}
.specifics-list{display:grid;gap:.55rem}.specific-row{display:grid;grid-template-columns:minmax(120px,.75fr) minmax(160px,1.25fr) 38px;gap:.55rem}.specific-row input{margin:0}.icon-button{width:38px;height:38px;align-self:center;border:0;border-radius:9px;background:#f2f2f4;color:#7e7e87;display:grid;place-items:center;cursor:pointer}.icon-button:hover{background:#feecea;color:#aa4440}.icon-button .icon{width:1rem;height:1rem}
.save-button{min-height:50px}
.price-panel{padding:1.35rem;background:#1d1d21;color:#fff;border-color:#1d1d21}.price-panel h2{margin:.3rem 0 .2rem}.price-panel>p{font-size:.74rem;color:#92929b}.price-panel .eyebrow{color:#85858e}.price-stats{margin-top:1.2rem}.price-stats>div{display:flex;justify-content:space-between;align-items:center;padding:.72rem 0;border-top:1px solid #35353a}.price-stats span{color:#aaaab1;font-size:.74rem}.price-stats strong{font-size:.92rem}.price-stats .estimate{margin-top:.15rem}.price-stats .estimate strong{font-size:1.25rem;color:#b9b1ff}
.refresh-panel{padding:1rem}.refresh-panel p{font-size:.68rem;line-height:1.5;margin-top:.75rem}.comps-panel{padding:1.1rem}.comps-panel .panel-title{margin-bottom:.4rem}.comps-panel .panel-title>span{font-size:.7rem;color:#8d8d96}.comp-row{display:grid;grid-template-columns:66px minmax(0,1fr) 16px;gap:.55rem;align-items:start;border-top:1px solid #eeeeef;padding:.75rem 0;font-size:.7rem}.comp-price{font-weight:800;font-family:Manrope}.comp-name{color:#5e5e67;line-height:1.4}.comp-name small{display:block;font-size:.64rem;color:#9999a1;margin-top:.18rem}.comp-row .icon{width:.8rem;color:#9999a1}

/* settings and authentication */
.auth-card{max-width:440px;margin:6vh auto;background:#fff;border:1px solid var(--line);border-radius:22px;padding:2rem;box-shadow:var(--shadow)}.auth-card h1{font-size:2.1rem;margin:.4rem 0}.auth-card>p{font-size:.84rem;margin-bottom:1.4rem}.auth-card form{margin-top:1.3rem}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.settings-grid .span-all{grid-column:1/-1}.settings-grid .panel{padding:1.5rem}.settings-grid .panel>p{font-size:.82rem;margin:0 0 1rem}.connection{display:flex;align-items:center;gap:.6rem;border-bottom:1px solid #efeff1;padding:.7rem 0;font-size:.82rem}.connection b{margin-left:auto;font-size:.68rem;color:#85858e}.connection-dot{width:7px;height:7px;border-radius:50%;background:#d49a4a}.connection-dot.connected{background:#36a878}.settings-form{margin-top:1rem}.note-box{border-radius:11px;padding:.8rem .9rem;background:#f5f5f6;color:#777780;font-size:.7rem;margin-top:1rem}.note-box strong{display:block;color:#3f3f46;font-size:.75rem;margin-bottom:.15rem}.file-input{margin:1rem 0}.template-summary{background:#f7f7f8;border:1px solid var(--line);border-radius:10px;padding:.8rem;margin-top:1rem;font-size:.7rem;color:#777780;overflow-wrap:anywhere}.template-summary strong{display:block;color:#3f3f46;margin-bottom:.25rem}
.export-steps{max-width:800px;margin-top:1rem}.export-steps ol{padding-left:1.2rem;color:#5f5f68;font-size:.8rem}.export-steps li{padding:.25rem 0}.fine-print{font-size:.68rem;line-height:1.5;color:#8f8f97}
@media (max-width: 1120px) {
  .workspace { --rail-width: 178px; }
  .inventory-tools { grid-template-columns: 1fr; }
  .search-form { grid-row: 1; }
  .detail-hero { grid-template-columns: 1fr; }
  .listing-gallery { height: 420px; }
  .detail-summary { padding: .2rem 0; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .create-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 950px) {
  .workspace { padding-left: 0; }
  .workspace-nav {
    position: static;
    display: grid;
    width: 100%;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .85rem;
    padding: .65rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace-nav .brand { margin: 0; }
  .workspace-nav nav { display: flex; justify-content: center; }
  .nav-form { margin: 0; }
  .nav-logout span { display: none; }
}

@media (max-width: 820px) {
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .create-layout, .detail-layout { grid-template-columns: 1fr; }
  .create-sidebar, .detail-sidebar { position: static; }
  .detail-sidebar { grid-template-columns: 1fr 1fr; }
  .detail-sidebar > .save-button, .detail-sidebar > .comps-panel { grid-column: 1 / -1; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .span-all { grid-column: auto; }
}

@media (max-width: 600px) {
  .workspace-nav { gap: .5rem; padding-inline: .85rem; }
  .workspace-nav nav { grid-row: 2; grid-column: 1 / -1; min-width: 0; justify-content: stretch; }
  .workspace-nav nav a { flex: 1; min-width: 0; justify-content: center; gap: .4rem; padding-inline: .4rem; }
  .nav-form { grid-column: 3; }
  .brand-mark { width: 32px; height: 32px; }
  .container { padding: 1.8rem 1rem 3rem; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .page-head > .button { width: 100%; }
  .inventory-head { margin-bottom: 1.35rem; }
  .inventory-head h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .inventory-actions { flex-direction: row-reverse; }
  .inventory-tools { gap: .55rem; margin-bottom: 1rem; }
  .filter-tabs { gap: 0; }
  .filter-tabs a { padding-inline: .45rem; }
  .listing-grid { gap: 1.25rem .7rem; }
  .listing-line { flex-direction: column; gap: .2rem; }
  .listing-line h2 { font-size: .95rem; }
  .card-image { border-radius: 9px; }
  .card-status { left: .45rem; top: .45rem; }
  .photo-count { right: .45rem; bottom: .45rem; }
  .create-head { margin-bottom: 1.4rem; }
  .upload-workspace { padding: .7rem; }
  .dropzone.has-files { min-height: 150px; }
  .photo-preview { grid-template-columns: repeat(2, 1fr); }
  .create-sidebar { padding: 1.3rem; }
  .listing-gallery { height: 330px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .listing-gallery img:nth-child(n+4) { display: none; }
  .detail-summary { padding: 0; }
  .detail-summary h1 { font-size: 1.8rem; }
  .detail-sidebar { grid-template-columns: 1fr; }
  .detail-sidebar > .save-button, .detail-sidebar > .comps-panel { grid-column: auto; }
  .form-section { padding: 1.15rem; }
  .field-grid.two, .field-grid.three { grid-template-columns: 1fr; }
  .specific-row { grid-template-columns: 1fr 1fr 36px; }
  .panel-title { align-items: flex-start; }
  .ai-tag { white-space: normal; text-align: right; }
  .settings-grid .panel { padding: 1.15rem; }
  .auth-card { margin: 3vh 0; padding: 1.4rem; }
}

@media (max-width: 390px) {
  .specific-row { grid-template-columns: 1fr 36px; }
  .specific-row input:nth-child(2) { grid-column: 1 / 2; }
  .specific-row .icon-button { grid-column: 2; grid-row: 1 / 3; height: 100%; }
}

@media (max-width: 360px) {
  .workspace-nav nav a .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .card-image img { transition: none; }
  .listing-card:hover .card-image img { transform: none; }
}

[hidden] {
  display: none !important;
}

.upload-workspace {
  min-height: 0;
}

.dropzone {
  min-height: clamp(245px, 34vw, 340px);
  padding: 1rem;
}

.dropzone:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.upload-description {
  padding: 1rem .25rem .35rem;
}

.upload-description label {
  margin-bottom: .4rem;
}

.upload-description p {
  margin-top: .5rem;
  font-size: .85rem;
}

.photo-preview:not([hidden]) {
  margin-top: .75rem;
}

.upload-status:not(:empty) {
  margin: .55rem .25rem;
  font-size: .88rem;
}

.field-optional {
  margin-left: .4rem;
  color: var(--muted);
  font-weight: 400;
}

.create-sidebar label {
  margin: 1rem 0 .35rem;
  color: #f4f4f5;
}

.create-sidebar > p {
  margin: .75rem 0 1.25rem;
}

.select-field {
  min-width: 0;
  margin-bottom: 1rem;
}

.select-field label {
  margin-bottom: .38rem;
}

.select-control {
  position: relative;
  margin-top: .38rem;
  color: var(--ink);
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  width: 100%;
  min-height: 46px;
  padding: .65rem .75rem .65rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.select-trigger[aria-expanded="true"],
.select-trigger:hover {
  border-color: var(--accent);
}

.select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-trigger::after {
  content: "";
  flex: none;
  margin: -.22rem .22rem 0 0;
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.select-trigger[aria-expanded="true"]::after {
  margin-top: .22rem;
  transform: rotate(225deg);
}

.select-menu {
  position: absolute;
  z-index: 15;
  inset: calc(100% + .35rem) 0 auto;
  max-height: min(16rem, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 26px #23231f22;
  list-style: none;
}

.select-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  min-height: 42px;
  padding: .45rem .55rem;
  border-radius: 7px;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.select-option[aria-selected="true"] {
  color: var(--accent-dark);
  font-weight: 700;
}

.select-option[aria-selected="true"]::after {
  content: "";
  flex: none;
  width: .36rem;
  height: .62rem;
  margin-right: .22rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.select-option[data-active],
.select-option:hover {
  background: var(--accent-soft);
}

.select-option[aria-disabled="true"] {
  opacity: .5;
  cursor: default;
}

.file-input input::file-selector-button {
  margin-right: .65rem;
  padding: .5rem .7rem;
  border: 0;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-card .auth-privacy {
  margin: .85rem 0 0;
  text-align: center;
}

.auth-privacy a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.pluto-launch {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 23;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 54px;
  padding: .35rem .95rem .35rem .5rem;
  border: 1px solid #d7c1ad;
  border-radius: 100px;
  background: #fff3e6;
  color: var(--ink);
  box-shadow: 0 7px 22px #23231f26;
  font-weight: 800;
}

.pluto-launch:hover, .pluto-launch:focus-visible {
  background: #ffe9d5;
}

.pluto-launch img, .pluto-portrait img {
  display: block;
  flex: none;
}

.workspace .container {
  padding-bottom: 5.5rem;
}

.pluto-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.pluto-portrait {
  display: grid;
  flex: none;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 1.4rem;
  background: #f9e7d4;
}

.pluto-heading h1 {
  margin: 0 0 .3rem;
}

.pluto-layout {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 1.25rem;
}

.pluto-form h2, .pluto-results .form-section h2 {
  margin-bottom: 1rem;
}

.pluto-form textarea {
  resize: vertical;
}

.pluto-files input { padding: .4rem; }

.pluto-files small {
  margin-top: .35rem;
}

.pluto-progress:empty, .pluto-match p:empty {
  display: none;
}

.pluto-progress:not(:empty) {
  margin-top: .6rem;
  font-size: .875rem;
}

.pluto-results {
  display: grid;
  gap: .7rem;
  min-width: 0;
  scroll-margin-top: 1rem;
  overflow-wrap: anywhere;
}

.pluto-empty {
  padding: clamp(1.2rem, 2.8vw, 2rem);
  border: 1px dashed #cdc6bb;
  border-radius: var(--radius);
  background: #fffaf4;
}

.pluto-empty h2, .pluto-results-heading h2 {
  margin-bottom: .35rem;
}

.pluto-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .75rem;
  padding: .85rem 1rem;
}

.pluto-match h3 {
  margin-bottom: .22rem;
  font-size: 1rem;
  line-height: 1.35;
}

.pluto-match h3 a:hover {
  text-decoration: underline;
}

.pluto-match p, .pluto-footnote {
  font-size: .86rem;
}

.pluto-domain {
  margin-bottom: .2rem;
}

.pluto-match-price {
  display: grid;
  justify-items: end;
  text-align: right;
  gap: .2rem;
}

.pluto-match-price span {
  color: var(--muted);
  font-size: .75rem;
}

.pluto-shortcuts {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.pluto-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .42rem .6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  font-size: .85rem;
  font-weight: 650;
}

.pluto-shortcuts a:hover {
  background: var(--accent-soft);
}

.pluto-shortcuts .icon {
  width: .85rem;
  height: .85rem;
}

@media (max-width: 820px) {
  .pluto-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .pluto-match {
    grid-template-columns: 1fr;
  }

  .pluto-match-price {
    justify-items: start;
    text-align: left;
  }
}

.channel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  width: fit-content;
  margin-bottom: 1.5rem;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ededf0;
}

.channel-nav a {
  padding: .55rem .85rem;
  border-radius: 10px;
  color: #565660;
  font-size: .875rem;
  font-weight: 700;
}

.channel-nav a:hover {
  background: #ffffff80;
}

.channel-nav a[aria-current="page"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px #18181b13;
}

.channel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.channel-form .section-help {
  font-size: .875rem;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1rem;
}

.copy-field label,
.copy-field input,
.copy-field textarea {
  margin: 0;
}

.copy-field input,
.copy-field textarea {
  grid-column: 1 / -1;
}

.copy-field .button {
  min-height: 32px;
}

.channel-form .field-grid label:not([for]) {
  align-self: end;
}

.channel-form-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

.copy-status {
  font-size: .85rem;
}

.channel-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.channel-photo-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.channel-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ededf0;
}

.channel-photo-grid figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem .5rem;
  padding: .55rem .65rem;
  font-size: .8rem;
}

.channel-photo-grid figcaption a {
  color: var(--accent-dark);
  font-weight: 700;
}

.live-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.live-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: 1rem;
}

.live-action {
  margin-top: 1rem;
}

.live-item-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.live-item-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 0;
  border-top: 1px solid var(--line);
}

.live-item-list small {
  display: block;
  color: var(--muted);
}

.detail-without-photos {
  grid-template-columns: 1fr;
}

.detail-without-photos .listing-gallery {
  display: none;
}

.detail-without-photos .detail-summary {
  padding-inline: 0;
}

.sale-review {
  margin-bottom: 1rem;
  background: var(--accent-soft);
}

.sale-review h2 {
  margin-bottom: .6rem;
  font-size: .85rem;
}

.sale-review h3 {
  margin-bottom: .3rem;
}

.channel-layout .sale-review {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .channel-layout,
  .live-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 690px) {
  .workspace-nav nav {
    grid-row: 2;
    grid-column: 1 / -1;
    min-width: 0;
    justify-content: stretch;
  }

  .workspace-nav nav a {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: .15rem;
    padding: .35rem .1rem;
    font-size: .78rem;
  }

  .nav-form {
    grid-column: 3;
  }
}

@media (max-width: 600px) {
  .channel-nav {
    gap: .15rem;
  }

  .channel-nav a {
    padding-inline: .6rem;
  }

  .channel-form input,
  .channel-form textarea,
  .upload-description textarea,
  .create-sidebar select {
    font-size: 16px;
  }
}
