html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.viewport-frame {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(var(--fit-scale, 1));
  background: #1C1E21;
  overflow: hidden;
}

.app-root {
  width: 600px;
  height: 600px;
  padding: 24px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
}

.hidden {
  display: none !important;
}

.notification {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #2A2D31;
  border: 2px solid #3A3D42;
  border-radius: 24px;
  transition:
    transform 475ms cubic-bezier(0.6, 0, 0.4, 1),
    opacity 300ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.notification.dismissing {
  transform: scale(0.92);
  opacity: 0;
}

.notification-icon {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 50%;
  background: #1F6FEB;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.notification-text {
  font-size: 16px;
  color: #E4E6EB;
}

.dismissed-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 24px;
  background: #2A2D31;
  border-radius: 24px;
}

.dismissed-title {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
}

.reset-btn,
.permission-btn {
  height: 88px;
  padding: 0 32px;
  background: #1F6FEB;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 475ms cubic-bezier(0.6, 0, 0.4, 1);
}

.reset-btn:focus,
.permission-btn:focus {
  outline: none;
  border-color: #1F6FEB;
  box-shadow: 0 0 24px rgba(31, 111, 235, 0.6);
  transform: scale(1.04);
}

.debug-panel {
  margin-top: auto;
  padding: 16px 20px;
  background: #1C1E21;
  border: 2px solid #2A2D31;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.debug-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.debug-label {
  color: #B0B3B8;
}

.debug-value {
  color: #FFFFFF;
  font-weight: 700;
}

.permission-btn {
  margin-top: 8px;
  align-self: stretch;
}

.flash {
  animation: flash 600ms ease-out;
}

@keyframes flash {
  0%   { background: #1F6FEB; }
  100% { background: #2A2D31; }
}
