:root{
  --bg:#000000;
  --card:#060606;
  --accent:#343434;
  --muted:#9aa0a6;
  --gutter:1.25rem;
  --gutter-lg:2rem;
  --pad-vertical:1.25rem;
  /* dark glass to avoid any light/white substrate */
  --glass: rgba(0,0,0,0.6);
}
/* Load local fonts placed in project root */
@font-face{
  font-family: 'Manrope';
  src: url('/Manrope-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Cinzel';
  src: url('/Cinzel-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
*{box-sizing:border-box}
body{margin:0;font-family:Manrope, Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;background:var(--bg);color:#f1e7e8;min-height:100vh}
.site-header{display:flex;align-items:center;justify-content:space-between;padding:calc(var(--pad-vertical) / 1.2) var(--gutter);background:transparent}
.site-header h1{margin:0;font-size:1.25rem}
.btn {
  display: inline-block;
  background: #141414;
  color: #ccc;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 1.1rem;
  line-height: 1;
}
.btn:hover {
  background: #1f1f1f;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.btn.secondary{background:transparent;border:1px solid rgba(255,255,255,0.06);box-shadow:none}
.btn.secondary:hover{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.2)}
.container{max-width:1200px;margin:1.5rem auto;padding:0 var(--gutter)}
.container.single-poster{margin-top:0}

/* Layout for poster pages: place header and poster content on the same horizontal level on wide screens */
.top-row{display:flex;flex-direction:column;gap:1rem}
@media(min-width:900px){
  /* Remove padding from body/page to let content hit edges */
  .poster-page {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 100vh;
  }

  /* For wide screens switch to a 4-column grid when needed.
     Columns: back button | poster | meta | share button */
  .top-row.four-col{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-sizing: border-box;
  }
  /* allow header children to participate in the grid */
  .top-row.four-col .site-header{display:none}
  
  /* ensure the main poster container spans the middle two columns */
  .top-row.four-col > .container.single-poster{
    margin:0;
    padding:0;
    height: 90vh;
    display: grid;
    grid-template-columns: auto minmax(300px, 25vw);
    gap: var(--gutter-lg);
    align-items: start;
    width: auto;
    max-width: 95vw;
  }
  
  /* Image sizing for tight fit */
  .single-poster .full-poster {
    max-height: 90vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
  }
  
  /* UV container support */
  .poster-uv {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .poster-uv .full-poster {
    max-height: 90vh;
  }

  /* Meta column height */
  .top-row.four-col .poster-meta {
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 0;
    overflow: hidden;
  }
  .top-row.four-col .poster-meta h2 {
    flex-shrink: 0;
  }
  .top-row.four-col .poster-meta .meta-body {
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: none;
    margin-top: auto;
  }
  .top-row.four-col .poster-meta .meta-body::-webkit-scrollbar {
    display: none;
  }
  
  /* fallback for non-four-col top-rows (older pages) */
  .top-row{align-items:flex-start}
}

/* Fixed navigation button: hidden on mobile/tablet (up to 1024px), visible on desktop */
.fixed-nav { display: none; }
@media(min-width: 1025px) {
  .fixed-nav {
    display: block;
    position: fixed;
    left: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
  }
}

/* Gallery header: pin nav left, center title */
.gallery-header{justify-content:center;position:relative}
.gallery-header nav{position:absolute;left:1.25rem}
@media (max-width: 1024px) {
  .gallery-header nav { display: none; }
}
.gallery-title{margin:0;text-align:center}

/* Small equal vertical padding for poster pages */
.poster-page{padding-top:1.25rem;padding-bottom:1.25rem}
/* Use auto-fit to center items by filling the row */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}
.card{background:transparent;border-radius:10px;overflow:visible;box-shadow:0 6px 22px rgba(0,0,0,0.6);transition:transform .15s, z-index 0s;display:block;text-decoration:none;color:inherit;position:relative;z-index:1}
.card:hover{transform:translateY(-6px);z-index:10}
/* Enforce consistent aspect ratio 8:12 (width:height). Images fill the card with object-fit:cover */
.card{aspect-ratio: 8 / 12}
.card img{width:100%;height:100%;object-fit:cover;display:block;transform-origin:center center;transition:transform .45s cubic-bezier(.2,.8,.2,1),filter .28s ease,opacity .2s ease;will-change:transform,filter}

/* Inner wrapper for clipping main image */
.card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  z-index: 2;
  background: var(--card);
}

/* Main image styling */
.card .card-image {
  position: relative;
  z-index: 2;
}

/* Glow effect styling */
.card .card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  /* Start with blur and grayscale to match the card's initial state */
  filter: blur(20px) grayscale(100%);
  opacity: 0;
  /* Start slightly smaller */
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.5s ease;
  pointer-events: none;
  border-radius: 12px;
  will-change: transform, opacity, filter;
}

.card:hover .card-glow {
  opacity: 0.3; /* User requested 20-30 opacity */
  /* Scale up significantly to create a visible aura */
  transform: scale(1.2);
  /* Vibrant, blurred glow */
  filter: blur(30px) saturate(2) brightness(1.2);
}

/* Default: images are shown in black-and-white / muted look */
.card .card-image{filter:grayscale(100%) contrast(.95) brightness(.92)}

/* Hover effects: remove filter and scale image to 1.5x for dramatic preview */
@media (hover: hover) and (pointer: fine) {
  .card:hover{transform:translateY(-6px)}
  .card:focus{transform:translateY(-8px);outline:2px solid rgba(255,255,255,0.06)}
  .card:hover .card-image{transform:scale(1.12);filter:none}
  .card:focus .card-image{transform:scale(1.12);filter:none}
}
.card .meta{display:none}
.card h3{margin:0;font-size:1rem}
.card p{margin:.35rem 0 0;font-size:.85rem;color:var(--muted)}
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,0.7);z-index:60}
.modal[aria-hidden="false"]{display:flex}
.modal-content{background:var(--glass);border-radius:10px;padding:1rem;max-width:900px;width:94%;display:flex;gap:1rem;align-items:flex-start}
.modal-content img{max-width:420px;width:40%;height:auto;border-radius:6px}
.modal-meta{flex:1;color:#fff}
.modal-close{background:transparent;border:none;color:#fff;font-size:1.1rem;position:absolute;right:1rem;top:1rem;cursor:pointer}
.poster-meta{margin-top:1rem;display:flex;flex-direction:column;justify-content:space-between;height:auto;padding:0 0.5rem}
.poster-meta h2{font-size:2.6em;margin:0 0 .5rem;line-height:1.05}
.poster-meta .meta-body{display:flex;flex-direction:column;gap:1rem;padding-bottom:0.6rem}
.poster-meta .meta-body p{margin:0 0 0.9rem;color:var(--muted);line-height:1.5}
.single-poster{display:grid;grid-template-columns:1fr;gap:1rem;align-items:stretch}
.single-poster .full-poster{width:100%;height:auto;border-radius:8px;display:block}
.share-row{display:flex;gap:.5rem;margin-top:.75rem}
.site-footer{text-align:center;padding:1rem;color:var(--muted);font-size:.9rem}

/* Tools block cards */
.tools-block{margin-top:2rem}
.tool-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}
.tool-card{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:0.8rem;
  padding:0.9rem;
  background:rgba(10,10,10,0.7);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  text-decoration:none;
  color:inherit;
  align-items:start;
  box-shadow:0 12px 30px rgba(0,0,0,0.35);
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.tool-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(0,0,0,0.45);
  border-color:rgba(255,255,255,0.14);
}
.tool-thumb{
  width:120px;
  aspect-ratio:1;
  border-radius:12px;
  overflow:hidden;
  background:#0d0d0d;
  border:1px solid rgba(255,255,255,0.08);
}
.tool-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.tool-meta h3{margin:0;font-size:1.1rem;line-height:1.2;word-break:break-word}
.tool-eyebrow{margin:0;color:var(--muted);letter-spacing:0.06em;text-transform:uppercase;font-size:0.75rem;word-break:break-word}
.tool-desc{margin:0.35rem 0 0;color:var(--muted);font-size:0.95rem;line-height:1.4;word-break:break-word}

/* Generic tool layout */
.tool{max-width:1200px;margin:0 auto;padding:0 1.2rem 2rem}
.tool-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.2rem 0}
.tool-title h1{margin:0;font-size:2rem;letter-spacing:0.02em}
.tool-title .tool-subtitle{margin:0.2rem 0 0;color:var(--muted)}
.tool-layout{display:grid;grid-template-columns:360px 1fr;gap:1rem;align-items:start}
.tool-controls{display:flex;flex-direction:column;gap:0.75rem}
.tool-preview{background:rgba(10,10,10,0.7);border:1px solid rgba(255,255,255,0.08);border-radius:16px;padding:0.75rem;box-shadow:0 16px 40px rgba(0,0,0,0.35);min-height:300px}
.tool-preview .lm-canvas-wrap{position:relative;border:1px solid rgba(255,255,255,0.12);border-radius:12px;overflow:hidden;background:#0b0b0b}
.lm-canvas-wrap canvas{width:100%;height:auto;display:block;background:#0a0a0a}
.lm-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:1rem;letter-spacing:0.04em;text-transform:uppercase}
.layoutmutator .tone-group .control.actions .btn{width:100%}
@media(max-width:1000px){
  .tool-layout{grid-template-columns:1fr}
  .tool-preview{order:-1}
}

/* VectorGlitcher */
.vectorglitcher .tool-preview{
  display:flex;
  align-items:center;
  justify-content:center;
}
.vg-preview{
  width:100%;
  min-height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.vg-preview .svg-preview svg{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  display:block;
  margin:0 auto;
}

/* Share Modal Styling */
.share-modal-content {
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  text-align: center;
}
.share-modal-content h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-family: 'Cinzel', serif;
}
.share-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}
.share-options .btn {
  width: 100%;
  text-align: center;
}

/* Share button on poster page */
.share-poster-btn {
  align-self: flex-start;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}

@media (hover: none) {
  /* On touch devices avoid scaling on hover; keep images visible but keep grayscale optional */
  .card img{transition:none;filter:grayscale(100%) contrast(.95) brightness(.92)}
}

/* Remove grayscale on mobile devices (up to 620px) */
@media (max-width: 620px) {
  .card .card-image {
    filter: none;
  }
}

/* Use Cinzel for gallery title and poster page main heading */
.gallery-title, .poster-page h2 { font-family: 'Cinzel', serif; font-weight:600; letter-spacing:0.02em }

/* -------- Global form elements -------- */
input[type="text"],
input[type="url"],
textarea,
select{
  width:100%;
  background:#0c0c0c;
  color:#f6f6f6;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:12px;
  padding:0.65rem 0.8rem;
  font:inherit;
  transition:border-color .15s ease, box-shadow .2s ease, background-color .2s ease;
}
select{
  height:44px;
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpolygon points='1,1 11,1 6,7' fill='%23c7cdd3'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:calc(100% - 0.9rem) 55%;
  background-size:12px 8px;
}
textarea{resize:vertical;min-height:110px}
input:focus,
textarea:focus,
select:focus{
  outline:none;
  border-color:rgba(255,255,255,0.25);
  box-shadow:0 0 0 2px rgba(255,255,255,0.08);
}

/* Shared range styling (Win93 inspired) */
input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  height:12px;
  background:linear-gradient(180deg, #d6d6d6 0%, #c8c8c8 100%);
  border:1px solid #6d6d6d;
  box-shadow:inset 1px 1px 0 #f5f5f5,inset -1px -1px 0 #8a8a8a;
  border-radius:2px;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  background:linear-gradient(180deg, #f5f5f5 0%, #d9d9d9 100%);
  border:1px solid #6d6d6d;
  border-radius:2px;
  box-shadow:inset 1px 1px 0 #ffffff,inset -1px -1px 0 #9d9d9d,1px 1px 0 #111;
  cursor:pointer;
  margin-top:-3px;
}
input[type="range"]::-moz-range-thumb{
  width:18px;
  height:18px;
  background:linear-gradient(180deg, #f5f5f5 0%, #d9d9d9 100%);
  border:1px solid #6d6d6d;
  border-radius:2px;
  box-shadow:inset 1px 1px 0 #ffffff,inset -1px -1px 0 #9d9d9d,1px 1px 0 #111;
  cursor:pointer;
}
input[type="range"]::-moz-range-track{
  height:12px;
  background:linear-gradient(180deg, #d6d6d6 0%, #c8c8c8 100%);
  border:1px solid #6d6d6d;
  border-radius:2px;
  box-shadow:inset 1px 1px 0 #f5f5f5,inset -1px -1px 0 #8a8a8a;
}

/* Tone Lab */
.tone-page{
  background:#050505;
  color:#e9e9e9;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size:12px 12px;
}
.tone-header{gap:1.25rem;align-items:flex-start}
.tone-header nav .btn{min-width:44px;text-align:center}
.tone-header nav{display:block}
.tone-title h1{margin:0;font-size:2.2rem;line-height:1.1;letter-spacing:0.01em}
.tone-title .eyebrow{margin:0;color:var(--muted);letter-spacing:0.08em;font-size:0.8rem;text-transform:uppercase}
.tone-title .subtitle{margin:0.2rem 0 0;color:var(--muted)}
.tone-kbd-hint{align-self:flex-start;padding:0.4rem 0.75rem;border:1px solid rgba(255,255,255,0.08);border-radius:10px;color:var(--muted);font-size:0.85rem;letter-spacing:0.06em;text-transform:uppercase}

.tone-grid{display:grid;grid-template-columns:1fr minmax(300px,360px);gap:1.25rem;align-items:start}
@media (max-width: 920px){.tone-grid{grid-template-columns:1fr}}
@media (max-width: 1024px){
  .tone-header nav{display:none}
}

.typeflow-page .tone-grid{
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1rem;
}
.typeflow-page .typeflow-stage{
  grid-column:1 / -1;
  padding:0;
  min-height:0;
}
.typeflow-page .typeflow-controls{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:0.75rem;
}
.typeflow-page .typeflow-controls .tone-group{
  width:100%;
}

.tone-pane{
  padding:0;
  margin:0;
  background:transparent;
  border:none;
  box-shadow:none;
  align-self:start;
}
.tone-stage{
  border-radius:18px;
  overflow:hidden;
  background:rgba(26,26,26,0.65);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.08);
  min-height:0;
}
.tone-controls{
  display:flex;
  flex-direction:column;
  gap:1rem;
  border-radius:0;
  background:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border:none;
  padding:0;
}
.tone-controls .control{display:flex;flex-direction:column;gap:0.35rem;margin-bottom:1rem}
.control.swatch-row{
  flex-direction:row;
  align-items:flex-start;
  gap:1rem;
}
.tone-group{
  border:1px solid rgba(255,255,255,0.06);
  border-radius:12px;
  padding:0.75rem 0.85rem;
  margin-bottom:1rem;
  background:rgba(26,26,26,0.75);
  backdrop-filter:blur(4px);
}
.tone-group-title{font-size:0.95rem;letter-spacing:0.04em;text-transform:uppercase;color:var(--muted);margin-bottom:0.55rem}
.tone-controls label{font-weight:600;font-size:0.95rem}
.tone-group .control{margin-top:0.5rem}
.tone-controls input[type="range"]{
  width:100%;
  -webkit-appearance:none;
  appearance:none;
  height:12px;
  background:
    linear-gradient(180deg, #d6d6d6 0%, #c8c8c8 100%);
  border:1px solid #6d6d6d;
  box-shadow:
    inset 1px 1px 0 #f5f5f5,
    inset -1px -1px 0 #8a8a8a;
  border-radius:2px;
}
.tone-controls input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  background:linear-gradient(180deg, #f5f5f5 0%, #d9d9d9 100%);
  border:1px solid #6d6d6d;
  border-radius:2px;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #9d9d9d,
    1px 1px 0 #111;
  cursor:pointer;
  margin-top:-3px;
}
.tone-controls input[type="range"]::-moz-range-thumb{
  width:18px;
  height:18px;
  background:linear-gradient(180deg, #f5f5f5 0%, #d9d9d9 100%);
  border:1px solid #6d6d6d;
  border-radius:2px;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #9d9d9d,
    1px 1px 0 #111;
  cursor:pointer;
}
.tone-controls input[type="range"]::-moz-range-track{
  height:12px;
  background:linear-gradient(180deg, #d6d6d6 0%, #c8c8c8 100%);
  border:1px solid #6d6d6d;
  border-radius:2px;
  box-shadow:
    inset 1px 1px 0 #f5f5f5,
    inset -1px -1px 0 #8a8a8a;
}
.tone-controls select,
.tone-controls input[type="url"]{
  width:100%;
  padding:0.65rem 1.5rem 0.65rem 0.85rem;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.1);
  background:#0f0f0f;
  color:#f1f1f1;
  appearance:none;
  -webkit-appearance:none;
}
.tone-controls select{
  background-color:#0f0f0f;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpolygon points='1,1 11,1 6,7' fill='%239aa0a6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:calc(100% - 0.95rem) 55%;
  background-size:12px 8px;
}
.tone-controls select:focus,
.tone-controls input[type="url"]:focus{
  outline:none;
  border-color:rgba(255,255,255,0.2);
  box-shadow:0 0 0 2px rgba(255,255,255,0.08);
}
.range-row{display:flex;align-items:center;gap:0.6rem}
.range-row .value{color:var(--muted);min-width:2.4rem;text-align:right;font-variant-numeric:tabular-nums}
.swatch-row{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  gap:1rem;
  align-items:flex-start;
}
.swatch-row > div{
  display:flex;
  flex-direction:column;
  gap:0.35rem;
  flex:0 0 auto;
}
.swatch-row input[type="color"]{
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,0.15);
  border-radius:8px;
  padding:0;
  background:transparent;
   overflow:hidden;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.2),
    0 10px 24px rgba(0,0,0,0.35);
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}
.swatch-row input[type="color"]:hover{
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.16),
    0 12px 28px rgba(0,0,0,0.45);
}
.swatch-row input[type="color"]:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.18),
    0 0 0 4px rgba(255,255,255,0.07),
    0 12px 28px rgba(0,0,0,0.45);
}
.swatch-row input[type="color"]::-webkit-color-swatch{border:none;border-radius:10px;}
.swatch-row input[type="color"]::-webkit-color-swatch-wrapper{padding:0;border-radius:10px;}
.swatch-row input[type="color"]::-moz-color-swatch{border:none;border-radius:10px;}
.swatch-row input[type="color"]::-moz-focus-inner{border:0;padding:0;}
.toggles .checkbox{display:flex;align-items:center;gap:0.5rem;color:#ddd;font-weight:600}
.toggles input{width:1rem;height:1rem}
.actions{display:flex;gap:0.5rem}
.actions .btn{flex:1}
.url-row{display:flex;gap:0.5rem;align-items:center}
.url-row .btn{flex:0 0 auto}
.tone-hint{color:var(--muted);font-size:0.9rem;margin:0.3rem 0}
.tone-status{color:#7dd46f;font-size:0.95rem;margin:0.4rem 0 0}

.tone-stage{min-height:420px;padding:0}
.tone-drop{position:relative;border:1px dashed rgba(255,255,255,0.18);border-radius:16px;min-height:380px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(135deg,rgba(255,255,255,0.02),rgba(255,255,255,0));transition:border-color 0.2s ease,box-shadow 0.2s ease}
.tone-drop.dragover{border-color:rgba(255,255,255,0.35);box-shadow:0 0 0 2px rgba(255,255,255,0.08)}
.tone-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:0.4rem;padding:1rem;color:var(--muted);pointer-events:none}
.tone-drop.has-image .tone-placeholder{display:none}
.tone-drop canvas{max-width:100%;width:100%;height:auto;display:block;image-rendering:pixelated}

@media (max-width: 640px){
  .tone-title h1{font-size:1.8rem}
  .tone-pane{padding:0}
}

/* TypeFlow */
.typeflow-page{
  background:#050505;
  color:#e9e9e9;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size:12px 12px;
}
.typeflow-stage{padding:1rem}
.typeflow-stage #tf-canvas{
  width:100%;
  max-width:100%;
  background:#0a0a0a;
  border:1px solid rgba(255,255,255,0.15);
  border-radius:12px;
  display:block;
}
.typeflow-controls .tf-field{display:flex;flex-direction:column;gap:0.4rem;margin-bottom:0.9rem;font-size:0.95rem}
.typeflow-controls .tf-field span{color:var(--muted);letter-spacing:0.03em}
.typeflow-controls .tf-range{display:flex;align-items:center;gap:0.6rem}
.typeflow-controls .tf-range span{width:36px;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}
.tf-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0.6rem;margin-top:0.6rem}
.typeflow-controls .tone-group{
  background:rgba(26,26,26,0.75);
  border:1px solid rgba(255,255,255,0.06);
}

/* VibeMood */
.vibe-page .tone-kbd-hint{color:#e9e9e9}
.vibe-grid .tone-stage{padding:1rem}
.vibe-preview .vibe-canvases{display:flex;flex-direction:column;gap:0.65rem}
.vibe-preview canvas{width:100%;height:auto;display:block;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,0.35)}
.vibe-preview .vibe-palette{display:flex;flex-wrap:wrap;gap:0.6rem;margin-top:0.85rem}
.vibe-preview .vibe-swatch{
  width:62px;
  height:62px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 12px 28px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(0,0,0,0.1);
  position:relative;
  overflow:hidden;
}
.vibe-preview .vibe-swatch span{
  position:absolute;
  left:8px;
  bottom:6px;
  font-size:0.7rem;
  color:rgba(255,255,255,0.85);
  text-shadow:0 1px 4px rgba(0,0,0,0.65);
}
