*{box-sizing:border-box}
:root{
  color-scheme:dark;
  --bg:#050505;
  --surface:#101010;
  --surface-2:#181818;
  --ink:#f6efe3;
  --muted:#b9aa93;
  --line:rgba(255,255,255,.12);
  --accent:#d8bd7a;
  --accent-hover:#f0d891;
  --accent-ink:#14100a;
  --accent-2:#d46a82;
  --gold:#d8bd7a;
  --hero-copy:#b9aa93;
  --hover-line:rgba(216,189,122,.62);
  --selected-line:rgba(216,189,122,.68);
  --empty-line:rgba(216,189,122,.28);
  --thumb-bg:#171717;
  --control-bg:#101010;
  --control-hover:#1a1a1a;
  --shadow:0 22px 60px rgba(0,0,0,.42);
  --soft-shadow:0 8px 28px rgba(0,0,0,.28);
}
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#f7f8f6;
  --surface:#ffffff;
  --surface-2:#eef2f1;
  --ink:#101418;
  --muted:#65707b;
  --line:#dfe4e4;
  --accent:#0f6f74;
  --accent-hover:#0b5d61;
  --accent-ink:#fff;
  --accent-2:#b34a62;
  --gold:#b98645;
  --hero-copy:#2d343b;
  --hover-line:#c7d1d1;
  --selected-line:rgba(15,111,116,.55);
  --empty-line:#c7d1d1;
  --thumb-bg:#dde4e4;
  --control-bg:#ffffff;
  --control-hover:#eef2f1;
  --shadow:0 22px 60px rgba(16,20,24,.12);
  --soft-shadow:0 8px 28px rgba(16,20,24,.08);
}
html{scroll-behavior:smooth;background:var(--bg)}
body{
  margin:0;
  min-width:320px;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
}
button,input,select{font:inherit;color:inherit}
button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
img{display:block;max-width:100%}
[hidden]{display:none!important}
.wp-shell{min-height:100vh;padding:34px}
.wp-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 380px;
  gap:26px;
  width:min(1380px,100%);
  margin:0 auto;
}
.wp-hero{
  margin-bottom:32px;
  padding:0 0 24px;
  border-bottom:1px solid var(--line);
}
.wp-hero-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.wp-theme-toggle{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:8px;
  min-height:40px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--control-bg);
  color:var(--ink);
  cursor:pointer;
  font-size:.84rem;
  font-weight:800;
  padding:0 12px 0 10px;
  transition:background 140ms ease,transform 140ms ease;
}
.wp-theme-toggle:hover{background:var(--control-hover);transform:translateY(-1px)}
.wp-theme-toggle-icon{
  position:relative;
  width:18px;
  height:18px;
  overflow:hidden;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 4px rgba(216,189,122,.18);
}
.wp-theme-toggle-icon::after{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--control-bg);
  transform:translate(6px,-4px);
}
:root[data-theme="light"] .wp-theme-toggle-icon{
  background:#f3c653;
  box-shadow:0 0 0 4px rgba(243,198,83,.2);
}
:root[data-theme="light"] .wp-theme-toggle-icon::after{display:none}
.eyebrow{
  margin:0 0 12px;
  color:var(--accent);
  font-size:.76rem;
  font-weight:850;
  letter-spacing:.15em;
  text-transform:uppercase;
}
h1,h2,h3,p{letter-spacing:0}
h1,h2,h3{margin:0;line-height:1.02}
h1{max-width:820px;font-size:4.5rem;font-weight:780}
h2{font-size:2.05rem;font-weight:740}
h3{font-size:1.08rem;font-weight:760}
.wp-hero p:not(.eyebrow){
  max-width:680px;
  margin:18px 0 0;
  color:var(--hero-copy);
  font-size:1.08rem;
}
.section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}
.count-pill{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--muted);
  font-size:.86rem;
  font-weight:800;
  padding:0 12px;
  white-space:nowrap;
}
.pose-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.pose-card{
  display:grid;
  width:100%;
  min-width:0;
  padding:0;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:inherit;
  cursor:pointer;
  overflow:hidden;
  text-align:left;
  box-shadow:0 1px 0 rgba(16,20,24,.04);
  transition:transform 170ms ease,box-shadow 170ms ease,border-color 170ms ease;
}
.pose-card:hover{
  transform:translateY(-4px);
  border-color:var(--hover-line);
  box-shadow:var(--soft-shadow);
}
.pose-card.is-selected{border-color:var(--selected-line)}
.pose-media{
  position:relative;
  aspect-ratio:4/5;
  background:var(--surface-2);
  overflow:hidden;
}
.pose-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 220ms ease,filter 220ms ease;
}
.pose-card:hover .pose-media img{transform:scale(1.025);filter:saturate(1.04) contrast(1.03)}
.selected-badge{
  position:absolute;
  top:10px;
  right:10px;
  display:none;
  border-radius:8px;
  background:var(--accent);
  color:var(--accent-ink);
  font-size:.74rem;
  font-weight:850;
  padding:5px 8px;
}
.pose-card.is-selected .selected-badge{display:inline-flex}
.pose-copy{
  display:grid;
  gap:12px;
  padding:16px 17px 18px;
}
.pose-title{
  display:block;
  font-size:1rem;
  font-weight:760;
  line-height:1.02;
}
.tag-list{display:flex;flex-wrap:wrap;gap:7px}
.tag{
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--muted);
  font-size:.75rem;
  font-weight:750;
  padding:4px 7px;
}
.board-panel{
  position:sticky;
  top:18px;
  align-self:start;
  display:grid;
  gap:18px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  padding:20px;
  box-shadow:var(--soft-shadow);
}
.board-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border-radius:8px;
  padding:0 15px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:800;
  transition:background 160ms ease,border-color 160ms ease,transform 160ms ease;
  white-space:nowrap;
}
.button:hover{transform:translateY(-1px)}
.button:disabled{cursor:not-allowed;opacity:.45;transform:none}
.button.primary{background:var(--accent);color:var(--accent-ink)}
.button.primary:hover:not(:disabled){background:var(--accent-hover)}
.button.secondary{border-color:var(--line);background:var(--surface);color:var(--ink)}
.button.secondary:hover:not(:disabled){border-color:var(--hover-line);background:var(--surface-2)}
.selected-list{
  display:grid;
  gap:10px;
  min-height:220px;
}
.empty-board{
  display:grid;
  place-items:center;
  min-height:220px;
  border:1px dashed var(--empty-line);
  border-radius:8px;
  color:var(--muted);
  padding:22px;
  text-align:center;
}
.selected-item{
  display:grid;
  grid-template-columns:78px minmax(0,1fr) 38px;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface-2);
  padding:10px;
}
.selected-thumb{
  width:78px;
  aspect-ratio:1;
  border-radius:8px;
  object-fit:cover;
  background:var(--thumb-bg);
}
.selected-title{
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:780;
}
.selected-source{
  margin:4px 0 0;
  color:var(--muted);
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.icon-button{
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--muted);
  cursor:pointer;
  font-size:1.35rem;
  line-height:1;
}
.icon-button:hover{border-color:var(--hover-line);color:var(--ink)}
.export-view{width:min(1180px,100%);margin:0 auto}
.export-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:22px;
}
.export-actions{display:flex;flex-wrap:wrap;gap:12px}
.export-options{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:12px;
}
.export-options label{
  display:grid;
  gap:6px;
  color:var(--muted);
  font-size:.74rem;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.export-options select,.export-options input{
  min-width:132px;
  height:42px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
  font-size:.95rem;
  font-weight:750;
  letter-spacing:0;
  padding:0 10px;
  text-transform:none;
}
.export-options input{width:150px}
.export-pages{display:grid;gap:28px}
.print-page{
  width:min(100%,var(--page-width));
  min-height:var(--page-height);
  margin:0 auto;
  border:1px solid var(--line);
  background:#fff;
  padding:var(--page-padding);
  box-shadow:var(--soft-shadow);
}
.print-grid{
  display:grid;
  grid-template-columns:repeat(var(--page-columns),minmax(0,1fr));
  grid-template-rows:repeat(var(--page-rows),minmax(0,1fr));
  gap:clamp(4mm,2.4vw,12mm);
  min-height:calc(var(--page-height) - (var(--page-padding) * 2));
}
.print-card{
  display:grid;
  grid-template-rows:1fr auto;
  min-height:0;
  border:1px solid #dfe4e4;
  border-radius:8px;
  background:#f8f9f7;
  overflow:hidden;
}
.print-card img{
  width:100%;
  height:100%;
  min-height:0;
  object-fit:cover;
}
.print-card span{
  display:block;
  padding:10px 12px;
  color:#2d343b;
  font-size:.92rem;
  font-weight:760;
  text-align:center;
}
@media (max-width:1180px){
  .wp-layout{grid-template-columns:1fr}
  .board-panel{position:static}
  .pose-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .wp-shell{padding:22px 12px}
  h1{font-size:3rem}
  h2{font-size:1.7rem}
  .wp-hero-top{display:grid}
  .wp-theme-toggle{justify-self:start}
  .section-heading,.board-header,.export-toolbar{display:grid;justify-content:stretch}
  .export-actions,.export-options{display:grid;justify-content:stretch}
  .pose-grid{grid-template-columns:1fr}
  .button{width:100%}
  .export-options select,.export-options input{width:100%;min-width:0}
  .selected-item{grid-template-columns:68px minmax(0,1fr) 38px}
  .selected-thumb{width:68px}
  .print-page{padding:min(var(--page-padding),10mm)}
  .print-grid{gap:8mm}
}
@media print{
  body{background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .wp-shell{padding:0}
  .board-view,.export-toolbar{display:none!important}
  .export-view{display:block!important;width:100%;margin:0}
  .export-pages{gap:0}
  .print-page{
    width:var(--page-width);
    min-height:var(--page-height);
    border:0;
    box-shadow:none;
    break-after:page;
    page-break-after:always;
  }
}
