:root {
  /* primary theme colors */
  --dough-white: #fbfaf5;
  --obsidian-black: #0b1215;

  /* theme switcher colors */
  --c-text-primary: #191919;
  --c-text-secondary: #737374;
  --c-border-primary: #ccc;
  --c-bg-body: #ccc;
  --c-bg-primary: #fff;
  --c-bg-secondary: #d4d8dd;
  --c-bg-button: #fff;
  --slider-shadow: inset 0 1px 1px #ddd, 0 2px 3px #ccc;
}

body {
  padding-top: 50px;
  background-color: var(--dough-white);
}

/* 首页访问门（个人密码，仅前端会话） */
.home-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #2c3e50 0%, #1a252f 100%);
  box-sizing: border-box;
}

.home-auth-gate.is-unlocked {
  display: none !important;
}

.home-auth-panel {
  width: 100%;
  max-width: 360px;
  padding: 28px 24px 32px;
  border-radius: 14px;
  background: var(--dough-white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.home-auth-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--c-text-primary);
}

.home-auth-hint {
  margin: 0 0 20px;
  font-size: 13px;
  text-align: center;
  color: var(--c-text-secondary);
}

.home-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-auth-input {
  font-size: 16px;
}

.home-auth-error {
  margin: 0;
  font-size: 12px;
  color: #c0392b;
  text-align: center;
}

.home-auth-btn {
  margin-top: 4px;
}

.dark .home-auth-panel {
  background: #1e2428;
  color: #e6e6e6;
}

.dark .home-auth-title {
  color: #f0f0f0;
}

.dark .home-auth-hint {
  color: #9ca3af;
}

.dark .home-auth-input {
  background: #12181c;
  border-color: #3e4a54;
  color: #e6e6e6;
}

@media (min-width: 992px) {
  .col-md-5 {
    width: 50%;
  }
}

#mainContainer {
  position: relative;
}

#pipContainer {
  display: none;
}

.pip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #7e7d7d;
  font-weight: bold;
  pointer-events: none;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);

  &::after {
    content: "Floating Window is Activated";
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Adjust opacity as needed */
  pointer-events: none;
  /* Makes overlay non-interactive by default */
  z-index: 10;
  display: none;
}

.break-veil {
  position: fixed;
  inset: 0;
  z-index: 1040;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at top, rgba(255, 246, 224, 0.18), rgba(255, 246, 224, 0) 35%),
    rgba(24, 31, 38, 0.14);
  backdrop-filter: blur(0px);
  transition: opacity 900ms ease, backdrop-filter 900ms ease;
}

.break-veil.active {
  opacity: 1;
  backdrop-filter: blur(2px);
}

.dark .break-veil {
  background:
    radial-gradient(circle at top, rgba(147, 197, 253, 0.08), rgba(147, 197, 253, 0) 35%),
    rgba(6, 10, 14, 0.34);
}

.pip-icon {
  cursor: pointer;
}

@media all and (display-mode: picture-in-picture) {
  body {
    padding-top: 0px;
  }
}

.generic-flex {
  display: flex;
  align-items: center;
  gap: 5px;
}

textarea {
  width: 100%;
  height: 100%;
  font-size: 18px;
  outline: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  outline: 0px !important;
  -webkit-appearance: none;
  resize: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: transparent;
  scrollbar-gutter: stable;
}

kbd {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-family: 'Roboto Mono', monospace;
  color: #333;
  background: #fff;
  border: 2px solid #c8c8c8;
  border-radius: 4px;
  box-shadow: 0 4px #b0b0b0, inset 0 -2px 4px rgba(0, 0, 0, 0.1), inset 0 3px 6px rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  margin: 0 4px;
  line-height: 1.4;
  transition: transform 0.1s, box-shadow 0.1s;
  font-weight: bold;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

kbd>span {
  font-size: 11px;
}

table {
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

table tr {
  display: flex;
  background-color: var(--dough-white);
  margin: 0;
  padding: 10px;
  align-items: center;
}

table tr:nth-child(n+2) {
  border-top: 1px solid #e0e0e0;
}

table tr td {
  text-align: left;
  margin: 0;
  padding: 6px 13px;
  width: 50%;
  display: flex;
  align-items: center;
  gap: 2px;
}

.about-icon-container {
  display: inline-flex;
  gap: 10px;
  float: left;
  align-items: center;
}

.about-icon-container>a {
  transition: transform 200ms ease-out;
}

.about-icon-container>a:hover {
  transform: translateY(-5px) rotate(-15deg);
}

.dark .icon-container span>a {
  transition: all 0.3s ease-in-out;
}

.dark .icon-container span>a:hover {
  -webkit-filter: drop-shadow(0 0 0.625vw #2196F3) drop-shadow(0 0 3.6979166667vw #2196F3);
  filter: drop-shadow(0 0 0.625vw #2196F3) drop-shadow(0 0 3.6979166667vw #2196F3);
}

#iconDropdown a {
  cursor: pointer;
}

.downaload-notes-container,
.more-tools-container {
  position: relative;
}

.dropdown-menu {
  top: 124%;
  padding: 8px 0;
  border-radius: 6px;
}

.dark .glow-text {
  animation: glow 2s forwards;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px #91ceff, 0 0 10px #91ceff, 0 0 20px #91ceff, 0 0 40px #91ceff, 0 0 80px #91ceff;
  }

  100% {
    /* Return to normal text shadow */
    text-shadow: 0 0 5px #2196f3;
  }
}

.dark .dropdown-menu {
  background-color: #26313f;
  border: 1px solid rgb(51 63 78);
}

.dark .dropdown-menu>li>a {
  color: #dcd6d6;
}

.dark .dropdown-menu>li>a:focus,
.dark .dropdown-menu>li>a:hover {
  background-color: #324256;
}

.navbar-default {
  background-color: #4d4d4d;
  border-color: #4d4d4d;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #4d4d4d !important;
}

.dark .navbar-inverse .navbar-toggle:focus,
.dark .navbar-inverse .navbar-toggle:hover {
  background-color: #293443 !important;
}

.navbar-default .navbar-toggle {
  border-color: #A1887F;
}

.navbar-default .navbar-brand {
  color: #ecf0f1;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: #ecdbff;
}

.navbar-default .navbar-text {
  color: #ecf0f1;
}

.navbar-default .navbar-nav>li>a {
  color: #ecf0f1;
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus {
  color: #ecdbff;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
  color: #ecdbff;
  background-color: #8e44ad;
}

.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
  color: #ecdbff;
  background-color: #8e44ad;
}

.navbar-default .navbar-toggle {
  border-color: #A1887F;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #4d4d4d;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #ecf0f1;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: #ecf0f1;
}

.navbar-default .navbar-link {
  color: #ecf0f1;
}

.navbar-default .navbar-link:hover {
  color: #ecdbff;
}

#flash {
  color: #64ff6a;
  font-weight: bold;
}

.btn-custom {
  margin-top: 9px;
}

#Rectangle {
  fill: lightgreen;
}

#trash {
  fill: lightcoral;
}

.trash-icon {
  cursor: pointer;
}

.download-icon,
.dropdown-icon {
  margin-top: 0px;
  cursor: pointer;
}

.dropdown-item {
  display: flex !important;
  gap: 9px;
  align-items: center;
}

.dropdown-item span {
  background: #ffc413;
  color: black;
  padding: 3px 6px;
  font-size: 10px;
  border-radius: 4px;
  font-weight: bold;
}

.app-heading {
  margin-left: 12px;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1.2px;
  transition: color .2s ease-out, opacity .2s ease-out;
}

.navbar-inverse .app-heading {
  color: #7cc5ff;
  text-shadow: 0px 0px 3px #2196F3;
}

.navbar-default .app-heading {
  color: #ecf0f1;
  text-shadow: none;
}

.container {
  position: relative;
  padding-right: 0px;
  padding-left: 0px;
  margin-right: auto;
  margin-left: auto;
}

.make-hidden {
  display: none !important;
}

.about-notice {
  --shadow-color: 0deg 0% 67%;
  --shadow-elevation-low:
    0.3px 0.5px 0.9px hsl(var(--shadow-color) / 0),
    0.9px 1.9px 3.2px hsl(var(--shadow-color) / 0.45);
  background-color: #ecf0ff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-elevation-low);
  line-height: 23px;
}

.about-author-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.about-author-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.about-author-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.about-origin-text {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #7d7d7d;
}

.modal-content {
  border-radius: 14px;
  border: none;
  background-color: var(--dough-white);
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
  background-color: var(--dough-white);
}

.btn {
  border-radius: 8px;
}

.swal2-popup {
  border-radius: 1.3125em !important;
}

.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel {
  border-radius: 0.55em !important;
}

.form-control {
  border-radius: 8px;
  background-color: var(--dough-white);
}

.swal2-popup {
  background: var(--dough-white) !important;
}

.sticky-notice {
  position: absolute;
  background: #009688;
  bottom: 48px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0px 0px 9px 2px #abababc9;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  gap: 14px;
}

.word-count-container {
  display: flex;
  background: #e2dcd8;
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 20px;
  color: #403333;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  gap: 10px;
  align-items: center;
}

.note-save-status {
  font-size: 10px;
  font-weight: 600;
  color: #5c534d;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.note-save-status[data-state="saving"] {
  color: #0b5ed7;
}

.note-save-status[data-state="saved"] {
  color: #146c43;
}

.note-save-status[data-state="offline"],
.note-save-status[data-state="error"],
.note-save-status[data-state="conflict"],
.note-save-status[data-state="load_error"] {
  color: #b45309;
}

.dark .note-save-status {
  color: #c8c2bc;
}

.dark .note-save-status[data-state="saving"] {
  color: #6ea8fe;
}

.dark .note-save-status[data-state="saved"] {
  color: #75b798;
}

.dark .note-save-status[data-state="offline"],
.dark .note-save-status[data-state="error"],
.dark .note-save-status[data-state="conflict"],
.dark .note-save-status[data-state="load_error"] {
  color: #ffc107;
}

.dark .word-count-container a {
  color: #000;
}

.dark .word-count-container.transparency a {
  color: #fff;
}

.word-count-container.transparency a,
.word-count-container a {
  color: #000;
}

.transparency.word-count-container {
  background: #fff2 !important;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2), 0 0 18px #fff inset;
  backdrop-filter: blur(5px);
}

.dark .transparency.word-count-container {
  color: #fff;
  box-shadow: none;
}

.about-tabs li a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.about-tabs-wrap {
  position: relative;
}

.about-tabs .nav-item {
  flex: 0 0 auto;
}

.about-tabs .nav-link {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .about-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    scrollbar-width: none;
  }

  .about-tabs::-webkit-scrollbar {
    height: 0;
  }

  .about-tabs-wrap::before,
  .about-tabs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 2;
  }

  .about-tabs-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--dough-white) 0%, rgba(255, 255, 255, 0) 100%);
  }

  .about-tabs-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--dough-white) 0%, rgba(255, 255, 255, 0) 100%);
  }
}

.dark .word-count-container {
  background: #9ed4ff;
}

.tab-content .container {
  width: 100%;
  padding: 20px 0px 12px;
}

.word-count-container p {
  margin: 0;
}

.sticky-notice p {
  margin: 0;
  line-height: 26px;
}

.sticky-notice a {
  color: #ffeb3b;
}

.dark .sticky-notice {
  background: #a2ffa2;
  box-shadow: 0px 0px 17px 0px #abababc9;
  color: #272727;
  font-weight: bold;
}

.dark .sticky-notice a {
  color: #93103d;
}

textarea {
  padding: 15px 24px 40px;
  border: 1px solid #e6e4e4;
}

#textareaContainer.container {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 50px);
}

.starter-template.note-editor-stack {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e6e4e4;
  background: transparent;
}

.note-editor-stack textarea,
.note-editor-stack .note-title-input {
  border: none !important;
  box-shadow: none !important;
}

.note-title-input {
  width: 100%;
  flex: 0 0 auto;
  padding: 15px 24px 8px;
  font-size: 1.35em;
  font-weight: 600;
  line-height: 1.35;
  outline: none;
  background: transparent;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: inherit;
  box-sizing: border-box;
}

.note-title-separator {
  flex: 0 0 auto;
  height: 1px;
  margin: 0 24px 10px;
  background: rgba(0, 0, 0, 0.12);
}

.dark .note-title-input {
  color: #dedede;
}

.dark .note-title-separator {
  background: rgba(255, 255, 255, 0.14);
}

.note-editor-stack #note {
  flex: 1 1 auto;
  min-height: 200px;
  height: auto !important;
  padding-top: 4px;
}

.dark .note-editor-stack {
  border-color: #000000;
  color: #dedede;
  border-right: 1px solid #3e3e3e;
  border-left: 1px solid #3e3e3e;
}

.grain-paper .note-editor-stack,
.linen-paper .note-editor-stack,
.recycled-paper .note-editor-stack,
.newspaper-paper .note-editor-stack,
.marble-paper .note-editor-stack,
.graph-paper .note-editor-stack,
.dotted-paper .note-editor-stack {
  border-color: transparent;
}

a {
  font-weight: bold;
}

.dark textarea {
  border: #000000;
  color: #dedede;

  border-right: 1px solid #3e3e3e;
  border-left: 1px solid #3e3e3e;
}

.dark {
  background-color: var(--obsidian-black);
  color-scheme: dark;
}

.adFooter {
  position: fixed;
  bottom: 0px;
  font-size: 0.8em;
  z-index: 1000;
  background: #ffffff;
  padding: 5px;
  text-align: center;
  width: 100%;
  float: left;
  border-top: 1px solid #f0f0f0;
}

.theme-switcher {
  background-color: var(--c-bg-secondary);
  border-radius: 8px;
  display: flex;
  padding: 0 3px;
  align-items: center;
  position: relative;
  overflow: hidden;
  font-size: 12px;
  width: 100%;
}

.theme-switcher .slider {
  display: block;
  position: absolute;
  z-index: 1;
  width: calc((100% - 6px) / 3);
  top: 3px;
  transform: translatex(-110%);
  bottom: 3px;
  border-radius: 6px;
  transition: 0.15s ease, transform 0.25s ease-out;
  background-color: var(--c-bg-button);
  box-shadow: var(--slider-shadow);
}

.theme-switcher input {
  display: none;
}

.theme-switcher input:nth-of-type(1):checked~.slider {
  transform: translateX(0);
}

.theme-switcher input:nth-of-type(2):checked~.slider {
  transform: translateX(100%);
}

.theme-switcher input:nth-of-type(3):checked~.slider {
  transform: translateX(200%);
}

.theme-switcher label {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  width: calc(100% / 3);
  color: var(--c-text-secondary);
}

.theme-switcher label span {
  padding: 8px 0;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  color: #727272;
  cursor: pointer;
}

.theme-switcher label svg {
  display: inline-block;
  margin-right: 0.5rem;
  width: 20px;
}

#mode {
  cursor: pointer;
  display: flex;
  font-size: 16px;
}

#carbonads {
  --width: 180px;
  --font-size: 14px;
}

#carbonads {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: inline-block;
  overflow: hidden;
  margin-bottom: 5px;
  max-width: 270px;
  border-radius: 4px;
  text-align: center;
  border: dashed 1px #e6e6e6;
  background-color: hsl(0, 0%, 98%);
  font-size: var(--font-size);
  line-height: 1.5;
  width: 100%;
}

#carbonads a {
  color: inherit;
  text-decoration: none;
}

#carbonads a:hover {
  color: inherit;
}

#carbonads span {
  position: relative;
  display: block;
}

.carbon-img {
  display: block;
  margin-bottom: 8px;
  max-width: var(--width);
  line-height: 1;
}

.carbon-img img {
  display: block;
  margin: 0 auto;
  max-width: 130px !important;
  width: var(--width);
  height: auto;
  float: left;
  margin: 0;
}

.carbon-text {
  display: block;
  padding: 0 1em 8px;
  max-width: 138px;
  float: left;
  text-align: left;
}

.carbon-poweredby {
  display: block;
  padding: 10px var(--font-size);
  background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  font-size: 9px;
  line-height: 0;
}

.cookie_box_close {
  display: inline-block;
  position: absolute;
  top: 4px;
  right: 5px;
  cursor: pointer;
  font-weight: bolder;
  font-size: 16px;
  color: black;
}

.modal-container {
  padding: 10px 20px;
}

#toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #cecece;
  color: #494949;
  text-align: center;
  border-radius: 10px;
  padding: 14px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-weight: bold;
}

.dark #toast {
  background-color: #202630;
  color: #fff;
}


#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 1.5s;
  animation: fadein 0.5s, fadeout 0.5s 1.5s;
}

.custom-modal-title {
  display: inline-block;
}

.preferences-layout {
  padding-top: 4px;
}

.preferences-section + .preferences-section {
  margin-top: 10px;
}

.preferences-section-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #595959;
}

.preferences-panel {
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #f0f0f0;
  overflow: hidden;
}

.preferences-panel .form-group {
  margin: 0;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #d6d6d6;
}

.preferences-panel .form-group:last-child {
  border-bottom: 0;
}

.preferences-panel .control-label {
  margin-bottom: 0;
  padding-top: 0;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #24364f;
}

.preferences-panel .col-sm-6,
.preferences-panel .col-md-5,
.preferences-panel .col-md-6 {
  float: none;
}

.preferences-panel .col-sm-6.col-md-5 {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.preferences-panel .checkbox.checbox-switch {
  margin: 0;
}

.preferences-reset-row {
  margin-top: 12px;
}

#preferencesModal .modal-dialog {
  width: min(560px, calc(100vw - 20px));
}

#preferencesModal .modal-content {
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

#preferencesModal .modal-body.modal-container {
  overflow-y: auto;
  padding-top: 6px;
  padding-bottom: 6px;
}

#preferencesModal .preferences-panel .form-control {
  height: 28px;
  padding: 3px 7px;
  font-size: 12px;
  line-height: 1.2;
}

#preferencesModal .preferences-panel .btn,
#preferencesModal .preferences-panel .btn-group > .btn {
  padding: 3px 7px;
  font-size: 11px;
  line-height: 1.2;
}

#preferencesModal .theme-switcher {
  font-size: 11px;
}

#preferencesModal .theme-switcher label span {
  white-space: nowrap;
  font-size: 11px;
}

#preferencesModal .theme-switcher label svg {
  margin-right: 4px;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

#resetPreferences {
  float: right;
  margin-right: 2px;
}

.install-app-btn-container {
  display: none;
}

.install-app-btn {
  padding: 5px 10px;
  background-color: #3F51B5;
  color: white;
  font-weight: bold;
  font-size: 13px;
  border-radius: 6px;
}

.install-app-btn:hover,
.install-app-btn:focus {
  text-decoration: none;
  color: white;
  transform: scale(1.05);
}

#changelog {
  padding: 16px 8px 8px;
}

#changelog .changelog-card {
  --changelog-card-bg: #f7f8fb;
  --changelog-border: #e2e6ec;
  --changelog-line: #d5dae2;
  --changelog-dot: #b3b3b3;
  --changelog-text: #131517;
  --changelog-muted: #7b8794;

  max-width: 520px;
  padding: 18px 8px 18px;
  position: relative;
  overflow: hidden;
}

#changelog .changelog-title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: var(--changelog-text);
}

#changelog .changelog-timeline {
  position: relative;
  --timeline-padding: 31px;
  --timeline-axis: 11px;
  --timeline-dot-size: 10px;
  --timeline-dot-radius: 5px;
  padding-left: var(--timeline-padding);
}

#changelog .changelog-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: 8px;
  width: 2px;
  background: var(--changelog-line);
  border-radius: 999px;
}

#changelog .changelog-timeline h4 {
  position: relative;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--changelog-muted);
  letter-spacing: 0.02em;
}

#changelog .changelog-timeline h4::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-axis) - var(--timeline-padding) - var(--timeline-dot-radius));
  top: 0.15em;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 999px;
  background: var(--changelog-dot);
  box-shadow: 0 0 0 6px var(--changelog-card-bg);
}

#changelog .changelog-timeline ul:last-child {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

#changelog .changelog-timeline ul:not(:last-child) {
  list-style: none;
  padding: 0;
  margin: 8px 0 46px;
}

#changelog .changelog-timeline li {
  font-size: 15px;
  color: var(--changelog-text);
  line-height: 1.4;
  margin: 0 0 10px;
}

#changelog .changelog-timeline li:last-child {
  margin-bottom: 0;
}

#changelog .changelog-timeline a {
  color: #337ab7;
}

#changelog .changelog-footer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-weight: 600;
  text-decoration: none;
  padding-top: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

#changelog .changelog-footer:hover,
#changelog .changelog-footer:focus {
  color: #1f2937;
  text-decoration: none;
  transform: translateX(2px);
}

@media (max-width: 600px) {
  #changelog .changelog-card {
    padding: 22px 0 14px;
  }

  #changelog .changelog-title {
    font-size: 20px;
  }

  #changelog .changelog-timeline li {
    font-size: 14px;
  }
}

.mic-icon {
  cursor: pointer;
}

.mic-active span {
  position: relative;
  display: inline-block;
}

/* Pulse effect around mic when active */
.mic-active span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  background-color: rgba(255, 0, 0, 0.503);
  border-radius: 50%;
  z-index: 1;
  animation: heartbeat 1.2s infinite ease-in-out !important;
}

.timer-options {
  justify-content: center;
  margin: 26px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.5em;
}

.timer-options .btn {
  font-weight: bold;
  padding: 10px 18px;
}

.dark .timer-pill {
  background: #bff0ff;
}

.bottom-line {
  position: absolute;
  bottom: 1.2em;
  right: 1.4em;
  display: flex;
  gap: 6px;
}


@keyframes rise-s-curve {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.2;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    transform: translateX(-50%) translateY(-30px);
    opacity: 0;
  }
}

.timer-pill {
  display: inline-block;
  background: #c9c7c7;
  margin-left: auto;
  padding: 5px 14px;
  border-radius: 20px;
  color: #403333;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  gap: 6px;
  align-items: center;
}

.pip .timer-pill {
  display: none;
}

.generic-gap {
  gap: 10px;
}

.icon-container {
  display: flex;
  gap: 12px;
  height: 50px;
  line-height: 20px;
  align-items: center;
}

@media (max-width: 400px) {
  .icon-container {
    gap: 0.7em;
  }
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-modal {
  position: relative;
}

.about-modal-logo {
  position: absolute;
  right: 0px;
  top: 60px;
  transform: rotate(6deg);
  opacity: 0.09;
}

.navbar-flex {
  display: flex;
  align-items: center;
}

.love-wall {
  position: relative;
  padding: 4px 6px 12px;
}

.love-wall-header {
  text-align: center;
  margin-bottom: 22px;
}

.love-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #8d8d8d;
  font-weight: 700;
}

.love-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1f1f1f;
}

.love-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
}

.love-card {
  background: linear-gradient(160deg, #ffffff 0%, #fbfbfb 100%);
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 26px rgba(18, 18, 18, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
}

.love-card::after {
  content: "”";
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  color: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.love-quote {
  margin: 0 0 16px;
  color: #2c2c2c;
  font-size: 14px;
  line-height: 1.6;
}

.love-highlight {
  background: #fff4b8;
  border-radius: 6px;
  padding: 0 4px;
  box-shadow: inset 0 -6px 0 rgba(255, 218, 92, 0.45);
}

.love-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eeeeee;
  padding-top: 12px;
}

.love-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #2a2a2a;
  background: #ffe4d6;
}

.love-card:nth-child(4n + 2) .love-avatar {
  background: #d9edff;
}

.love-card:nth-child(4n + 3) .love-avatar {
  background: #ddf7e5;
}

.love-card:nth-child(4n) .love-avatar {
  background: #f1e6ff;
}

.love-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.love-name {
  font-weight: 800;
  font-size: 13px;
  color: #1f1f1f;
}

.love-source {
  font-size: 12px;
  color: #7c7c7c;
  font-weight: 600;
}

.love-source:hover {
  text-decoration: none;
  color: #2f2f2f;
}

@media (max-width: 520px) {
  .love-title {
    font-size: 18px;
  }

  .love-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 591px) {
  .about-modal-logo {
    display: none;
  }
}

.checkbox.checbox-switch {
  padding-left: 0;
}

.checkbox.checbox-switch label,
.checkbox-inline.checbox-switch {
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.checkbox.checbox-switch label input,
.checkbox-inline.checbox-switch input {
  display: none;
}

.checkbox.checbox-switch label span,
.checkbox-inline.checbox-switch span {
  width: 35px;
  border-radius: 20px;
  height: 18px;
  border: 1px solid #dbdbdb;
  background-color: rgb(255, 255, 255);
  border-color: rgb(211 211 211);
  box-shadow: rgb(223, 223, 223) 0px 0px 0px 0px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

.checkbox.checbox-switch label span:before,
.checkbox-inline.checbox-switch span:before {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  content: " ";
  top: 0;
  position: relative;
  left: 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.checkbox.checbox-switch label>input:checked+span:before,
.checkbox-inline.checbox-switch>input:checked+span:before {
  left: 17px;
}

.checkbox.checbox-switch label>input:checked+span,
.checkbox-inline.checbox-switch>input:checked+span {
  background-color: rgb(180, 182, 183);
  border-color: rgb(180, 182, 183);
  box-shadow: rgb(180, 182, 183) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch label>input:checked:disabled+span,
.checkbox-inline.checbox-switch>input:checked:disabled+span {
  background-color: rgb(220, 220, 220);
  border-color: rgb(220, 220, 220);
  box-shadow: rgb(220, 220, 220) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch label>input:disabled+span,
.checkbox-inline.checbox-switch>input:disabled+span {
  background-color: rgb(232, 235, 238);
  border-color: rgb(255, 255, 255);
}

.checkbox.checbox-switch label>input:disabled+span:before,
.checkbox-inline.checbox-switch>input:disabled+span:before {
  background-color: rgb(248, 249, 250);
  border-color: rgb(243, 243, 243);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Switch Light */
.checkbox.checbox-switch.switch-light label>input:checked+span,
.checkbox-inline.checbox-switch.switch-light>input:checked+span {
  background-color: rgb(248, 249, 250);
  border-color: rgb(248, 249, 250);
  box-shadow: rgb(248, 249, 250) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Dark */
.checkbox.checbox-switch.switch-dark label>input:checked+span,
.checkbox-inline.checbox-switch.switch-dark>input:checked+span {
  background-color: rgb(52, 58, 64);
  border-color: rgb(52, 58, 64);
  box-shadow: rgb(52, 58, 64) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-dark label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-dark>input:checked:disabled+span {
  background-color: rgb(100, 102, 104);
  border-color: rgb(100, 102, 104);
  box-shadow: rgb(100, 102, 104) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Success */
.checkbox.checbox-switch.switch-success label>input:checked+span,
.checkbox-inline.checbox-switch.switch-success>input:checked+span {
  background-color: rgb(40, 167, 69);
  border-color: rgb(40, 167, 69);
  box-shadow: rgb(40, 167, 69) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-success label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-success>input:checked:disabled+span {
  background-color: rgb(153, 217, 168);
  border-color: rgb(153, 217, 168);
  box-shadow: rgb(153, 217, 168) 0px 0px 0px 8px inset;
}

/* Switch Danger */
.checkbox.checbox-switch.switch-danger label>input:checked+span,
.checkbox-inline.checbox-switch.switch-danger>input:checked+span {
  background-color: rgb(200, 35, 51);
  border-color: rgb(200, 35, 51);
  box-shadow: rgb(200, 35, 51) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-danger label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-danger>input:checked:disabled+span {
  background-color: rgb(216, 119, 129);
  border-color: rgb(216, 119, 129);
  box-shadow: rgb(216, 119, 129) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Primary */
.checkbox.checbox-switch.switch-primary label>input:checked+span,
.checkbox-inline.checbox-switch.switch-primary>input:checked+span {
  background-color: rgb(0, 105, 217);
  border-color: rgb(0, 105, 217);
  box-shadow: rgb(0, 105, 217) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-primary label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-primary>input:checked:disabled+span {
  background-color: rgb(109, 163, 221);
  border-color: rgb(109, 163, 221);
  box-shadow: rgb(109, 163, 221) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Info */
.checkbox.checbox-switch.switch-info label>input:checked+span,
.checkbox-inline.checbox-switch.switch-info>input:checked+span {
  background-color: rgb(23, 162, 184);
  border-color: rgb(23, 162, 184);
  box-shadow: rgb(23, 162, 184) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-info label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-info>input:checked:disabled+span {
  background-color: rgb(102, 192, 206);
  border-color: rgb(102, 192, 206);
  box-shadow: rgb(102, 192, 206) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

/* Switch Warning */
.checkbox.checbox-switch.switch-warning label>input:checked+span,
.checkbox-inline.checbox-switch.switch-warning>input:checked+span {
  background-color: rgb(255, 193, 7);
  border-color: rgb(255, 193, 7);
  box-shadow: rgb(255, 193, 7) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.checkbox.checbox-switch.switch-warning label>input:checked:disabled+span,
.checkbox-inline.checbox-switch.switch-warning>input:checked:disabled+span {
  background-color: rgb(226, 195, 102);
  border-color: rgb(226, 195, 102);
  box-shadow: rgb(226, 195, 102) 0px 0px 0px 8px inset;
  transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s, background-color 1.2s ease 0s;
}

.monospaced {
  font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
}

.serif {
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
}

.handwritten {
  font-family: 'Segoe Print', 'Bradley Hand', Chilanka, TSCu_Comic, casual, cursive;
}

.humanist {
  font-family: Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif;
}

.grain-paper {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%20viewBox='0%200%20160%20160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='160'%20height='160'%20filter='url(%23n)'%20opacity='0.14'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.grain-paper textarea {
  border-color: transparent;
}

.dark.grain-paper {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%20viewBox='0%200%20160%20160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='160'%20height='160'%20filter='url(%23n)'%20opacity='0.2'/%3E%3C/svg%3E");
}

.linen-paper {
  background-image: repeating-linear-gradient(0deg, rgba(210, 210, 210, 0.12) 0, rgba(210, 210, 210, 0.12) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(210, 210, 210, 0.12) 0, rgba(210, 210, 210, 0.12) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(0deg, rgba(210, 210, 210, 0.05) 0, rgba(210, 210, 210, 0.05) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(90deg, rgba(210, 210, 210, 0.05) 0, rgba(210, 210, 210, 0.05) 1px, transparent 1px, transparent 12px);
  background-position: 0 0, 0 0, 3px 3px, 3px 3px;
}

.linen-paper textarea {
  border-color: transparent;
}

.dark.linen-paper {
  background-image: repeating-linear-gradient(0deg, rgba(80, 80, 80, 0.2) 0, rgba(80, 80, 80, 0.2) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(80, 80, 80, 0.2) 0, rgba(80, 80, 80, 0.2) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(0deg, rgba(80, 80, 80, 0.08) 0, rgba(80, 80, 80, 0.08) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(90deg, rgba(80, 80, 80, 0.08) 0, rgba(80, 80, 80, 0.08) 1px, transparent 1px, transparent 12px);
}

.recycled-paper {
  background-color: #f0e6d7;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'160'%20height%3D'160'%20viewBox%3D'0%200%20160%20160'%3E%0A%3Cfilter%20id%3D't'%3E%0A%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'1.2'%20numOctaves%3D'1'%20seed%3D'9'%20result%3D'noise'/%3E%0A%3CfeColorMatrix%20in%3D'noise'%20type%3D'saturate'%20values%3D'0'%20result%3D'gray'/%3E%0A%3CfeComponentTransfer%20in%3D'gray'%20result%3D'dots'%3E%0A%20%20%3CfeFuncR%20type%3D'table'%20tableValues%3D'0%200%200%200.05%200.25%200.6%201'/%3E%0A%20%20%3CfeFuncG%20type%3D'table'%20tableValues%3D'0%200%200%200.04%200.2%200.5%200.9'/%3E%0A%20%20%3CfeFuncB%20type%3D'table'%20tableValues%3D'0%200%200%200.03%200.18%200.45%200.8'/%3E%0A%3C/feComponentTransfer%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'160'%20height%3D'160'%20filter%3D'url(%23t)'%20opacity%3D'0.12'/%3E%0A%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'260'%20height%3D'260'%20viewBox%3D'0%200%20260%20260'%3E%0A%3Cfilter%20id%3D's'%3E%0A%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.85'%20numOctaves%3D'1'%20seed%3D'3'%20result%3D'noise'/%3E%0A%3CfeColorMatrix%20in%3D'noise'%20type%3D'saturate'%20values%3D'0'%20result%3D'gray'/%3E%0A%3CfeComponentTransfer%20in%3D'gray'%20result%3D'specks'%3E%0A%20%20%3CfeFuncR%20type%3D'table'%20tableValues%3D'0%200%200%200.2%200.55%200.75%200.9'/%3E%0A%20%20%3CfeFuncG%20type%3D'table'%20tableValues%3D'0%200%200%200.18%200.48%200.68%200.82'/%3E%0A%20%20%3CfeFuncB%20type%3D'table'%20tableValues%3D'0%200%200%200.15%200.4%200.58%200.7'/%3E%0A%3C/feComponentTransfer%3E%0A%3CfeGaussianBlur%20stdDeviation%3D'0.2'/%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'260'%20height%3D'260'%20filter%3D'url(%23s)'%20opacity%3D'0.1'/%3E%0A%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'620'%20height%3D'620'%20viewBox%3D'0%200%20620%20620'%3E%0A%3Cfilter%20id%3D'f'%3E%0A%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.03'%20numOctaves%3D'2'%20seed%3D'5'%20result%3D'noise'/%3E%0A%3CfeColorMatrix%20in%3D'noise'%20type%3D'saturate'%20values%3D'0'%20result%3D'gray'/%3E%0A%3CfeComponentTransfer%20in%3D'gray'%20result%3D'tone'%3E%0A%20%20%3CfeFuncR%20type%3D'table'%20tableValues%3D'0.45%200.6%200.74%200.84%200.92'/%3E%0A%20%20%3CfeFuncG%20type%3D'table'%20tableValues%3D'0.42%200.57%200.7%200.8%200.88'/%3E%0A%20%20%3CfeFuncB%20type%3D'table'%20tableValues%3D'0.38%200.52%200.64%200.74%200.82'/%3E%0A%3C/feComponentTransfer%3E%0A%3CfeGaussianBlur%20stdDeviation%3D'0.6'/%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'620'%20height%3D'620'%20filter%3D'url(%23f)'%20opacity%3D'0.18'/%3E%0A%3C/svg%3E");
  background-size: 160px 160px, 260px 260px, 620px 620px;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat;
  background-blend-mode: multiply;
}

.recycled-paper textarea {
  border-color: transparent;
}

.dark.recycled-paper {
  background-color: #101113;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'160'%20height%3D'160'%20viewBox%3D'0%200%20160%20160'%3E%0A%3Cfilter%20id%3D't'%3E%0A%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'1.2'%20numOctaves%3D'1'%20seed%3D'9'%20result%3D'noise'/%3E%0A%3CfeColorMatrix%20in%3D'noise'%20type%3D'saturate'%20values%3D'0'%20result%3D'gray'/%3E%0A%3CfeComponentTransfer%20in%3D'gray'%20result%3D'dots'%3E%0A%20%20%3CfeFuncR%20type%3D'table'%20tableValues%3D'0%200%200%200.04%200.12%200.3%200.55'/%3E%0A%20%20%3CfeFuncG%20type%3D'table'%20tableValues%3D'0%200%200%200.04%200.12%200.3%200.55'/%3E%0A%20%20%3CfeFuncB%20type%3D'table'%20tableValues%3D'0%200%200%200.04%200.12%200.3%200.55'/%3E%0A%3C/feComponentTransfer%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'160'%20height%3D'160'%20filter%3D'url(%23t)'%20opacity%3D'0.1'/%3E%0A%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'260'%20height%3D'260'%20viewBox%3D'0%200%20260%20260'%3E%0A%3Cfilter%20id%3D's'%3E%0A%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.85'%20numOctaves%3D'1'%20seed%3D'3'%20result%3D'noise'/%3E%0A%3CfeColorMatrix%20in%3D'noise'%20type%3D'saturate'%20values%3D'0'%20result%3D'gray'/%3E%0A%3CfeComponentTransfer%20in%3D'gray'%20result%3D'specks'%3E%0A%20%20%3CfeFuncR%20type%3D'table'%20tableValues%3D'0%200%200%200.08%200.2%200.35%200.5'/%3E%0A%20%20%3CfeFuncG%20type%3D'table'%20tableValues%3D'0%200%200%200.08%200.2%200.35%200.5'/%3E%0A%20%20%3CfeFuncB%20type%3D'table'%20tableValues%3D'0%200%200%200.08%200.2%200.35%200.5'/%3E%0A%3C/feComponentTransfer%3E%0A%3CfeGaussianBlur%20stdDeviation%3D'0.2'/%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'260'%20height%3D'260'%20filter%3D'url(%23s)'%20opacity%3D'0.08'/%3E%0A%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'620'%20height%3D'620'%20viewBox%3D'0%200%20620%20620'%3E%0A%3Cfilter%20id%3D'f'%3E%0A%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.03'%20numOctaves%3D'2'%20seed%3D'5'%20result%3D'noise'/%3E%0A%3CfeColorMatrix%20in%3D'noise'%20type%3D'saturate'%20values%3D'0'%20result%3D'gray'/%3E%0A%3CfeComponentTransfer%20in%3D'gray'%20result%3D'tone'%3E%0A%20%20%3CfeFuncR%20type%3D'table'%20tableValues%3D'0.08%200.12%200.16%200.2%200.24'/%3E%0A%20%20%3CfeFuncG%20type%3D'table'%20tableValues%3D'0.08%200.12%200.16%200.2%200.24'/%3E%0A%20%20%3CfeFuncB%20type%3D'table'%20tableValues%3D'0.08%200.12%200.16%200.2%200.24'/%3E%0A%3C/feComponentTransfer%3E%0A%3CfeGaussianBlur%20stdDeviation%3D'0.6'/%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'620'%20height%3D'620'%20filter%3D'url(%23f)'%20opacity%3D'0.12'/%3E%0A%3C/svg%3E");
  background-size: 160px 160px, 260px 260px, 620px 620px;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat;
  background-blend-mode: multiply;
}

.newspaper-paper {
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.05) 0.7px, transparent 1.5px),
    radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.03) 0.5px, transparent 1.2px),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'320'%20height%3D'320'%20viewBox%3D'0%200%20320%20320'%3E%0A%3Cfilter%20id%3D'n'%3E%0A%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.6'%20numOctaves%3D'2'%20seed%3D'7'%20result%3D'noise'/%3E%0A%3CfeColorMatrix%20in%3D'noise'%20type%3D'saturate'%20values%3D'0'/%3E%0A%3CfeGaussianBlur%20stdDeviation%3D'0.35'/%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'320'%20height%3D'320'%20filter%3D'url(%23n)'%20opacity%3D'0.07'/%3E%0A%3C/svg%3E");
  background-size: 6px 6px, 10px 10px, 320px 320px;
  background-position: 0 0, 3px 1px, 0 0;
  background-repeat: repeat;
}

.newspaper-paper textarea {
  border-color: transparent;
}

.dark.newspaper-paper {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.02) 0.7px, transparent 1.5px),
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.015) 0.5px, transparent 1.2px),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'320'%20height%3D'320'%20viewBox%3D'0%200%20320%20320'%3E%0A%3Cfilter%20id%3D'n'%3E%0A%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.6'%20numOctaves%3D'2'%20seed%3D'7'%20result%3D'noise'/%3E%0A%3CfeColorMatrix%20in%3D'noise'%20type%3D'saturate'%20values%3D'0'%20result%3D'gray'/%3E%0A%3CfeColorMatrix%20in%3D'gray'%20type%3D'matrix'%20values%3D'0.2%200%200%200%200%200%200.2%200%200%200%200%200%200.2%200%200%200%200%200%201%200'/%3E%0A%3CfeGaussianBlur%20stdDeviation%3D'0.35'/%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'320'%20height%3D'320'%20filter%3D'url(%23n)'%20opacity%3D'0.08'/%3E%0A%3C/svg%3E");
  background-size: 6px 6px, 10px 10px, 320px 320px;
  background-position: 0 0, 3px 1px, 0 0;
  background-repeat: repeat;
}

.marble-paper {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'1200'%20height%3D'1200'%20viewBox%3D'0%200%201200%201200'%3E%0A%3Cfilter%20id%3D'm'%3E%0A%3CfeTurbulence%20type%3D'turbulence'%20baseFrequency%3D'0.006%200.018'%20numOctaves%3D'2'%20seed%3D'11'%20result%3D'noise'/%3E%0A%3CfeColorMatrix%20in%3D'noise'%20type%3D'matrix'%20values%3D'1.6%200%200%200%20-0.3%200%201.6%200%200%20-0.3%200%200%201.6%200%20-0.3%200%200%200%201%200'%20result%3D'veins'/%3E%0A%3CfeColorMatrix%20in%3D'veins'%20type%3D'matrix'%20values%3D'1.01%200%200%200%200.008%200%201.01%200%200%200.006%200%200%200.98%200%200.015%200%200%200%201%200'%20result%3D'tint'/%3E%0A%3CfeGaussianBlur%20in%3D'tint'%20stdDeviation%3D'0.3'/%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'1200'%20height%3D'1200'%20filter%3D'url(%23m)'%20opacity%3D'0.12'/%3E%0A%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'700'%20height%3D'700'%20viewBox%3D'0%200%20700%20700'%3E%0A%3Cfilter%20id%3D'g'%3E%0A%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.7'%20numOctaves%3D'1'%20seed%3D'4'/%3E%0A%3CfeColorMatrix%20type%3D'saturate'%20values%3D'0'/%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'700'%20height%3D'700'%20filter%3D'url(%23g)'%20opacity%3D'0.015'/%3E%0A%3C/svg%3E");
  background-repeat: repeat;
  background-size: 1200px 1200px, 700px 700px;
  background-blend-mode: multiply, normal;
}

.marble-paper textarea {
  border-color: transparent;
}

.dark.marble-paper {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'1200'%20height%3D'1200'%20viewBox%3D'0%200%201200%201200'%3E%0A%3Cfilter%20id%3D'm'%3E%0A%3CfeTurbulence%20type%3D'turbulence'%20baseFrequency%3D'0.006%200.018'%20numOctaves%3D'2'%20seed%3D'11'%20result%3D'noise'/%3E%0A%3CfeColorMatrix%20in%3D'noise'%20type%3D'matrix'%20values%3D'-1%200%200%200%201%200%20-1%200%200%201%200%200%20-1%200%201%200%200%200%201%200'%20result%3D'inv'/%3E%0A%3CfeColorMatrix%20in%3D'inv'%20type%3D'matrix'%20values%3D'1.02%200%200%200%20-0.03%200%201.02%200%200%20-0.03%200%200%201.02%200%20-0.03%200%200%200%201%200'%20result%3D'veins'/%3E%0A%3CfeGaussianBlur%20in%3D'veins'%20stdDeviation%3D'0.3'/%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'1200'%20height%3D'1200'%20filter%3D'url(%23m)'%20opacity%3D'0.07'/%3E%0A%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D'http://www.w3.org/2000/svg'%20width%3D'700'%20height%3D'700'%20viewBox%3D'0%200%20700%20700'%3E%0A%3Cfilter%20id%3D'g'%3E%0A%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.7'%20numOctaves%3D'1'%20seed%3D'4'%20result%3D'noise'/%3E%0A%3CfeColorMatrix%20in%3D'noise'%20type%3D'saturate'%20values%3D'0'%20result%3D'gray'/%3E%0A%3CfeColorMatrix%20in%3D'gray'%20type%3D'matrix'%20values%3D'-1%200%200%200%201%200%20-1%200%200%201%200%200%20-1%200%201%200%200%200%201%200'/%3E%0A%3C/filter%3E%0A%3Crect%20width%3D'700'%20height%3D'700'%20filter%3D'url(%23g)'%20opacity%3D'0.012'/%3E%0A%3C/svg%3E");
  background-repeat: repeat;
  background-size: 1200px 1200px, 700px 700px;
  background-blend-mode: screen, normal;
}

.graph-paper {
  background-image: linear-gradient(#d2d2d24d 1px, #0000 1px), linear-gradient(90deg, #d2d2d24d 1px, #0000 1px);
  background-position: -14px 14px;
  background-size: 12px 12px;
}

.graph-paper textarea {
  border-color: transparent;
}

.dark.graph-paper {
  background-image: linear-gradient(#5050504d 1px, #0000 1px), linear-gradient(90deg, #5050504d 1px, #0000 1px);
}

.dotted-paper {
  background-image: radial-gradient(#d2d2d280 1px, #0000 1px);
  background-size: 24px 24px;
}

.dotted-paper textarea {
  border-color: transparent;
}

.dark.dotted-paper {
  background-image: radial-gradient(#50505080 1px, #0000 1px);
}

/* Heartbeat animation */
@keyframes heartbeat {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  30% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

@media only screen and (min-width: 320px) and (max-width: 759px) {
  #carbonads {
    float: none;
    margin: 0 auto;
    max-width: 320px;
  }

  #carbonads span {
    position: relative;
  }

  #carbonads>span {
    max-width: none;
  }

  .carbon-img {
    float: left;
    margin: 0;
  }

  .carbon-img img {
    max-width: 130px !important;
  }

  .carbon-text {
    float: left;
    margin-bottom: 0;
    padding: 8px 20px;
    text-align: left;
    max-width: calc(100% - 129px - 3em);
  }

  .carbon-poweredby {
    left: 130px;
    bottom: 0;
    display: block;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu>li>a {
    color: #ecf0f1;
  }

  .navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu>li>a:focus {
    color: #ecdbff;
  }

  .navbar-default .navbar-nav .open .dropdown-menu>.active>a,
  .navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus {
    color: #ecdbff;
    background-color: #8e44ad;
  }
}

.form-horizontal .control-label {
  text-align: left !important;
}

.navbar-toggle {
  margin-right: 24px;
}

.navbar-nav>li>a {
  padding-left: 2px;
  padding-right: 12px;
}

.modal-title {
  font-weight: 600;
  color: #333;
}

.modal-header .close {
    margin-top: 0px;
}

.nav-tabs>li>a {
  border-radius: 8px 8px 0 0;
}

#whiteNoiseModal .custom-modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#whiteNoiseModal .modal-body {
  max-height: min(72vh,500px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 12px;
  padding-bottom: 12px;
}

.ambient-noise-title-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ambient-noise-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.ambient-noise-presets-dropdown {
  position: relative;
  margin-right: 10px;
}

.ambient-noise-preset-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  background: #ffffff;
  color: #333;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ambient-noise-preset-trigger:hover,
.ambient-noise-preset-trigger:focus,
.ambient-noise-preset-trigger.open {
  border-color: #3498db;
  outline: none;
}

.ambient-noise-preset-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1055;
  width: 280px;
  padding: 10px 0 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(28, 31, 36, 0.18);
  overflow: hidden;
}

.ambient-noise-preset-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 22px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  transform: rotate(45deg);
}

.ambient-noise-preset-list {
  max-height: 240px;
  overflow-y: auto;
}

.ambient-noise-preset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  color: #2f2f35;
  cursor: pointer;
}

.ambient-noise-preset-row:hover,
.ambient-noise-preset-row:focus {
  background: #f5f8ff;
  outline: none;
}

.ambient-noise-preset-row.active {
  background: #f2f7ff;
}

.ambient-noise-preset-row-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

.ambient-noise-preset-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ambient-noise-preset-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #1677ff;
  opacity: 0;
}

.ambient-noise-preset-check.visible {
  opacity: 1;
}

.ambient-noise-preset-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
}

.ambient-noise-preset-icon-button:hover,
.ambient-noise-preset-icon-button:focus {
  background: rgba(22, 119, 255, 0.08);
  color: #1f2937;
  outline: none;
}

.ambient-noise-preset-icon-button.delete:hover,
.ambient-noise-preset-icon-button.delete:focus {
  background: rgba(220, 38, 38, 0.08);
  color: #c53030;
}

.ambient-noise-preset-empty {
  padding: 16px;
  color: #7a7a85;
  font-size: 14px;
  text-align: center;
}

.ambient-noise-preset-create {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-top: 1px solid #ececec;
  background: #ffffff;
  color: #2f2f35;
  font-size: 15px;
  font-weight: 600;
}

.ambient-noise-preset-create:hover,
.ambient-noise-preset-create:focus {
  background: #f8fafc;
  outline: none;
}

.snapshot-text {
  display: none;
}

/* Custom style for Swal toast */
.swal-toast-bottom-offset {
  margin-bottom: 42px !important;
  background: #f0f0f0 !important;
  box-shadow: 0 5px 10px rgba(109, 109, 109, 0.4) !important;
}

.dark .swal-toast-bottom-offset {
  background: #353535 !important;
  color: #eaeaea !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.dark .swal-toast-bottom-offset .swal2-title {
  color: #eaeaea !important;
}

.dark .swal-toast-bottom-offset .swal2-timer-progress-bar {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Custom style for Swal toast */

@media (max-width: 412px) {
  .nav>li>a {
    padding: 10px 10px;
  }

  .nav-tabs {
    border-bottom: 1px solid #ddd;
    font-size: 13px;
  }
}

@media (max-width: 766px) {
  .dark textarea {
    border-right: 1px solid #0d1117;
    border-left: 1px solid #0d1117;
  }
}

@media (max-width: 450px) {
  .sticky-notice {
    width: 75%;
  }

  .navbar-brand {
    padding: 15px 12px;
  }

  .ambient-noise-header-actions,
  .ambient-noise-presets-dropdown {
    width: 100%;
  }

  .ambient-noise-title-group {
    width: 100%;
  }

  .ambient-noise-preset-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .ambient-noise-preset-menu {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #pipContainer {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .keyboard-icon {
    display: none !important;
  }

  .fullscreen-icon {
    display: none !important;
  }

  .focus-mode-icon {
    display: none !important;
  }

  .snapshot-icon {
    display: none !important;
  }

  .snapshot-text {
    display: block !important;
  }

  .search-container {
    flex-direction: column;
  }

  .navbar-nav>li>a {
    padding-left: 30px;
  }

  .navbar-flex {
    display: block;
  }
}

@media (min-width: 768px) {
  .navbar-nav {
    float: right;
    margin: 0;
  }
}

.ambient-noise-icon {
  position: relative;
}

.floating-notes {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-link {
  padding-right: 0 !important;
}

@keyframes floatNote {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-80px) scale(0.8);
    opacity: 0;
  }
}

.toast-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 15px 15px 15px 18px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1060;
  display: none;
  max-width: 305px;
  border: 1px solid #e0e0e0;
  background-color: #dddddd;
  background-image: radial-gradient(#646464 0.5px, transparent 0.5px), radial-gradient(#646464 0.5px, #dddddd 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.toast-popup.show {
  display: block;
  animation: slideIn 0.5s ease-out forwards;
}

.toast-popup.hide {
  animation: slideOut 0.3s ease-in forwards;
}

.dark .toast-popup {
  background-image: radial-gradient(45.07% 92.4% at 51% 7.61%, #464646 0, #181e27 100%);
  border-color: #30363d;
  background-size: initial;
}

.dark .toast-content a {
  color: #c9d1d9;
  transition: color .2s ease-out, opacity .2s ease-out;
}

.dark .toast-content a:hover {
  color: #58a6ff;
}

.dark .close-popup {
  color: #8b949e;
}

.dark .close-popup:hover {
  color: #c9d1d9;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-content a {
  color: #2c3e50;
  text-decoration: none;
  flex-grow: 1;
}

.toast-content a:hover {
  color: #3498db;
}

.close-popup {
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}

.close-popup:hover {
  color: #333;
}

.break-reminder-popup {
  max-width: 360px;
}

.break-reminder-content {
  align-items: flex-start;
}

.break-reminder-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.break-reminder-copy strong {
  color: #213547;
  font-size: 15px;
  line-height: 1.3;
}

.break-reminder-copy p {
  margin: 0;
  color: #48576a;
  font-size: 13px;
  line-height: 1.5;
}

.break-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.break-reminder-button {
  border: 1px solid #bcc7d3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #22303f;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  transition: transform .18s ease-out, background-color .18s ease-out, border-color .18s ease-out;
}

.break-reminder-button:hover,
.break-reminder-button:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: #7ca4c8;
  outline: none;
  transform: translateY(-1px);
}

.break-reminder-button-primary {
  background: #213547;
  border-color: #213547;
  color: #fff;
}

.break-reminder-button-primary:hover,
.break-reminder-button-primary:focus {
  background: #182736;
  border-color: #182736;
}

.break-reminder-popup.break-active .break-reminder-actions {
  margin-top: 12px;
}

.break-reminder-popup.break-active .break-reminder-copy strong {
  font-size: 26px;
  letter-spacing: 1px;
}

.break-reminder-popup.break-active .break-reminder-copy p {
  font-size: 13px;
}

.dark .break-reminder-copy strong {
  color: #eef6ff;
}

.dark .break-reminder-copy p {
  color: #b5c2cf;
}

.dark .break-reminder-button {
  background: rgba(24, 30, 39, 0.78);
  border-color: #384352;
  color: #dce6f0;
}

.dark .break-reminder-button:hover,
.dark .break-reminder-button:focus {
  background: rgba(32, 40, 52, 0.96);
  border-color: #5b7592;
}

.dark .break-reminder-button-primary {
  background: #93c5fd;
  border-color: #93c5fd;
  color: #0f172a;
}

.dark .break-reminder-button-primary:hover,
.dark .break-reminder-button-primary:focus {
  background: #bfdbfe;
  border-color: #bfdbfe;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  20% {
    transform: translateX(30px);
    opacity: 1;
  }

  100% {
    transform: translateX(-400px);
    opacity: 0;
  }
}

/* White Noise Player Styles */
.sound-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.6em;
}

.sound-button>div:first-child {
  display: flex;
  flex-direction: row;
  gap: 0.6em
}

.sound-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  background: #f1efef;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  gap: 22px;
}

.sound-button:hover {
  background: #e3e2e2;
}

.sound-button .new-badge {
  position: absolute;
  top: -5px;
  left: 11px;
  background-color: #28a745 !important;
  color: white;
  font-size: 8px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 3px;
  line-height: 1;
  background: #e3e2e2;
}

.sound-button.playing {
  background: #dcefff;
}

.sound-button span {
  flex: 1;
  font-size: 13px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sound-button.playing::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #2196f3;
  border-radius: 50%;
  margin-left: 8px;
  animation: pulse 1.5s infinite;
  position: absolute;
  top: 10px;
  right: 10px;
}

#shareNotesContainer {
  display: none;
}

#shareNotes {
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
  }
}

.dark-mode .sound-button.playing span::after {
  background-color: #64b5f6;
}

.volume-control {
  width: 100px;
}

.volume-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: #cccccc;
  outline: none;
  border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #2196f3;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #2196f3;
  cursor: pointer;
  border: none;
}

/* Dark mode styles */
.dark-mode .sound-button {
  background: #2d2d2d;
  color: #fff;
}

.dark-mode .sound-button:hover {
  background: #3d3d3d;
}

.dark-mode .sound-button.playing {
  background: #1a3f5f;
  border: 1px solid #2196f3;
}

.dark-mode .volume-slider {
  background: #444;
}

.sound-button.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.sound-button.loading::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #2196f3;
  border-top-color: transparent;
  border-radius: 50%;
  animation: loading-spinner 0.8s linear infinite;
  top: 10px;
  right: 10px;
}

@keyframes loading-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Dark mode loading state */
.dark-mode .sound-button.loading::before {
  border-color: #64b5f6;
  border-top-color: transparent;
}

/* Global mute button styles */
.global-mute-button {
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.global-mute-button.muted svg {
  color: #ff3333;
}

.custom-modal-title {
  display: flex;
  align-items: center;
}

/* Global mute button styles */
.global-mute-button.muted svg {
  color: #ff3333;
}

/* Import OpenDyslexic font */
@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cookie';
  src: url('../fonts/Cookie-Regular.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DepartureMono';
  src: url('../fonts/DepartureMono-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Dyslexic font class */
.dyslexic {
  font-family: 'OpenDyslexic', sans-serif !important;
  line-height: 1.6;
}

.pixel {
  font-family: 'DepartureMono', sans-serif !important;
  line-height: 1.6;
}

.new-tag {
  background: #71fa82 !important;
}

.new-badge {
  padding: 2px 9px;
  background: #0bb120;
  font-size: 10px;
  border-radius: 4px;
  color: white;
}

.typewriter-switch {
  gap: 12px;
}

.typewriter-switch-volume {
  display: flex;
  align-items: center;
  gap: 10px;
}

#typewriterVolumeValue {
  font-size: 13px;
  color: #2c2c2c;
  font-variant-numeric: tabular-nums;
  width: 30px;
}

@media (max-width: 767px) {
  .preferences-panel .form-group {
    display: block;
    padding: 7px 6px;
  }

  .preferences-panel .control-label {
    margin-bottom: 6px;
  }

  .preferences-panel .col-sm-6.col-md-5 {
    justify-content: flex-start;
  }

  .typewriter-switch {
    flex-wrap: wrap;
  }

  .preferences-panel .checkbox.checbox-switch {
    flex-direction: row-reverse;
  }
}

#keyburstLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}

.keyburst-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--burst-color, #ff6b6b);
  box-shadow: 0 0 6px var(--burst-color, #ff6b6b);
  opacity: 1;
  transform: translate(0, 0) scale(1);
  animation: keyburst 650ms ease-out forwards;
  will-change: transform, opacity;
}

@keyframes keyburst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--burst-x, 0), var(--burst-y, -20px)) scale(0);
  }
}

.chime-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.chime-container input {
  margin: 0;
  color-scheme: none;
}

.chime-container label {
  margin: 0;
  font-size: 1em;
}

.tilt-css:hover span {
  display: inline-block;
  transform-origin: 50% 65%;
}

.tilt-css:hover span:first-child {
  transform: rotate(6deg) !important;
}

.tilt-css:hover span:nth-child(6n+1) {
  transform: rotate(-7deg);
}

.tilt-css:hover span:nth-child(6n+2) {
  transform: rotate(4deg);
}

.tilt-css:hover span:nth-child(6n+3) {
  transform: rotate(-2deg);
}

.tilt-css:hover span:nth-child(6n+4) {
  transform: rotate(6deg);
}

.tilt-css:hover span:nth-child(6n+5) {
  transform: rotate(-5deg);
}

.tilt-css:hover span:nth-child(6n+6) {
  transform: rotate(3deg);
}

/* Focus Mode Close Button */
.focus-mode-close-btn {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  animation: dropDown 0.4s ease-out;
}

@keyframes dropDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.focus-mode-close-btn button {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 0 0 8px 8px;
  color: white;
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.focus-mode-close-btn button:hover {
  background: rgba(0, 0, 0, 0.9);
}

body.dark .focus-mode-close-btn button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.dark .focus-mode-close-btn button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Statistics Modal Styles */
.statistics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  border-radius: 10px;
  background: #e5e6e7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 1px 1px 4px 0px #0000001f;
}

body.dark .stat-item {
  background: rgb(224 242 255);
}

body.dark .stat-item:hover {
  box-shadow: 2px 2px 3px 1px #0000001f;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #5d5b5b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.stat-label a {
  vertical-align: 2px;
}

.stat-label .tooltip {
  text-transform: none;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text-primary);
}

body.dark .stat-value {
  color: #585656;
}

@media (max-width: 480px) {
  .statistics-grid {
    gap: 15px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-label {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .statistics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media print {

  .dark .toast-popup,
  .toast-popup,
  .word-count-container {
    display: none !important;
  }

  .note-editor-stack {
    border: none !important;
  }

  .dark textarea {
    border-left: none;
    border-right: none;
  }

  textarea {
    border: none;
    border-left: none;
    border-right: none;
  }
}