/* The app's notebook screen for the previews on the landing page. Colours, sizes and radii are
   the app's own (ios/NotabelApp/App/Colors.swift, WorkspaceView.swift, AssistantPanel.swift);
   the screen is laid out at 1366 × 1024 points and scaled into its iPad frame by preview.js. */

.nv-demo {
  --nv-desk: #f5f7fa;
  --nv-list: #edf0f6;
  --nv-press: #d6deec;
  --nv-text: #16213d;
  --nv-ink2: #48526d;
  --nv-ink3: #636c88;
  --nv-hair: rgb(30 47 92 / 10%);
  --nv-hair-strong: rgb(30 47 92 / 18%);
  --nv-navy: #1e2f5c;
  --nv-peri: #5d7fd0;
  --nv-peri-ink: #34519c;
  --nv-peri-soft: #dce5f7;
  --nv-peri-wash: #eef3fd;
  --nv-float: 0 2px 6px rgb(22 33 61 / 7%), 0 14px 34px rgb(22 33 61 / 13%);

  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: clamp(12px, 1.8vw, 26px);
  background: var(--nv-desk);
}

.nv-demo > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.nv-root {
  position: absolute;
  inset: 0;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.nv-screen {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  display: flex;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--nv-text);
  background: var(--nv-desk);
  -webkit-font-smoothing: antialiased;
}

.nv-screen svg {
  display: block;
  flex: none;
}

.nv-grow {
  flex: 1;
}

/* Status bar */

.nv-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  padding: 0 22px 0 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
}

.nv-status-date {
  margin-left: 4px;
  font-weight: 500;
}

.nv-status-pct {
  font-weight: 500;
}

.nv-battery {
  width: 24px;
  height: 11.5px;
  padding: 1.5px;
  border: 1px solid rgb(22 33 61 / 45%);
  border-radius: 3.5px;
}

.nv-battery-level {
  display: block;
  height: 100%;
  border-radius: 1.5px;
  background: var(--nv-text);
}

/* Desk */

.nv-desk {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: var(--nv-desk);
}

.nv-bars {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nv-topbar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 0 12px;
}

.nv-panel-space {
  width: 124px;
  flex: none;
}

.nv-panel-buttons {
  position: absolute;
  top: 30px;
  left: 12px;
  display: flex;
  gap: 2px;
}

.nv-title {
  padding-left: 4px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.nv-icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--nv-ink2);
}

.nv-icon-btn.nv-small {
  width: 34px;
  height: 34px;
}

.nv-icon-btn.nv-dim {
  color: var(--nv-ink3);
}

.nv-divider {
  width: 1px;
  height: 20px;
  margin: 0 6px;
  flex: none;
  background: var(--nv-hair-strong);
}

.nv-divider-tall {
  height: 28px;
  margin: 0 8px;
}

.nv-divider-short {
  height: 18px;
  margin: 0;
}

.nv-ki {
  height: 34px;
  margin: 0 4px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 17px;
  font-weight: 600;
  color: var(--nv-peri-ink);
  background: var(--nv-peri-soft);
}

.nv-toolrow {
  display: flex;
  justify-content: center;
}

.nv-toolpill {
  height: 62px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 31px;
  background: #fff;
  box-shadow: var(--nv-float);
}

.nv-tool {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--nv-ink2);
}

.nv-tool.nv-on {
  color: var(--nv-navy);
  background: var(--nv-peri-soft);
}

.nv-tool-color {
  position: absolute;
  bottom: 5px;
  left: 17px;
  width: 14px;
  height: 3px;
  border-radius: 1.5px;
  background: #1b1d21;
}

.nv-tool-text {
  font-family: "New York", ui-serif, Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.nv-swatches {
  display: flex;
  gap: 8px;
}

.nv-swatch {
  width: 34px;
  height: 34px;
  padding: 3px;
  border-radius: 50%;
}

.nv-swatch.nv-on {
  box-shadow: inset 0 0 0 2px var(--nv-navy);
}

.nv-swatch-dot {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--nv-hair-strong);
}

/* Page */

.nv-page {
  position: absolute;
  aspect-ratio: 595.275590551 / 841.88976378;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgb(22 33 61 / 8%),
    0 6px 22px rgb(22 33 61 / 7%);
}

.nv-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Floating pills at the bottom */

.nv-pill {
  position: absolute;
  bottom: 18px;
  left: 50%;
  height: 46px;
  padding: 0 6px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 23px;
  white-space: nowrap;
  background: #fff;
  box-shadow: var(--nv-float);
  opacity: 0;
  transform: translate(-50%, 70px);
  transition:
    transform 320ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 200ms ease-out;
}

.nv-pill.nv-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nv-pill-spark {
  color: var(--nv-peri);
}

.nv-discard {
  font-weight: 500;
  color: var(--nv-ink2);
}

.nv-accept {
  height: 34px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-radius: 17px;
  font-weight: 600;
  color: #fff;
  background: var(--nv-navy);
  transition: transform 100ms ease-out;
}

.nv-accept.nv-down {
  transform: scale(0.94);
}

.nv-counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  height: 42px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 21px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--nv-ink2);
  background: #fff;
  box-shadow: var(--nv-float);
}

.nv-counter .nv-icon-btn {
  width: 30px;
}

.nv-counter-page {
  padding: 0 8px;
}

.nv-zoom {
  min-width: 44px;
  text-align: center;
}

/* Assistant panel */

.nv-panel {
  position: relative;
  width: 340px;
  flex: none;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -1px 0 0 var(--nv-hair);
}

.nv-resize {
  position: absolute;
  top: 50%;
  left: -2.5px;
  width: 5px;
  height: 44px;
  margin-top: -22px;
  border-radius: 2.5px;
  background: var(--nv-hair-strong);
}

.nv-panel-head {
  height: 56px;
  flex: none;
  padding: 0 8px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--nv-hair);
}

.nv-panel-head .nv-icon-btn {
  margin-left: -10px;
}

.nv-head-spark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--nv-peri-ink);
  background: var(--nv-peri-wash);
}

.nv-head-title {
  font-size: 16px;
  font-weight: 600;
}

.nv-log {
  flex: 1;
  min-height: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.nv-empty {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nv-empty-title {
  font-size: 17px;
  font-weight: 600;
}

.nv-empty-sub {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--nv-ink3);
}

.nv-suggest {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--nv-hair-strong);
  border-radius: 12px;
  color: var(--nv-text);
}

.nv-suggest svg {
  color: var(--nv-ink3);
}

.nv-user {
  display: flex;
  justify-content: flex-end;
  padding-left: 36px;
}

.nv-user-text {
  padding: 9px 13px;
  border-radius: 16px 16px 5px;
  background: var(--nv-peri-wash);
}

.nv-answer {
  font-size: 15px;
  line-height: 1.4;
}

.nv-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--nv-ink3);
}

.nv-dots {
  display: flex;
  gap: 4px;
}

.nv-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nv-peri);
  animation: nv-dot 1.2s ease-in-out infinite;
}

.nv-dots i:nth-child(2) {
  animation-delay: 0.172s;
}

.nv-dots i:nth-child(3) {
  animation-delay: 0.344s;
}

@keyframes nv-dot {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

.nv-compose {
  flex: none;
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.nv-scope {
  height: 24px;
  margin-left: 4px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--nv-ink2);
  background: var(--nv-list);
}

.nv-input {
  align-self: stretch;
  min-height: 44px;
  padding: 6px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--nv-hair);
  border-radius: 22px;
  background: var(--nv-desk);
  transition:
    background-color 150ms ease-out,
    border-color 150ms ease-out,
    box-shadow 150ms ease-out;
}

.nv-input.nv-focus {
  border-color: rgb(93 127 208 / 70%);
  background: #fff;
  box-shadow: 0 0 0 3px var(--nv-peri-wash);
}

.nv-field {
  flex: 1;
  min-width: 0;
  padding: 6px 6px 6px 10px;
  font-size: 15px;
  line-height: 1.3;
}

.nv-field:empty::before {
  content: "Frage zur Seite …";
  color: var(--nv-ink3);
}

:lang(en) .nv-field:empty::before {
  content: "Ask about the page …";
}

.nv-input.nv-focus .nv-field::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 17px;
  margin-left: 1px;
  vertical-align: -3px;
  border-radius: 1px;
  background: var(--nv-peri);
  animation: nv-caret 1s steps(1) infinite;
}

@keyframes nv-caret {
  50% {
    opacity: 0;
  }
}

.nv-send {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgb(99 108 136 / 70%);
  background: var(--nv-press);
  transition:
    background-color 150ms ease-out,
    color 150ms ease-out,
    transform 100ms ease-out;
}

.nv-send.nv-on {
  color: #fff;
  background: var(--nv-navy);
}

.nv-send.nv-down {
  transform: scale(0.92);
}

.nv-disclosure {
  padding-left: 4px;
  font-size: 11px;
  color: var(--nv-ink2);
}

@media (prefers-reduced-motion: reduce) {
  .nv-dots i,
  .nv-input.nv-focus .nv-field::after {
    animation: none;
  }

  .nv-pill {
    transition: none;
  }
}

.nv-root {
  transition: opacity 300ms ease-out;
}

.nv-root.nv-fade {
  opacity: 0;
}
