/* A stylized Manage Your Content and Devices page, animated to show the two setup steps. Always light: it depicts a web page. */
.az { --s: 1; position: relative; width: 100%; aspect-ratio: 640 / 430; color-scheme: light; }
.az-stage {
  position: absolute; left: 0; top: 0; width: 640px; height: 430px; overflow: hidden;
  transform: scale(var(--s)); transform-origin: 0 0;
  background: #fff; border-radius: 10px; color: #111;
  font: 10px/1.4 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12), 0 18px 50px -18px rgb(0 0 0 / 0.35);
}
.az-stage.reset, .az-stage.reset * { transition: none !important; animation: none !important; }

.az-chrome { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; background: #ecebe8; border-bottom: 1px solid #dcdad5; }
.az-dots { display: flex; gap: 5px; }
.az-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3d1cc; }
.az-url { flex: 1; max-width: 300px; margin: 0 auto; padding: 3px 10px; border-radius: 6px; background: #fff; color: #666; font-size: 10px; text-align: center; }

.az-top { display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 14px; background: #1f252d; }
.az-logo { width: 58px; height: 12px; border-radius: 2px; background: #59616b; }
.az-search { flex: 1; height: 18px; border-radius: 4px; background: #fff; opacity: 0.92; }
.az-acct { width: 70px; height: 10px; border-radius: 2px; background: #59616b; }
.az-sub { display: flex; align-items: center; gap: 22px; height: 28px; padding: 0 16px; border-bottom: 1px solid #ddd; font-size: 9.5px; color: #333; }
.az-sub b { font-weight: 700; margin-right: 8px; }
.az-sub span { position: relative; padding: 7px 0; }
.az-sub span.on { color: #b45309; }
.az-sub span.on::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 1px; height: 2px; background: #b45309; }

.az-view { position: absolute; left: 0; right: 0; top: 94px; bottom: 0; overflow: hidden; }
.az-scroll { padding: 12px 22px 40px; transition: transform 1.1s cubic-bezier(.45, 0, .2, 1); }
.az h4 { margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: #b45309; }
.az h5 { margin: 14px 0 3px; font-size: 11.5px; font-weight: 700; }
.az p { margin: 0 0 6px; color: #333; }
.az .az-btn { display: inline-block; margin-top: 2px; padding: 3px 9px; border: 1px solid #bbb; border-radius: 3px; background: #f4f4f4; font-size: 9px; }
.az .az-muted { color: #666; font-size: 9px; }
.az .az-link { color: #2563eb; }
.az .az-on { color: #b45309; }
.az .az-add-row { margin-top: 6px; }

.az-books { margin-top: 6px; }
.az-books div { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eee; }
.az-books i { width: 18px; height: 26px; background: linear-gradient(135deg, #a8a29e, #57534e); }
.az-books b { display: block; font-size: 10px; }
.az-prefs { display: none; }
.az-stage.prefs .az-books-tab { display: none; }
.az-stage.prefs .az-prefs { display: block; }

.az table { width: 100%; border-collapse: collapse; margin-top: 4px; border: 1px solid #ddd; font-size: 9.5px; }
.az th { text-align: left; padding: 5px 8px; background: #f3f3f3; font-weight: 700; }
.az td { position: relative; padding: 5px 8px; border-top: 1px solid #e7e7e7; }
.az td:last-child, .az th:last-child { width: 70px; }
.az td:last-child { color: #2563eb; }
.az tr.hl td { background: #fff8e6; }
.az tr.hl td.mark { box-shadow: inset 0 0 0 2px #e8a33d; border-radius: 2px; }
.az-new { display: none; }
.az-stage.added .az-new { display: table-row; animation: az-flash 1.6s ease-out; }
@keyframes az-flash { from { background: #ffe9b8; } }

.az-tag {
  position: absolute; left: 6px; bottom: calc(100% + 5px); z-index: 2; white-space: nowrap;
  padding: 4px 8px; border-radius: 4px; background: #1c1c1e; color: #fff; font-size: 9.5px; font-weight: 600;
  opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s;
}
.az-tag::before { content: ""; position: absolute; left: 12px; top: 100%; border: 4px solid transparent; border-bottom: 0; border-top-color: #1c1c1e; }
.az tr.hl .az-tag { opacity: 1; transform: none; }

.az-dim { position: absolute; inset: 0; background: rgb(0 0 0 / 0.45); opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.az-modal {
  position: absolute; left: 50%; top: 70px; width: 270px; margin-left: -135px; border-radius: 4px; background: #fff;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.35); opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s;
}
.az-stage.modal .az-dim { opacity: 1; }
.az-stage.modal .az-modal { opacity: 1; transform: none; }
.az-modal header { display: flex; justify-content: space-between; padding: 7px 10px; background: #f3f3f3; border-bottom: 1px solid #ddd; font-weight: 700; font-size: 9.5px; }
.az-modal .az-mbody { padding: 10px 10px 16px; }
.az-field { width: 150px; height: 20px; margin-top: 8px; padding: 3px 7px; border: 1px solid #999; border-radius: 4px; font-size: 10px; line-height: 13px; white-space: nowrap; overflow: hidden; }
.az-stage.focus .az-field { border-color: #e8a33d; box-shadow: 0 0 0 2px rgb(232 163 61 / 0.35); }
.az-field::after { content: ""; display: inline-block; width: 1px; height: 11px; margin-left: 1px; vertical-align: -2px; background: #111; opacity: 0; }
.az-stage.focus .az-field::after { animation: az-caret 1s steps(1) infinite; }
@keyframes az-caret { 50% { opacity: 1; } }
.az-modal footer { display: flex; justify-content: flex-end; gap: 6px; padding: 7px 10px; border-top: 1px solid #ddd; background: #fafafa; }
.az-modal footer span { padding: 3px 8px; border: 1px solid #bbb; border-radius: 3px; font-size: 9px; background: #fff; }
.az-modal footer .az-add { background: #f6e3b4; border-color: #e3cf9d; color: #a39374; transition: background 0.2s, color 0.2s; }
.az-stage.typed .az-add { background: #f7ca4d; border-color: #d9a829; color: #111; }

.az-cursor { position: absolute; left: 560px; top: 380px; width: 16px; height: 20px; z-index: 5; transition: left 0.75s cubic-bezier(.45, 0, .2, 1), top 0.75s cubic-bezier(.45, 0, .2, 1), transform 0.1s; }
.az-cursor.press { transform: scale(0.85); }
