* {
  box-sizing: border-box
}
body,
html {
  height: 100vh
}
body {
  margin: 0;
  font-family: ui-sans-serif,system-ui,-apple-system,"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  background-color: var(--theme-bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background-color .5s ease,color .5s ease
}
textarea {
  resize: none
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: 0 0
}
input,
select,
textarea {
  font: inherit;
  border: none;
  outline: 0
}
span {
  color: var(--text)
}
.content {
  position: fixed;
  top: calc(var(--topbar-h) + max(0px,calc(var(--sat) - 20px)));
  bottom: var(--bottombar-h);
  left: 0;
  right: 0;
  padding: 10px 0 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  scrollbar-width: none
}
.content::-webkit-scrollbar {
  display: none
}
.timeline-area {
  position: relative;
  margin: 0;
  width: 100%
}
.timeline-scroll {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none
}
.timeline-scroll::-webkit-scrollbar {
  display: none
}
.timeline-content {
  position: relative;
  min-width: 100%;
  scrollbar-width: none
}
.timeline-content::-webkit-scrollbar {
  display: none
}
.timeline-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none
}
.timeline-axis {
  position: absolute;
  left: var(--axis-left);
  top: var(--canvas-pad-top);
  bottom: var(--canvas-pad-bot);
  width: 2px;
  background: linear-gradient(to bottom,rgba(255,255,255,.1),var(--theme-line-strong),rgba(255,255,255,0));
  border-radius: 2px;
  pointer-events: none;
  z-index: 2
}
.year-label {
  position: absolute;
  left: var(--year-label-left);
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .2px;
  user-select: none;
  white-space: nowrap;
  pointer-events: none
}
.hline {
  position: absolute;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(to right,rgba(255,255,255,.1),var(--theme-line-strong));
  opacity: .9;
  pointer-events: none;
  z-index: 1
}
.hline.is-active {
  background: linear-gradient(to right,rgba(255,255,255,.4),rgba(255,255,255,.2));
  opacity: 1
}
.hline.is-hover {
  background: linear-gradient(to right,rgba(255,255,255,.4),rgba(255,255,255,.2));
  opacity: 1
}
.vline.is-active {
  background: linear-gradient(to bottom,color-mix(in srgb,var(--c) 10%,transparent),color-mix(in srgb,var(--c) 40%,transparent),color-mix(in srgb,var(--c) 10%,transparent));
  opacity: 1
}
.vline.is-hover {
  background: linear-gradient(to bottom,color-mix(in srgb,var(--c) 10%,transparent),color-mix(in srgb,var(--c) 40%,transparent),color-mix(in srgb,var(--c) 10%,transparent));
  opacity: 1
}
.vline {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom,color-mix(in srgb,var(--c) 10%,transparent),color-mix(in srgb,var(--c) 40%,transparent),color-mix(in srgb,var(--c) 10%,transparent));
  opacity: .6;
  pointer-events: none;
  z-index: 2;
  transform: translateX(-50%)
}
.hit {
  position: absolute;
  width: var(--hit);
  height: var(--hit);
  border-radius: var(--radius-max);
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  background: 0 0;
  border: 0;
  padding: 0;
  outline: 0;
  z-index: 6;
  pointer-events: auto;
  transition: opacity .12s ease,transform .12s ease
}
.dot {
  width: var(--dot);
  height: var(--dot);
  border-radius: var(--radius-max);
  background: var(--text);
  transition: transform .12s ease,box-shadow .12s ease,opacity .12s ease
}
.hit.is-day,
.hit.is-month,
.hit.is-today,
.hit.is-week,
.hit.is-year {
  left: 21px
}
.hit.is-year .dot {
  width: var(--dot-year);
  height: var(--dot-year);
  background: var(--theme-bg);
  border: 2px solid var(--muted);
  box-shadow: 0 0 10px 6px rgba(255,255,255,.1)
}
.hit.is-day .dot,
.hit.is-month .dot,
.hit.is-week .dot {
  background: var(--theme-bg);
  border: 2px solid var(--muted);
  box-shadow: 0 0 5px 3px rgba(255,255,255,.1)
}
.hit.is-today .dot {
  background: var(--theme-bg);
  border: 2px solid color-mix(in srgb,var(--green),transparent 40%);
  box-shadow: 0 0 5px 3px rgba(255,255,255,.1)
}
.hit.is-cat .dot {
  background: var(--c,rgba(255,255,255,.7));
  opacity: .95
}
@media (hover:hover) {
  .hit.is-cat:hover .dot,
  .hit.is-hover .dot {
    transform: scale(1.25);
    box-shadow: 0 0 5px 6px color-mix(in srgb,var(--c) 20%,transparent)
  }
}
.event-bubble.is-active .bubble-dot,
.hit.is-active .dot {
  transform: scale(1.25);
  box-shadow: 0 0 5px 6px color-mix(in srgb,var(--c) 20%,transparent)
}
.hit.is-search-target .dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 12px rgba(100,200,255,.25),0 0 20px rgba(100,200,255,.4);
  animation: searchPulse 1.5s ease-in-out 3
}
@keyframes searchPulse {
  0%,
  100% {
    transform: scale(1.35);
    opacity: 1
  }
  50% {
    transform: scale(1.45);
    opacity: .9
  }
}
.event-bubble {
  position: absolute;
  z-index: 20;
  background: var(--bg);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-max);
  padding: 0 10px;
  height: 30px;
  min-width: 120px;
  max-width: 320px;
  width: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
  opacity: .9;
  transition: opacity .2s ease,box-shadow .2s ease,transform .2s ease
}
.event-bubble.is-active,
.event-bubble.is-hover,
.event-bubble:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
  opacity: 1;
  z-index: 25;
  transform: translateY(-1px)
}
.bubble-content {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;
  width: 100%
}
.bubble-dot {
  width: 10px;
  height: 10px;
  background-color: var(--text);
  border-radius: var(--radius-max);
  flex-shrink: 0;
  margin-right: 4px;
  transition: transform .15s ease,box-shadow .15s ease;
  cursor: pointer
}
.bubble-content:hover .bubble-dot,
.bubble-dot:hover {
  transform: scale(1.25);
  box-shadow: 0 0 5px 6px color-mix(in srgb,var(--c) 20%,transparent)
}
.bubble-category {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
  margin-right: 4px
}
.bubble-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
  margin-right: 4px
}
.bubble-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis
}
.bubble-part-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0
}
.event-card {
  position: absolute;
  z-index: 15;
  background: var(--theme-bg);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  padding: 10px;
  height: auto;
  min-height: 42px;
  min-width: 224px;
  max-width: 224px;
  width: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  cursor: pointer;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  opacity: .9;
  transition: opacity .2s ease,box-shadow .2s ease,transform .2s ease
}
.event-card.is-active,
.event-card.is-hover,
.event-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
  opacity: 1;
  z-index: 25;
  transform: translateY(-1px)
}
.card-bar {
  width: 6px;
  flex-shrink: 0;
  border-radius: var(--radius)
}
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10px;
  gap: 4px;
  overflow: hidden
}
.card-row-bottom,
.card-row-top {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden
}
.card-category {
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 4px
}
.card-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.event-part-label {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  color: var(--theme-text);
  font-size: 12px;
  font-weight: 500;
  margin-left: 4px
}
.event-repeat-label {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  color: var(--theme-text);
  font-size: 12px;
  font-weight: 500;
  margin-left: 4px
}
.card-date {
  font-size: 10px;
  font-weight: 500;
  color: var(--theme-text);
  flex-shrink: 0;
  margin-right: 8px
}
.card-desc {
  font-size: 10px;
  color: var(--theme-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--surface-2);
  cursor: pointer;
  user-select: none;
  color: var(--text)
}
.menu-row:last-child {
  border-bottom: 0
}
.menu-row:active {
  background: rgba(255,255,255,.04)
}
.text-block {
  flex: 1;
  min-width: 0
}
.text-title {
  font-size: 12px
}
.text-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px
}
.text-hint {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap
}
.chevron {
  color: var(--text);
  transition: transform .2s ease;
  display: inline-flex;
  width: 25px;
  height: 25px;
  justify-content: center;
  align-self: center;
  place-items: center
}
.chevron.is-expanded {
  transform: rotate(90deg)
}
.section-collapse-btn {
  padding: 0;
  transition: transform .2s ease,opacity .15s ease;
  transform: rotate(90deg)
}
.section-collapse-btn.is-collapsed {
  transform: rotate(0)
}
#toolAddCatBtn {
  color: #64c8ff;
  font-size: 12px
}
#toolAddCatBtn:hover {
  background: rgba(100,200,255,.1);
  color: var(--blue);
  border-radius: var(--radius)
}
.menu-row.no-chevron {
  cursor: default
}
.menu-row.no-chevron:active {
  background: 0 0
}
.theme-switch-group {
  display: flex;
  background: var(--surface-1);
  padding: 2px;
  border-radius: var(--radius-max);
  gap: 2px
}
.theme-btn {
  padding: 6px 12px;
  border-radius: var(--radius-max);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  transition: all .2s ease;
  border: none;
  background: 0 0;
  cursor: pointer
}
.theme-btn:hover {
  color: var(--text)
}
.theme-btn.is-active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,.1)
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-2);
  transition: .3s;
  border-radius: var(--radius-max)
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--bg);
  transition: .3s;
  border-radius: 50%
}
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--blue)
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px)
}
.theme-container {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(130px,1fr));
  gap: 12px;
  padding: 10px 0
}
.theme-card {
  position: relative;
  background: var(--surface-1);
  border-radius: var(--radius-2);
  padding: 10px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  border: 1px solid transparent
}
.theme-card:hover {
  transform: translateY(-2px);
  background: var(--surface-2)
}
.theme-card.is-active {
  background: var(--bg);
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(0,122,255,.15)
}
.theme-card-preview {
  aspect-ratio: 16/10;
  background: var(--preview-color);
  border: 1px solid var(--preview-border,rgba(0,0,0,.05));
  border-radius: var(--radius-1);
  margin-bottom: 8px
}
.theme-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: center
}
.theme-card-check {
  position: absolute;
  top: 6px;
  right: 6px;
  color: var(--blue);
  font-size: 18px;
  opacity: 0;
  transform: scale(.5);
  transition: all .2s ease
}
.theme-card.is-active .theme-card-check {
  opacity: 1;
  transform: scale(1)
}
.theme-card.is-locked {
  opacity: .6;
  filter: grayscale(.5);
  cursor: not-allowed
}
.theme-card.is-locked:hover {
  transform: none;
  background: var(--surface-1)
}
.theme-card.is-locked .theme-card-preview {
  opacity: .7
}
.theme-card.is-locked .theme-card-name {
  color: var(--text-subtle)
}
.theme-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 32px;
  opacity: .8;
  pointer-events: none
}
.profile-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--surface-1);
  justify-content: center
}
.profile-avatar-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex: 0 0 auto
}
.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-max);
  background: var(--surface-2);
  border: 2px solid var(--border-light);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden
}
.avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 25px;
  height: 25px;
  border-radius: var(--radius-max);
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: transform .2s,background .2s;
  z-index: 5
}
.avatar-edit-btn:hover {
  transform: scale(1.1);
  background: var(--bg)
}
.avatar-source-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 100;
  min-width: 200px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 5px
}
.avatar-source-menu.is-hidden {
  display: none
}
.avatar-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-2);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background .2s
}
.avatar-option:hover {
  background: rgba(0,0,0,.1);
  color: var(--text)
}
.avatar-option.is-active {
  background: rgba(100,200,255,.2);
  color: var(--blue);
  font-weight: 500
}
.avatar-option.is-active i {
  color: var(--blue)
}
.avatar-input-area {
  display: flex;
  flex-direction: column;
  padding: 10px;
  margin: 0;
  border-radius: var(--radius-2);
  transition: background .2s,box-shadow .2s
}
.avatar-input-area.is-active {
  background: rgba(40,100,235,.08);
  box-shadow: inset 0 0 0 1px rgba(40,100,235,.3)
}
.avatar-inline-input {
  background: var(--surface-2);
  border: 1px solid var(--muted);
  border-radius: var(--radius-2);
  padding: 10px;
  font-size: 12px;
  color: var(--text);
  width: 100%;
  outline: 0;
  transition: border-color .2s
}
.avatar-inline-input:focus {
  border-color: var(--bg)
}
.profile-info {
  flex: 1;
  min-width: 0
}
.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text)
}
.profile-id {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500
}
.profile-bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  white-space: pre-wrap;
  min-height: 50px;
  max-height: calc(1.5em * 4);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 10px;
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  margin-top: 4px
}
.profile-bio::-webkit-scrollbar {
  width: 8px
}
.profile-bio::-webkit-scrollbar-track {
  background: 0 0
}
.profile-bio::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
  transition: background .15s
}
.profile-bio::-webkit-scrollbar-thumb:hover {
  background: var(--text);
  opacity: .6
}
.profile-bio {
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent
}
.profile-email-display {
  font-size: 14px;
  color: var(--text)
}
#editBio {
  height: 100%;
  padding: 10px
}
#editDeleteAccountBtn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  border: none;
  background: 0 0;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease;
  width: 100%;
  color: color-mix(in srgb,var(--red),transparent 20%)
}
#editDeleteAccountBtn:hover {
  background: color-mix(in srgb,var(--red),transparent 80%);
  border-color: color-mix(in srgb,var(--red),transparent 40%)
}
#editDeleteAccountBtn .action-text {
  color: color-mix(in srgb,var(--red),transparent 20%)
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  border: none;
  background: 0 0;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease;
  width: 100%
}
.action-btn:hover {
  background: var(--surface-1)
}
.action-btn:active {
  transform: translateY(1px)
}
.action-icon {
  font-size: 18px;
  width: 24px;
  text-align: center
}
.action-btn.is-danger {
  color: color-mix(in srgb,var(--red),transparent 20%)
}
.action-btn.is-danger:hover {
  background: color-mix(in srgb,var(--red),transparent 80%);
  border-color: color-mix(in srgb,var(--red),transparent 40%)
}
.action-btn.is-danger .action-text {
  color: color-mix(in srgb,var(--red),transparent 20%)
}
.action-btn.is-warning {
  color: var(--yellow)
}
.action-btn.is-warning:hover {
  background: rgba(255,193,7,.12)
}
.sheet-divider {
  height: 1px;
  background: var(--surface-1)
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease
}
.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto
}
.modal {
  position: fixed;
  z-index: 1000;
  left: 10px;
  right: 10px;
  top: calc(var(--topbar-h) + max(0px,calc(var(--sat) - 20px)));
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--surface-2);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  backdrop-filter: blur(20px);
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease,opacity .18s ease;
  overflow: hidden;
  max-height: calc(100vh - var(--topbar-h) - var(--sat) - var(--bottombar-h) - 40px);
  display: flex;
  flex-direction: column
}
.modal.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto
}
.modal-header {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-2);
  position: relative
}
.modal-header::before {
  content: "";
  width: 40px
}
.modal-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  text-align: center
}
.modal-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.07);
  color: var(--text);
  cursor: pointer;
  user-select: none
}
.modal-body {
  padding: 10px;
  overflow: auto
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px
}
.year-btn {
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  user-select: none
}
.year-btn:hover {
  background: var(--surface-2)
}
.year-btn:active {
  transform: translateY(1px)
}
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease
}
.confirm-overlay.show {
  opacity: 1;
  pointer-events: auto
}
.confirm-dialog {
  width: 90%;
  max-width: 320px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.5)
}
.confirm-title {
  font-size: 16px;
  font-weight: 600
}
.confirm-message {
  font-size: 12px;
  color: var(--muted);
  padding: 10px;
  line-height: 1.5
}
.confirm-actions {
  display: flex;
  gap: 10px
}
.confirm-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-2);
  border: 1px solid var(--surface-2);
  background: var(--surface-1);
  color: var(--text);
  font-size: 14px;
  cursor: pointer
}
.confirm-btn:active {
  transform: translateY(1px)
}
.confirm-btn.is-primary {
  background: color-mix(in srgb,var(--blue),transparent 20%);
  border-color: color-mix(in srgb,var(--blue),transparent 10%);
  color: var(--bg)
}
.settings-save-btn {
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface-1);
  color: var(--text);
  border: 1px solid var(--surface-2);
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease,border-color .15s ease,transform .1s ease
}
.settings-save-btn:hover {
  background: var(--surface-2);
  border-color: var(--surface-2)
}
.settings-save-btn:active {
  transform: translateY(1px)
}
.project-type-selector {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 10px
}
.project-type-heading {
  font-size: 12px;
  color: var(--text)
}
.type-card {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease
}
.type-icon {
  font-size: 20px;
  margin-bottom: 6px
}
.type-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px
}
.type-url {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 400
}
.type-url code {
  padding: 2px 6px;
  border-radius: var(--radius-2);
  background: var(--surface-2);
  font-family: ui-monospace,monospace;
  font-size: 12px
}
.type-note {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400
}
.type-card:hover {
  background: var(--surface-2);
  color: var(--text)
}
.type-card.is-active {
  background: var(--surface-1);
  border-color: var(--surface-2);
  color: var(--text)
}
.url-field-group {
  display: flex;
  align-items: center;
  gap: 5px
}
.url-field-group .form-input {
  flex: 1;
  font-family: ui-monospace,monospace;
  font-size: 12px;
  color: var(--text)
}
.url-refresh-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-2);
  border: 1px solid var(--surface-2);
  background: var(--surface-1);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  place-content: center;
  transition: background .15s ease,border-color .15s ease
}
.url-refresh-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-light)
}
.url-refresh-btn:active {
  transform: translateY(1px)
}
.theme-container {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
  gap: 10px;
  padding: 10px
}
.demo-text {
  padding: 10px;
  color: var(--muted);
  font-size: 12px
}
@media (prefers-reduced-motion:reduce) {
  .modal,
  .modal-backdrop,
  .popover-menu,
  .sheet,
  .sheet-backdrop,
  .toast,
  .tool-backdrop,
  .tool-sheet {
    transition: none!important
  }
}
.drag-handle {
  cursor: grab;
  user-select: none;
  transition: opacity .2s,color .2s;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 0 4px
}
.drag-handle:active {
  cursor: grabbing
}
.is-dragging {
  opacity: .3;
  background: var(--surface-2);
  border: 2px dashed var(--surface-2);
  box-shadow: none!important;
  transform: scale(1);
  transition: all .2s
}
.is-cloned {
  pointer-events: none;
  z-index: 9999!important;
  opacity: .95!important;
  box-shadow: 0 20px 40px rgba(0,0,0,.3)!important;
  border: 1px solid var(--surface-2);
  background: var(--bg);
  border-radius: var(--radius);
  transform: scale(1.05) rotate(0);
  transition: transform .1s
}
.repeat-action-dialog {
  max-width: 340px
}
.repeat-action-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px
}
.repeat-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: all .15s ease
}
.repeat-action-btn:hover {
  background: var(--surface-2);
  color: var(--text)
}
.repeat-action-btn:active {
  transform: translateY(1px)
}
.repeat-action-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text)
}
.repeat-action-text {
  display: flex;
  flex-direction: column;
  gap: 2px
}
.repeat-action-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text)
}
.repeat-action-text small {
  font-size: 12px;
  color: var(--muted)
}
.lock-screen-overlay,
.not-found-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,#1a1a1a 0,#0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998
}
.glass-card,
.not-found-content {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 50px 40px;
  border-radius: 30px;
  box-shadow: 0 25px 50px rgba(0,0,0,.5);
  text-align: center;
  width: 90%;
  max-width: 400px;
  animation: fadeInScale .6s cubic-bezier(.165,.84,.44,1)
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(.95)
  }
  to {
    opacity: 1;
    transform: scale(1)
  }
}
.not-found-icon {
  font-size: 64px;
  margin-bottom: 25px;
  color: var(--text)
}
.not-found-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 15px;
  letter-spacing: 1px
}
.not-found-message {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 35px;
  line-height: 1.6
}
.not-found-btn {
  display: inline-block;
  padding: 12px 32px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all .3s ease
}
.not-found-btn:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px)
}
.visitor-banner {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text);
  gap: 10px;
  padding: 10px;
  background: var(--surface-2);
  border-radius: var(--radius)
}
.section-title.is-danger {
  color: var(--red);
  margin: 0;
  font-size: 14px;
  font-weight: 500
}
.danger-info {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  padding: 0 10px 10px 10px
}
.danger-box {
  display: flex;
  flex-direction: column
}
.danger-btn {
  width: 100px;
  background-color: color-mix(in srgb,var(--red),transparent 60%);
  color: color-mix(in srgb,var(--red),transparent 20%);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease
}
.danger-btn:hover {
  background-color: color-mix(in srgb,var(--red),transparent 40%);
  transform: translateY(2px)
}