@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --paper: #E4E1D6;
  --paper-soft: #ECEAE1;
  --ink: #1A1913;
  --wall-deep: #211F1B;
  --wall-deep-2: #2B2822;
  --brass: #9C7A45;
  --brass-bright: #C79A55;
  --moss: #3E4A3C;
  --stone: #85806F;
  --line: rgba(26, 25, 19, 0.14);
  --line-dark: rgba(228, 225, 214, 0.16);
  --radius-s: 2px;
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  mix-blend-mode: difference;
  color: #fff;
}

.site-header .brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-decoration: none; /* a marca é um link nas páginas interiores */
}

.site-header nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-header nav a {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}
.site-header nav a:hover { opacity: 1; }
.site-header nav a:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px clamp(20px, 5vw, 64px) 72px;
  background: var(--wall-deep);
  color: var(--paper-soft);
  overflow: hidden;
}

.hero-strokes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

/* Fundo 3D imersivo do hero (a própria sala da galeria) */
.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0; /* revelado por GSAP quando o modelo termina de carregar */
  pointer-events: none;
}
.hero-3d canvas { width: 100%; height: 100%; display: block; }
.hero-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(23, 22, 15, 0.94) 0%,
    rgba(23, 22, 15, 0.28) 42%,
    rgba(23, 22, 15, 0.5) 100%
  );
}

.hero-eyebrow {
  position: relative;
  z-index: 2;
  color: var(--brass-bright);
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 0.98;
  margin-top: 14px;
  max-width: 16ch;
}

.hero-sub {
  position: relative;
  z-index: 2;
  max-width: 46ch;
  margin-top: 22px;
  color: rgba(236, 234, 225, 0.78);
  font-size: 1.05rem;
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-s);
  border: 1px solid currentColor;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  color: var(--wall-deep);
}
.btn--primary:hover { background: var(--paper-soft); border-color: var(--paper-soft); }

.btn--ghost {
  background: transparent;
  color: var(--paper-soft);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

.btn--dark {
  background: var(--wall-deep);
  border-color: var(--wall-deep);
  color: var(--paper-soft);
}
.btn--dark:hover { background: var(--ink); }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 11vw, 128px) 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about-portrait {
  aspect-ratio: 4 / 5;
  background: var(--wall-deep-2);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(236,234,225,0.4);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-align: center;
  padding: 24px;
}

.about-text p { margin: 0 0 18px; color: rgba(26,25,19,0.82); }
.about-text p:last-child { margin-bottom: 0; }

.plaque {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 2px solid var(--brass);
  background: rgba(156,122,69,0.07);
}
.plaque .label { display: block; margin-bottom: 6px; }

/* ---------- Formação (linha do tempo) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  /* Coluna da esquerda: ano ou etiqueta curta (ex: "Licenciatura", "Fim de curso") */
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--brass);
}

@media (max-width: 560px) {
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}

.timeline-body h3 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); }
.timeline-body p { margin: 6px 0 0; color: rgba(26,25,19,0.7); font-size: 0.95rem; }

/* ---------- Trabalhos: escolha entre galeria 3D e lista ---------- */
.view-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.view-option {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.view-option:hover { transform: translateY(-4px); }

.view-option h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  margin: 12px 0 0;
}
.view-option p { margin: 16px 0 0; font-size: 0.95rem; }

.view-option__cta {
  margin-top: auto;
  padding-top: 28px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Opção 3D: fundo escuro com as estrias que evocam a sala virtual */
.view-option--3d {
  color: var(--paper-soft);
  border: 1px solid var(--line-dark);
  background:
    repeating-linear-gradient(100deg, rgba(199, 154, 85, 0.12) 0 2px, transparent 2px 90px),
    linear-gradient(160deg, #2b2822, #17160f);
}
.view-option--3d .label { color: var(--brass-bright); }
.view-option--3d p { color: rgba(236, 234, 225, 0.75); }
.view-option--3d .view-option__cta { color: var(--brass-bright); }
.view-option--3d:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }

/* Opção lista: fundo claro com a malha que evoca a grelha de obras */
.view-option--list {
  color: var(--ink);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(26, 25, 19, 0.05) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, rgba(26, 25, 19, 0.05) 0 1px, transparent 1px 64px),
    var(--paper-soft);
}
.view-option--list p { color: rgba(26, 25, 19, 0.78); }
.view-option--list .view-option__cta { color: var(--moss); }
.view-option--list:hover { box-shadow: 0 18px 40px rgba(26, 25, 19, 0.12); }

/* ---------- Contato ---------- */
.contact-block { max-width: 640px; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list a { text-decoration: none; color: var(--moss); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: #25D366;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.whatsapp-link:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---------- Footer ---------- */
footer {
  padding: 32px clamp(20px, 5vw, 64px);
  background: var(--wall-deep);
  color: rgba(236,234,225,0.55);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  font-weight: 700;
  color: rgba(236,234,225,0.82);
  text-decoration: none;
}

footer a:hover { color: var(--brass-bright); }

@media (max-width: 860px) {
  .about-grid, .view-choice { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
}

/* ================= Página de obras (lista alfabética) ================= */
.obras-hero {
  background: var(--wall-deep);
  color: var(--paper-soft);
  padding: clamp(120px, 16vh, 170px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 82px);
}
.obras-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.02;
  margin-top: 14px;
}
.obras-hero p {
  max-width: 54ch;
  margin-top: 20px;
  color: rgba(236, 234, 225, 0.78);
}

/* Índice alfabético: fica colado ao topo enquanto se percorre a página. */
.obras-index {
  position: sticky;
  top: 68px; /* logo abaixo do cabeçalho fixo */
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(244, 242, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.obras-index a {
  min-width: 34px;
  padding: 5px 8px;
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.obras-index a:hover { background: var(--wall-deep); color: var(--paper-soft); }

.obras-section { padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 9vw, 110px); }

.obras-count {
  display: block;
  margin-bottom: clamp(20px, 3vw, 32px);
}

/* ---- Grupos por letra ---- */
.obras-group {
  /* espaço para o cabeçalho fixo e o índice, ao saltar para uma letra */
  scroll-margin-top: 130px;
  padding-top: clamp(28px, 4vw, 48px);
}

.obras-letter {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(18px, 2.5vw, 28px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.obras-letter h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin: 0;
  color: var(--brass);
}
.obras-letter span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Filas justificadas: dentro de cada fila as obras partilham a mesma altura,
   ocupando a largura proporcional à sua forma. Nenhuma imagem é cortada e a
   leitura é da esquerda para a direita, como numa lista. */
.obras-row {
  --row-h: clamp(170px, 21vw, 250px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 22px);
}

.obra-card {
  flex: var(--ar) var(--ar) calc(var(--ar) * var(--row-h));
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.obra-card figure { margin: 0; }

/* Absorvem o espaço livre da última fila (altura zero: não se veem). */
.obra-spacer {
  flex: 999 0 0;
  height: 0;
  margin: 0;
}

.obra-frame {
  position: relative;
  display: block;
  aspect-ratio: var(--ar);
  overflow: hidden;
  background: var(--wall-deep-2);
  border-radius: var(--radius-s);
}
.obra-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease);
}
.obra-card:hover .obra-frame img,
.obra-card:focus-visible .obra-frame img { transform: scale(1.04); }

/* Etiqueta discreta que aparece ao passar o rato */
.obra-frame::after {
  content: 'ver ficha';
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-soft);
  background: linear-gradient(to top, rgba(17, 16, 12, 0.82), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.obra-card:hover .obra-frame::after,
.obra-card:focus-visible .obra-frame::after { opacity: 1; }

.obra-card figcaption { padding: 12px 2px 0; }
.obra-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
}
.obra-card figcaption span {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--stone);
}

/* Em ecrãs estreitos as filas justificadas dariam obras pequenas demais,
   por isso passam a duas colunas fixas. */
@media (max-width: 700px) {
  .obras-row { display: grid; grid-template-columns: 1fr 1fr; }
  .obra-card { flex: none; }
  .obra-spacer { display: none; }
  .obras-index { top: 60px; }
  .obras-group { scroll-margin-top: 116px; }
}

/* Overlay da transição de página para a galeria 3D */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #17160F;
  opacity: 0;
  pointer-events: none;
}

/* ================= Página da Galeria 3D ================= */
body.gallery-page { margin: 0; height: 100vh; overflow: hidden; background: #000; }

.gallery-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  font-family: var(--font-body);
}
.gallery-topbar a.back,
.gallery-topbar a.alt-view {
  text-decoration: none;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 8px 14px;
  border-radius: var(--radius-s);
}
.gallery-topbar a.back:hover,
.gallery-topbar a.alt-view:hover { background: rgba(255,255,255,0.12); }
.gallery-topbar .brand { font-family: var(--font-display); font-size: 1.05rem; }

#canvas-wrap { position: absolute; inset: 0; }
#canvas-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; }

/* Vinheta sutil nas bordas para dar profundidade de "sala escura de museu" */
.gallery-vignette {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.42) 100%);
}
#canvas-wrap canvas:active { cursor: grabbing; }

#loading {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #17160F; color: rgba(236,234,225,0.7);
  font-family: var(--font-display); font-size: 1.1rem;
  z-index: 30; text-align: center; padding: 24px;
  transition: opacity 0.5s var(--ease);
}
#loading.is-hidden { opacity: 0; pointer-events: none; }

.hint-bar {
  position: fixed;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 20;
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  background: rgba(0,0,0,0.35);
  padding: 8px 16px;
  border-radius: 20px;
  pointer-events: none;
}

.mobile-controls {
  position: fixed;
  bottom: 24px; right: 20px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(2, 46px);
  gap: 6px;
}
.mobile-controls button {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 8px;
  font-size: 1.1rem;
  touch-action: none;
}
#btn-forward { grid-column: 2; grid-row: 1; }
#btn-left { grid-column: 1; grid-row: 2; }
#btn-back { grid-column: 2; grid-row: 2; }
#btn-right { grid-column: 3; grid-row: 2; }

@media (min-width: 861px) {
  .mobile-controls { display: none; }
}

/* Popup da obra: imagem em destaque + informações ao lado */
#artwork-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}
#artwork-modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 6, 0.72);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  width: 100%;
  max-width: 980px;
  max-height: 84vh;
  background: var(--paper-soft);
  color: var(--ink);
  border-radius: var(--radius-s);
  border-top: 2px solid var(--brass);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.modal-image {
  background: #17160F;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.modal-image img,
.modal-image video {
  display: block;
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  transition: opacity 0.4s var(--ease); /* a opacidade é controlada em artwork-modal.js */
}
.modal-image video[hidden] { display: none !important; }

.modal-info {
  padding: clamp(24px, 4vw, 40px) clamp(22px, 3vw, 34px);
  overflow-y: auto;
  align-self: center;
}
.modal-info h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.modal-info .meta {
  display: block;
  margin: 10px 0 16px;
  color: var(--stone);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.modal-info .desc { font-size: 0.95rem; color: rgba(26, 25, 19, 0.82); margin: 0; line-height: 1.7; }

.modal-card .close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .modal-card {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow-y: auto;
  }
  .modal-image { min-height: 0; }
  .modal-image img,
  .modal-image video { max-height: 46vh; }
}

/* ================= Página do Editor ================= */
body.editor-page { margin: 0; background: var(--wall-deep-2); color: var(--paper-soft); font-family: var(--font-body); }

.editor-layout { display: grid; grid-template-columns: 1fr 360px; height: 100vh; }
.editor-canvas { position: relative; }
.editor-canvas #canvas-wrap { position: absolute; inset: 0; }
.editor-canvas #canvas-wrap canvas { width: 100%; height: 100%; cursor: grab; }

.editor-sidebar {
  overflow-y: auto;
  padding: 22px;
  border-left: 1px solid var(--line-dark);
  background: var(--wall-deep);
}
.editor-sidebar h1 { font-size: 1.3rem; margin-bottom: 4px; }
.editor-sidebar .sub { color: rgba(236,234,225,0.55); font-size: 0.85rem; margin-bottom: 22px; display:block; }

.artwork-row {
  display: grid;
  grid-template-columns: 46px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
}
.artwork-row.is-selected { background: rgba(199,154,85,0.16); }
.artwork-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 4px; }
.artwork-row-text { display: flex; flex-direction: column; min-width: 0; }
.artwork-row-text strong { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artwork-row-text span { font-size: 0.72rem; color: rgba(236,234,225,0.5); }

.row-btn {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: transparent;
  border: 1px solid rgba(236,234,225,0.3);
  color: var(--paper-soft);
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.row-btn--danger { border-color: rgba(224,120,90,0.5); color: #E0785A; }
.empty-hint { font-size: 0.85rem; color: rgba(236,234,225,0.5); }

.editor-actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }

.nudge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.nudge-grid button {
  padding: 10px 4px;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(236,234,225,0.2);
  color: var(--paper-soft);
  border-radius: 6px;
  cursor: pointer;
}
.nudge-grid button:hover { background: rgba(255,255,255,0.12); }

#nudge-panel, #form-panel, #place-hint {
  display: none;
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
  margin-top: 18px;
}
#nudge-panel.is-open, #form-panel.is-open, #place-hint.is-open { display: block; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.78rem; margin-bottom: 6px; color: rgba(236,234,225,0.7); }
.field input, .field textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 4px;
  border: 1px solid rgba(236,234,225,0.25);
  background: rgba(255,255,255,0.05);
  color: var(--paper-soft);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.field textarea { min-height: 70px; resize: vertical; }

.place-hint-box {
  background: rgba(199,154,85,0.14);
  border: 1px solid rgba(199,154,85,0.4);
  padding: 14px;
  border-radius: 6px;
  font-size: 0.85rem;
}
