/* ITD Themes — demo viewer: one bar, the demo gets the rest of the screen. */
html, body.vw-body { height: 100%; }
body.vw-body { overflow: hidden; background: #e6e8e3; }
.vw { height: 100%; display: flex; flex-direction: column; }
.vw-bar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 16px; background: var(--ink); color: var(--white); }
.vw-brand { display: grid; place-items: center; width: 40px; height: 40px; flex: none; }
.vw-brand img { width: 22px; height: auto; }
.vw-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.vw-ttl { display: grid; min-width: 0; line-height: 1.2; padding: 0 4px; }
.vw-ttl span { font-size: 11px; letter-spacing: .08em; color: #a9adb5; font-weight: 600; }
.vw-ttl b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.vw-ic { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; border: 1px solid transparent; background: none; color: #d6d8dc; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: 500; }
.vw-ic:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.vw-dev { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .07); margin-left: 8px; }
.vw-dev button { width: 38px; height: 34px; border: 0; border-radius: 9px; background: none; color: #a9adb5; cursor: pointer; display: grid; place-items: center; }
.vw-dev button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.vw-badge { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #d6d8dc; white-space: nowrap; }
.vw-sp { flex: 1; }
.vw-heart { width: 40px; height: 40px; background: none; color: #d6d8dc; border-color: rgba(255, 255, 255, .22); }
.vw-heart:hover { border-color: var(--white); color: var(--white); }
.vw-heart[aria-pressed="true"] { color: #ff5c5c; border-color: #ff5c5c; }
.vw-note { flex: none; margin: 0; padding: 7px 16px; background: #1d2026; color: #c3c6cc; font-size: 13px; line-height: 1.4; }
.vw-stage { flex: 1; min-height: 0; position: relative; overflow: auto; display: flex; justify-content: center; }
.vw-frame { width: 100%; height: 100%; transition: width .25s ease; background: var(--white); }
.vw-frame[data-d="tablet"] { width: 820px; max-width: 100%; height: calc(100% - 32px); margin: 16px 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-up); }
.vw-frame[data-d="mobile"] { width: 390px; max-width: 100%; height: calc(100% - 32px); max-height: 860px; margin: 16px 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-up); border: 8px solid var(--ink); }
.vw-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--white); }
.vw-state { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: rgba(230, 232, 227, .92); font-size: 16px; color: var(--ink); }
.vw-state[hidden] { display: none; }
.vw-state p { margin: 0; }
@media (max-width: 1000px) { .vw-lbl { display: none; } .vw-ttl b { max-width: 180px; } }
@media (max-width: 760px) {
  .vw-dev, .vw-badge, .vw-hide-sm, #vw-prev, #vw-next { display: none; }
  .vw-bar { gap: 6px; padding: 6px 10px; min-height: 52px; }
  .vw-ttl b { max-width: 42vw; font-size: 14px; }
  .vw-frame, .vw-frame[data-d] { width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; max-height: none; }
  .vw-note { font-size: 12px; padding: 5px 10px; }
}
