:root{ --ink:#1f2937; --border:#e5e7eb; --highlight:#fef3c7; }

body{
  margin:0; color:var(--ink);
  background-image: url('./Japanese-Paper.png');
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: auto;
  font-family: ui-sans-serif, system-ui, Arial, Helvetica, sans-serif;
}

header{
  padding:16px 20px;
  border-bottom:1px solid var(--border);
  position:sticky; top:0;
  background:#fff;
  z-index:1;
}

.wrap{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:16px;
  padding:16px 20px;
}

.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.tree{
  font-size:14px;
  line-height:1.5;
  max-height:80vh;
  overflow:auto;
}

.node{ margin-left:12px; }
.node>.label{ cursor:pointer; display:flex; align-items:center; gap:6px; }
.node>.label.dir { font-weight:bold; }
.node>.label .icon { width:1em; display:inline-block; }

.muted{ color:#6b7280; }
.content{ min-height:60vh; }

.btn{
  display:inline-block;
  border:1px solid #ddd;
  border-radius:999px;
  padding:6px 10px;
  text-decoration:none;
  color:inherit;
}
.btn:hover{ background:#f5f5f5; }

h1,h2,h3{ font-family: "EB Garamond", Georgia, serif; }

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
  gap:8px;
}

.crumb{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:70%;
}

iframe#viewer{
  width:100%;
  height:70vh;
  border:0;
  border-radius:8px;
  background:#fff;
}

.instructions{ font-size:13px; margin-bottom:8px; color:#6b7280; }

.selected { background:var(--highlight); border-radius:4px; }
.controls { margin-bottom:8px; }
