:root {
  color: #050506;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body, #root, #app { width: 100%; min-width: 100%; height: 100%; min-height: 100%; margin: 0; }
body { overflow: hidden; background: #fff; }
button { border: 0; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.app-root, .app-surface { width: 100vw; height: 100dvh; min-height: 100dvh; overflow: hidden; background: #fff; }
.app-surface { position: relative; }
.lock-screen, .home-screen { position: absolute; inset: 0; width: 100%; height: 100%; background: #fff; }
.lock-screen { z-index: 2; overflow: hidden; color: #050506; transition: transform 470ms cubic-bezier(.22, .9, .2, 1), opacity 470ms ease; touch-action: pan-y; }
.lock-screen.unlocking { transform: translateY(100%); opacity: 0; }
.home-screen { z-index: 1; padding: max(52px, env(safe-area-inset-top)) 28px 36px; transform: translateY(-100%); transition: transform 470ms cubic-bezier(.22, .9, .2, 1); }
.show-home .home-screen { transform: translateY(0); }

.status-bar { position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: max(54px, calc(34px + env(safe-area-inset-top))); padding: max(14px, env(safe-area-inset-top)) 24px 0; display: flex; align-items: center; justify-content: space-between; color: rgba(5, 5, 6, .9); font-size: 15px; font-weight: 650; }
.carrier { white-space: nowrap; letter-spacing: 0; }
.status-icons { display: flex; align-items: center; gap: 7px; }
.cell-bars { display: flex; align-items: end; gap: 2px; height: 15px; }
.cell-bars i { display: block; width: 3px; border-radius: 3px; background: #050506; }
.cell-bars i:nth-child(1) { height: 5px; }
.cell-bars i:nth-child(2) { height: 8px; }
.cell-bars i:nth-child(3) { height: 11px; }
.cell-bars i:nth-child(4) { height: 14px; }
.network { font-size: 14px; font-weight: 700; }
.battery-number { margin-left: 2px; font-size: 13px; color: rgba(5, 5, 6, .88); }
.battery { position: relative; width: 25px; height: 13px; border: 1.5px solid #050506; border-radius: 4px; }
.battery::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 5px; border-radius: 0 2px 2px 0; background: #050506; }
.battery i { position: absolute; inset: 2px; border-radius: 1px; background: #050506; }

.lock-top-grabber { position: absolute; z-index: 3; top: 68px; left: 50%; width: 42px; height: 4px; border-radius: 99px; background: rgba(5, 5, 6, .16); transform: translateX(-50%); }
.lock-date { position: absolute; z-index: 3; top: 92px; left: 20px; right: 20px; color: rgba(0, 0, 0, .86); font-size: clamp(16px, 4.6vw, 22px); font-weight: 500; text-align: center; white-space: nowrap; }
.lock-time { position: absolute; z-index: 3; top: 145px; left: 0; right: 0; color: #050506; font-size: clamp(78px, 22vw, 132px); font-weight: 740; letter-spacing: 0; line-height: .9; text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, .58); font-variant-numeric: tabular-nums; }
.lock-meta { position: absolute; z-index: 4; top: 314px; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.lock-decorations { position: absolute; inset: 0; z-index: 1; color: rgba(20, 20, 22, .13); pointer-events: none; overflow: hidden; }
.scribble-cloud { position: absolute; top: 214px; right: clamp(18px, 8vw, 54px); width: clamp(112px, 34vw, 156px); height: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .86; transform: rotate(-4deg); }
.scribble-cloud .tear { opacity: .72; }
.rain-lines { position: absolute; left: clamp(24px, 9vw, 58px); top: 372px; width: 76px; height: 84px; opacity: .54; transform: rotate(8deg); }
.rain-lines span { position: absolute; width: 1.5px; height: 34px; border-radius: 99px; background: currentColor; }
.rain-lines span:nth-child(1) { left: 4px; top: 0; height: 28px; }
.rain-lines span:nth-child(2) { left: 25px; top: 18px; height: 42px; }
.rain-lines span:nth-child(3) { left: 48px; top: 6px; height: 33px; }
.rain-lines span:nth-child(4) { left: 68px; top: 36px; height: 25px; }
.handwritten-note { position: absolute; right: clamp(24px, 9vw, 72px); bottom: 302px; margin: 0; color: rgba(20, 20, 22, .18); font-family: "Bradley Hand ITC", "Segoe Print", "Comic Sans MS", cursive; font-size: clamp(15px, 4vw, 19px); font-weight: 400; letter-spacing: 0; transform: rotate(-6deg); }

.weather-card { display: flex; align-items: center; gap: 12px; min-width: 196px; padding: 12px 15px; color: #050506; border: 1px solid rgba(0, 0, 0, .075); border-radius: 19px; background: rgba(238, 239, 241, .5); box-shadow: 0 14px 30px rgba(0, 0, 0, .045), inset 0 1px 0 rgba(255, 255, 255, .66); -webkit-backdrop-filter: blur(30px) saturate(1.35); backdrop-filter: blur(30px) saturate(1.35); }
.weather-card > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 3px 7px; min-width: 0; }
.weather-card strong { color: #050506; font-size: 20px; font-weight: 700; }
.weather-card span { color: rgba(0, 0, 0, .82); font-size: 12px; white-space: nowrap; }
.weather-card small { grid-column: 1 / -1; color: rgba(0, 0, 0, .58); font-size: 11px; white-space: nowrap; }
.weather-icon { position: relative; width: 30px; height: 17px; border: 1.5px solid rgba(0, 0, 0, .72); border-radius: 12px; }
.weather-icon::before { content: ""; position: absolute; left: 7px; top: -7px; width: 13px; height: 13px; border: 1.5px solid rgba(0, 0, 0, .72); border-radius: 50%; background: rgba(238, 239, 241, .7); }
.alarm-state { display: flex; align-items: center; gap: 7px; color: rgba(0, 0, 0, .82); font-size: 13px; font-weight: 520; white-space: nowrap; }
.alarm-icon { position: relative; width: 17px; height: 14px; border: 1.5px solid currentColor; border-radius: 8px 8px 5px 5px; }
.alarm-icon::before, .alarm-icon::after { content: ""; position: absolute; top: -4px; width: 6px; height: 4px; border-top: 1.5px solid currentColor; }
.alarm-icon::before { left: -3px; transform: rotate(-35deg); }
.alarm-icon::after { right: -3px; transform: rotate(35deg); }

.lock-actions { position: absolute; z-index: 6; left: 31px; right: 31px; bottom: max(48px, calc(38px + env(safe-area-inset-bottom))); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.system-action { width: 68px; height: 68px; display: grid; place-items: center; padding: 0; border-radius: 50%; background: transparent; pointer-events: auto; }
.action-icon-svg { display: block; width: 64px; height: 64px; overflow: visible; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .08)); }
.home-indicator { position: absolute; z-index: 8; bottom: max(11px, env(safe-area-inset-bottom)); left: 50%; width: 134px; height: 5px; padding: 0; border-radius: 99px; background: rgba(0, 0, 0, .7); transform: translateX(-50%); }
.passcode-sheet { position: absolute; z-index: 10; inset: 0; width: 100%; height: 100%; padding: max(116px, calc(90px + env(safe-area-inset-top))) 24px max(26px, calc(20px + env(safe-area-inset-bottom))); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: #fff; transform: translateY(100%); transition: transform 460ms cubic-bezier(.22, .9, .2, 1); pointer-events: none; }
.passcode-sheet::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .018), rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, .025)); pointer-events: none; }
.keypad-open .passcode-sheet { transform: translateY(0); pointer-events: auto; }
.keypad-open .status-bar { z-index: 12; color: rgba(0, 0, 0, .9); }
.keypad-open .lock-meta, .keypad-open .lock-time, .keypad-open .lock-date, .keypad-open .lock-decorations, .keypad-open .lock-actions, .keypad-open .lock-top-grabber { opacity: 0; transition: opacity 220ms ease; }
.passcode-content { position: relative; z-index: 1; width: min(100%, 390px); display: flex; flex-direction: column; align-items: center; }
.passcode-title { margin: 0; color: rgba(0, 0, 0, .78); font-size: clamp(19px, 5vw, 22px); font-weight: 430; letter-spacing: 0; line-height: 1.18; }
.passcode-panel-dots { display: flex; align-items: center; justify-content: center; gap: clamp(19px, 5.5vw, 27px); height: 16px; margin: clamp(22px, 3.8vh, 32px) auto clamp(56px, 8.2vh, 76px); }
.passcode-panel-dots span { width: clamp(11px, 3vw, 13px); height: clamp(11px, 3vw, 13px); border: 1.6px solid rgba(0, 0, 0, .46); border-radius: 50%; background: transparent; transition: background 140ms ease, transform 140ms ease, border-color 140ms ease; }
.passcode-panel-dots span.filled { background: rgba(0, 0, 0, .76); border-color: rgba(0, 0, 0, .76); transform: scale(1.04); }
.wrong .passcode-panel-dots { animation: shake 340ms ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3.1vh, 27px) clamp(20px, 6.2vw, 35px); width: min(86vw, 374px); margin: 0 auto; }
.key { width: clamp(78px, 22.2vw, 92px); height: clamp(78px, 22.2vw, 92px); justify-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #050506; border-radius: 50%; background: rgba(223, 224, 226, .76); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -1px 1px rgba(0, 0, 0, .045), 0 8px 20px rgba(0, 0, 0, .045); -webkit-backdrop-filter: blur(24px) saturate(1.12); backdrop-filter: blur(24px) saturate(1.12); transition: transform 130ms ease, background 130ms ease; }
.key:active { transform: scale(.955); background: rgba(196, 197, 200, .82); }
.key-zero { grid-column: 2; }
.key-number { display: block; margin-top: -2px; font-size: clamp(36px, 10.4vw, 45px); font-weight: 300; line-height: .92; font-variant-numeric: tabular-nums; }
.key-letters { display: block; min-height: 12px; color: rgba(0, 0, 0, .58); font-size: clamp(8px, 2.25vw, 10px); font-weight: 700; line-height: 1; letter-spacing: .24em; text-indent: .24em; }
.passcode-actions { position: absolute; z-index: 1; left: 0; right: 0; bottom: max(30px, calc(24px + env(safe-area-inset-bottom))); width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(34px, 9vw, 48px); }
.emergency-action, .passcode-cancel { min-width: 78px; min-height: 44px; padding: 8px 0; color: rgba(0, 0, 0, .74); background: transparent; font-size: clamp(16px, 4.2vw, 18px); font-weight: 410; letter-spacing: 0; text-align: center; }
.emergency-action:active, .passcode-cancel:active { opacity: .52; }
.home-header { display: flex; justify-content: space-between; align-items: center; color: rgba(0, 0, 0, .5); font-size: 12px; letter-spacing: .12em; }
.home-time { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.home-content { margin-top: 22vh; }
.home-eyebrow { margin: 0 0 6px; color: rgba(0, 0, 0, .48); font-size: 12px; letter-spacing: .18em; }
.home-content h1 { margin: 0; font-size: clamp(36px, 10vw, 58px); letter-spacing: 0; }
.home-copy { max-width: 320px; margin: 18px 0 0; color: rgba(0, 0, 0, .55); font-size: 15px; line-height: 1.6; }
.home-placeholder { display: flex; flex-direction: column; gap: 8px; margin-top: 36px; padding: 20px; border: 1px solid rgba(0, 0, 0, .08); border-radius: 22px; background: #fafafa; }
.home-placeholder span { color: rgba(0, 0, 0, .46); font-size: 12px; }
.home-placeholder strong { font-size: 16px; }

@media (max-width: 430px) {
  .status-bar { padding-inline: 20px; }
  .lock-meta { left: 18px; right: 18px; gap: 10px; }
  .weather-card { min-width: 0; padding-inline: 11px; }
  .alarm-state { font-size: 12px; }
  .lock-actions { left: 24px; right: 24px; }
}

@media (max-height: 720px) {
  .lock-time { top: 132px; }
  .lock-meta { top: 284px; }
  .scribble-cloud { top: 196px; width: 112px; }
  .rain-lines { top: 332px; }
  .handwritten-note { bottom: 264px; }
  .passcode-sheet { padding-top: max(78px, calc(58px + env(safe-area-inset-top))); }
  .passcode-panel-dots { margin: 18px auto 28px; }
  .keypad { gap: 13px 24px; }
  .key { width: 68px; height: 68px; }
  .key-number { font-size: 32px; }
  .key-letters { font-size: 7px; min-height: 9px; }
  .passcode-actions { bottom: max(16px, calc(12px + env(safe-area-inset-bottom))); }
}


:root {
  color-scheme: light;
}

.home-screen {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.home-scroll {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding:
    max(10px, env(safe-area-inset-top))
    clamp(14px, 4vw, 22px)
    max(28px, calc(20px + env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  scrollbar-width: none;
}

.home-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.home-grabber { display: none; }

.glass-card,
.section-card,
.home-hero {
  border: 1px solid rgba(0, 0, 0, .035);
  background: rgba(255, 255, 255, .86);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, .035),
    inset 0 1px 0 rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(28px) saturate(1.08);
  backdrop-filter: blur(28px) saturate(1.08);
}

.profile-card {
  position: relative;
  width: 100%;
  padding-top: 56px;
}

.card-inner {
  position: relative;
  border: 1px solid rgba(0, 0, 0, .035);
  border-radius: 26px;
  padding: 58px 22px 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .07), inset 0 1px 0 rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(22px) saturate(1.04);
  backdrop-filter: blur(22px) saturate(1.04);
}

.glass-card {
  border-radius: 28px;
}

.home-hero {
  position: relative;
  margin-top: 24px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-profile {
  position: static;
  display: grid;
  justify-items: center;
  min-width: 0;
}

.hero-avatar-wrap {
  position: absolute;
  z-index: 3;
  top: -54px;
  left: 50%;
  width: 110px;
  height: 110px;
  transform: translateX(-50%);
}


.hero-avatar {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  padding: 4px;
  border: 4px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.hero-avatar img,
.hero-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.hero-profile-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.hero-display-name,
.hero-display-subtitle,
.hero-display-signature {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #050506;
  text-align: center;
}

.hero-display-name {
  font-size: clamp(16px,4.8vw,19px);
  font-weight: 680;
  line-height: 1.22;
}

.hero-display-subtitle {
  color: rgba(0, 0, 0, 0.45);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-display-signature {
  min-height: 0;
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.78);
  font-size: 12px;
  font-weight: 510;
  line-height: 1.8;
}

.hero-display-name::placeholder,
.hero-display-subtitle::placeholder,
.hero-display-signature::placeholder {
  color: rgba(0, 0, 0, 0.28);
}

.hero-display-name:focus,
.hero-display-subtitle:focus,
.hero-display-signature:focus {
  background: rgba(0, 0, 0, 0.025);
  border-radius: 8px;
}



.section-head h2 {
  margin: 0;
  color: #050506;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.avatar-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.profile-editor {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.profile-editor-avatar {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 11px;
  text-align: center;
}

.profile-upload-avatar {
  width: 96px;
  height: 96px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 20px rgba(0, 0, 0, 0.035);
}

.profile-upload-avatar img,
.profile-upload-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-editor-fields {
  min-width: 0;
}

.field-stack {
  display: grid;
  gap: 10px;
}

.home-stack {
  display: grid;
  gap: 16px;
}
.home-menu {
  display: grid;
  gap: 14px;
}

.home-menu.is-hidden,
.home-detail.is-hidden {
  display: none;
}

.home-menu-card {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  color: #050506;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(26px) saturate(1.08);
  backdrop-filter: blur(26px) saturate(1.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-menu-card:active {
  transform: scale(0.985);
}

.home-menu-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.home-menu-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.home-menu-card p {
  margin: 0;
  color: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  line-height: 1.45;
}

.home-menu-arrow {
  flex: none;
  color: rgba(0, 0, 0, 0.38);
  font-size: 28px;
  line-height: 1;
}

.home-detail {
  display: grid;
  gap: 14px;
}

.home-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-detail-title {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.home-detail-title h1 {
  margin: 0;
  color: #050506;
  font-size: 24px;
  font-weight: 730;
}

.home-back-button {
  min-height: 42px;
  flex: none;
  padding: 8px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.82);
  color: #050506;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
}

.home-detail .section-card {
  display: none;
}

.home-detail.detail-profile .section-card[data-module="profile"],
.home-detail.detail-api .section-card[data-module="api"],
.home-detail.detail-data .section-card[data-module="data"],
.home-detail.detail-system .section-card[data-module="system"],
.home-detail.detail-tools .section-card[data-module="tools"],
.home-detail.detail-memory .section-card[data-module="memory"] {
  display: grid;
}

.section-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-head p {
  margin: 6px 0 0;
  color: rgba(0, 0, 0, 0.56);
  font-size: 13px;
  line-height: 1.55;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.58);
  background: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.section-body {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  color: rgba(0, 0, 0, 0.82);
  font-size: 12px;
  font-weight: 560;
}

.field > span {
  padding-left: 2px;
}

.glass-input,
.glass-select,
.glass-textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: #050506;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(0, 0, 0, 0.03);
}

.glass-input::placeholder,
.glass-textarea::placeholder {
  color: rgba(0, 0, 0, 0.32);
}

.glass-input:focus,
.glass-select:focus,
.glass-textarea:focus {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 0 0 4px rgba(0, 0, 0, 0.045);
}

.glass-textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}

.glass-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(0, 0, 0, 0.52) 50%), linear-gradient(135deg, rgba(0, 0, 0, 0.52) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.glass-button {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.62);
  color: #050506;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(0, 0, 0, 0.03);
}

.glass-button:active,
.segment:active,
.system-action:active,
.hero-avatar:active {
  transform: translateY(1px) scale(0.99);
}

.primary-button {
  background: rgba(5, 5, 6, 0.88);
  color: #fff;
  border-color: rgba(5, 5, 6, 0.88);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.78);
}

.module-grid {
  display: grid;
  gap: 12px;
}

.module-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.035);
  background: rgba(255, 255, 255, 0.72);
}

.mini-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-panel-head strong {
  color: #050506;
  font-size: 14px;
  font-weight: 700;
}

.mini-panel-head span {
  color: rgba(0, 0, 0, 0.44);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-copy {
  margin: 0;
  color: rgba(0, 0, 0, 0.56);
  font-size: 13px;
  line-height: 1.55;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.36);
}

.segment {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 14px;
  background: transparent;
  color: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 560;
}

.segment.active {
  background: rgba(5, 5, 6, 0.9);
  color: #fff;
}

.glass-range {
  width: 100%;
  accent-color: #050506;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-pill {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.42);
}

.stat-pill span,
.log-row span {
  color: rgba(0, 0, 0, 0.52);
  font-size: 12px;
}

.stat-pill strong {
  color: #050506;
  font-size: 18px;
  font-weight: 720;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.log-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.34);
}

.log-list {
  display: grid;
  gap: 8px;
}

.log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.log-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.log-row em {
  color: rgba(0, 0, 0, 0.78);
  font-style: normal;
  font-size: 12px;
}

.switch-list {
  display: grid;
  gap: 12px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.38);
}

.switch-row > span:first-child {
  min-width: 0;
  color: #050506;
  font-size: 13px;
  font-weight: 560;
}

.ios-switch {
  position: relative;
  width: 52px;
  height: 32px;
  flex: none;
}

.ios-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
}

.ios-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  transition: background 180ms ease;
}

.ios-switch span::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease;
}

.ios-switch input:checked + span {
  background: rgba(5, 5, 6, 0.88);
}

.ios-switch input:checked + span::before {
  transform: translateX(20px);
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.color-input {
  min-height: 48px;
  padding: 8px;
  cursor: pointer;
}

.color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 12px;
}

.memory-placeholder {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.38);
}

.memory-placeholder span {
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
}

.memory-placeholder strong {
  color: #050506;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.55;
}

@media (min-width: 560px) {
  .home-scroll {
    padding-inline: clamp(18px, 4vw, 28px);
  }

  .home-hero {
    padding-inline: 28px;
  }

  .module-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .module-grid-wide,
  .action-grid,
  .stats-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
}


/* Full-screen Home and desktop navigation */
.home-scroll { margin-top: 0; }
.home-page-back { position: relative; z-index: 8; align-self: flex-start; min-height: 34px; padding: 4px 0; color: rgba(0,0,0,.68); background: transparent; font-size: 13px; font-weight: 560; line-height: 1; }
.home-page-back:active { opacity: .48; }

.desktop-screen { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #fff; color: #050506; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.desktop-screen.is-visible { opacity: 1; pointer-events: auto; }
.desktop-pages { position: absolute; z-index: 1; inset: max(54px,calc(38px + env(safe-area-inset-top))) 0 max(124px,calc(110px + env(safe-area-inset-bottom))) 0; display: flex; overflow: visible; transition: transform 300ms cubic-bezier(.22,.9,.2,1); will-change: transform; }
.desktop-page { position: relative; display: flex; flex: 0 0 100%; flex-direction: column; min-width: 0; height: 100%; padding: 4px 10px 0; overflow: hidden; }
.desktop-grid { min-height: 0; display: grid; flex: 1; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 76px; grid-auto-flow: dense; align-content: start; gap: 4px 0; overflow: hidden; }
.desktop-widget-stack { position: relative; display: flex; flex: none; flex-wrap: wrap; align-items: flex-start; gap: 2px 14px; margin: 2px 8px 12px; padding: 4px 0 8px; background: transparent; }
.desktop-widget-stack::before { content: ""; position: absolute; left: 18%; right: 8%; top: 0; height: 1px; background-image: linear-gradient(90deg, rgba(0,0,0,.18) 0 2px, transparent 2px 8px); background-size: 8px 1px; pointer-events: none; }
.desktop-widget { position: relative; min-width: 0; width: auto; flex: 1 1 calc(50% - 7px); overflow: visible; border: 0; background: transparent; color: #050506; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; touch-action: manipulation; transition: transform 180ms ease, opacity 180ms ease; }
.desktop-widget:active { transform: scale(.985); opacity: .78; }
.desktop-widget-photo-wall { position: relative; flex-basis: 100%; height: 112px; border-radius: 0; }
.desktop-widget-photo-wall::before { content: ""; position: absolute; inset: 10px 7%; border-top: 1px solid rgba(0,0,0,.08); border-bottom: 1px dashed rgba(0,0,0,.12); background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(230,230,232,.12)), var(--widget-wallpaper); background-position: center; background-size: cover; opacity: .62; pointer-events: none; }
.desktop-widget-photo-wall::after { content: ""; position: absolute; right: 11%; top: 5px; width: 8px; height: 8px; border: 1px solid rgba(0,0,0,.46); transform: rotate(45deg); pointer-events: none; }
.photo-wall-rail { position: absolute; left: 28px; right: 28px; top: 33px; height: 1px; background: rgba(0,0,0,.28); transform: rotate(-2deg); }
.photo-wall-pin { position: absolute; z-index: 3; top: 23px; width: 16px; height: 15px; transform: rotate(-36deg); }
.photo-wall-pin::before, .photo-wall-pin::after { content: ""; position: absolute; width: 10px; height: 16px; border-radius: 999px 999px 0 0; background: #050506; }
.photo-wall-pin::before { left: 3px; transform: rotate(-45deg); transform-origin: 0 100%; }
.photo-wall-pin::after { left: 0; transform: rotate(45deg); transform-origin: 100% 100%; }
.photo-wall-pin.is-left { left: 18px; }
.photo-wall-pin.is-right { right: 18px; transform: rotate(36deg); }
.photo-wall-strip { position: absolute; inset: 17px 27px 12px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: center; gap: 7px; }
.photo-polaroid { position: relative; height: 64px; padding: 5px 5px 12px; border-radius: 6px; background: rgba(255,255,255,.9); box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.photo-polaroid.is-1 { transform: rotate(-9deg) translateY(3px); }
.photo-polaroid.is-2 { transform: rotate(6deg) translateY(-2px); }
.photo-polaroid.is-3 { transform: rotate(8deg) translateY(2px); }
.photo-polaroid.is-4 { transform: rotate(-6deg) translateY(-1px); }
.photo-polaroid-image { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: linear-gradient(135deg, #e8e8ea, #fafafa); color: rgba(0,0,0,.42); font-size: 8px; font-weight: 700; letter-spacing: 0; }
.photo-polaroid-image img, .desktop-widget-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.photo-polaroid-image i, .desktop-widget-avatar i { font-style: normal; }
.desktop-widget-dashed-note, .desktop-widget-capsule-note { height: 100px; border-radius: 0; padding: 4px 0 7px; }
.desktop-widget-dashed-note::after { content: ""; position: absolute; right: 2px; bottom: 8px; width: 7px; height: 7px; border: 1px solid rgba(0,0,0,.42); transform: rotate(45deg); pointer-events: none; }
.dashed-note-top { display: flex; align-items: center; justify-content: space-between; min-height: 22px; }
.dashed-note-top b { color: rgba(0,0,0,.7); font-size: 24px; font-weight: 680; line-height: 1; }
.desktop-widget-avatar { width: 30px; height: 30px; display: grid; flex: none; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(145deg,#ededee,#fff); box-shadow: inset 0 0 0 1px rgba(0,0,0,.045); color: rgba(0,0,0,.58); font-size: 10px; font-weight: 760; }
.desktop-widget-stars { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; height: 18px; margin: 2px 8px 3px; }
.desktop-widget-stars::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: rgba(0,0,0,.28); }
.desktop-widget-stars i { position: relative; z-index: 1; width: 7px; height: 7px; display: block; background: #f7f7f8; border: 1px solid rgba(0,0,0,.55); transform: rotate(45deg); }
.desktop-widget-stars i:nth-child(3) { background: rgba(0,0,0,.62); border-color: rgba(0,0,0,.62); }
.dashed-note-line { display: block; height: 1px; margin: 8px 2px; background-image: linear-gradient(90deg, rgba(0,0,0,.34) 0 4px, transparent 4px 10px); background-size: 10px 1px; }
.dashed-note-text { display: block; min-width: 0; overflow: hidden; color: rgba(0,0,0,.72); font-size: 15px; font-weight: 650; line-height: 1.2; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.desktop-widget-capsule-note { display: grid; align-content: start; gap: 7px; padding-top: 7px; }
.desktop-widget-capsule-note .desktop-widget-stars { height: 15px; margin-block: 0; }
.capsule-note-row { min-width: 0; height: 34px; display: flex; align-items: center; gap: 8px; padding: 4px 0; border-radius: 0; border-bottom: 1px dashed rgba(0,0,0,.18); background: transparent; }
.capsule-note-row.is-reverse { justify-content: flex-end; }
.capsule-note-row .desktop-widget-avatar { width: 26px; height: 26px; }
.capsule-note-row b { min-width: 0; overflow: hidden; color: rgba(0,0,0,.74); font-size: 12px; font-weight: 720; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.desktop-icon, .desktop-folder, .dock-icon, .dock-home { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; padding: 0; background: transparent; color: #050506; transition: transform 180ms ease, opacity 180ms ease; touch-action: none; }
.desktop-icon-face, .desktop-folder-face, .dock-icon > span, .dock-home > span { width: 46px; height: 46px; display: grid; flex: none; place-items: center; overflow: hidden; border: 1px solid rgba(0,0,0,.05); border-radius: 15px; background: rgba(245,245,247,.82); box-shadow: 0 7px 14px rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.9); color: #050506; font-size: 18px; font-weight: 730; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.desktop-folder-face { width: 66px; height: 66px; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4px; padding: 11px; border: 1px solid rgba(255,255,255,.7); background: rgba(250,250,252,.64); box-shadow: 0 14px 28px rgba(0,0,0,.055), inset 0 1px 0 rgba(255,255,255,.96); -webkit-backdrop-filter: blur(30px) saturate(1.22); backdrop-filter: blur(30px) saturate(1.22); }
.desktop-folder-face i { display: grid; min-width: 0; min-height: 0; place-items: center; border-radius: 10px; background: rgba(255,255,255,.86); color: rgba(0,0,0,.72); font-size: 8px; font-style: normal; font-weight: 720; }
.desktop-folder.is-large { grid-column: span 2; grid-row: span 2; gap: 5px; }
.desktop-folder.is-large .desktop-folder-face { width: min(100%, 150px); height: 138px; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 8px; padding: 14px; border-radius: 34px; background: rgba(238,239,241,.62); box-shadow: 0 18px 36px rgba(0,0,0,.065), inset 0 1px 0 rgba(255,255,255,.96), inset 0 -1px 0 rgba(0,0,0,.025); }
.desktop-folder.is-large .desktop-folder-face i { border-radius: 12px; font-size: 10px; background: rgba(255,255,255,.78); }
.desktop-folder.is-large > span:last-child { font-size: 10.5px; font-weight: 620; line-height: 1.15; }
.desktop-icon > span:last-child, .desktop-folder > span:last-child, .dock-icon small, .dock-home small { max-width: 100%; overflow: hidden; color: rgba(0,0,0,.68); font-size: 8.5px; font-weight: 560; line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.desktop-screen.is-editing .desktop-icon, .desktop-screen.is-editing .desktop-folder, .desktop-icon.is-editing, .desktop-folder.is-editing { animation: desktop-icon-wiggle 520ms ease-in-out infinite alternate; }
.desktop-screen.is-editing .desktop-icon:active, .desktop-screen.is-editing .desktop-folder:active, .desktop-icon.is-editing:active, .desktop-folder.is-editing:active { opacity: .72; transform: scale(1.05); }
@keyframes desktop-icon-wiggle { from { transform: rotate(-1.1deg); } to { transform: rotate(1.1deg); } }
.desktop-page-indicator { position: absolute; z-index: 5; left: 0; right: 0; bottom: max(110px,calc(98px + env(safe-area-inset-bottom))); height: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.desktop-page-indicator i { width: 6px; height: 6px; display: block; border-radius: 50%; background: rgba(0,0,0,.2); transition: width 180ms ease, border-radius 180ms ease, background 180ms ease; }
.desktop-page-indicator i.active { width: 18px; border-radius: 999px; background: rgba(0,0,0,.68); }
.desktop-dock { position: absolute; z-index: 6; left: 12px; right: 12px; bottom: max(16px,calc(10px + env(safe-area-inset-bottom))); height: 80px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: center; gap: 0; padding: 7px 7px 8px; border: 1px solid rgba(255,255,255,.72); border-radius: 34px; background: linear-gradient(145deg, rgba(255,255,255,.42), rgba(255,255,255,.16) 46%, rgba(230,231,234,.18)), rgba(255,255,255,.14); box-shadow: 0 30px 70px rgba(0,0,0,.09), inset 0 1px 0 rgba(255,255,255,1), inset 0 -1px 0 rgba(255,255,255,.34), inset 0 24px 46px rgba(255,255,255,.42), inset 0 -24px 42px rgba(214,216,220,.14); overflow: hidden; -webkit-backdrop-filter: blur(62px) saturate(2.05) contrast(1.06); backdrop-filter: blur(62px) saturate(2.05) contrast(1.06); }
.desktop-dock::before { content: ""; position: absolute; inset: -50% -24% auto; height: 112%; background: radial-gradient(circle at 12% 10%, rgba(255,255,255,.94), rgba(255,255,255,0) 48%), radial-gradient(circle at 72% 12%, rgba(255,255,255,.7), rgba(255,255,255,0) 44%), radial-gradient(ellipse at 50% 86%, rgba(255,255,255,.36), rgba(255,255,255,0) 62%), linear-gradient(180deg, rgba(255,255,255,.46), rgba(255,255,255,0) 76%); filter: blur(18px); opacity: .96; pointer-events: none; mix-blend-mode: screen; }
.desktop-dock::after { content: ""; position: absolute; inset: 1px; border-radius: 33px; background: linear-gradient(115deg, rgba(255,255,255,.36), rgba(255,255,255,0) 32%, rgba(255,255,255,.22) 72%, rgba(255,255,255,0)); opacity: .62; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.desktop-dock > * { position: relative; z-index: 1; }
.desktop-dock .dock-icon > span, .desktop-dock .dock-home > span { width: 42px; height: 42px; border-radius: 14px; font-size: 15px; background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), inset 0 -1px 0 rgba(0,0,0,.025), 0 8px 16px rgba(0,0,0,.035); -webkit-backdrop-filter: blur(22px) saturate(1.55); backdrop-filter: blur(22px) saturate(1.55); }
.dock-home .home-house { background: linear-gradient(180deg, rgba(10,10,12,.94), rgba(10,10,12,.82)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.dock-home .home-house img { width: 22px; height: 22px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); }
.desktop-edit-done { position: absolute; z-index: 8; top: max(48px,calc(36px + env(safe-area-inset-top))); right: 20px; min-height: 32px; padding: 6px 12px; border-radius: 999px; background: rgba(242,242,244,.88); color: rgba(0,0,0,.7); font-size: 12px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.desktop-search-layer { position: absolute; z-index: 20; inset: 0; display: grid; align-items: start; padding: max(78px,calc(62px + env(safe-area-inset-top))) 18px 18px; background: rgba(255,255,255,.45); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.desktop-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 10px; border: 1px solid rgba(0,0,0,.06); border-radius: 22px; background: rgba(245,245,247,.9); box-shadow: 0 16px 34px rgba(0,0,0,.08); }
.desktop-search input { min-width: 0; min-height: 36px; padding: 0 12px; border: 0; outline: 0; border-radius: 13px; background: rgba(255,255,255,.75); color: #050506; }
.desktop-search button { padding: 0 10px; border-radius: 12px; background: transparent; color: rgba(0,0,0,.62); font-size: 12px; }
.desktop-app-sheet-backdrop { position: absolute; z-index: 25; inset: 0; border: 0; padding: 0; margin: 0; background: rgba(255,255,255,.18); opacity: 0; pointer-events: none; -webkit-backdrop-filter: blur(14px) saturate(1.14); backdrop-filter: blur(14px) saturate(1.14); transition: opacity 260ms ease; }
.desktop-app-sheet-backdrop.is-open, .desktop-app-sheet-backdrop.is-opening { opacity: 1; pointer-events: auto; }
.desktop-app-sheet-backdrop.is-closing { opacity: 0; pointer-events: auto; }
.desktop-app-sheet { position: absolute; z-index: 30; left: 50%; right: auto; bottom: max(10px, env(safe-area-inset-bottom)); width: min(calc(100% - 20px), 430px); min-height: 60%; display: grid; align-content: start; gap: 14px; padding: 18px; border: 1px solid rgba(0,0,0,.07); border-radius: 34px; background: rgba(255,255,255,.92); box-shadow: 0 30px 70px rgba(0,0,0,.14); transform-origin: var(--sheet-origin-x, 50%) var(--sheet-origin-y, 50%); will-change: transform, opacity, filter; transition: transform 360ms cubic-bezier(.18,.92,.16,1), opacity 260ms ease, filter 260ms ease; }
.desktop-app-sheet.is-opening { opacity: 0; transform: translate(calc(-50% + var(--sheet-start-x, 0px)), var(--sheet-start-y, 42px)) scale(var(--sheet-scale, .22)); filter: blur(1px); }
.desktop-app-sheet.is-open { opacity: 1; transform: translateX(-50%) scale(1); filter: blur(0); }
.desktop-app-sheet.is-closing { opacity: 0; transform: translate(calc(-50% + var(--sheet-start-x, 0px)), var(--sheet-start-y, 42px)) scale(var(--sheet-scale, .22)); filter: blur(1px); }
.desktop-widget-editor-backdrop { position: absolute; z-index: 31; inset: 0; border: 0; padding: 0; margin: 0; background: rgba(255,255,255,.18); opacity: 1; -webkit-backdrop-filter: blur(14px) saturate(1.14); backdrop-filter: blur(14px) saturate(1.14); }
.desktop-widget-editor { position: absolute; z-index: 32; left: 50%; right: auto; top: max(90px,calc(72px + env(safe-area-inset-top))); width: min(calc(100% - 28px), 380px); display: grid; gap: 12px; padding: 18px; border: 1px solid rgba(0,0,0,.07); border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: 0 24px 58px rgba(0,0,0,.13); transform: translateX(-50%); }
.desktop-widget-editor header { display: flex; align-items: flex-start; gap: 12px; }
.desktop-widget-editor header > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; background: #f0f0f2; font-weight: 720; }
.desktop-widget-editor h1, .desktop-widget-editor p { margin: 0; }
.desktop-widget-editor h1 { font-size: 19px; line-height: 1.2; }
.desktop-widget-editor p { color: rgba(0,0,0,.46); font-size: 11px; }
.widget-editor-grid { display: grid; gap: 9px; }
.widget-editor-grid label { display: grid; gap: 5px; }
.widget-editor-grid label > span { color: rgba(0,0,0,.55); font-size: 11px; font-weight: 620; }
.widget-editor-grid input { min-height: 34px; padding: 0 11px; border: 1px solid rgba(0,0,0,.07); border-radius: 12px; background: rgba(246,246,247,.92); color: #050506; }
.widget-file-control input { padding-block: 6px; }
.desktop-app-sheet header { display: flex; align-items: flex-start; gap: 12px; }
.desktop-app-sheet header > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; background: #f0f0f2; font-weight: 720; }
.desktop-app-sheet h1, .folder-name-input { margin: 0; min-width: 0; font-size: 20px; font-weight: 720; line-height: 1.2; color: #050506; }
.app-sheet-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; background: #f0f0f2; }
.app-sheet-close::before, .app-sheet-close::after { content: ""; position: absolute; top: 14px; left: 8px; width: 14px; height: 1.5px; background: rgba(0,0,0,.58); }
.app-sheet-close::before { transform: rotate(45deg); }
.app-sheet-close::after { transform: rotate(-45deg); }
.app-sheet-canvas { min-height: 220px; border-radius: 22px; background: linear-gradient(135deg,#f4f4f5,#fff); }
.folder-sheet-actions { display: flex; justify-content: center; margin: -4px 0 2px; }
.folder-sheet-actions button { min-height: 31px; padding: 0 14px; border: 1px solid rgba(0,0,0,.07); border-radius: 999px; background: rgba(255,255,255,.54); color: rgba(0,0,0,.68); font-size: 11px; font-weight: 620; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.folder-sheet-actions button:active { opacity: .58; transform: scale(.98); }
.folder-sheet-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 8px; padding: 8px 4px 4px; }
.folder-sheet-item { min-width: 0; display: grid; justify-items: center; gap: 4px; padding: 5px 0; background: transparent; color: #050506; touch-action: none; transition: transform 180ms ease, opacity 180ms ease; }
.folder-sheet-item:active { transform: scale(.94); opacity: .72; }
.folder-sheet-item small { max-width: 100%; overflow: hidden; color: rgba(0,0,0,.66); font-size: 9px; font-weight: 560; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.desktop-app-sheet.is-folder { top: max(92px,calc(72px + env(safe-area-inset-top))); bottom: max(128px,calc(104px + env(safe-area-inset-bottom))); width: min(calc(100% - 48px), 342px); min-height: 0; padding: 22px 18px 20px; border-radius: 42px; background: linear-gradient(145deg, rgba(255,255,255,.66), rgba(245,245,247,.46)), rgba(246,246,248,.46); border-color: rgba(255,255,255,.78); box-shadow: 0 34px 86px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.98), inset 0 -1px 0 rgba(0,0,0,.025); -webkit-backdrop-filter: blur(58px) saturate(1.62); backdrop-filter: blur(58px) saturate(1.62); }
.desktop-app-sheet.is-folder .app-sheet-close { opacity: 0; pointer-events: none; }
.desktop-app-sheet.is-folder header { justify-content: center; padding-top: 2px; text-align: center; }
.desktop-app-sheet.is-folder header > span { display: none; }
.desktop-app-sheet.is-folder header > div { display: grid; justify-items: center; gap: 2px; }
.desktop-app-sheet.is-folder header p { margin: 0; color: rgba(0,0,0,.46); font-size: 11px; }
.desktop-app-sheet.is-folder .desktop-icon-face { width: 50px; height: 50px; border-radius: 16px; background: rgba(255,255,255,.48); border-color: rgba(255,255,255,.66); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(0,0,0,.04); -webkit-backdrop-filter: blur(24px) saturate(1.35); backdrop-filter: blur(24px) saturate(1.35); }
.folder-name-input { width: min(100%, 172px); padding: 0; border: 0; outline: 0; background: transparent; }
.folder-name-input::placeholder { color: rgba(0,0,0,.32); }
.folder-sheet-item.is-dragging { opacity: .84; }
@keyframes desktop-sheet-in { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 390px) { .desktop-page { padding-inline: 12px; } .desktop-widget-stack { gap: 7px; margin-inline: 0; margin-bottom: 8px; } .desktop-widget-photo-wall { height: 98px; border-radius: 24px; } .photo-wall-strip { inset: 16px 16px 10px; gap: 5px; } .photo-polaroid { height: 58px; padding: 4px 4px 10px; } .desktop-widget-dashed-note, .desktop-widget-capsule-note { height: 102px; border-radius: 24px; padding: 9px; } .dashed-note-text { font-size: 13px; } .capsule-note-row { height: 30px; padding-inline: 8px; } .desktop-widget-editor { width: min(calc(100% - 18px), 340px); top: max(84px,calc(68px + env(safe-area-inset-top))); padding: 16px; } .desktop-grid { grid-auto-rows: 74px; gap: 4px 1px; } .desktop-icon-face { width: 46px; height: 46px; border-radius: 14px; } .desktop-folder-face { width: 60px; height: 60px; } .desktop-folder.is-large .desktop-folder-face { width: min(100%, 142px); height: 134px; gap: 7px; padding: 13px; } .desktop-dock { left: 10px; right: 10px; height: 74px; } }
@media (max-width: 390px) { .desktop-widget-stack { gap: 2px 10px; margin-inline: 4px; } .desktop-widget-photo-wall { height: 96px; border-radius: 0; } .desktop-widget-dashed-note, .desktop-widget-capsule-note { height: 92px; min-height: 0; border-radius: 0; padding: 4px 0 7px; } .photo-wall-strip { inset: 16px 10px 10px; gap: 5px; } }
