:root {
  --find-me-current-color: #22c55e;
  --find-me-past-color: #ef4444;
  color-scheme: light;
  --tablet-brightness: 1;
  --tablet-background-color: #2b1c16;
  --tablet-background-image: url("../assets/images/coffee-shop.jpg");
  --background-media-image: url("../assets/images/coffee-shop.jpg");
  --accent-color: #D9992B;
  --accent-color-dark: #B37812;
  --accent-color-light: #F2C46C;
  --accent-shadow-strong: rgba(217, 153, 43, 0.32);
  --accent-shadow-soft: rgba(217, 153, 43, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: radial-gradient(circle at top, #f5f5f7, #d5d7db);
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.background-media {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-image: var(--background-media-image, var(--tablet-background-image, url("../assets/images/coffee-shop.jpg")));
background-size: cover;
background-position: center;
background-repeat: no-repeat;
filter: saturate(0.9) brightness(0.6);
z-index: -1;
transition: background-image 0.3s ease, filter 0.2s ease;
}

.background-media__video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
pointer-events: none;
}

.tablet-shell {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: clamp(320px, 80vw, 1000px);
height: 700px;
border-radius: 39px;
padding: 3px;
background: linear-gradient(140deg, #f1f3f7, #c7ccd6);
box-shadow:
  0 24px 38px rgba(0, 0, 0, 0.24),
  0 10px 20px rgba(0, 0, 0, 0.22),
  inset 0 1px 0 rgba(255, 255, 255, 0.7),
  inset 0 -1px 0 rgba(0, 0, 0, 0.18);
display: flex;
align-items: center;
justify-content: center;
}

.tablet {
width: 100%;
height: 100%;
border-radius: 36px;
background: #060708;
position: relative;
padding: 26px;
display: flex;
align-items: center;
justify-content: center;
}

.tablet::before {
content: "";
position: absolute;
bottom: 32px;
left: 50%;
transform: translateX(-50%);
width: 240px;
height: 8px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.85);
box-shadow:
  0 6px 18px rgba(0, 0, 0, 0.4),
  inset 0 2px 0 rgba(255, 255, 255, 0.08);
opacity: 0;
pointer-events: none;
cursor: pointer;
transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
z-index: 60;
}

.tablet--modal-open::before {
opacity: 1;
pointer-events: auto;
}

.tablet--modal-open:hover::before {
background: rgba(0, 0, 0, 0.95);
box-shadow:
  0 8px 22px rgba(0, 0, 0, 0.48),
  inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.tablet--modal-open.tablet--find-me-open::before {
  background: rgba(226, 232, 240, 0.9);
  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.16),
    inset 0 2px 0 rgba(148, 163, 184, 0.18);
}

.tablet--modal-open.tablet--find-me-open:hover::before {
  background: rgba(236, 241, 247, 0.95);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.2),
    inset 0 2px 0 rgba(148, 163, 184, 0.2);
}

.tablet--modal-open.tablet--photos-open::before {
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 6px 18px rgba(14, 23, 42, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.tablet--modal-open.tablet--photos-open:hover::before {
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 8px 22px rgba(14, 23, 42, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.tablet--modal-open.tablet--find-me-open::before {
  display: none;
}

.tablet--photos-open .app-modal {
  align-items: stretch;
}

.tablet--photos-open .app-modal__body {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  color: #e2e8f0;
}

.tablet--find-me-open .app-modal__close,
.tablet--photos-open .app-modal__close {
  color: #fff;
}

.tablet--find-me-open .app-modal__close {
  display: inline-flex;
  position: absolute;
  top: 28px;
  right: 32px;
  background: none;
  color: #fff;
  border-radius: 999px;
  box-shadow: none;
  z-index: 12;
  font-weight: 100;
  font-size: 1.6rem;
}

.tablet--jr-valdez-open .app-modal {
  align-items: stretch;
}

.tablet--jr-valdez-open .app-modal__body {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.tablet--jr-valdez-open .app-modal__close {
  color: #fff;
}

.tablet-screen {
width: 100%;
height: 100%;
border-radius: 18px;
background-color: var(--tablet-background-color, #080811);
background-image: var(--tablet-background-image, url("../assets/images/coffee-shop.jpg"));
background-position: center;
background-size: cover;
background-repeat: no-repeat;
display: grid;
place-items: center;
position: relative;
color: #fff;
text-align: center;
padding: 32px 0;
filter: brightness(var(--tablet-brightness, 1));
transition: filter 0.2s ease, background-image 0.3s ease, background-color 0.3s ease;
will-change: filter;
}

@media (max-width: 1200px) {
  body {
    align-items: stretch;
    background: var(--tablet-background-color, #080811);
  }

  .background-media {
    display: none;
  }

  .tablet-shell {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    border-radius: 0;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .tablet {
    border-radius: 0;
    background: none;
    padding: 0;
    min-height: 100vh;
  }

  .tablet-screen {
    border-radius: 0;
    width: 100%;
    min-height: 100vh;
    padding: 32px 0;
  }

  .tablet::before {
    display: none;
  }

  .app-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .tablet--find-me-open .tablet-screen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
  }

  .tablet--find-me-open .app-modal {
    align-items: stretch;
    overflow: visible;
  }

  .tablet--find-me-open .app-modal__backdrop {
    border-radius: 0;
  }

  .tablet--find-me-open .app-modal__body {
    margin-top: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .tablet--find-me-open .app-modal__window--fullscreen {
    flex: 1 1 auto;
  }

.tablet--find-me-open .app-modal__close {
  display: inline-flex;
  color: #fff;
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 12;
  background: transparent;
  border-radius: 999px;
  box-shadow: none;
}

  .tablet--photos-open .tablet-screen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
  }

  .tablet--photos-open .app-modal {
    align-items: stretch;
  }

  .tablet--photos-open .app-modal__backdrop {
    border-radius: 0;
  }

  .tablet--photos-open .app-modal__body {
    margin-top: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .tablet--photos-open .app-modal__window--fullscreen {
    flex: 1 1 auto;
  }

  .tablet--photos-open .app-modal__close {
    color: #fff;
  }

  .tablet--find-me-open .find-me-app {
    width: 100vw;
    min-height: 100vh;
  }
}

.status-bar {
position: absolute;
top: 16px;
left: 24px;
right: 24px;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.9rem;
font-weight: 500;
letter-spacing: 0.02em;
}

.status-bar span {
color: rgba(255, 255, 255, 0.9);
}

.status-group {
display: flex;
flex-direction: row;
align-items: center;
gap: 14px;
}

.status-date {
font-weight: 400;
color: rgba(255, 255, 255, 0.78);
}

.status-battery {
display: flex;
align-items: center;
gap: 6px;
position: relative;
transition: color 0.24s ease;
}

.status-wifi {
display: inline-flex;
align-items: center;
justify-content: flex-start;
min-width: 16px;
height: 16px;
position: relative;
font-size: 0.78rem;
letter-spacing: 0.04em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.88);
}

.status-wifi__icon {
position: absolute;
top: 50%;
left: 50%;
width: 16px;
height: 16px;
margin: -8px 0 0 -8px;
opacity: 0;
transform: scale(0.85);
transition: opacity 0.2s ease, transform 0.2s ease;
}

.status-wifi__icon path {
fill: rgba(255, 255, 255, 0.9);
}

.status-wifi__icon.is-visible {
opacity: 1;
transform: scale(1);
}

.status-wifi__text {
display: none;
margin-left: 6px;
letter-spacing: 0.08em;
}

.battery-icon {
position: relative;
width: 24px;
height: 12px;
border: 1.5px solid rgba(255, 255, 255, 0.75);
border-radius: 4px;
padding: 1.5px;
box-sizing: border-box;
display: flex;
align-items: center;
overflow: hidden;
}

.battery-icon::after {
content: "";
position: absolute;
right: -4px;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 6px;
border-radius: 1px;
background: rgba(255, 255, 255, 0.75);
}

.battery-level {
width: 70%;
height: 100%;
border-radius: 2px;
background: linear-gradient(90deg, #3bff93, #b3ff67);
box-shadow: 0 0 4px rgba(59, 255, 147, 0.45);
transition: width 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.status-battery.is-low .battery-level {
background: linear-gradient(90deg, #f97316, #facc15);
box-shadow: 0 0 4px rgba(250, 204, 21, 0.42);
}

.status-battery.is-critical .battery-level {
background: linear-gradient(90deg, #ef4444, #f87171);
box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.status-battery.is-critical .battery-percent {
color: #fca5a5;
}

.app-carousel {
width: 100%;
height: 100%;
display: flex;
overflow-x: auto;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
gap: 0;
}

.app-carousel::-webkit-scrollbar {
display: none;
}

.app-page {
flex: 0 0 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
scroll-snap-align: start;
box-sizing: border-box;
}

.app-grid {
width: 100%;
height: 100%;
display: grid;
gap: 20px;
padding: 64px 48px 56px;
box-sizing: border-box;
justify-items: center;
align-items: stretch;
position: relative;
  --cols: 5;
  --rows: 3;
grid-auto-flow: dense;
grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
}

.page-indicators {
position: absolute;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 10px;
padding: 0;
pointer-events: none;
transition: opacity 0.2s ease;
}

.page-indicators__dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.4);
transition: transform 0.2s ease, background 0.2s ease;
}

.page-indicators__dot.is-active {
background: rgba(255, 255, 255, 0.9);
transform: scale(1.3);
}

body.modal-open {
overflow: hidden;
}

.app-modal {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
z-index: 40;
border-radius: 0;
overflow: hidden;
}

.app-modal.is-visible {
pointer-events: auto;
opacity: 1;
}

.app-modal__backdrop {
position: absolute;
inset: 0;
background: rgba(8, 10, 16, 0.55);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border-radius: inherit;
}

.app-modal__window {
position: relative;
width: 100%;
height: 100%;
background: #fff;
border-radius: 24px;
padding: 32px;
display: flex;
flex-direction: column;
transform: translateY(24px) scale(0.98);
opacity: 0;
transition: transform 0.2s ease, opacity 0.2s ease;
overflow: hidden;
box-shadow:
  0 24px 48px rgba(15, 23, 42, 0.32),
  inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

@media (min-width: 1201px) {
  .app-modal__window {
    border-radius: 28px;
  }
}

.app-modal.is-visible .app-modal__window {
transform: translateY(0) scale(1);
opacity: 1;
border-radius: 18px;
}

@media (max-width: 1200px) {
  .app-modal__window,
  .app-modal.is-visible .app-modal__window {
    border-radius: 0;
  }
}


.app-modal__close {
position: absolute;
top: 18px;
right: 18px;
width: 28px;
height: 28px;
border: none;
background: transparent;
color: #111;
font-size: 1.5rem;
line-height: 1;
cursor: pointer;
display: inline-flex;
padding: 0;
z-index: 10;
font-weight: 700;
}

.app-modal__close:focus-visible {
outline: 2px solid currentColor;
outline-offset: 2px;
}

.app-modal__title {
margin: 0;
font-size: 1.8rem;
font-weight: 600;
letter-spacing: 0.05em;
color: #111;
}

.app-modal__body {
margin-top: 18px;
font-size: 0.95rem;
line-height: 1.6;
color: #333;
flex: 1;
overflow-y: auto;
}

.app-modal__window--settings {
background: linear-gradient(155deg, rgba(245, 247, 252, 0.95), rgba(255, 255, 255, 0.98) 55%, rgba(237, 242, 255, 0.92));
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
padding: 0;
border: 1px solid rgba(148, 163, 184, 0.16);
border-radius: 0;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
overflow: hidden;
width: calc(100% - 2px);
height: calc(100% - 2px);
margin: 1px;
}

.app-modal__window--settings .app-modal__body {
margin-top: 0;
padding: 0;
background: transparent;
color: #0f172a;
overflow-y: auto;
}

.app-modal__placeholder {
display: flex;
flex-direction: column;
gap: 8px;
padding: 24px;
border-radius: 20px;
border: 1px dashed rgba(148, 163, 184, 0.45);
background: rgba(241, 245, 249, 0.85);
color: #475569;
}

.app-modal__placeholder p {
margin: 0;
font-weight: 600;
color: #1f2937;
}

.app-modal__placeholder span {
font-size: 0.9rem;
}

.settings-app {
display: flex;
flex-direction: column;
gap: 20px;
min-height: 100%;
padding: 34px clamp(26px, 4vw, 38px) 40px;
}

.settings-header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
gap: 16px;
padding: 22px 24px;
border-radius: 18px;
background: rgba(248, 250, 252, 0.94);
border: 1px solid rgba(148, 163, 184, 0.18);
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
position: sticky;
top: clamp(12px, 2.8vw, 24px);
z-index: 2;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
transition: padding 0.24s ease, border-radius 0.24s ease, box-shadow 0.24s ease;
width: 100%;
}

.settings-profile {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: nowrap;
gap: 18px;
transition: gap 0.24s ease;
width: 100%;
text-align: center;
min-width: 0;
}

.settings-profile__avatar {
width: 60px;
height: 60px;
border-radius: 50%;
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
background: rgba(15, 23, 42, 0.12);
transition: width 0.24s ease, height 0.24s ease, box-shadow 0.24s ease;
}

.settings-profile__avatar-img {
width: 100%;
height: 100%;
object-fit: cover;
}

.settings-profile__name {
margin: 0;
font-size: 1.05rem;
color: #0f172a;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
text-align: center;
white-space: nowrap;
}

.settings-profile__content {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
flex-wrap: nowrap;
gap: 12px;
text-align: center;
min-width: 0;
flex: 0 1 auto;
}

.settings-profile__subtitle {
margin: 0;
color: rgba(15, 23, 42, 0.75);
font-size: 0.78rem;
letter-spacing: 0.12em;
text-transform: uppercase;
text-align: center;
white-space: nowrap;
}

.settings-header--compact {
flex-direction: row;
justify-content: center;
text-align: left;
gap: 16px;
padding: 16px 20px;
border-radius: 14px;
box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
width: 100%;
align-items: center;
text-align: center;
}

.settings-header--compact .settings-profile {
flex-direction: row;
gap: 14px;
align-items: center;
width: 100%;
}

.settings-header--compact .settings-profile__avatar {
width: 48px;
height: 48px;
box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

.settings-header--compact .settings-profile__content {
flex-direction: row;
align-items: center;
justify-content: center;
gap: 12px;
white-space: nowrap;
text-align: center;
flex-wrap: nowrap;
min-width: 0;
}

.settings-header--compact .settings-profile__name {
font-size: 0.85rem;
font-weight: 700;
}

.settings-header--compact .settings-profile__subtitle {
font-size: 0.78rem;
letter-spacing: 0.12em;
color: rgba(15, 23, 42, 0.75);
white-space: nowrap;
}
















.settings-layout {
display: grid;
grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
gap: 24px;
min-height: 0;
align-items: start;
}

.settings-sidebar {
display: flex;
flex-direction: column;
gap: 22px;
background: rgba(248, 250, 252, 0.9);
padding: 22px 18px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
position: sticky;
top: clamp(12px, 2.8vw, 24px);
align-self: start;
max-height: calc(100vh - clamp(12px, 2.8vw, 24px) * 2);
overflow-y: auto;
}

.settings-sidebar__title {
margin: 0 0 10px;
font-size: 0.9rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #94a3b8;
}

.settings-menu {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
}

.settings-menu__item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 11px 14px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.7);
border: 1px solid rgba(241, 245, 249, 0.8);
color: #334155;
font-weight: 500;
transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.settings-menu__item:hover {
transform: translateX(3px);
background: rgba(59, 130, 246, 0.06);
border-color: rgba(148, 163, 184, 0.35);
color: #1f2937;
}

.settings-menu__item.is-active {
background: linear-gradient(160deg, var(--accent-color), var(--accent-color-dark));
color: #fff;
border-color: transparent;
box-shadow: 0 10px 20px rgba(217, 153, 43, 0.26);
}

.settings-menu__label {
flex: 1;
}

.settings-menu__hint {
font-size: 0.82rem;
color: #64748b;
}

.settings-menu__item.is-active .settings-menu__hint {
color: rgba(255, 255, 255, 0.9);
}

.settings-status {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 4px 10px;
border-radius: 999px;
font-size: 0.78rem;
font-weight: 600;
border: 1px solid transparent;
}

.settings-status--online {
background: rgba(34, 197, 94, 0.16);
color: #166534;
border-color: rgba(34, 197, 94, 0.32);
}

.settings-status--offline {
background: rgba(248, 113, 113, 0.18);
color: #991b1b;
border-color: rgba(248, 113, 113, 0.34);
}

.tablet--power-off .tablet-screen {
filter: grayscale(0.92) brightness(0.12);
}

.tablet--power-off .tablet-screen,
.tablet--power-off .tablet-screen *:not(.tablet-power-overlay):not(.tablet-power-overlay *),
.tablet--power-off .status-bar,
.tablet--power-off .app-carousel,
.tablet--power-off .status-wifi,
.tablet--power-off .status-battery {
pointer-events: none !important;
}

.tablet-power-overlay {
position: absolute;
inset: 0;
padding: 26px;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
opacity: 0;
transition: opacity 0.25s ease;
}

.tablet-power-overlay__content {
max-width: 320px;
text-align: center;
color: rgba(255, 255, 255, 0.86);
font-size: 0.95rem;
line-height: 1.5;
letter-spacing: 0.03em;
background: rgba(8, 10, 16, 0.78);
border-radius: 18px;
padding: 18px 22px;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 18px 46px rgba(8, 10, 18, 0.45);
}

.tablet--power-off .tablet-power-overlay {
opacity: 1;
}

.settings-content {
display: flex;
flex-direction: column;
gap: 32px;
background: rgba(255, 255, 255, 0.92);
border-radius: 18px;
padding: 26px;
border: 1px solid rgba(148, 163, 184, 0.18);
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
min-height: 0;
max-height: calc(100vh - clamp(12px, 2.8vw, 24px) * 2);
overflow-y: auto;
}

.settings-section {
display: flex;
flex-direction: column;
gap: 20px;
padding: 0;
}

.settings-section + .settings-section {
padding-top: 0;
border-top: none;
}

.settings-section__header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
}

.settings-section__title {
margin: 0;
font-size: 1.2rem;
color: #0f172a;
}

.settings-section__subtitle {
margin: 6px 0 0;
font-size: 0.92rem;
color: #64748b;
max-width: 42ch;
}

.settings-button {
align-self: flex-start;
border: none;
border-radius: 10px;
padding: 9px 18px;
font-weight: 600;
font-size: 0.92rem;
cursor: pointer;
background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
color: #fff;
box-shadow: 0 12px 24px rgba(217, 153, 43, 0.28);
transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.settings-button:hover {
transform: translateY(-1px);
box-shadow: 0 16px 28px rgba(217, 153, 43, 0.34);
}

.settings-button:active {
transform: translateY(0);
}

.settings-button--ghost {
background: rgba(241, 245, 249, 0.78);
color: #1e293b;
border: 1px solid rgba(148, 163, 184, 0.36);
box-shadow: none;
}

.settings-button--ghost:hover {
background: rgba(226, 232, 240, 0.9);
box-shadow: none;
}

.settings-switch.is-disabled {
opacity: 0.45;
pointer-events: none;
}

.settings-card {
display: flex;
flex-direction: column;
gap: 18px;
background: rgba(248, 250, 252, 0.94);
border-radius: 16px;
padding: 20px 22px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.settings-card.settings-card--wallpapers {
gap: 18px;
}

.settings-wallpaper {
display: flex;
flex-direction: column;
gap: 18px;
}

.settings-wallpaper__intro {
font-size: 0.88rem;
color: #64748b;
margin: 0;
}

.settings-wallpaper__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 16px;
}

.settings-wallpaper__thumb {
position: relative;
display: flex;
flex-direction: column;
gap: 10px;
align-items: flex-start;
padding: 12px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.72);
border: 1px solid rgba(148, 163, 184, 0.28);
cursor: pointer;
transition: border 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
text-align: left;
}

.settings-wallpaper__thumb:hover {
transform: translateY(-2px);
box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.settings-wallpaper__thumb.is-selected {
border-color: var(--accent-color);
box-shadow: 0 0 0 2px rgba(217, 153, 43, 0.2);
}

.settings-wallpaper__thumb-media {
width: 100%;
aspect-ratio: 4 / 3;
border-radius: 10px;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.settings-wallpaper__thumb-label {
font-size: 0.85rem;
font-weight: 600;
color: #1e293b;
}

.settings-wallpaper__footer {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 18px;
justify-content: space-between;
}

.settings-upload {
display: inline-flex;
align-items: center;
gap: 12px;
padding: 10px 14px;
border-radius: 12px;
border: 1px dashed rgba(148, 163, 184, 0.45);
background: rgba(255, 255, 255, 0.74);
cursor: pointer;
transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.settings-upload:hover {
background: rgba(248, 250, 252, 0.9);
border-color: rgba(148, 163, 184, 0.6);
}

.settings-upload.is-selected {
border-color: var(--accent-color);
box-shadow: 0 0 0 2px rgba(217, 153, 43, 0.18);
}

.settings-upload input {
display: none;
}

.settings-upload__button {
font-size: 0.85rem;
font-weight: 600;
color: #1e293b;
}

.settings-upload__preview {
width: 40px;
height: 40px;
border-radius: 10px;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
display: none;
}

.settings-upload.has-preview .settings-upload__preview {
display: block;
}

.settings-wallpaper__colors {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}

.settings-wallpaper__colors-title {
font-size: 0.82rem;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
color: #94a3b8;
}

.settings-wallpaper__color {
width: 38px;
height: 38px;
border-radius: 12px;
border: 1px solid rgba(148, 163, 184, 0.4);
padding: 0;
background: transparent;
cursor: pointer;
transition: border 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.settings-wallpaper__color span {
display: block;
width: 100%;
height: 100%;
border-radius: inherit;
}

.settings-wallpaper__color:hover {
transform: translateY(-1px);
}

.settings-wallpaper__color.is-selected {
border-color: var(--accent-color);
box-shadow: 0 0 0 2px rgba(217, 153, 43, 0.18);
}

.settings-color-picker {
position: relative;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 9px 12px;
border-radius: 12px;
border: 1px solid rgba(148, 163, 184, 0.35);
background: rgba(255, 255, 255, 0.74);
cursor: pointer;
transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.settings-color-picker:hover {
border-color: rgba(148, 163, 184, 0.55);
background: rgba(248, 250, 252, 0.92);
}

.settings-color-picker.is-selected {
border-color: var(--accent-color);
box-shadow: 0 0 0 2px rgba(217, 153, 43, 0.18);
}

.settings-color-picker__input {
appearance: none;
-webkit-appearance: none;
border: none;
width: 32px;
height: 32px;
border-radius: 10px;
padding: 0;
background: transparent;
cursor: pointer;
box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.settings-color-picker__input::-webkit-color-swatch-wrapper {
padding: 0;
border-radius: inherit;
}

.settings-color-picker__input::-webkit-color-swatch {
border: none;
border-radius: inherit;
}

.settings-color-picker__label {
font-size: 0.82rem;
font-weight: 600;
color: #1e293b;
}

.settings-card.settings-card--grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
}

.settings-field {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
flex-wrap: wrap;
}

.settings-field__label {
flex: 1 1 220px;
}

.settings-field__label h5 {
margin: 0;
font-size: 1rem;
color: #0f172a;
}

.settings-field__label p {
margin: 6px 0 0;
font-size: 0.9rem;
color: #64748b;
max-width: 46ch;
}

.settings-field__label p strong {
color: #0f172a;
font-weight: 600;
}

.settings-field__note {
display: block;
margin-top: 6px;
font-size: 0.78rem;
color: #64748b;
}

.settings-field__control {
flex: 1 1 220px;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 14px;
}

.settings-field__control--stack {
flex-direction: column;
align-items: flex-end;
gap: 10px;
}

.settings-segment {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px;
border-radius: 999px;
background: rgba(226, 232, 240, 0.9);
}

.settings-segment__item {
border: none;
background: transparent;
padding: 8px 16px;
border-radius: 999px;
font-weight: 600;
font-size: 0.9rem;
color: #334155;
cursor: pointer;
transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.settings-segment__item:hover {
background: rgba(255, 255, 255, 0.9);
}

.settings-segment__item.is-active {
background: #fff;
color: var(--accent-color);
box-shadow: 0 8px 18px rgba(217, 153, 43, 0.18);
}

.settings-slider {
width: clamp(200px, 32vw, 320px);
accent-color: var(--accent-color);
}

.settings-range-output {
font-size: 0.85rem;
font-weight: 600;
color: #1f2937;
}

.settings-toggle {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
padding: 16px 18px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.82);
border: 1px solid rgba(148, 163, 184, 0.26);
cursor: pointer;
transition: border 0.18s ease, box-shadow 0.18s ease;
}

.settings-toggle:hover {
border-color: rgba(59, 130, 246, 0.35);
box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.settings-toggle__label {
display: block;
font-weight: 600;
color: #0f172a;
}

.settings-toggle__description {
display: block;
margin-top: 6px;
color: #64748b;
font-size: 0.84rem;
max-width: 40ch;
}

.settings-switch {
position: relative;
display: inline-flex;
align-items: center;
width: 54px;
height: 28px;
border-radius: 999px;
background: rgba(148, 163, 184, 0.45);
transition: background 0.18s ease, box-shadow 0.18s ease;
cursor: pointer;
}

.settings-switch.is-on {
background: linear-gradient(135deg, var(--accent-color-light), var(--accent-color));
box-shadow: 0 10px 22px rgba(217, 153, 43, 0.3);
}

.settings-switch__thumb {
position: absolute;
top: 3px;
left: 3px;
width: 22px;
height: 22px;
border-radius: 50%;
background: #fff;
box-shadow: 0 8px 14px rgba(15, 23, 42, 0.2);
transition: transform 0.2s ease;
}

.settings-switch.is-on .settings-switch__thumb {
transform: translateX(24px);
}

.settings-tile {
display: flex;
flex-direction: column;
gap: 12px;
padding: 18px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(148, 163, 184, 0.22);
box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
min-height: 180px;
}

.settings-tile:hover {
transform: translateY(-4px);
box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.settings-tile h5 {
margin: 0;
font-size: 1rem;
color: inherit;
}

.settings-tile p {
margin: 0;
color: #475569;
font-size: 0.9rem;
flex: 1;
}

.settings-tile.is-highlight {
background: linear-gradient(135deg, #a855f7, #6366f1);
color: #fff;
border: none;
box-shadow: 0 24px 48px rgba(99, 102, 241, 0.35);
}

.settings-tile.is-highlight p {
color: rgba(255, 255, 255, 0.92);
}

.settings-tile__icon {
width: 38px;
height: 38px;
border-radius: 12px;
background: rgba(59, 130, 246, 0.2);
}

.settings-tile__icon--indigo {
background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.8));
box-shadow: 0 10px 22px rgba(99, 102, 241, 0.35);
}

.settings-tile__icon--blue {
background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(37, 99, 235, 0.85));
box-shadow: 0 10px 22px rgba(217, 153, 43, 0.28);
}

.settings-tile__icon--amber {
background: linear-gradient(135deg, rgba(251, 191, 36, 0.92), rgba(249, 115, 22, 0.85));
box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.settings-chip {
align-self: flex-start;
border: none;
border-radius: 12px;
padding: 8px 14px;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
background: rgba(241, 245, 249, 0.9);
color: #1f2937;
transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.settings-chip:hover {
transform: translateY(-1px);
box-shadow: 0 12px 22px rgba(15, 23, 42, 0.18);
}

.settings-tile.is-highlight .settings-chip {
background: rgba(255, 255, 255, 0.24);
color: #fff;
box-shadow: none;
}

.settings-chip--ghost {
background: rgba(226, 232, 240, 0.9);
}

@media (max-width: 500px) {
body {
  display: block;
  background: var(--tablet-background-color, #080811);
  min-height: 100vh;
}

.background-media {
  display: none;
}

.tablet-shell {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

.tablet {
  border-radius: 0;
  padding: 0;
  background: none;
}

.tablet::before {
  display: none;
}

.tablet-screen {
  border-radius: 0;
  height: 100dvh;
  min-height: 100vh;
  padding: 24px 0;
}

  .app-grid {
    --cols: 2;
    --rows: 5;
    gap: 16px;
    padding: 36px 18px 40px;
  }

}

@media (max-width: 1024px) {
.settings-layout {
  grid-template-columns: minmax(0, 1fr);
}

.settings-sidebar {
  order: 2;
}

.settings-content {
  order: 1;
}

.settings-header {
  grid-template-columns: auto 1fr;
  grid-auto-rows: auto;
  row-gap: 12px;
}
}

@media (max-width: 680px) {
.app-modal__window--settings {
  padding: 0;
}

.settings-sidebar {
  overflow: visible;
}

.settings-header {
  padding: 20px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.settings-profile {
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.settings-profile__content {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.settings-profile__subtitle {
  white-space: normal;
}

.settings-content {
  padding: 22px;
  gap: 24px;
}

.settings-card {
  padding: 18px;
}

.settings-card.settings-card--grid {
  grid-template-columns: minmax(0, 1fr);
}

.settings-field__control {
  justify-content: flex-start;
}

.settings-field__control--stack {
  align-items: flex-start;
}

.settings-slider {
  width: 100%;
}

.settings-wallpaper__footer {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.settings-upload {
  width: 100%;
  justify-content: space-between;
}

.settings-wallpaper__colors {
  justify-content: space-between;
}
}

.app-tile {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
cursor: pointer;
position: relative;
transition: transform 0.24s ease;
will-change: transform;
}

.app-tile-inner {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 10px;
transform: translateY(12.5px);
}

.widget {
cursor: pointer;
transition: transform 0.22s ease, box-shadow 0.22s ease;
will-change: transform;
}

.app-tile:hover,
.widget:hover {
transform: scale(1.03);
}

.widget:hover {
box-shadow:
  0 16px 28px rgba(8, 12, 20, 0.38),
  inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.app-tile-inner {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}

.app-icon {
width: var(--app-icon-size, 100px);
height: var(--app-icon-size, 100px);
border-radius: 24px;
background-color: rgba(18, 22, 32, 0.28);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
box-sizing: border-box;
}

.app-settings {
border: none;
padding: 0;
overflow: hidden;
position: relative;
}

.app-settings::before {
content: "";
position: absolute;
inset: 0;
background: url("../assets/images/settings.png") center / cover no-repeat;
}

.app-find-me {
border: none;
padding: 0;
overflow: hidden;
position: relative;
}

.app-find-me::before {
content: "";
position: absolute;
inset: 0;
background: url("../assets/images/find-me.png") center / cover no-repeat;
}

.app-jr-valdez {
border: none;
padding: 0;
overflow: hidden;
position: relative;
background: linear-gradient(145deg, #0b1220, #1a2a46);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
color: #f8fafc;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}

.app-jr-valdez::before {
content: "";
position: absolute;
inset: 0;
background:
  radial-gradient(120% 140% at 10% 12%, rgba(245, 158, 11, 0.55), transparent 60%),
  radial-gradient(120% 140% at 90% 88%, rgba(59, 130, 246, 0.45), transparent 65%);
mix-blend-mode: screen;
opacity: 0.9;
}

.app-jr-valdez::after {
content: "JR";
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
color: rgba(248, 250, 252, 0.9);
text-shadow: 0 4px 12px rgba(15, 23, 42, 0.55);
}

.app-instagram {
border: none;
padding: 0;
overflow: hidden;
position: relative;
}

.app-instagram::before {
content: "";
position: absolute;
inset: 0;
background: url("../assets/images/Instagram.png") center / cover no-repeat;
}

.app-notes {
border: none;
padding: 0;
overflow: hidden;
position: relative;
}

.app-notes::before {
content: "";
position: absolute;
inset: 0;
background: url("../assets/images/notes.png") center / cover no-repeat;
  }

.app-photos {
border: none;
padding: 0;
overflow: hidden;
position: relative;
}

.app-photos::before {
content: "";
position: absolute;
inset: 0;
background: url("../assets/images/photos.png") center / cover no-repeat;
  }

.app-tile__label {
font-size: 0.8rem;
letter-spacing: 0.04em;
color: rgba(255, 255, 255, 0.76);
white-space: nowrap;
pointer-events: none;
text-align: center;
}

.widget {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 16px;
border-radius: 22px;
background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(10, 14, 26, 0.55));
box-shadow:
  0 12px 24px rgba(8, 12, 20, 0.32),
  inset 0 1px 0 rgba(255, 255, 255, 0.18);
color: rgba(255, 255, 255, 0.9);
overflow: hidden;
width: 100%;
height: 100%;
transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.widget::after {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 55%);
pointer-events: none;
}

.widget__title {
font-size: 0.85rem;
letter-spacing: 0.04em;
text-transform: uppercase;
opacity: 0.72;
}

.widget__value {
font-size: 1.5rem;
font-weight: 600;
letter-spacing: 0.05em;
margin-top: auto;
}

.widget--2x2 {
  grid-column: span 2;
  grid-row: span 2;
  width: 300px;
  height: 300px;
  justify-self: center;
  align-self: center;
}

.widget--1x2 {
  grid-column: span 1;
  grid-row: span 2;
  width: 140px;
  height: 300px;
}

.widget--2x1 {
grid-column: span 2;
grid-row: span 1;
width: 300px;
height: 140px;
justify-self: center;
align-self: center;
}

.widget--video {
  position: relative;
  width: 300px;
  height: 140px;
  min-height: 140px;
padding: 0;
border-radius: 24px;
overflow: hidden;
border: none;
box-shadow: none;
}

.widget--video .widget__video {
position: absolute;
inset: 0;
border-radius: inherit;
overflow: hidden;
border: none;
box-shadow: none;
transition: opacity 0.2s ease, visibility 0.2s ease;
}

.widget__video iframe {
width: 100%;
height: 140px;
border: none;
}

.widget--video .widget__offline {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 18px;
text-align: center;
font-size: 0.9rem;
letter-spacing: 0.03em;
line-height: 1.4;
color: rgba(255, 255, 255, 0.9);
background: rgba(8, 10, 16, 0.76);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
border-radius: inherit;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.2s ease, visibility 0.2s ease;
}

.widget--video.is-offline .widget__video {
opacity: 0;
visibility: hidden;
}

.widget--video.is-offline .widget__offline {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.widget--notes {
padding: 20px;
display: flex;
flex-direction: column;
justify-content: flex-start;
gap: 16px;
background: #080601;
cursor: auto;
}

.widget--notes:hover {
transform: none;
}

.widget--notes.is-focused {
border-color: rgba(217, 153, 43, 0.48);
box-shadow: 0 16px 40px rgba(12, 16, 26, 0.55), 0 0 0 3px rgba(217, 153, 43, 0.15);
}

.widget-notes__header {
display: flex;
align-items: center;
gap: 16px;
}

.widget-notes__icon {
width: 44px;
height: 44px;
border-radius: 12px;
background: url("../assets/images/notes.png") center / cover no-repeat;
flex-shrink: 0;
}

.widget-notes__meta {
display: flex;
flex-direction: column;
gap: 4px;
text-align: left;
}

.widget-notes__title {
font-size: 1rem;
font-weight: 600;
letter-spacing: 0.04em;
color: rgba(255, 255, 255, 0.92);
}

.widget-notes__hint {
display: block;
font-size: 0.72rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.54);
}

.widget-notes__input {
flex: 1;
width: 100%;
min-height: 0;
overflow-y: auto;
text-align: left;
border: 1px solid rgba(217, 153, 43, 0.28);
border-radius: 16px;
padding: 16px 18px;
background: rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.92);
font-family: inherit;
font-size: 0.95rem;
line-height: 1.5;
outline: none;
transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
scrollbar-width: none;
white-space: pre-wrap;
word-break: break-word;
min-height: 160px;
}

.widget-notes__input p {
margin: 0 0 10px;
}

.widget-notes__input p:last-child {
margin-bottom: 0;
}

.widget-notes__input strong {
font-weight: 700;
color: rgba(255, 255, 255, 0.92);
}

.widget-notes__input::-webkit-scrollbar {
width: 3px;
}

.widget-notes__input::-webkit-scrollbar-track {
background: transparent;
}

.widget-notes__input::-webkit-scrollbar-thumb {
background: rgba(217, 153, 43, 0.28);
border-radius: 999px;
}

.widget-notes__input[data-placeholder]:empty::before {
content: attr(data-placeholder);
color: rgba(255, 255, 255, 0.38);
pointer-events: none;
}

.widget--notes.is-focused .widget-notes__input {
border-color: rgba(217, 153, 43, 0.6);
background: rgba(255, 255, 255, 0.12);
box-shadow: 0 0 0 3px rgba(217, 153, 43, 0.18);
}

.widget--weather {
padding: 22px;
display: flex;
flex-direction: column;
justify-content: center;
color: #f8fafc;
background: linear-gradient(160deg, rgba(59, 130, 246, 0.85), rgba(14, 116, 144, 0.95));
border: 1px solid rgba(148, 197, 241, 0.28);
box-shadow: 0 20px 40px rgba(14, 116, 144, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
cursor: default;
}

.app-grid > .widget--weather {
grid-column: -2 / -1;
grid-row: 1 / span 2;
align-self: center;
justify-self: center;
}

.is-adjusting-brightness .tablet-screen {
transition: background-image 0.3s ease, background-color 0.3s ease;
}
.widget--weather:hover {
transform: translateY(-6px);
}

.weather-widget {
display: flex;
flex-direction: column;
gap: 16px;
align-items: center;
text-align: center;
}

.weather-widget__location {
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
font-size: 0.84rem;
letter-spacing: 0.12em;
}

.weather-widget__main {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
}

.weather-widget__icon {
font-size: 2.6rem;
line-height: 1;
filter: drop-shadow(0 6px 12px rgba(8, 47, 73, 0.4));
}

.weather-widget__temperature-group {
display: flex;
flex-direction: column;
gap: 6px;
align-items: center;
justify-content: flex-start;
}

.weather-widget__temperature {
font-size: 2.8rem;
font-weight: 600;
letter-spacing: 0.04em;
}

.weather-widget__description {
font-size: 0.95rem;
letter-spacing: 0.05em;
text-transform: capitalize;
opacity: 0.9;
}

.weather-widget__status {
font-size: 0.78rem;
letter-spacing: 0.04em;
opacity: 0.85;
}

.weather-widget__status[hidden] {
display: none;
}

.weather-widget.is-error {
background: linear-gradient(160deg, rgba(71, 85, 105, 0.9), rgba(15, 23, 42, 0.94));
border-radius: 18px;
padding: 0;
}

.weather-widget.is-error .weather-widget__status {
opacity: 1;
color: #fee2e2;
}

.background-toggle {
position: fixed;
top: 22px;
left: 22px;
display: inline-flex;
flex-direction: column;
align-items: stretch;
gap: 6px;
padding: 6px 10px;
border-radius: 18px;
background: rgba(6, 8, 12, 0.55);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 12px 28px rgba(6, 8, 12, 0.28);
z-index: 8;
color: rgba(255, 255, 255, 0.78);
transition: opacity 0.2s ease;
}

.background-toggle__button {
border: none;
background: transparent;
color: inherit;
font-size: 0.72rem;
letter-spacing: 0.18em;
text-transform: uppercase;
padding: 5px 12px;
border-radius: 12px;
cursor: pointer;
opacity: 0.7;
transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
text-align: center;
}

.background-toggle__button:hover,
.background-toggle__button:focus {
opacity: 0.95;
outline: none;
}

.background-toggle__button.is-active {
background: rgba(217, 153, 43, 0.32);
color: rgba(255, 255, 255, 0.95);
opacity: 1;
}

@media (max-width: 1200px) {
  .background-toggle {
    display: none;
  }
}

.widget-notes__input::placeholder {
color: rgba(255, 255, 255, 0.45);
}

.tablet-screen h1 {
margin: 0;
font-size: clamp(1.8rem, 4vw, 2.8rem);
letter-spacing: 0.04em;
}

.tablet-screen p {
  margin: 0.5em 0 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 30ch;
}


.app-modal__window--fullscreen {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 24px;
  padding: 0;
  background: none;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.app-modal__window--fullscreen .app-modal__body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin-top: 0;
}

.find-me-app {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(120% 140% at 100% 0%, rgba(217, 153, 43, 0.18), transparent 65%),
    linear-gradient(180deg, #050910 0%, #020308 100%);
  color: rgba(241, 245, 249, 0.96);
  overflow: hidden;
  --find-me-timeline-radius: 280px;
  --find-me-timeline-footprint: 780px;
  --find-me-map-width: 1536px;
  --find-me-map-height: 1024px;
}

.find-me-map {
  --zoom: 1;
  --focus-x: 50;
  --focus-y: 50;
  --pan-x: 0%;
  --pan-y: 0%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  touch-action: none;
  z-index: 1;
}

.find-me-map__viewport {
  position: relative;
  width: var(--find-me-map-width, 1536px);
  height: var(--find-me-map-height, 1024px);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  transform-origin: calc(var(--focus-x, 50) * 1%) calc(var(--focus-y, 50) * 1%);
  transform: translate3d(var(--pan-x, 0%), var(--pan-y, 0%), 0) scale(var(--zoom, 1));
  transition: transform 0.65s cubic-bezier(0.4, 0.1, 0, 1), filter 0.4s ease;
  pointer-events: auto;
  overflow: visible;
  will-change: transform;
}

.find-me-map__viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(70% 80% at 80% 20%, rgba(15, 118, 222, 0.32), transparent 62%),
    radial-gradient(60% 60% at 20% 70%, rgba(217, 153, 43, 0.2), transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.65;
  pointer-events: none;
}

.find-me-map__canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

.find-me-map__world {
  position: absolute;
  inset: 0;
  left: 50%;
  width: calc(var(--find-me-map-width, 1536px) * 3);
  transform: translateX(calc(-50% - var(--find-me-map-width, 1536px)));
  height: 100%;
  background-image: url("../assets/images/world-map.png");
  background-size: auto 100%;
  background-repeat: repeat-x;
  filter: saturate(1.12) brightness(1.18);
  pointer-events: none;
  z-index: 0;
}

.find-me-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(2, 6, 15, 0.45), rgba(2, 6, 15, 0.12));
  pointer-events: none;
}

.photos-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --photos-viewport-width: 1000px;
  --photos-viewport-height: 700px;
  --photos-shell-gap: clamp(20px, calc(var(--photos-viewport-width, 1000px) * 0.036), 40px);
  --photos-shell-padding-y: clamp(24px, calc(var(--photos-viewport-height, 700px) * 0.0514286), 48px);
  --photos-shell-padding-x: clamp(24px, calc(var(--photos-viewport-width, 1000px) * 0.042), 56px);
  --photos-panel-max-height: max(240px, calc(var(--photos-viewport-height, 700px) - (var(--photos-shell-padding-y) * 2) - 160px));
  --photos-accent: var(--accent-color, #D9992B);
  --photos-accent-soft: rgba(217, 153, 43, 0.22);
  --photos-accent-faint: rgba(217, 153, 43, 0.12);
  --photos-surface: rgba(6, 10, 18, 0.82);
  --photos-surface-strong: rgba(4, 7, 16, 0.92);
  --photos-border: rgba(255, 255, 255, 0.08);
  --photos-muted: rgba(224, 231, 255, 0.78);
  --photos-ink: #f8fafc;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(217, 153, 43, 0.32), transparent 55%),
    radial-gradient(120% 140% at 100% 10%, rgba(58, 204, 255, 0.28), transparent 52%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.96), rgba(2, 6, 16, 0.98));
}

.photos-app::before,
.photos-app::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 36px;
  background: radial-gradient(circle at 20% 20%, rgba(248, 250, 252, 0.08), transparent 40%);
  filter: blur(28px);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
  z-index: 0;
}

.photos-app::after {
  inset: 24% 10% 10% 14%;
  background: conic-gradient(from 120deg, rgba(217, 153, 43, 0.18), rgba(248, 250, 252, 0.06), rgba(58, 204, 255, 0.16), rgba(217, 153, 43, 0.18));
  opacity: 0.5;
}

.photos-app__layout {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: var(--photos-shell-gap);
  padding: var(--photos-shell-padding-y) var(--photos-shell-padding-x);
  box-sizing: border-box;
  z-index: 1;
}

.photos-app__viewer {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--photos-border);
  box-shadow:
    0 28px 50px rgba(2, 6, 23, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 10px rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 0;
  isolation: isolate;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.photos-app__viewer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 40%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.4));
  pointer-events: none;
  mix-blend-mode: screen;
}

.photos-app__viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}

.photos-app__viewer-overlay {
  position: absolute;
  inset: auto 0 clamp(20px, 3vw, 28px) 0;
  background: none;
  border: 0;
  padding: 0 clamp(22px, 4vw, 32px);
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: flex-start;
  pointer-events: auto;
}

.photos-app__viewer-info {
  pointer-events: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(165deg, rgba(8, 12, 22, 0.82), rgba(4, 7, 16, 0.85));
  border-radius: 16px;
  border: 1px solid var(--photos-border);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 14px 16px 14px 14px;
  position: relative;
  overflow: hidden;
}

.photos-app__viewer-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 140% at 0% 0%, var(--photos-accent-soft), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.photos-app__viewer-info::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.photos-app__viewer-location {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  align-self: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--photos-ink);
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--photos-accent-soft), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--photos-border);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

.photos-app__viewer-location::before {
  content: "•";
  color: var(--photos-accent);
  font-size: 1.2em;
  line-height: 1;
}

.photos-app__viewer-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--photos-muted);
  width: 100%;
  max-width: none;
  opacity: 0.92;
  text-align: center;
}

.photos-app__expand {
  pointer-events: auto;
  align-self: center;
  border: 1px solid var(--photos-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  color: var(--photos-ink);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 2px;
  align-self: center;
}

.photos-app__expand:hover,
.photos-app__expand:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--photos-accent-soft), rgba(255, 255, 255, 0.12));
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.36),
    0 12px 28px rgba(217, 153, 43, 0.35);
}

.photos-app__panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: hidden;
  background: linear-gradient(180deg, var(--photos-surface), var(--photos-surface-strong));
  border-radius: 26px;
  padding: 18px 18px 22px;
  border: 1px solid var(--photos-border);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.photos-app__panel-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 6px;
}

.photos-app__panel-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--photos-ink);
}

.photos-app__panel-header p {
  margin: 0;
  color: var(--photos-muted);
  font-size: 0.92rem;
}

.photos-app__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-auto-rows: 140px;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  height: 100%;
  padding: 8px 8px 4px;
}

.photos-app--compact .photos-app__viewer-overlay {
  position: relative;
  inset: auto;
  padding: clamp(18px, calc(var(--photos-viewport-height, 700px) * 0.04), 24px)
    clamp(18px, calc(var(--photos-viewport-width, 1000px) * 0.035), 24px)
    clamp(18px, calc(var(--photos-viewport-height, 700px) * 0.045), 24px);
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  pointer-events: auto;
}

.photos-app--compact .photos-app__expand {
  width: 100%;
  justify-content: center;
}

.photos-app--compact .photos-app__panel-header {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
}

.photos-app--ultra-compact .photos-app__viewer-description {
  font-size: 0.92rem;
  line-height: 1.55;
}

.photos-app--ultra-compact {
  --photos-panel-max-height: max(180px, calc(var(--photos-viewport-height, 700px) - (var(--photos-shell-padding-y) * 2) - 220px));
}

.photos-app__thumb {
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  outline: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease, filter 0.22s ease;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.32);
  border: 1px solid var(--photos-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.photos-app__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.02);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.photos-app__thumb[data-orientation="portrait"] {
  aspect-ratio: 3 / 4;
}

.photos-app__thumb[data-orientation="portrait"] img {
  object-position: 50% 35%;
}

.photos-app__thumb-title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.92);
  background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 16, 0.9) 100%);
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.photos-app__thumb.is-active,
.photos-app__thumb:focus-visible {
  border-color: var(--photos-accent);
  box-shadow:
    0 18px 32px rgba(2, 6, 23, 0.4),
    0 0 0 4px var(--photos-accent-faint);
  transform: translateY(-2px);
}

.photos-app__thumb:hover img {
  transform: scale(1.04);
  filter: saturate(1.14);
}

.photos-app__lightbox {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(140% 120% at 20% 10%, var(--photos-accent-faint), transparent 60%),
    rgba(3, 7, 18, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 12;
}

.photos-app__lightbox.is-visible {
  display: flex;
}

.photos-app__lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.photos-app__lightbox-content {
  position: relative;
  width: min(1080px, 92vw);
  max-height: min(90vh, 720px);
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.9), rgba(4, 7, 16, 0.96));
  box-shadow:
    0 32px 48px rgba(2, 6, 23, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 38px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 32px);
  padding: clamp(36px, 5vh, 48px) clamp(28px, 4vw, 36px) clamp(40px, 7vh, 56px);
  box-sizing: border-box;
}

.photos-app__lightbox-content img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(8, 11, 18, 0.95);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(248, 250, 252, 0.06),
    0 16px 38px rgba(0, 0, 0, 0.32);
  transform-origin: center;
}

.photos-app__lightbox-image--zooming {
  animation: photos-app-lightbox-zoom 24s ease-out forwards;
}

@keyframes photos-app-lightbox-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photos-app__lightbox-image--zooming {
    animation: none;
    transform: none;
  }
}

.photos-app__lightbox-caption {
  position: relative;
  margin: 0;
  padding: clamp(20px, 3vh, 28px) clamp(20px, 4vw, 32px);
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.82), rgba(5, 8, 16, 0.94));
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow:
    0 -18px 36px rgba(2, 6, 23, 0.38),
    inset 0 1px 0 rgba(248, 250, 252, 0.05);
  border: 1px solid var(--photos-border);
  border-top: 1px solid var(--photos-accent-soft);
}

.photos-app__lightbox-caption h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--photos-ink);
}

.photos-app__lightbox-caption p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--photos-muted);
}

.photos-app__lightbox-close {
  position: absolute;
  top: clamp(18px, 4vh, 28px);
  right: clamp(18px, 4vw, 28px);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--photos-accent-soft), rgba(15, 23, 42, 0.85));
  color: var(--photos-ink);
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(2, 6, 23, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 1;
}

.photos-app__lightbox-close:hover,
.photos-app__lightbox-close:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--photos-accent), rgba(30, 41, 59, 0.95));
}

.photos-app__empty {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px;
  color: var(--photos-muted);
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.9), rgba(5, 8, 16, 0.95));
  border-radius: 28px;
  border: 1px solid var(--photos-border);
}

.photos-app__empty h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: var(--photos-ink);
}

.photos-app__empty p {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 720px) {
  .photos-app__viewer-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .photos-app__expand {
    width: 100%;
    justify-content: center;
  }

  .photos-app__panel-header {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
}

.notes-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(140% 160% at 100% 0%, rgba(236, 72, 153, 0.16), transparent 50%),
    linear-gradient(180deg, rgba(13, 20, 35, 0.94), rgba(8, 12, 22, 0.98));
  color: #e2e8f0;
}

.notes-app__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px 20px;
}

.notes-app__title-group h2 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.04em;
  color: #f8fafc;
}

.notes-app__title-group p {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  max-width: 38ch;
  font-size: 0.95rem;
}

.notes-app__new {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.notes-app__new:hover,
.notes-app__new:focus-visible {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
}

.notes-app__layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 28px;
  padding: 0 36px 36px;
  transition: grid-template-columns 0.28s ease;
  position: relative;
}

.notes-app__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(13, 19, 33, 0.9);
  border-radius: 28px;
  padding: 24px;
  box-shadow:
    0 18px 28px rgba(5, 11, 24, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.notes-app__list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notes-app__list-header h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
}

.notes-app__count {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notes-app__list {
  flex: 1 1 auto;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding-right: 4px;
}

.notes-app__list::-webkit-scrollbar {
  width: 6px;
}

.notes-app__list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 6px;
}

.notes-app__list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border: 1px solid transparent;
  background: rgba(20, 27, 45, 0.9);
  border-radius: 16px;
  padding: 16px 18px;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.notes-app__list-item:hover,
.notes-app__list-item:focus-visible {
  transform: translateX(4px);
  border-color: rgba(99, 102, 241, 0.45);
}

.notes-app__list-item.is-active {
  border-color: rgba(129, 140, 248, 0.75);
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.24), rgba(17, 24, 54, 0.94));
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(148, 163, 184, 0.24);
}

.notes-app__list-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
}

.notes-app__list-preview {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.75);
}

.notes-app__list-preview--empty {
  font-style: italic;
  color: rgba(148, 163, 184, 0.7);
}

.notes-app__list-updated {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notes-app__empty-list {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.95rem;
}

.notes-app__editor {
  position: relative;
  background: rgba(12, 18, 32, 0.92);
  border-radius: 28px;
  box-shadow:
    0 20px 32px rgba(3, 6, 16, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.notes-app__editor-placeholder {
  margin: auto;
  max-width: 40ch;
  text-align: center;
  color: rgba(226, 232, 240, 0.76);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notes-app__editor-placeholder h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #f8fafc;
}

.notes-app__editor-placeholder p {
  margin: 0;
  font-size: 0.95rem;
}

.notes-app__editor-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.notes-app__editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notes-app__back {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.75);
  color: #f8fafc;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.notes-app__back:hover,
.notes-app__back:focus-visible {
  transform: translateY(-2px);
  background: rgba(51, 65, 85, 0.9);
}

.notes-app__editor-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notes-app__delete {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(220, 38, 38, 0.16);
  color: rgba(254, 226, 226, 0.9);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.notes-app__delete:hover,
.notes-app__delete:focus-visible {
  transform: translateY(-2px);
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(248, 113, 113, 0.75);
}

.notes-app__delete:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.notes-app__editor-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 auto;
}

.notes-app__title-input {
  border: none;
  background: transparent;
  padding: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: #f8fafc;
  outline: none;
}

.notes-app__title-input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.notes-app__textarea {
  flex: 1 1 auto;
  min-height: 200px;
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.92);
  font-size: 1rem;
  line-height: 1.75;
  resize: none;
  outline: none;
  font-family: inherit;
  padding: 0;
}

.notes-app__textarea::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.notes-app--detail .notes-app__layout {
  grid-template-columns: 0 minmax(0, 1fr);
}

.notes-app--detail .notes-app__sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-16px);
}

.notes-app--detail .notes-app__back {
  display: inline-flex;
}

@media (max-width: 1080px) {
  .notes-app__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes-app__sidebar {
    position: relative;
    z-index: 10;
  }

  .notes-app--detail .notes-app__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes-app--detail .notes-app__sidebar {
    display: none;
  }

  .notes-app__header {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px 18px;
  }

  .notes-app__layout {
    padding: 0 24px 28px;
  }

  .notes-app__new {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .notes-app__editor {
    padding: 24px;
  }

  .notes-app__editor-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .notes-app__editor-meta {
    justify-content: flex-start;
  }
}

.jr-valdez-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background:
    radial-gradient(140% 160% at 0% 0%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(160% 180% at 100% 100%, rgba(245, 158, 11, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(12, 18, 32, 0.96), rgba(7, 11, 21, 0.98));
  color: #e2e8f0;
}

.jr-valdez-app__frame {
  flex: 1;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 22px 36px rgba(5, 9, 18, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: #030712;
}

.jr-valdez-app__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #030712;
}

.jr-valdez-app__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(6, 11, 21, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}

.jr-valdez-app__loading[hidden] {
  display: none;
}

.jr-valdez-app__loading p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jr-valdez-app__spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.4);
  border-top-color: rgba(96, 165, 250, 0.85);
  animation: jr-valdez-spin 1s linear infinite;
}

.jr-valdez-app__spinner.is-error {
  animation: none;
  border-color: rgba(248, 113, 113, 0.45);
  border-top-color: rgba(248, 113, 113, 0.85);
}

@keyframes jr-valdez-spin {
  to {
    transform: rotate(360deg);
  }
}

.find-me-map__marker {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%) scale(1);
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(9, 12, 22, 0.9);
  background: var(--marker-color, rgba(233, 196, 106, 0.95));
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.32);
  z-index: 2;
  pointer-events: auto;
}

.find-me-map__marker:hover,
.find-me-map__marker:focus-visible {
  transform: translate(-50%, -50%) scale(1.12);
}

.find-me-map__marker-finger {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translate(-50%, -4px) scale(0.95);
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  filter: drop-shadow(0 1px 2px rgba(9, 12, 22, 0.45));
  opacity: 0.95;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.find-me-map__marker:hover .find-me-map__marker-finger,
.find-me-map__marker.is-active .find-me-map__marker-finger {
  transform: translate(-50%, -8px) scale(1.05);
}

.find-me-map__marker::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 4px;
  height: 14px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(9, 12, 22, 0.76), rgba(9, 12, 22, 0));
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.find-me-map__marker::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--marker-color, rgba(233, 196, 106, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.find-me-map__marker.is-current::after {
  background: rgba(34, 197, 94, 0.35);
  opacity: 1;
  transform: scale(1.1);
}

.find-me-map__marker.is-current::before {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.85), rgba(34, 197, 94, 0));
}

.find-me-map__marker.is-past::after {
  background: rgba(239, 68, 68, 0.35);
}

.find-me-map__marker[data-location-id="texas"].is-past::after {
  background: rgba(96, 165, 250, 0.35);
}

.find-me-map__marker.is-past::before {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.78), rgba(239, 68, 68, 0));
}

.find-me-map__marker.is-active {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow:
    0 0 0 6px rgba(217, 153, 43, 0.28),
    0 20px 28px rgba(0, 0, 0, 0.4);
}

.find-me-map__marker.is-active::after {
  opacity: 1;
  transform: scale(1.25);
}

.find-me-map__marker.is-active::before {
  opacity: 0;
}

.find-me-map.is-editing {
  cursor: crosshair;
}

.find-me-map.is-zoomed .find-me-map__marker {
  opacity: 0.22;
  transform: translate(-50%, -50%) scale(0.75);
}

.find-me-map.is-zoomed .find-me-map__marker.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.3);
}

.find-me-map.is-zoomed .find-me-map__marker.is-current:not(.is-active) {
  opacity: 0.45;
}

.find-me-map__controls {
  position: absolute;
  top: 28px;
  left: 32px;
  display: flex;
  gap: 12px;
  z-index: 6;
}

.find-me-map__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 10, 20, 0.65);
  color: rgba(241, 245, 249, 0.85);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.find-me-map__control--reset {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(8, 13, 22, 0.7);
  color: rgba(226, 232, 240, 0.9);
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.find-me-map__control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.find-me-map__control-icon svg {
  width: 100%;
  height: 100%;
}

.find-me-map__control--reset:hover,
.find-me-map__control--reset:focus-visible {
  border-color: rgba(226, 232, 240, 0.5);
  color: rgba(248, 250, 252, 0.95);
  background: rgba(12, 18, 30, 0.85);
  outline: none;
}

.find-me-map.is-zoomed[data-active-location] .find-me-map__control--reset {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.find-me-map__control:not(.find-me-map__control--reset):hover,
.find-me-map__control:not(.find-me-map__control--reset):focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.find-me-map__control[aria-pressed="true"] {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(34, 197, 94, 0.6);
  color: rgba(240, 253, 244, 0.95);
  transform: translateY(-1px);
}

.find-me-map__editor-output {
  position: absolute;
  left: 32px;
  bottom: 32px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(5, 10, 20, 0.78);
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
  max-width: min(420px, 80%);
  display: none;
  z-index: 6;
}

.find-me-map.is-editing .find-me-map__editor-output {
  display: block;
}

.find-me-map__editor-output-title {
  display: block;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.92);
}

.find-me-map__editor-output code {
  display: block;
  margin-top: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 960px) {
  .find-me-map__controls {
    top: 20px;
    left: 20px;
  }

  .find-me-map__editor-output {
    left: 20px;
    bottom: 20px;
  }


}

@media (max-width: 640px) {
  .find-me-map__controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .find-me-map__control {
    font-size: 0.68rem;
    padding: 7px 14px;
  }
}



.find-me-timeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  padding: clamp(0.5rem, 3vw, 2.5rem) clamp(1rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3.5rem);
  z-index: 5;
  overflow: visible;
  height: var(--find-me-timeline-footprint);
}

.find-me-timeline .cards-container {
  --base-rotation: 0deg;
  --full-circle: 360deg;
  --radius: var(--find-me-timeline-radius);
  --duration: 200ms;
  --cards-container-size: calc(var(--radius) * 2);
  --cards-container-padding: clamp(1.5rem, 3vw, 2.5rem);
  --border-color: rgba(148, 163, 184, 0.18);
  --label-offset: calc(var(--radius) * -1 - 1rem);
  --label-size: clamp(2rem, 5vw, 3.6rem);
  --label-color: rgba(148, 163, 184, 0.92);
  --label-color-hover: #60a5fa;
  --label-line-h: 0;
  --label-line-h-current: clamp(2.4rem, 6vw, 4.2rem);
  --label-dot-size: clamp(8px, 1.4vw, 14px);
  --title-top: calc(clamp(1.8rem, 5vw, 4.2rem) + 4px);
  --title-offset-y: 30px;
  --info-top: clamp(5.2rem, 10vw, 8.6rem);
  --info-width: min(72%, 480px);
  --info-offset-y: 30px;
  position: relative;
  width: var(--cards-container-size);
  height: var(--cards-container-size);
  padding: var(--cards-container-padding);
  box-sizing: content-box;
  pointer-events: none;
  overflow: hidden;
  transform: translateY(60%);
  border-radius: 50%;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 55%);
  flex: 0 0 auto;
}

.find-me-timeline .cards-container::before {
  content: '';
  position: absolute;
  inset: calc(clamp(2%, 4vw, 8%) - 70px);
  border-radius: 50%;
  background: radial-gradient(circle, black, black, transparent, transparent);
  pointer-events: none;
}

.find-me-timeline input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  overflow: hidden;
}

.find-me-timeline .cards {
  position: absolute;
  inset: var(--cards-container-padding);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease-in-out var(--duration);
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.find-me-timeline .cards li {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 0;
  transform-origin: center;
  transform: rotate(calc(var(--i) * 360deg / var(--items)));
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}



.find-me-timeline .cards li > label {
  position: absolute;
  inset: 0;
  margin: auto;
  transform: translateY(var(--label-offset));
  width: var(--label-size);
  height: var(--label-size);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-content: center;
  color: var(--label-color);
  font-size: clamp(0.7rem, 2.2vw + 0.1rem, 1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: var(--duration) ease-in-out;
  text-transform: uppercase;
  z-index: 1;
}

.find-me-timeline .cards li > label::before {
  content: '';
  position: absolute;
  top: var(--cards-container-padding);
  left: 50%;
  transform: translate(-50%, 0);
  width: var(--label-dot-size);
  height: var(--label-dot-size);
  border-radius: 50%;
  background-color: var(--label-color);
  transition: background-color var(--duration) ease-in-out;
}

.find-me-timeline .cards li > label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 5px);
  width: 2px;
  height: var(--label-line-h);
  background-color: rgba(255, 255, 255, 0.92);
  transition: height 300ms ease-in-out var(--label-line-delay, 0ms);
}

.find-me-timeline .cards li > label:hover {
  color: #ffffff;
}

.find-me-timeline .cards li:has(input:checked) > label {
  color: #ffffff;
}

.find-me-timeline .cards li > h2,
.find-me-timeline .cards li > p {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  transform-origin: center;
  text-align: center;
  pointer-events: none;
}

.find-me-timeline .cards li > h2 {
  top: var(--title-top);
  font-size: clamp(1rem, 2vw + 0.2rem, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: var(--title-opacity, 0);
  translate: 0 var(--title-offset-y);
  transition: var(--duration) ease-in-out var(--title-delay, 0ms);
}

.find-me-timeline .cards li > p {
  top: var(--info-top);
  margin: 0 auto;
  width: var(--info-width);
  font-size: clamp(0.75rem, 2.2vw + 0.05rem, 0.95rem);
  line-height: 1.6;
  text-align: center;
  color: rgba(226, 232, 240, 0.9);
  opacity: var(--info-opacity, 0);
  translate: 0 var(--info-offset-y);
  transition: var(--duration) ease-in-out var(--info-delay, 0ms);
  text-wrap: pretty;
}

.find-me-timeline .cards li:has(input:checked) {
  --label-color: var(--label-color-hover);
  --label-line-h: var(--label-line-h-current);
  --label-line-delay: calc(var(--duration) * 2);
  --title-opacity: 1;
  --title-offset-y: 0;
  --title-delay: calc(var(--duration) * 3);
  --info-opacity: 1;
  --info-offset-y: 0;
  --info-delay: calc(var(--duration) * 4);
}

.find-me-timeline .cards:has(input:checked) {
  transform: rotate(calc(var(--base-rotation) - (var(--index, 0) * var(--full-circle) / var(--items))));
}

.find-me-timeline .cards:has(li:nth-child(1) > input:checked) { --index: 0; }
.find-me-timeline .cards:has(li:nth-child(2) > input:checked) { --index: 1; }
.find-me-timeline .cards:has(li:nth-child(3) > input:checked) { --index: 2; }
.find-me-timeline .cards:has(li:nth-child(4) > input:checked) { --index: 3; }
.find-me-timeline .cards:has(li:nth-child(5) > input:checked) { --index: 4; }
.find-me-timeline .cards:has(li:nth-child(6) > input:checked) { --index: 5; }
.find-me-timeline .cards:has(li:nth-child(7) > input:checked) { --index: 6; }
.find-me-timeline .cards:has(li:nth-child(8) > input:checked) { --index: 7; }
.find-me-timeline .cards:has(li:nth-child(9) > input:checked) { --index: 8; }
.find-me-timeline .cards:has(li:nth-child(10) > input:checked) { --index: 9; }
.find-me-timeline .cards:has(li:nth-child(11) > input:checked) { --index: 10; }
.find-me-timeline .cards:has(li:nth-child(12) > input:checked) { --index: 11; }
.find-me-timeline .cards:has(li:nth-child(13) > input:checked) { --index: 12; }
.find-me-timeline .cards:has(li:nth-child(14) > input:checked) { --index: 13; }
.find-me-timeline .cards:has(li:nth-child(15) > input:checked) { --index: 14; }
.find-me-timeline .cards:has(li:nth-child(16) > input:checked) { --index: 15; }
.find-me-timeline .cards:has(li:nth-child(17) > input:checked) { --index: 16; }
.find-me-timeline .cards:has(li:nth-child(18) > input:checked) { --index: 17; }
.find-me-timeline .cards:has(li:nth-child(19) > input:checked) { --index: 18; }
.find-me-timeline .cards:has(li:nth-child(20) > input:checked) { --index: 19; }
.find-me-timeline .cards:has(li:nth-child(21) > input:checked) { --index: 20; }
.find-me-timeline .cards:has(li:nth-child(22) > input:checked) { --index: 21; }
.find-me-timeline .cards:has(li:nth-child(23) > input:checked) { --index: 22; }
.find-me-timeline .cards:has(li:nth-child(24) > input:checked) { --index: 23; }
.find-me-timeline .cards:has(li:nth-child(25) > input:checked) { --index: 24; }
.find-me-timeline .cards:has(li:nth-child(26) > input:checked) { --index: 25; }

.find-me-timeline .cards li:not(:has(input:checked)) {
  opacity: 0.8;
}

.find-me-timeline .cards li > label:hover::before,
.find-me-timeline .cards li:has(input:checked) > label::before {
  background-color: #ffffff;
}


@media (max-width: 1024px) {
  .find-me-timeline .cards-container {
    --info-width: min(78%, 420px);
  }
}

@media (max-width: 780px) {
  .find-me-timeline {
    padding: clamp(0.5rem, 3vw, 2rem);
  }

  .find-me-timeline .cards-container {
    --label-size: clamp(1.6rem, 6vw, 2.6rem);
    --label-dot-size: clamp(6px, 2vw, 12px);
    --label-line-h-current: clamp(1.6rem, 10vw, 3.2rem);
    --info-width: min(82%, 360px);
  }

  .find-me-timeline .cards li > p {
    font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  }
}

@media (max-width: 560px) {
  .find-me-timeline {
    padding: clamp(0.25rem, 2vw, 1rem);
  }

  .find-me-timeline .cards-container {
    --label-offset: calc(var(--radius) * -1 - 0.65rem);
    --label-size: clamp(1.4rem, 6.4vw, 2.2rem);
    --info-top: clamp(5.6rem, 18vw, 7.2rem);
    --info-width: min(86%, 320px);
  }

  .find-me-timeline .cards li > h2 {
    font-size: clamp(0.9rem, 3.4vw, 1.1rem);
  }
}

@media (max-width: 440px) {
  .find-me-timeline .cards li > h2 {
    top: calc(var(--title-top) + 18px);
  }
}


.find-me-map__tooltip {
  position: absolute;
  transform: translate(-50%, -8px);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(5, 10, 20, 0.88);
  color: rgba(241, 245, 249, 0.92);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 7;
}

.find-me-map__tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -12px);
}

.find-me-map__tooltip strong {
  display: block;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.find-me-map__tooltip span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(191, 201, 214, 0.78);
}
/* Removed duplicate generic timeline block that conflicted with responsive overrides */
.find-me-map__marker.is-current::before {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.85), rgba(34, 197, 94, 0));
}

.find-me-map__marker.is-current::after {
  background: rgba(34, 197, 94, 0.35);
}

.find-me-map__marker.is-current .find-me-map__marker-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.4);
  opacity: 0;
  transform: scale(1);
  animation: map-marker-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

.find-me-map.is-zoomed .find-me-map__marker.is-current .find-me-map__marker-pulse {
  animation: none;
  opacity: 0;
}

@keyframes map-marker-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@media (min-width: 1201px) {
  .app-modal__close {
    display: none;
  }
}
