
.att-wrap {
  --bg: #eef3f0;
  --surface: #ffffff;
  --ink: #1a2e24;
  --muted: #5a6f63;
  --line: #c5d4cb;
  --accent: #1f6b4a;
  --accent-soft: #e3f0e9;
  --folder: #2a5f8f;
  --pdf: #b54a3a;
  --img: #7a5a1e;
  --shadow: 0 10px 30px rgba(26, 46, 36, 0.08);
  --radius: 14px;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
  font-family: "Segoe UI", "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}
.att-wrap * { box-sizing: border-box; }
.att-wrap h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.att-wrap .att-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
}
.att-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.att-toolbar button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.att-toolbar button:hover { background: var(--accent-soft); }
.att-tree {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.55rem;
}
.att-tree details {
  border-radius: 10px;
  margin: 0.25rem 0;
}
.att-tree details[open] > summary {
  background: var(--accent-soft);
  color: var(--accent);
}
.att-tree summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  user-select: none;
}
.att-tree summary::-webkit-details-marker { display: none; }
.att-tree summary:hover { background: #f3f7f4; }
.att-tree .chev {
  width: 1.1rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--folder);
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}
.att-tree details[open] > summary .chev { transform: rotate(90deg); }
.att-tree .icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.att-tree .icon-folder { background: #e7f0f8; color: var(--folder); }
.att-tree .icon-pdf { background: #f8e8e5; color: var(--pdf); }
.att-tree .icon-img { background: #f5edd9; color: var(--img); }
.att-tree .icon-file { background: #eceff1; color: #546e7a; }
.att-tree .branch {
  padding: 0.15rem 0.35rem 0.45rem 1.55rem;
  border-left: 2px solid #d7e4dc;
  margin-left: 1.35rem;
}
.att-tree .file {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.75rem;
  margin: 0.2rem 0;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
}
.att-tree .file:hover {
  background: #f5f9f6;
  transform: translateX(2px);
}
.att-tree .file .name {
  flex: 1;
  line-height: 1.35;
  word-break: break-word;
}
.att-tree .file .ext {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.att-tree .file .ext-open {
  font-size: 0.72rem;
  color: var(--accent);
  opacity: 0.85;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .att-tree .branch { padding-left: 0.85rem; margin-left: 0.7rem; }
  .att-tree .file .ext-open { display: none; }
}