.dm {
  color: var(--rich-black);
}

/* Themes */
.dm[data-theme="dark"] {
  background-color: var(--very-dark-grey, #1e1e1e);
  color: var(--rich-white, #f4f6f8);
}

.dm[data-theme="dark"] .tile,
.dm[data-theme="dark"] .screen {
  background-color: var(--very-dark-grey, #1e1e1e);
  color: var(--rich-white, #f4f6f8);
}

.dm[data-theme="dark"] .quote-card-container {
  color: var(--rich-white, #f4f6f8);
}

.dm[data-theme="white"] {
  background-color: #ffffff;
  color: var(--rich-black, #333);
}

.dm[data-theme="white"] .tile,
.dm[data-theme="white"] .screen {
  background-color: #ffffff;
  color: var(--rich-black, #333);
}

.dm[data-theme="light"] {
  background-color: var(--rich-white, #f4f6f8);
  color: var(--rich-black, #333);
}

@media (prefers-color-scheme: dark) {
  .dm[data-theme="system"] {
    background-color: var(--very-dark-grey, #1e1e1e);
    color: var(--rich-white, #f4f6f8);
  }

  .dm[data-theme="system"] .tile,
  .dm[data-theme="system"] .screen {
    background-color: var(--very-dark-grey, #1e1e1e);
    color: var(--rich-white, #f4f6f8);
  }
}

/* Text Sizes */
.dm[data-size="small"] .quote-text {
  font-size: 1.5rem;
}

.dm[data-size="medium"] .quote-text {
  font-size: 2rem;
}

.dm[data-size="large"] .quote-text {
  font-size: 2.5rem;
}

.dm .app-bar {
  height: 5rem;
  background: var(--rich-white);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.dm .icon-btn {
  background: none;
  border: none;
  padding: 0.75rem;
  color: var(--medium-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.dm .icon-btn:hover {
  background: var(--light-purple);
  color: var(--deep-purple);
}

.dm .app-bar__logo {
  height: 3.75rem;
}

.dm .hex-bolt {
  width: 1.5rem;
  height: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--medium-grey);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm .hex-bolt::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: grey;
  border-radius: 50%;
}

/* Content Container */
.dm .container {
  justify-content: center;
  width: 27rem;
  padding: 1.5rem;
  margin: 5rem auto 0;
  height: 100%;
  background-color: var(--rich-white);
  display: block;
}

/* Quote Card */
.dm .quote-card-container {
  position: relative;
}

.dm .quote-card {
  background-color: var(--light-purple);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 0.5rem 1.5rem rgba(103, 58, 183, 0.1);
  min-height: 11.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm .quote-card__text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--deep-purple);
  margin: 0;
}

.dm .quote-card__bolt {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #2196f3;
  z-index: 10;
  transition: transform 0.2s;
  cursor: pointer;
}

.dm .quote-card__bolt:hover {
  transform: scale(1.1);
}

/* Forms */

/* Button Stack */
.dm .button-stack {
  margin-top: 1rem;
}



#languageList {
  padding-top: 1rem;
  max-height: 50vh;
  overflow-y: auto;
}


.dm .container h3 {
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
}

.dm .check-icon.hidden {
  display: none;
}

/* Switch */
.dm .switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background: #ccc;
  border-radius: 0.75rem;
  transition: background 0.3s;
}

.dm .switch::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.dm .switch.is-on {
  background: #2196f3;
}

.dm .switch.is-on::after {
  transform: translateX(1.25rem);
}

/* Profile */
.dm .profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.dm .avatar {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.dm .profile__name {
  font-size: 1.25rem;
  color: var(--almost-black);
  font-weight: bold;
  margin: 0.25rem 0;
}

.dm .profile__id-value {
  font-size: 1rem;
  color: var(--deep-purple);
  background: #f5f5f5;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-family: monospace;
  margin-top: 1rem;
}

.dm .profile__guest-text {
  font-size: 1.125rem;
  color: #9e9e9e;
  margin-bottom: 1rem;
}

.dm .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dialog styling extracted to dialog.css */

/* Utilities */

.dm .screen {
  display: none;
}

.dm .screen.is-active {
  display: block;
}

.dm .empty-state {
  text-align: center;
  color: var(--medium-grey);
  font-size: 1rem;
  padding: 3rem 1rem;
}

.dm .ad-container {
  margin-top: 1.5rem;
  height: 6.25rem;
  background: #f9f9f9;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  border: 1px dashed #ddd;
}