:root{font-family:"Pretendard","Malgun Gothic","Apple SD Gothic Neo",sans-serif;color:#303035;background:#fff;font-synthesis:none;--line:#e2e2e8;--accent:#b63e61}*{box-sizing:border-box}body{margin:0}button,input,select,a{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button,.studio-button{border:1px solid var(--line);background:#fff;color:inherit;border-radius:7px;min-height:44px;padding:10px 15px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px}button:disabled{opacity:.5;cursor:default}button:hover,.studio-button:hover{border-color:#b9bbc6}button.primary,.studio-button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}:is(button,a,input,select,summary):focus-visible{outline:3px solid #5476dd;outline-offset:3px}[hidden]{display:none!important}.studio-header{height:80px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1200px)/2));gap:20px}.studio-brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;white-space:nowrap}.studio-brand svg{width:42px;height:36px;color:#ff4b77}.studio-brand strong{font-size:21px;letter-spacing:-.6px}.studio-brand span{font-size:17px;font-weight:550;letter-spacing:-.5px;margin-left:4px}.studio-header nav{display:flex;gap:24px;align-self:stretch}.studio-header nav a{display:flex;align-items:center;border-bottom:3px solid transparent;color:#656571;text-decoration:none;font-size:15px;font-weight:600}.studio-header nav a[aria-current=page]{border-color:var(--accent);color:var(--accent)}#studio-main{max-width:1248px;margin:0 auto;padding:40px 24px 64px}h1{font-size:30px;letter-spacing:-1px;margin:0}h2{font-size:21px;letter-spacing:-.4px;margin:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:38px 0 18px}.section-heading a{font-size:14px;color:#686874}.legacy-work{margin-top:28px;border-top:1px solid var(--line);padding-top:20px}.legacy-work summary{cursor:pointer;font-size:14px;color:#666672;min-height:40px}.legacy-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #f1f1f4;padding:12px 0}.legacy-row span{font-size:14px;overflow-wrap:anywhere}.legacy-row button{flex-shrink:0}.account-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:18px;color:#656571}.account-strip button{min-height:36px;font-size:13px}.account-landing{padding:48px 24px;text-align:center;border:1px solid var(--line);border-radius:10px}.account-landing p{line-height:1.7;color:#72727e;font-size:14px}.project-save-state{font-size:12px;color:#72727e;margin:14px 0;display:flex;align-items:center;gap:10px}.save-recovery{color:#b33352}.studio-dialog{border:1px solid var(--line);border-radius:10px;padding:24px;width:min(440px,calc(100vw - 24px));color:inherit}.studio-dialog::backdrop{background:#22232c66}.studio-dialog h2{margin-bottom:20px}.studio-dialog label{display:grid;gap:8px}.studio-dialog input{font:inherit;min-height:44px;border:1px solid var(--line);border-radius:6px;padding:10px;width:100%}.studio-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.studio-dialog p{line-height:1.6;font-size:14px}.studio-dialog .dialog-error{color:#b33352}#studio-status{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:13px 19px;background:#303035;color:white;border-radius:8px;font-size:14px;z-index:30;box-shadow:0 3px 14px #2222;line-height:1.5}#studio-status[data-error=true]{background:#9b2f48}
@media(min-width:1600px){#studio-main{padding-top:56px}}@media(max-width:800px){.studio-header{padding:0 24px}.studio-brand span{display:none}}@media(max-width:560px){.studio-header{height:64px;padding:0 16px;gap:12px}.studio-brand{gap:7px}.studio-brand svg{width:33px}.studio-brand strong{font-size:19px}.studio-header nav{gap:16px}.studio-header nav a{font-size:14px}#studio-main{padding:28px 16px 48px}h1{font-size:25px}.section-heading{margin-top:30px}.legacy-row{align-items:flex-start}.legacy-row button{font-size:12px}.account-landing{padding:30px 18px}.studio-dialog{padding:20px}}
.studio-view{min-width:0}.account-strip button,.legacy-work summary{min-height:44px}.project-save-state{flex-wrap:wrap;line-height:1.6}.project-save-state>span{min-width:0;overflow-wrap:anywhere;flex:1 1 180px}.project-save-state button{flex:none;font-size:13px}.legacy-warning{font-size:13px;color:#8f4057;line-height:1.6;overflow-wrap:anywhere}.studio-dialog{max-height:calc(100dvh - 24px);overflow:auto}.account-strip span{min-width:0;overflow-wrap:anywhere}

/* Home uses the artwork as its navigation. A single matte frames each example. */
:root {
  --accent: var(--pm-accent);
  --line: var(--pm-line);
  color: var(--pm-ink);
  font-family: var(--pm-font);
}
.studio-tool-loading { display: none; }
.opening-tool body:has(.studio-home) .studio-tool-loading {
  display: block;
  margin: 40px auto;
  color: #656571;
}
html.opening-tool body:has(.studio-home) :is(#studio-main, .studio-footer) { display: none; }
body {
  --studio-edge: max(clamp(20px, 4vw, 60px), calc((100% - 1200px) / 2));
}
body:has(.studio-home, .studio-workspace, .studio-gallery) {
  --studio-edge: max(clamp(16px, 2vw, 32px), calc((100% - 1440px) / 2));
  --matte-relationship: #f6e9e7;
  --matte-cp: #e6f1eb;
  --matte-grid: #eeeaf5;
  --matte-lineage: #f5eddd;
  --matte-shorts: #e5edf4;
  color: var(--pm-ink);
  font-family: var(--pm-font);
  background: var(--pm-surface);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.studio-header {
  height: 64px;
  padding-inline: var(--studio-edge);
  background: var(--pm-surface);
  border-color: var(--pm-line);
}
.studio-brand { gap: 9px; }
.studio-brand svg { width: 34px; height: 30px; }
.studio-brand strong { font-size: 22px; font-weight: 760; letter-spacing: -.045em; }
.studio-brand span { font-size: 15px; font-weight: 540; letter-spacing: -.02em; color: var(--pm-muted); }
.studio-header nav { gap: 4px; align-items: center; }
.studio-header nav a {
  align-items: center;
  padding: 0 13px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 620;
}
.studio-header nav a[aria-current=page] { border-radius: 0; box-shadow: inset 0 -2px var(--pm-ink); color: var(--pm-ink); }
#studio-main:has(> :is(.studio-home, .studio-workspace, .studio-gallery)) {
  max-width: none;
  width: 100%;
  flex: 1 0 auto;
  padding: clamp(20px, 2vw, 32px) var(--studio-edge) 44px;
}
.home-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 2.2vw, 32px);
}
:is(.home-intro, .workspace-head) h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: -.05em;
}
.home-file {
  flex-direction: row-reverse;
  flex: none;
  gap: 7px;
  padding: 8px 13px;
  line-height: 1.3;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -.025em;
  border-color: var(--pm-line);
  border-radius: 10px;
}
.home-file svg { width: 17px; height: 17px; }
.creation-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
@media (min-width:861px) and (max-width:1149px) { .creation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width:681px) and (max-width:860px) { .creation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.creation-card {
  color: inherit;
  text-decoration: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--pm-line);
  border-radius: 18px;
  background: var(--pm-surface);
  box-shadow: 0 2px 5px #32282508;
}
.creation-card:hover, .creation-card:focus-visible { border-color: #be9ba6; box-shadow: 0 5px 14px #32282510; }
.creation-stage {
  display: grid;
  width: 100%;
  aspect-ratio: 1.92;
  place-items: center;
  --paper: var(--matte-relationship);
  background: linear-gradient(135deg, color-mix(in srgb, var(--paper), white 34%), var(--paper));
}
.creation-stage[data-kind=cp] { --paper: var(--matte-cp); }
.creation-stage[data-kind=favorite-grid] { --paper: var(--matte-grid); }
.creation-stage[data-kind=favorite-lineage] { --paper: var(--matte-lineage); }
.creation-stage[data-kind=shorts] { --paper: var(--matte-shorts); }
.creation-stage img {
  display: block;
  width: min(74%, 250px);
  height: auto;
}
.creation-stage:is([data-kind=relationship], [data-kind=cp], [data-kind=favorite-lineage]) img {
  background: white;
  border-radius: 5px;
  box-shadow: 0 1px 3px #40312d0e;
}
.creation-copy { align-self: center; width: 100%; padding: clamp(14px, 1.6vw, 22px); }
.creation-copy p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--pm-muted); word-break: keep-all; }
.picky-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-top: clamp(20px, 2.2vw, 32px);
  padding: 10px 16px;
  border: 1px solid var(--pm-line);
  border-radius: 12px;
  background: var(--pm-surface);
  color: var(--pm-ink);
  text-decoration: none;
}
.picky-banner:hover, .picky-banner:focus-visible { border-color: #bcb4cc; }
.picky-mark {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  height: 25px;
  border-radius: 6px;
  background: #6955a5;
  color: white;
  font: 700 11px/1 system-ui, sans-serif;
}
.picky-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 9px; }
.picky-copy strong { font: 680 17px/1.2 var(--pm-font); letter-spacing: -.025em; }
.picky-copy span { font-size: 13px; color: #64616a; }
.picky-arrow { margin-left: auto; color: #696473; font-size: 19px; }
.studio-footer { display: none; }
#studio-main:has(> :is(.studio-home, .studio-workspace, .studio-gallery)) + .studio-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding: 18px var(--studio-edge) max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #f4f2ef;
}
.studio-footer .footer-signature,
.studio-footer nav {
  display: flex;
  align-items: center;
}
.studio-footer .footer-signature { gap: 7px; }
.studio-footer strong { font-size: 16px; letter-spacing: -.045em; }
.studio-footer small { margin-inline-start: 3px; font-size: 12px; color: #69666e; }
.studio-footer nav { flex-wrap: wrap; gap: 0 22px; }
.studio-footer nav :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #57545d;
  font-size: 13px;
  text-decoration: none;
}
.studio-footer nav :is(a, button):hover,
.studio-footer nav :is(a, button):focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 680px) {
  body { --studio-edge: clamp(14px, 4.5vw, 24px); }
  .studio-header { height: 56px; }
  .studio-brand svg { width: 29px; height: 26px; }
  .studio-brand strong { font-size: 20px; }
  .studio-header nav { gap: 1px; }
  .studio-header nav a { padding-inline: 9px; min-height: 36px; font-size: 13px; }
  #studio-main:has(> :is(.studio-home, .studio-workspace, .studio-gallery)) { padding-top: 24px; }
  #studio-main:has(> :is(.studio-home, .studio-workspace, .studio-gallery)) + .studio-footer {
    gap: 0 12px;
    padding-block: 8px max(8px, env(safe-area-inset-bottom));
  }
  .studio-footer nav { column-gap: 14px; }
  .home-intro { gap: 8px; margin-bottom: 16px; }
  :is(.home-intro, .workspace-head) h1 { font-size: clamp(23px, 6vw, 30px); }
  .home-file { padding: 6px 9px; gap: 4px; font-size: 12px; }
  .creation-grid { grid-template-columns: 1fr; gap: 11px; }
  .creation-card { display: grid; grid-template-columns: 48% minmax(0, 1fr); border-radius: 14px; }
  .creation-stage { aspect-ratio: auto; min-height: clamp(100px, 29vw, 140px); }
  .creation-stage img { width: 81%; }
  .creation-copy { padding: clamp(10px, 3vw, 18px); }
  .creation-copy p { font-size: 13px; }
  .picky-banner { min-height: 48px; margin-top: 17px; padding: 9px 12px; }
  .picky-copy span { font-size: 12px; }
}

.workspace-head, .workspace-head > div, .workspace-controls, .storage-tabs {
  display: flex;
  align-items: center;
}
.workspace-head { justify-content: space-between; gap: 12px; }
.workspace-head > div { gap: 8px; }
.workspace-head > div > * { font-size: 13px; white-space: nowrap; }
.workspace-controls {
  gap: 10px;
  margin: 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.storage-tabs { flex: none; }
.storage-tabs button {
  min-height: 44px;
  padding: 8px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #66626b;
  font-weight: 550;
}
.storage-tabs button[aria-pressed=true] { border-bottom-color: currentColor; color: var(--pm-ink); }
.work-search, .work-kind-filter {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--pm-line);
  border-radius: 10px;
  color: inherit;
  background: white;
  padding: 8px 12px;
  font-size: 14px;
}
.work-search { margin-left: auto; width: min(29%, 290px); }
.work-kind-filter { max-width: 100%; }
.trash-toggle { font-size: 13px; color: #655f69; }
.trash-toggle[aria-pressed=true] { background: #fbf1f4; border-color: #bf8699; color: #93314e; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 22px clamp(12px, 1.4vw, 20px);
}
.work-card {
  display: flex;
  flex-direction: column;
  --cover-matte: #f3f2f4;
  --info-inset: clamp(12px, 1.25vw, 18px);
  min-width: 0;
  position: relative;
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-radius: 15px;
  box-shadow: 0 2px 5px #32282508;
}
.work-grid .work-card { --info-inset: 0px; border: 0; border-radius: 6px; box-shadow: none; }
.work-grid .work-cover {
  aspect-ratio: 5 / 4;
  padding: 0;
  border: 1px solid var(--pm-line);
  border-radius: 6px;
  background: var(--pm-surface);
}
.work-grid .work-open:is(:hover, :focus-visible) .work-cover { border-color: var(--pm-muted); }
.work-grid .roster-cover-image { object-fit: cover; }
.work-grid .work-info { padding-top: 8px; }
.work-grid .work-title { font-size: 17px; }
.work-card[data-work-kind=relationship] { --cover-matte: var(--matte-relationship); }
.work-card[data-work-kind=cp] { --cover-matte: var(--matte-cp); }
.work-card[data-work-kind=favorite-grid] { --cover-matte: var(--matte-grid); }
.work-card[data-work-kind=favorite-lineage] { --cover-matte: var(--matte-lineage); }
.work-card[data-work-kind=shorts] { --cover-matte: var(--matte-shorts); }
.work-card:has(.work-open:enabled:hover), .work-card:focus-within { border-color: #ac8996; }
.work-card:has(details[open]) { z-index: 2; }
.work-open {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0;
  text-align: start;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
.work-open:disabled { opacity: 1; }
.work-cover {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  aspect-ratio: 1.65;
  padding: clamp(10px, 1.3vw, 18px);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: var(--cover-matte);
}
.work-preview-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.work-cover-placeholder { font-size: 13px; color: #706b74; }
.work-info { display: flex; flex-direction: column; flex: 1; padding: var(--info-inset) var(--info-inset) 0; }
.work-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.35;
  letter-spacing: -.04em;
  font-weight: 700;
}
.work-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 2px 8px;
  min-height: 44px;
  padding-block: 5px;
  padding-inline-end: 30px;
  color: #706b74;
  font-size: 12px;
  line-height: 1.4;
}
.work-meta small { font: inherit; white-space: nowrap; }
.work-kind {
  padding: 3px 7px; border-radius: 6px;
  background: #edf1f7; color: #455870; font-weight: 620; white-space: nowrap;
}
.work-card[data-work-kind=cp] .work-kind { background: var(--pm-accent-soft); color: var(--pm-accent); }
.work-card[data-work-kind=favorite-grid] .work-kind { background: #f1edf7; color: #66527d; }
.work-card[data-work-kind=favorite-lineage] .work-kind { background: #f5eddd; color: #705731; }
.work-actions { position: absolute; inset-inline-end: 3px; bottom: 0; }
.work-actions details { position: relative; }
.work-actions summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 7px;
  color: #625c66;
  list-style: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.work-actions summary::-webkit-details-marker { display: none; }
.work-actions summary:hover, .work-actions details[open] summary { color: #332f35; background: #f6f4f6; }
.work-options {
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 168px;
  padding: 4px;
  border: 1px solid #c8c4cb;
  border-radius: 8px;
  background: #fff;
}
.work-options button {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  padding: 8px 11px;
  font-size: 13px;
}
.work-options button:hover, .work-options button:focus-visible { background: #f5f3f5; }
.work-card:is([data-state=trash], [data-state=held]) .work-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  position: relative;
  inset: auto;
  margin: 0 4px 4px;
  padding-inline-start: calc(var(--info-inset) - 4px);
}
.work-card:is([data-state=trash], [data-state=held]) .work-meta { padding-inline-end: 0; }
.work-actions > button { padding: 6px 9px; font-size: 13px; }
.empty-work, .studio-workspace .account-landing {
  grid-column: 1/-1;
  padding: clamp(24px, 4vw, 48px) 16px;
  text-align: center;
  border: 1px solid #e9e7ea;
  border-radius: 10px;
  background: #faf9fa;
}
.empty-work, .studio-workspace .account-landing p { font-size: 14px; line-height: 1.65; color: #67616b; }
.studio-workspace .account-landing p { margin: 10px 0 20px; }

@media (max-width: 850px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .workspace-head { gap: 8px; }
  .workspace-head > div { gap: 6px; }
  .workspace-head > div > * { padding: 6px 9px; font-size: 12px; }
  .workspace-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 8px;
    margin: 16px 0;
    padding-bottom: 13px;
  }
  .storage-tabs { grid-column: 1; grid-row: 1; justify-self: start; }
  .storage-tabs button { padding-inline: 12px; }
  .trash-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
  .work-search { width: 100%; margin: 0; }
  .work-search, .work-kind-filter { font-size: 16px; padding-inline: 8px; }
  .work-grid { gap: 12px 10px; }
  .work-card { --info-inset: 10px; border-radius: 13px; }
  .work-cover { padding: 8px; border-radius: 12px 12px 0 0; aspect-ratio: 1.35; }
  .work-title { font-size: 16px; }
  .work-meta { gap: 1px 6px; font-size: 11px; }
  .work-options { width: min(168px, calc(50vw - 18px)); }
  .work-card[data-state=held] .work-actions { padding: 0; }
}
@media (max-width: 360px) {
  .work-card { --info-inset: 8px; }
  .work-card[data-state=held] .work-actions > button { padding: 4px; font-size: 12px; }
  .work-actions { inset-inline-end: 0; }
  .work-meta { padding-inline-end: 35px; }
}

.home-recent-section {
  position: relative;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.home-recent > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding-inline-end: 120px;
  list-style: none;
  cursor: pointer;
}
.home-recent > summary::-webkit-details-marker { display: none; }
.home-recent > summary::before {
  content: '';
  width: 7px;
  height: 7px;
  margin: 0 3px 0 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  color: var(--pm-muted);
}
.home-recent[open] > summary::before { transform: rotate(45deg); }
.home-recent h2 { font-size: 15px; font-weight: 650; letter-spacing: -.025em; }
.home-workspace-link {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  font-size: 13px;
  color: var(--pm-muted);
  text-decoration: none;
}
.home-workspace-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.home-recent-list { display: grid; gap: 8px; }
.home-recent-list .work-card { padding: 0; border-radius: 10px; box-shadow: none; min-height: 84px; }
.home-recent-list .work-open {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 10px 52px 10px 11px;
}
.home-recent-list .work-cover { height: 60px; aspect-ratio: auto; padding: 5px; border-radius: 5px; }
.home-recent-list .work-cover-placeholder { font-size: 11px; }
.home-recent-list .work-info { padding: 0; min-width: 0; }
.home-recent-list .work-title { font-size: 15px; font-weight: 620; -webkit-line-clamp: 1; }
.home-recent-list .work-meta { margin-top: 5px; min-height: 0; padding: 0; font-size: 12px; }
.home-recent-list .work-card .work-kind { padding: 0; background: transparent; color: inherit; font-weight: 400; }
.home-recent-list .work-actions { top: 50%; right: 6px; bottom: auto; transform: translateY(-50%); }
.home-recent-list .work-options { width: 168px; }
@media (max-width: 680px) {
  .home-recent-section { margin-top: 22px; }
  .home-recent-list .work-open { grid-template-columns: 64px minmax(0, 1fr); gap: 11px; min-height: 80px; padding: 9px 43px 9px 9px; }
  .home-recent-list .work-cover { height: 52px; }
  .home-recent-list .work-actions { right: 1px; }
}

.studio-gallery .gallery-heading { display: block; min-width: 0; }
.studio-gallery .gallery-heading h1 { font-size: clamp(28px, 3vw, 41px); }
.gallery-heading p { margin: 9px 0 0; color: #68646d; line-height: 1.5; }
.studio-gallery .gallery-heading p { font-size: 14px; white-space: normal; word-break: keep-all; }
.gallery-search-row {
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gallery-search-row .gallery-search {
  flex: 1 1 auto;
  margin: 0;
  width: auto;
  max-width: 440px;
}
.gallery-sort { display: flex; flex: none; align-items: center; }
.gallery-sort button {
  font-size: 14px;
  padding: 6px 10px;
  border-color: transparent;
  color: #69636b;
}
.gallery-sort button[aria-pressed=true] { color: var(--pm-accent); background: var(--pm-accent-soft); font-weight: 650; }
.gallery-filter-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.gallery-filters { display: flex; flex-wrap: wrap; }
.gallery-filters button { color: #605b65; }
.gallery-selected-tag {
  max-width: 100%; overflow-wrap: anywhere; min-height: 36px;
  border-color: #dacdd2; background: #faf5f7; color: #843d57;
}
.gallery-card { --tag-ink: #7d5567; }
.gallery-card[data-work-kind=cp] { --tag-ink: #396767; }
.gallery-card[data-work-kind=favorite-grid] { --tag-ink: #6c5880; }
.gallery-card .work-open { color: inherit; text-decoration: none; }
.gallery-creator-x {
  display: inline-flex; align-items: center; align-self: flex-start;
  margin: 2px var(--info-inset) 0; min-height: 28px; color: #5c5660;
  font-size: 13px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere;
}
@media (pointer: coarse) { .gallery-creator-x { min-height: 40px; } }
.gallery-card .work-meta { margin: 0 var(--info-inset); }
.gallery-card-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 4px var(--info-inset) 0;
}
.gallery-card-tags button {
  display: block; min-height: 28px; min-width: 24px; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; padding: 2px 8px;
  background: #f5f5f6; border: none; border-radius: 999px; color: var(--tag-ink); font-size: 13px;
}
.gallery-card-tags button:hover { text-decoration: underline; text-underline-offset: 3px; }
.gallery-card:has(.work-open:hover) { border-color: #ac8996; }
.studio-gallery .empty-work { margin: 0; }
.empty-work p { margin: 0 0 12px; }
.gallery-edit-tags input { font-size: 16px; }
.gallery-edit-tags small + label { margin-top: 16px; }
.gallery-edit-tags small { color: #66616a; font-size: 12px; }
.gallery-tag-error { color: #983549; margin: 8px 0; font-size: 14px; }
.gallery-status { display: flex; gap: 10px; justify-content: center; align-items: center; color: #68646d; font-size: 14px; }
.gallery-status:not(:empty), .gallery-more { margin: 24px auto; }
.gallery-more { display: flex; }
.gallery-guide-toggle { flex: none; gap: 8px; font-size: 13px; }
.gallery-guide-toggle::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.gallery-guide-toggle[aria-expanded=true]::after { transform: translateY(2px) rotate(225deg); }
.gallery-guide-body {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px;
  margin-top: 12px; padding-block: 12px; border-block: 1px solid var(--line);
  font-size: 14px; line-height: 1.6; word-break: keep-all;
}
.gallery-guide-paths { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.gallery-guide-paths dt { font-weight: 650; }
.gallery-guide-paths dd { margin: 0; color: var(--pm-muted); }
.gallery-guide-body a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .studio-gallery .workspace-head { align-items: flex-start; }
  .studio-gallery .gallery-heading h1 { font-size: clamp(23px, 6vw, 30px); }
  .gallery-heading p { margin-top: 7px; }
  .gallery-guide-toggle { padding-inline: 9px; }
  .gallery-search-row { margin-top: 16px; gap: 4px; }
  .gallery-sort button { padding: 6px 8px; font-size: 13px; }
  .gallery-filter-row { margin-bottom: 12px; }
  .gallery-filters button { padding-inline: 8px; }
  .gallery-card-tags { gap: 0 6px; }
  .gallery-card-tags button { font-size: 12px; min-height: 32px; }
}
@media (pointer: coarse) {
  .studio-header .studio-brand, .studio-header nav a,
  .studio-gallery :is(.gallery-card-tags button, .gallery-filters button) {
    min-width: 44px; min-height: 44px;
  }
}
