/* =========================================================
   屿光桌面 · 桌面主界面
   ========================================================= */
body {
  --rail-space: 126px;
}

.app-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--app-vh, 100vh);
  height: var(--app-vh, 100dvh);
  padding: 22px var(--rail-space) 0 34px;
  overflow: hidden;
}

/* ---------- 顶部：时间 / 搜索 / 操作 ---------- */
.topbar {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(390px, 600px) minmax(150px, 0.9fr);
  flex: none;
  align-items: start;
  gap: 28px;
  padding-right: 6px;
}

.clock-block {
  min-width: 0;
  padding-top: 3px;
  user-select: none;
}

.clock-kicker {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.47);
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.2em;
}

.clock-time {
  color: #fbfaf7;
  font-size: clamp(48px, 4.8vw, 72px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.065em;
  line-height: 0.96;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.18);
}

.clock-date-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 12px;
  font-weight: 460;
  white-space: nowrap;
}

.clock-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

#clockGreeting {
  color: rgba(255, 255, 255, 0.53);
}

.search-area {
  width: 100%;
  min-width: 0;
  padding-top: 7px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 60px;
  padding: 7px 7px 7px 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.925);
  box-shadow:
    0 18px 44px rgba(2, 8, 14, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: #27313a;
  transition: box-shadow 0.28s, border-color 0.28s, background 0.28s;
}

.search-box:focus-within {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.975);
  box-shadow:
    0 20px 50px rgba(2, 8, 14, 0.28),
    0 0 0 3px rgba(var(--accent-rgb), 0.2),
    inset 0 1px 0 #fff;
}

.search-box.is-url {
  border-color: rgba(var(--accent-rgb), 0.85);
  box-shadow:
    0 20px 50px rgba(2, 8, 14, 0.28),
    0 0 0 3px rgba(var(--accent-rgb), 0.24),
    inset 0 1px 0 #fff;
}

.search-box.is-shake {
  animation: searchShake 0.4s ease;
}

@keyframes searchShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.search-leading {
  display: grid;
  flex: none;
  place-items: center;
  width: 21px;
  height: 21px;
  color: #75828d;
  transition: color 0.22s;
}

.search-leading svg {
  width: 20px;
  height: 20px;
}

.search-box.is-url .search-leading {
  color: var(--accent-deep);
}

.search-box input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202932;
  font-size: 15.5px;
  font-weight: 450;
  letter-spacing: 0.005em;
}

.search-box input::placeholder {
  color: #8b959e;
}

.url-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.18);
  color: #9b5a13;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  animation: badgeIn 0.22s var(--ease) both;
}

.url-badge svg {
  width: 12px;
  height: 12px;
}

@keyframes badgeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.search-clear {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(36, 45, 54, 0.07);
  color: #65717b;
  transition: background 0.18s, color 0.18s;
}

.search-clear:hover {
  background: rgba(36, 45, 54, 0.13);
  color: #28323a;
}

.search-clear svg {
  width: 13px;
  height: 13px;
}

.search-submit {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 93px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  box-shadow:
    0 7px 18px rgba(var(--accent-rgb), 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), filter 0.2s, box-shadow 0.2s;
}

.search-submit:hover {
  filter: brightness(1.055);
  box-shadow:
    0 9px 23px rgba(var(--accent-rgb), 0.33),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-submit:active {
  transform: scale(0.97);
}

.search-submit__icon {
  display: grid;
  place-items: center;
}

.search-submit__icon svg {
  width: 15px;
  height: 15px;
}

.search-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 27px;
  padding: 7px 5px 0 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10.5px;
}

.hot-searches {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%);
}

.hot-searches::before {
  content: "热搜";
  margin-right: 3px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.hot-search {
  flex: none;
  max-width: 118px;
  overflow: hidden;
  padding: 3px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.16s, color 0.16s;
}

.hot-search:hover {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.9);
}

.url-hint {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: rgba(255, 235, 206, 0.85);
  font-size: 10.5px;
  white-space: nowrap;
}

.url-hint__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.engine-picker {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  margin-left: auto;
}

.engine-picker select {
  height: 25px;
  padding: 0 22px 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  outline: 0;
  appearance: none;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.engine-picker select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.engine-picker select option {
  color: #f4f4f1;
  background: #202b35;
}

.engine-picker__chevron {
  position: absolute;
  right: 7px;
  display: grid;
  place-items: center;
  width: 11px;
  height: 11px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.engine-picker__chevron svg {
  width: 11px;
  height: 11px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 8px;
}

.top-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.63);
  font-size: 10.5px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.top-action svg {
  width: 14px;
  height: 14px;
}

.top-action:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.user-chip {
  max-width: 142px;
  padding-left: 5px;
}

.user-chip__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--accent-hi), var(--accent));
  color: var(--accent-ink);
  font-size: 9.5px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.user-chip .top-action__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.65;
}

/* ---------- 主工作区 ---------- */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  flex: 1;
  gap: 22px;
  min-height: 0;
  padding-top: 18px;
  padding-bottom: 92px;
}

.workspace--no-widgets {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

/* ---------- 左侧分类导航 ---------- */
.category-nav {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 3px;
  min-width: 0;
  max-height: calc(var(--app-vh, 100vh) - 210px);
  max-height: calc(var(--app-vh, 100dvh) - 210px);
  padding: 14px 10px 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), transparent 46%),
    rgba(16, 23, 31, 0.38);
  box-shadow: 0 18px 40px rgba(2, 8, 14, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
  backdrop-filter: blur(24px) saturate(1.08);
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px 8px;
}

.category-nav__add {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.category-nav__add:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-hi);
}

.category-nav__add svg {
  width: 13px;
  height: 13px;
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.cat-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.cat-link.is-active {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cat-link.is-active .cat-count {
  background: rgba(var(--accent-rgb), 0.22);
  color: var(--accent-hi);
}

.cat-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tone-a, #9bb6c9), var(--tone-b, #5f7f96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cat-dot--all {
  background: linear-gradient(145deg, var(--accent-hi), var(--accent));
}

.cat-dot--muted {
  background: rgba(255, 255, 255, 0.28);
}

.cat-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-count {
  flex: none;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.36);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.cat-empty {
  padding: 8px 8px 4px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 9px;
  line-height: 1.6;
}

.cat-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  margin-top: 6px;
  padding: 0 8px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.cat-add:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-hi);
}

.cat-add svg {
  width: 12px;
  height: 12px;
}

.category-nav__hint {
  margin-top: auto;
  padding: 10px 7px 0;
  color: rgba(255, 255, 255, 0.24);
  font-size: 8px;
  line-height: 1.6;
}

.cat-link--muted {
  margin-top: 2px;
}

.tone-amber .cat-dot,
.cat-dot.tone-amber { --tone-a: #ffd998; --tone-b: #e69a43; }
.tone-sky .cat-dot,
.cat-dot.tone-sky { --tone-a: #9bd8fa; --tone-b: #4f9ed3; }
.tone-mint .cat-dot,
.cat-dot.tone-mint { --tone-a: #b6ebd2; --tone-b: #61b895; }
.tone-iris .cat-dot,
.cat-dot.tone-iris { --tone-a: #c6bdf7; --tone-b: #8177cc; }
.tone-rose .cat-dot,
.cat-dot.tone-rose { --tone-a: #f7b8c8; --tone-b: #ce718c; }
.tone-coral .cat-dot,
.cat-dot.tone-coral { --tone-a: #ffba9e; --tone-b: #df7e62; }
.tone-slate .cat-dot,
.cat-dot.tone-slate { --tone-a: #aebdca; --tone-b: #617587; }
.tone-ocean .cat-dot,
.cat-dot.tone-ocean { --tone-a: #91d9da; --tone-b: #3b929d; }
.tone-sand .cat-dot,
.cat-dot.tone-sand { --tone-a: #edd8b4; --tone-b: #bd9a69; }

body.icon-dragging,
body.icon-dragging * {
  cursor: grabbing !important;
}

.desktop-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.desktop-toolbar {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 3px 7px;
}

.desktop-heading h1 {
  margin-top: 2px;
  font-size: 21px;
  font-weight: 590;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.13);
}

.desktop-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.desktop-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.56);
  font-size: 9.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.desktop-actions .btn {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.desktop-actions .btn--primary {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.desktop-filter {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin: 1px 3px 8px;
  padding: 5px 7px 5px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.09);
  color: rgba(255, 255, 255, 0.6);
  font-size: 10.5px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.desktop-filter > span {
  display: grid;
  place-items: center;
  color: var(--accent-hi);
}

.desktop-filter > span svg {
  width: 12px;
  height: 12px;
}

.desktop-filter strong {
  color: var(--accent-hi);
  font-weight: 600;
}

.desktop-filter button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  margin-left: 4px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.66);
  font-size: 9.5px;
}

.desktop-filter button:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.desktop-filter button svg {
  width: 9px;
  height: 9px;
}

.desktop-surface {
  --cell-w: 108px;
  --cell-h: 118px;
  position: relative;
  flex: 1;
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.004));
  transition: background 0.3s, border-color 0.3s;
}

.desktop-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.8px, transparent 1px);
  background-size: 25px 25px;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(ellipse at 52% 42%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse at 52% 42%, #000 0%, transparent 76%);
  pointer-events: none;
  transition: opacity 0.3s;
}

.desktop-surface:hover {
  border-color: rgba(255, 255, 255, 0.075);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
}

.desktop-surface:hover::before {
  opacity: 0.2;
}

.icon-layer {
  position: absolute;
  inset: 7px 6px 8px 8px;
  overflow: visible;
}

.desktop-icon {
  position: absolute;
  top: calc(var(--row, 0) * var(--cell-h));
  left: calc(var(--col, 0) * var(--cell-w));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 96px;
  padding: 5px 2px 7px;
  border: 1px solid transparent;
  border-radius: 17px;
  outline: 0;
  background: transparent;
  color: #fff;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
  transition: opacity 0.25s, filter 0.25s, transform 0.25s var(--ease);
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.055);
}

.desktop-icon:hover .icon-tile {
  transform: translateY(-3px) scale(1.035);
  box-shadow:
    0 14px 28px rgba(3, 10, 16, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.desktop-icon:hover .desktop-icon__label {
  color: #fff;
  background: rgba(9, 15, 21, 0.28);
}

.desktop-icon:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.desktop-icon.is-muted {
  opacity: 0.18;
  filter: grayscale(0.7);
  pointer-events: none;
}

.desktop-icon.is-dragging {
  z-index: 30;
  transition: none;
  cursor: grabbing;
  pointer-events: none;
}

.desktop-icon.is-dragging .icon-tile {
  transform: scale(1.09) rotate(-2.5deg);
  box-shadow:
    0 24px 46px rgba(2, 8, 14, 0.42),
    0 0 0 2px rgba(var(--accent-rgb), 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.desktop-icon.is-dragging .desktop-icon__label {
  color: #fff;
  opacity: 0.8;
}

.desktop-icon.is-drop-target .icon-tile {
  transform: scale(1.13);
  box-shadow:
    0 0 0 3px var(--accent-hi),
    0 16px 32px rgba(2, 8, 14, 0.35);
}

.desktop-icon.is-drop-target .desktop-icon__label {
  color: var(--accent-hi);
}

.desktop-icon__label {
  display: block;
  max-width: 92px;
  overflow: hidden;
  padding: 2px 6px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11.5px;
  font-weight: 480;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.desktop-surface.is-first-render .desktop-icon {
  animation: iconEnter 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 32ms);
}

@keyframes iconEnter {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.desktop-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(330px, 80%);
  color: var(--ink-soft);
  text-align: center;
  transform: translate(-50%, -50%);
}

.desktop-empty > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-hi);
}

.desktop-empty > span svg {
  width: 24px;
  height: 24px;
}

.desktop-empty strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 570;
}

.desktop-empty p {
  margin: 5px 0 15px;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.7;
}

.desktop-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  background: rgba(12, 18, 25, 0.17);
  color: rgba(255, 255, 255, 0.34);
  font-size: 9.5px;
  letter-spacing: 0.015em;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.desktop-hint > span {
  display: grid;
  place-items: center;
}

.desktop-hint svg {
  width: 11px;
  height: 11px;
}

.desktop-foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 5px 0;
}

.autosave {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9.5px;
}

.autosave__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #88d5a4;
  box-shadow: 0 0 0 3px rgba(136, 213, 164, 0.09);
  transition: background 0.2s;
}

.autosave.is-saving .autosave__dot {
  background: var(--accent);
  animation: pulseDot 1s ease infinite;
}

.autosave.is-error {
  color: #ffb6ae;
}

.autosave.is-error .autosave__dot {
  background: var(--danger);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9.5px;
}

.text-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.67);
}

.text-btn svg {
  width: 11px;
  height: 11px;
}

.floating-cards {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.floating-cards .widget {
  position: absolute;
  width: 262px;
  margin: 0;
  pointer-events: auto;
  box-shadow: 0 22px 54px rgba(2, 8, 14, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.floating-cards .widget.is-floating {
  animation: cardFloatIn 0.26s var(--ease) both;
}

@keyframes cardFloatIn {
  from { opacity: 0; transform: translateY(5px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.widget-drag {
  position: absolute;
  top: 50%;
  right: 5px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 17px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(10, 16, 23, 0.35);
  color: rgba(255, 255, 255, 0.38);
  opacity: 0.34;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, color 0.18s ease;
}

.widget:hover .widget-drag,
.widget:focus-within .widget-drag {
  opacity: 1;
}

.widget-drag:hover {
  color: #fff;
}

.widget-drag svg {
  width: 11px;
  height: 11px;
}

.widget.is-dragging-card {
  opacity: 0.28;
}

.card-drag-ghost {
  position: fixed;
  z-index: 180;
  margin: 0;
  pointer-events: none;
  opacity: 0.92;
  transform: rotate(-1deg) scale(1.01);
  box-shadow: 0 28px 70px rgba(2, 8, 14, 0.42);
}

@media (max-width: 900px) {
  .widget-drag {
    opacity: 0.48;
  }
}

/* ---------- 右侧信息卡 ---------- */
.widget-stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 0;
  padding-top: 38px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.widget-stack::-webkit-scrollbar {
  display: none;
}

.widget {
  position: relative;
  flex: none;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 42%),
    rgba(18, 25, 34, 0.46);
  box-shadow: 0 18px 40px rgba(2, 8, 14, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(25px) saturate(1.08);
  backdrop-filter: blur(25px) saturate(1.08);
}

.widget-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.widget-head h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 570;
  letter-spacing: -0.01em;
}

.widget-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.54);
}

.widget-icon svg {
  width: 15px;
  height: 15px;
}

/* 日期卡 */
.widget--date {
  min-height: 174px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.35);
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.45), transparent 38%),
    linear-gradient(146deg, rgba(255, 251, 242, 0.95), rgba(226, 211, 188, 0.87));
  box-shadow: 0 20px 44px rgba(2, 8, 14, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #373027;
}

.widget--date::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(80, 63, 42, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(80, 63, 42, 0.025), 0 0 0 44px rgba(80, 63, 42, 0.018);
  pointer-events: none;
}

.widget-date__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.widget--date .widget-label {
  color: rgba(55, 48, 39, 0.44);
}

.widget-date__year {
  color: rgba(55, 48, 39, 0.43);
  font-size: 9.5px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.widget-date__main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
}

.widget-date__main > strong {
  color: #ce6a4a;
  font-size: 69px;
  font-weight: 540;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.075em;
  line-height: 1;
}

.widget-date__side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
}

.widget-date__side > span {
  color: #433b31;
  font-size: 13px;
  font-weight: 580;
}

.widget-date__side > small {
  color: rgba(55, 48, 39, 0.48);
  font-size: 10px;
}

.widget-date__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(68, 53, 35, 0.1);
  color: rgba(55, 48, 39, 0.54);
  font-size: 9.5px;
}

.widget-date__foot strong {
  color: #4e4437;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.widget-date__almanac {
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(83, 65, 43, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.32);
}

.almanac-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: rgba(55, 48, 39, 0.58);
  font-size: 8.5px;
}

.almanac-head span:last-child {
  color: rgba(55, 48, 39, 0.4);
  font-size: 7.5px;
}

.almanac-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(55, 48, 39, 0.62);
  font-size: 8.5px;
  line-height: 1.55;
}

.almanac-line strong {
  flex: none;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: rgba(94, 145, 111, 0.16);
  color: #4c7a59;
  font-size: 8px;
  font-weight: 650;
}

.almanac-line--ji strong {
  background: rgba(190, 102, 84, 0.14);
  color: #a85846;
}

.almanac-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-date__festival {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(68, 53, 35, 0.1);
}

.festival-label {
  color: rgba(55, 48, 39, 0.42);
  font-size: 8px;
}

.widget-date__festival strong {
  color: #a9553b;
  font-size: 10px;
  font-weight: 650;
}

.festival-days {
  color: rgba(55, 48, 39, 0.58);
  font-size: 8.5px;
}

.widget-date__festival small {
  width: 100%;
  color: rgba(55, 48, 39, 0.34);
  font-size: 7.5px;
}

/* 统计卡 */
.widget--stat {
  min-height: 154px;
}

.widget-stat__numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.widget-stat__numbers > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.widget-stat__numbers strong {
  color: var(--ink);
  font-size: 25px;
  font-weight: 540;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.widget-stat__numbers span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8.5px;
  white-space: nowrap;
}

.widget-stat__track {
  height: 3px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.widget-stat__track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45);
  transition: width 0.8s var(--ease);
}

.widget-stat__note {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.37);
  font-size: 9px;
}

/* 句子卡 */
.widget--quote {
  min-height: 125px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--accent-rgb), 0.16), transparent 58%),
    rgba(18, 25, 34, 0.42);
}

.quote-mark {
  position: absolute;
  top: -15px;
  right: 8px;
  color: rgba(255, 255, 255, 0.06);
  font-family: Georgia, serif;
  font-size: 98px;
  line-height: 1;
  pointer-events: none;
}

.widget--quote blockquote {
  position: relative;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.widget--quote cite {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-style: normal;
}

/* 快捷操作卡 */
.widget--quick {
  padding-bottom: 11px;
}

.widget-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent-hi);
  font-size: 9.5px;
}

.widget-link svg {
  width: 11px;
  height: 11px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 7px;
  padding: 8px 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 0.18s, border-color 0.18s;
}

.quick-action:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

.quick-action__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.13);
  color: var(--accent-hi);
}

.quick-action__icon svg {
  width: 15px;
  height: 15px;
}

.quick-action > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.quick-action strong {
  font-size: 10.5px;
  font-weight: 540;
}

.quick-action small {
  color: rgba(255, 255, 255, 0.32);
  font-size: 8.5px;
}

.quick-action__arrow {
  display: grid;
  flex: none;
  place-items: center;
  color: rgba(255, 255, 255, 0.25);
}

.quick-action__arrow svg {
  width: 12px;
  height: 12px;
}

/* ---------- 右侧导航栏 ---------- */
.right-rail {
  position: fixed;
  top: 22px;
  right: 18px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  padding: 11px 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 29px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.075), transparent 44%),
    rgba(14, 21, 28, 0.44);
  box-shadow: 0 22px 48px rgba(2, 8, 14, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.12);
  backdrop-filter: blur(28px) saturate(1.12);
}

.rail-brand {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  color: var(--accent-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.25s var(--ease), background 0.2s;
}

.rail-brand:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  transform: translateY(-1px);
}

.rail-brand svg {
  width: 22px;
  height: 22px;
}

.rail-sep {
  width: 24px;
  height: 1px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.1);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-height: calc(var(--app-vh, 100vh) - 250px);
  max-height: calc(var(--app-vh, 100dvh) - 250px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.rail-nav::-webkit-scrollbar {
  display: none;
}

.rail-cat-dot {
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--tone-a, #9bb6c9), var(--tone-b, #5f7f96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 2px 6px rgba(0, 0, 0, 0.16);
}

.rail-btn--cat .rail-btn__label {
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-btn--muted {
  opacity: 0.72;
}

.rail-btn--add {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.38);
}

.rail-btn--add:hover {
  border-color: rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-hi);
}

.rail-btn--add svg {
  width: 16px;
  height: 16px;
}

.rail-btn.is-staging-target {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent-hi);
}

.rail-sep--nav {
  margin: 5px 0;
}

.rail-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 58px;
  height: 50px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rail-btn:hover {
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.83);
}

.rail-btn.is-active {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.11);
  color: var(--accent-hi);
}

.rail-btn.is-active::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 3px;
  height: 16px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
  transform: translateY(-50%);
}

.rail-btn__icon {
  display: grid;
  place-items: center;
  height: 19px;
}

.rail-btn__icon svg {
  width: 19px;
  height: 19px;
}

.rail-btn__label {
  font-size: 8.5px;
  font-weight: 480;
  letter-spacing: 0.02em;
  line-height: 1;
}

.rail-spacer {
  flex: 1;
  min-height: 6px;
}

.rail-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 18px;
}

.rail-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #85d5a2;
  box-shadow: 0 0 0 3px rgba(133, 213, 162, 0.07);
}

.rail-settings {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
}

.rail-settings:hover {
  background: rgba(var(--accent-rgb), 0.13);
  color: var(--accent-hi);
}

/* ---------- 底部应用坞 ---------- */
.dock-wrap {
  position: fixed;
  left: calc((var(--app-vw, 100vw) - var(--rail-space)) / 2);
  bottom: 17px;
  z-index: 35;
  max-width: calc(var(--app-vw, 100vw) - var(--rail-space) - 44px);
  transform: translateX(-50%);
  pointer-events: none;
}

.dock {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 68px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 46%),
    rgba(16, 23, 31, 0.47);
  box-shadow: 0 18px 42px rgba(2, 8, 14, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(28px) saturate(1.16);
  backdrop-filter: blur(28px) saturate(1.16);
  pointer-events: auto;
}

.dock-item-wrap {
  position: relative;
  display: flex;
  flex: none;
}

.dock__remove {
  position: absolute;
  top: -5px;
  right: -4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(20, 27, 36, 0.92);
  color: rgba(255, 255, 255, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.dock-item-wrap:hover .dock__remove,
.dock__remove:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.dock__remove:hover {
  background: rgba(255, 124, 113, 0.9);
  color: #fff;
}

.dock__remove svg {
  width: 9px;
  height: 9px;
}

.dock__hint {
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
  white-space: nowrap;
}

.dock.is-drop-target {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1), 0 18px 42px rgba(2, 8, 14, 0.25);
}

.dock__item {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  transition: background 0.18s, transform 0.24s var(--ease);
}

.dock__item .icon-tile {
  --tile-size: 38px;
  border-radius: 11px;
  box-shadow: 0 5px 13px rgba(3, 10, 16, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dock__item:hover {
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-5px);
}

.dock__item:active {
  transform: translateY(-2px) scale(0.95);
}

.dock__item::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(14, 20, 27, 0.9);
  color: rgba(255, 255, 255, 0.82);
  font-size: 9.5px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s, transform 0.16s;
  pointer-events: none;
}

.dock__item:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dock__divider {
  width: 1px;
  height: 25px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.12);
}

.dock__plus {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.48);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.dock__plus:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.11);
  color: var(--accent-hi);
}

.dock__plus svg {
  width: 17px;
  height: 17px;
}

/* ---------- 网址库实时匹配 ---------- */
.link-lookup {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 11px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  animation: linkLookupIn 0.26s var(--ease) both;
}

@keyframes linkLookupIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.link-lookup__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55);
}

.link-lookup__icon svg {
  width: 14px;
  height: 14px;
}

.link-lookup__copy {
  flex: 1;
  min-width: 0;
}

.link-lookup__copy strong {
  display: block;
  color: rgba(255, 255, 255, 0.77);
  font-size: 10.5px;
  font-weight: 560;
  line-height: 1.5;
}

.link-lookup__copy p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
  line-height: 1.65;
}

.link-lookup__badge {
  flex: none;
  align-self: center;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(133, 213, 162, 0.12);
  color: #a7e7bf;
  font-size: 8px;
  font-weight: 650;
}

.link-lookup.is-loading .link-lookup__icon {
  color: var(--accent-hi);
  animation: lookupPulse 1s ease infinite;
}

.link-lookup.is-existing {
  border-color: rgba(123, 207, 238, 0.18);
  background: rgba(88, 159, 188, 0.07);
}

.link-lookup.is-existing .link-lookup__icon {
  background: rgba(123, 207, 238, 0.12);
  color: #a5e2fa;
}

.link-lookup.is-new {
  border-color: rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.065);
}

.link-lookup.is-new .link-lookup__icon {
  background: rgba(var(--accent-rgb), 0.13);
  color: var(--accent-hi);
}

.link-lookup.is-added {
  border-color: rgba(133, 213, 162, 0.17);
  background: rgba(133, 213, 162, 0.06);
}

.link-lookup.is-added .link-lookup__icon {
  background: rgba(133, 213, 162, 0.13);
  color: #a7e7bf;
}

.link-lookup.is-error {
  border-color: rgba(255, 124, 113, 0.18);
  background: rgba(255, 124, 113, 0.07);
}

.link-lookup.is-error .link-lookup__icon {
  background: rgba(255, 124, 113, 0.12);
  color: #ffb0a8;
}

@keyframes lookupPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- 文件夹弹层 ---------- */
.folder-dialog {
  width: min(680px, 100%);
}

.folder-dialog__icon {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(150deg, #fffdf5, #e5dac5);
  color: #826136;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-height: 124px;
}

.folder-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: background 0.18s, border-color 0.18s;
}

.folder-item:hover {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
}

.folder-item__open {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.folder-item__open .icon-tile {
  --tile-size: 39px;
}

.folder-item__name {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.83);
  font-size: 11px;
  font-weight: 470;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-item__remove {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.26);
  opacity: 0;
  transition: opacity 0.16s, background 0.16s, color 0.16s;
}

.folder-item:hover .folder-item__remove {
  opacity: 1;
}

.folder-item__remove:hover {
  background: rgba(255, 124, 113, 0.13);
  color: #ffb2aa;
}

.folder-item__remove svg {
  width: 12px;
  height: 12px;
}

.folder-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 156px;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--ink-faint);
  text-align: center;
}

.folder-empty > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-hi);
}

.folder-empty svg {
  width: 20px;
  height: 20px;
}

.folder-empty strong {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 550;
}

.folder-empty p {
  margin-top: 4px;
  font-size: 10.5px;
}

/* ---------- 确认框 ---------- */
.confirm-dialog {
  padding: 27px;
}

.confirm-dialog__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 124, 113, 0.17);
  border-radius: 14px;
  background: rgba(255, 124, 113, 0.1);
  color: #ffa49b;
}

.confirm-dialog__icon svg {
  width: 21px;
  height: 21px;
}

.confirm-dialog h2 {
  margin-top: 4px;
  font-size: 19px;
  font-weight: 590;
  letter-spacing: -0.02em;
}

.confirm-dialog__text {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.7;
}

.confirm-dialog .dialog__foot {
  margin-top: 22px;
}

/* ---------- 启动错误 ---------- */
.boot-error {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 13, 19, 0.6);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.boot-error__card {
  width: min(490px, 100%);
  padding: 29px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 25px;
  background: rgba(19, 26, 35, 0.91);
  box-shadow: var(--shadow-lg);
}

.boot-error__icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 124, 113, 0.18);
  border-radius: 14px;
  background: rgba(255, 124, 113, 0.1);
  color: #ffa79e;
}

.boot-error__icon svg {
  width: 22px;
  height: 22px;
}

.boot-error__card h2 {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.boot-error__card > p:not(.eyebrow) {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.boot-error__card code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-hi);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.boot-error__actions {
  display: flex;
  gap: 8px;
  margin-top: 21px;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 30px;
  background: #18222c;
  color: #fff;
  font-size: 16px;
}

/* ---------- 响应式 ---------- */
.widget[hidden],
.widget-stack[hidden] {
  display: none !important;
}

/* ---------- 分类视图 / 便签 ---------- */
.category-exit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  margin-left: 2px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-size: 8.5px;
  transition: background 0.16s, color 0.16s;
}

.category-exit:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.category-exit svg {
  width: 11px;
  height: 11px;
}

.widget--note {
  cursor: pointer;
}

.note-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.note-text {
  min-height: 62px;
  margin: 0;
  color: #f4d58d;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-text.is-placeholder {
  color: rgba(255, 255, 255, 0.26);
}

.note-meta {
  color: rgba(255, 255, 255, 0.24);
  font-size: 8px;
}

.note-color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 4px 0;
}

.note-color {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, border-color 0.15s;
}

.note-color:hover {
  transform: scale(1.08);
}

.note-color.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- 暂存区 ---------- */
.staging-tray {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  width: calc(var(--cell-w) * 2 + 2px);
  padding: 7px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.06), transparent 46%),
    rgba(16, 23, 31, 0.4);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(2, 8, 14, 0.16);
}

.staging-tray__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 2px 6px;
}

.staging-tray__head > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 8.5px;
  font-weight: 550;
  letter-spacing: 0.04em;
}

.staging-tray__head svg {
  width: 11px;
  height: 11px;
  color: var(--accent-hi);
}

.staging-tray__head small {
  color: rgba(255, 255, 255, 0.28);
  font-size: 7px;
  white-space: nowrap;
}

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

.staging-item,
.staging-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: calc(var(--cell-h) - 30px);
  padding: 4px 2px;
  border-radius: 9px;
}

.staging-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: grab;
  touch-action: none;
}

.staging-item:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.1);
}

.staging-item .icon-tile {
  --tile-size: 40px;
  border-radius: 11px;
}

.staging-item__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.66);
  font-size: 8px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staging-slot {
  border: 1px dashed rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.14);
}

.staging-slot svg {
  width: 13px;
  height: 13px;
}

body.staging-dragging,
body.staging-dragging * {
  cursor: grabbing !important;
}

.staging-ghost {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.35));
  opacity: 0.92;
  transform: translate(-50%, -50%) scale(1.02);
}

.staging-ghost .icon-tile {
  --tile-size: 54px;
}

.desktop-surface.is-staging-target {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.04);
}

.desktop-icon--locked {
  cursor: pointer;
}

.desktop-icon--locked:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.desktop-icon__lock {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(12, 19, 26, 0.78);
  color: rgba(255, 255, 255, 0.56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.desktop-icon__lock svg {
  width: 9px;
  height: 9px;
}

.locked-folder__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.locked-folder__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
}

.locked-folder__item:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.08);
  color: #fff;
}

.locked-folder__item .icon-tile {
  --tile-size: 42px;
}

.locked-folder__empty {
  grid-column: 1 / -1;
  padding: 22px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 10px;
  text-align: center;
}

/* ---------- 天气卡 ---------- */
.widget--weather {
  padding: 13px;
}

.weather-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 8px;
}

.weather-head__label {
  color: rgba(255, 255, 255, 0.44);
  font-size: 8.5px;
  font-weight: 550;
  letter-spacing: 0.12em;
}

.weather-head__city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 560;
}

.weather-head__city::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 7px rgba(var(--accent-rgb), 0.6);
}

.weather-frame {
  position: relative;
  height: 96px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: linear-gradient(145deg, #fefffe, #eef6f2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 18px rgba(2, 8, 14, 0.1);
}

.weather-frame iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: 96px;
  border: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transform-origin: center;
}

.weather-source {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.24);
  font-size: 7.5px;
  text-align: right;
}

.widget--weather .widget-head {
  margin-bottom: 9px;
}

/* ---------- 影视 / 音乐卡片 ---------- */
.site-cards {
  display: contents;
}

.movie-search {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 4px 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.movie-search > span {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.32);
}

.movie-search svg {
  width: 13px;
  height: 13px;
}

.movie-search input {
  flex: 1;
  min-width: 0;
  height: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 9.5px;
  outline: none;
}

.movie-search input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.movie-search button {
  flex: none;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--accent-hi);
  font-size: 8.5px;
}

.movie-search button:hover {
  background: rgba(var(--accent-rgb), 0.3);
}

.movie-hint {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 7.5px;
}

.music-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-cover {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.3), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.music-cover svg {
  width: 22px;
  height: 22px;
}

.music-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.music-info strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 10.5px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-info span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.3);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-toggle {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent-hi);
}

.music-toggle:disabled {
  opacity: 0.35;
}

.music-toggle svg {
  width: 15px;
  height: 15px;
}

.music-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 3px;
}

.music-nav {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
}

.music-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.music-nav:disabled {
  opacity: 0.25;
}

.music-nav svg {
  width: 13px;
  height: 13px;
}

.music-progress {
  height: 3px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.music-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-hi), var(--accent));
}

.music-time {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.26);
  font-size: 7.5px;
  font-variant-numeric: tabular-nums;
}

/* 影视弹层 */
.movie-dialog {
  width: min(900px, calc(var(--app-vw, 100vw) - 34px));
}

.movie-modal-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.movie-modal-search input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 11px;
  outline: none;
}

.movie-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 11px;
  min-height: 160px;
  max-height: min(56vh, 480px);
  overflow: auto;
  padding: 2px;
}

.movie-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-align: left;
}

.movie-result:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.07);
}

.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-poster__empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.24);
}

.movie-poster__empty svg {
  width: 26px;
  height: 26px;
}

.movie-result strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 9.5px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-result small {
  color: rgba(255, 255, 255, 0.3);
  font-size: 8px;
}

.movie-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  text-align: center;
}

.movie-empty strong {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

/* ---------- 站长通知 ---------- */
.notice-stack {
  position: fixed;
  right: 104px;
  bottom: 98px;
  z-index: 145;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(var(--app-vw, 100vw) - 44px));
}

.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 15px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), transparent 46%),
    rgba(20, 27, 36, 0.96);
  box-shadow: 0 18px 44px rgba(2, 8, 14, 0.38);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  animation: reminderIn 0.32s var(--ease) both;
}

.notice-card__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent-hi);
}

.notice-card__icon svg {
  width: 16px;
  height: 16px;
}

.notice-card__body {
  flex: 1;
  min-width: 0;
}

.notice-card__body strong {
  display: block;
  color: #fff;
  font-size: 10.5px;
}

.notice-card__body p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.notice-card__body small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 7.5px;
}

.notice-card__confirm {
  flex: none;
  align-self: center;
  height: 26px;
  padding: 0 8px;
  font-size: 8px;
}

@media (max-width: 900px) {
  .notice-stack {
    right: 76px;
    bottom: 86px;
  }
}

@media (max-width: 560px) {
  .notice-stack {
    right: 12px;
    bottom: 80px;
  }
}

/* ---------- 便签提醒 ---------- */
.widget--note .widget-link {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
}

.widget--note .widget-link svg {
  width: 10px;
  height: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.widget--note .widget-link:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.reminder-pop {
  position: fixed;
  top: 24px;
  right: 104px;
  z-index: 140;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: min(360px, calc(var(--app-vw, 100vw) - 40px));
  padding: 13px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 14px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), transparent 46%),
    rgba(20, 27, 36, 0.94);
  box-shadow: 0 18px 44px rgba(2, 8, 14, 0.34);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  animation: reminderIn 0.32s var(--ease) both;
}

.reminder-pop__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent-hi);
}

.reminder-pop__icon svg {
  width: 16px;
  height: 16px;
}

.reminder-pop__copy {
  flex: 1;
  min-width: 0;
}

.reminder-pop__copy strong {
  color: #fff;
  font-size: 10.5px;
}

.reminder-pop__copy p {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.reminder-pop__actions {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4px;
}

.reminder-pop__actions .btn {
  height: 24px;
  padding: 0 7px;
  font-size: 8px;
}

@keyframes reminderIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .reminder-pop {
    top: 12px;
    right: 76px;
  }
}

@media (max-width: 560px) {
  .reminder-pop {
    right: 12px;
  }
}

@media (max-width: 1180px) {
  .user-chip {
    padding: 0 7px;
    max-width: 40px;
  }

  .user-chip .top-action__label {
    display: none;
  }

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

  .workspace--no-widgets {
    grid-template-columns: minmax(0, 1fr);
  }

  .widget-stack {
    display: none;
  }

  .topbar {
    grid-template-columns: minmax(210px, 0.72fr) minmax(380px, 1fr) minmax(120px, 0.6fr);
    gap: 22px;
  }

  .desktop-surface {
    --cell-w: 106px;
  }
}

@media (max-width: 900px) {
  body {
    --rail-space: 88px;
  }

  .app-shell {
    padding: 17px var(--rail-space) 0 20px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "clock actions"
      "search search";
    gap: 10px 16px;
  }

  .clock-block {
    grid-area: clock;
    padding-top: 2px;
  }

  .clock-kicker {
    display: none;
  }

  .clock-time {
    font-size: 47px;
  }

  .clock-date-row {
    margin-top: 6px;
    font-size: 11px;
  }

  .search-area {
    grid-area: search;
    padding-top: 0;
  }

  .search-box {
    height: 54px;
    border-radius: 17px;
  }

  .search-submit {
    height: 41px;
    min-width: 84px;
  }

  .top-actions {
    grid-area: actions;
    padding-top: 4px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 82px;
  }

  .workspace--no-widgets {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-nav {
    flex-direction: row;
    align-items: center;
    max-height: none;
    padding: 7px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 14px;
    gap: 2px;
  }

  .category-nav__head {
    flex: none;
    padding: 0 2px;
  }

  .category-nav__head .eyebrow {
    display: none;
  }

  .cat-list {
    flex-direction: row;
    gap: 2px;
  }

  .cat-link {
    flex: none;
    min-height: 28px;
    padding: 4px 8px;
    white-space: nowrap;
  }

  .cat-name {
    flex: none;
    max-width: 96px;
  }

  .cat-count,
  .category-nav__hint,
  .cat-empty {
    display: none;
  }

  .cat-add {
    flex: none;
    min-height: 28px;
    margin-top: 0;
    padding: 0 9px;
    border-style: solid;
    white-space: nowrap;
  }

  .right-rail {
    top: 14px;
    right: 10px;
    bottom: 14px;
    width: 62px;
    padding: 9px 4px 8px;
    border-radius: 24px;
  }

  .rail-btn {
    width: 51px;
    height: 45px;
    border-radius: 13px;
  }

  .rail-btn__icon svg {
    width: 17px;
    height: 17px;
  }

  .rail-btn__label {
    font-size: 8px;
  }

  .desktop-surface {
    --cell-w: 98px;
    --cell-h: 112px;
  }

  .desktop-icon {
    width: 91px;
  }

  .desktop-hint {
    display: none;
  }

  .dock-wrap {
    bottom: 12px;
  }

  .dock {
    min-height: 62px;
    border-radius: 20px;
  }

  .dock__item {
    width: 42px;
    height: 44px;
  }

  .dock__item .icon-tile {
    --tile-size: 35px;
  }

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

@media (max-width: 680px) {
  body {
    --rail-space: 76px;
  }

  .app-shell {
    padding-left: 14px;
    padding-right: var(--rail-space);
  }

  .top-actions .top-action__label {
    display: none;
  }

  .top-action {
    width: 31px;
    padding: 0;
    justify-content: center;
  }

  .desktop-toolbar {
    align-items: center;
  }

  .desktop-heading h1 {
    font-size: 18px;
  }

  .desktop-heading .eyebrow {
    display: none;
  }

  #createFolderBtn {
    width: 32px;
    padding: 0;
    font-size: 0;
    gap: 0;
  }

  .desktop-actions .btn--sm {
    height: 32px;
  }

  #createAppBtn {
    padding: 0 10px;
    font-size: 10.5px;
  }

  .search-box {
    height: 50px;
    padding-left: 14px;
  }

  .search-box input {
    font-size: 14px;
  }

  .search-submit {
    min-width: 64px;
    height: 38px;
    padding: 0 11px;
    font-size: 11.5px;
  }

  .search-submit__icon {
    display: none;
  }

  .hot-searches {
    display: none;
  }

  .search-meta {
    justify-content: flex-end;
    min-height: 22px;
    padding-top: 5px;
  }

  .url-hint {
    font-size: 9.5px;
  }

  .clock-time {
    font-size: 41px;
  }

  #clockGreeting {
    display: none;
  }

  .clock-sep {
    display: none;
  }

  .desktop-surface {
    --cell-w: 90px;
    --cell-h: 104px;
  }

  .desktop-icon {
    width: 84px;
  }

  .icon-tile {
    --tile-size: 52px;
  }

  .desktop-icon__label {
    max-width: 82px;
    font-size: 10.5px;
  }

  .right-rail {
    width: 54px;
  }

  .rail-btn {
    width: 44px;
    height: 42px;
  }

  .rail-btn__label {
    display: none;
  }

  .rail-brand {
    width: 32px;
    height: 32px;
  }

  .rail-brand svg {
    width: 19px;
    height: 19px;
  }

  .dock {
    gap: 2px;
    padding: 7px 8px;
  }

  .dock__item {
    width: 38px;
    height: 41px;
  }

  .dock__item .icon-tile {
    --tile-size: 32px;
  }

  .dock__item:nth-of-type(n + 7) {
    display: none;
  }

  .dock-item-wrap:nth-of-type(n + 7) {
    display: none;
  }

  .dock__plus {
    width: 33px;
    height: 33px;
  }

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

  .folder-dialog {
    padding: 20px;
  }
}

@media (max-height: 820px) {
  .widget-stack {
    padding-top: 28px;
  }

  .widget--date {
    min-height: 158px;
  }

  .widget-date__main > strong {
    font-size: 58px;
  }

  .widget--stat {
    min-height: 140px;
  }

  .widget--quick {
    display: none;
  }
}

@media (max-height: 720px) {
  .app-shell {
    padding-top: 15px;
  }

  .clock-time {
    font-size: 48px;
  }

  .clock-date-row {
    margin-top: 5px;
    font-size: 11px;
  }

  .search-box {
    height: 53px;
  }

  .search-submit {
    height: 40px;
  }

  .workspace {
    padding-top: 10px;
    padding-bottom: 74px;
  }

  .desktop-toolbar {
    padding-bottom: 3px;
  }

  .desktop-heading h1 {
    font-size: 18px;
  }

  .desktop-heading .eyebrow {
    display: none;
  }

  .desktop-surface {
    --cell-w: 93px;
    --cell-h: 102px;
    min-height: 270px;
  }

  .icon-tile {
    --tile-size: 51px;
  }

  .desktop-icon__label {
    font-size: 10.5px;
  }

  .desktop-icon {
    gap: 6px;
    width: 86px;
  }

  .desktop-hint,
  .desktop-foot {
    display: none;
  }

  .widget-stack {
    padding-top: 24px;
    gap: 10px;
  }

  .widget {
    padding: 14px;
    border-radius: 19px;
  }

  .right-rail {
    top: 15px;
    bottom: 15px;
  }

  .rail-btn {
    height: 45px;
  }

  .rail-sep {
    margin: 6px 0;
  }

  .dock-wrap {
    bottom: 10px;
  }

  .dock {
    min-height: 57px;
    padding: 7px 10px;
  }

  .dock__item {
    width: 40px;
    height: 42px;
  }

  .dock__item .icon-tile {
    --tile-size: 33px;
  }

  .dock__plus {
    width: 33px;
    height: 33px;
  }
}

@media (max-height: 600px) {
  .widget--quote {
    display: none;
  }

  .clock-time {
    font-size: 40px;
  }

  .search-box {
    height: 48px;
  }

  .search-submit {
    height: 36px;
  }

  .search-meta {
    min-height: 20px;
    padding-top: 4px;
  }

  .hot-searches::before {
    display: none;
  }

  .workspace {
    padding-top: 7px;
    padding-bottom: 67px;
  }

  .desktop-surface {
    --cell-w: 86px;
    --cell-h: 93px;
    min-height: 210px;
  }

  .icon-tile {
    --tile-size: 46px;
  }

  .desktop-icon {
    gap: 4px;
    padding-top: 3px;
  }

  .desktop-icon__label {
    font-size: 9.5px;
  }

  .desktop-hint,
  .desktop-foot,
  .desktop-heading .eyebrow {
    display: none;
  }

  .right-rail {
    top: 10px;
    bottom: 10px;
  }

  .rail-brand {
    width: 32px;
    height: 32px;
  }

  .rail-btn {
    height: 40px;
  }

  .rail-btn__label {
    font-size: 7.5px;
  }

  .dock {
    min-height: 51px;
    padding: 6px 9px;
  }

  .dock__item {
    width: 37px;
    height: 38px;
  }

  .dock__item .icon-tile {
    --tile-size: 30px;
  }

  .dock__plus {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallpaper__image {
    animation: none;
  }
}


/* ---------- 大屏可读性增强 ---------- */
@media (min-width: 1600px) {
  .clock-time {
    font-size: clamp(68px, 5.6vw, 96px);
  }

  .search-box input {
    font-size: 16px;
  }

  .search-box {
    min-height: 62px;
  }

  .rail-btn__label,
  .rail-btn--cat .rail-btn__label {
    font-size: 10.5px;
  }

  .desktop-icon__label {
    font-size: 11px;
  }

  .widget {
    padding: 20px;
  }

  .widget-label {
    font-size: 10.5px;
  }

  .widget-head h2 {
    font-size: 17px;
  }

  .widget-link {
    font-size: 10px;
  }

  .widget-date__year {
    font-size: 11px;
  }

  .widget-date__main > strong {
    font-size: 78px;
  }

  .widget-date__side span {
    font-size: 14px;
  }

  .widget-date__side small {
    font-size: 11px;
  }

  .almanac-head,
  .almanac-line {
    font-size: 10px;
  }

  .widget-date__festival strong {
    font-size: 12px;
  }

  .festival-label,
  .festival-days,
  .widget-date__festival small,
  .widget-date__foot {
    font-size: 10px;
  }

  .widget-stat__numbers span,
  .widget-stat__note {
    font-size: 10px;
  }

  .quick-action strong {
    font-size: 11px;
  }

  .quick-action small,
  .note-meta {
    font-size: 9px;
  }

  .note-text {
    font-size: 11px;
  }

  .movie-search input,
  .movie-search button,
  .movie-hint {
    font-size: 10.5px;
  }

  .music-info strong {
    font-size: 12px;
  }

  .music-info span,
  .music-time {
    font-size: 9.5px;
  }

  .dock-item__label {
    font-size: 10px;
  }
}


/* ---------- 界面缩放控制 / 文字锐化 / 分类图标 ---------- */
.zoom-control {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 3px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.34), rgba(var(--accent-rgb), 0.14)), rgba(16, 23, 31, 0.62);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.zoom-btn,
.zoom-value,
.zoom-save {
  height: 24px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}

.zoom-btn {
  min-width: 23px;
  background: rgba(var(--accent-rgb), 0.24);
  color: var(--accent-hi);
  font-size: 15px;
}

.zoom-btn:hover {
  background: rgba(var(--accent-rgb), 0.42);
  color: #fff;
}

.zoom-value {
  min-width: 42px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
  font-size: 9px;
}

.zoom-value:hover {
  color: #fff;
}

.zoom-save {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  color: #1e2a34;
  font-size: 9px;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.28);
}

.zoom-save:hover {
  filter: brightness(1.08);
}

#uiScaleRoot {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-synthesis: none;
}

.rail-btn--cat {
  width: 64px;
  height: 58px;
  gap: 4px;
}

.rail-btn--cat .rail-btn__icon {
  height: 25px;
}

.rail-btn--cat .rail-btn__icon > svg,
.rail-btn--cat .rail-btn__icon > img,
.rail-btn--cat .rail-btn__icon .rail-cat-dot {
  width: 25px;
  height: 25px;
}

.rail-btn--cat .rail-cat-dot {
  border-radius: 8px;
}

.rail-btn--cat .rail-btn__label {
  max-width: 62px;
  font-size: 9.5px;
}

@media (max-width: 560px) {
  .zoom-control {
    height: 30px;
  }

  .zoom-save {
    display: none;
  }
}


/* ---------- 缩放文字按钮 / 微软雅黑锐化 ---------- */
body,
button,
input,
select,
textarea {
  font-family: var(--font-ui);
}

body,
#uiScaleRoot {
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.zoom-control {
  gap: 4px;
  padding: 3px;
}

.zoom-btn {
  min-width: 44px;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  color: #1e2a34;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.26);
}

.zoom-btn:hover {
  filter: brightness(1.08);
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  color: #101820;
}

.zoom-btn:active {
  transform: translateY(1px);
}


/* ---------- 首页百分比布局：卡片随容器缩放，不再固定 278px ---------- */
.workspace {
  grid-template-columns: minmax(0, 1fr) minmax(210px, min(25%, 280px));
  gap: clamp(12px, 1.5%, 22px);
  min-width: 0;
}

.widget-stack {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.widget {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

.widget-head,
.widget-date__head,
.widget-date__main,
.music-main {
  min-width: 0;
}

.widget-date__main {
  flex-wrap: wrap;
}

.widget-stat__numbers {
  gap: clamp(3px, 0.5vw, 6px);
}

.widget-stat__numbers strong {
  font-size: clamp(20px, 2vw, 28px);
}

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

@media (min-width: 901px) {
  .app-shell {
    width: calc(100% - var(--rail-space));
    padding-right: 16px;
    box-sizing: border-box;
  }
}
.widget-stack {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.widget {
  max-width: 100%;
  min-width: 0;
}

/* ---------- 搜索引擎切换可见性 ---------- */
.search-meta {
  flex-wrap: wrap;
  row-gap: 6px;
}

.hot-searches {
  min-width: 0;
  flex-wrap: wrap;
}

.engine-picker {
  margin-left: auto;
}

.engine-picker select {
  height: 28px;
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.14);
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.12);
}

.engine-picker__chevron {
  color: var(--accent-hi);
}

/* ---------- 大屏纯自适应：不缩放整页 ---------- */
@media (min-width: 1800px) {
  body {
    --rail-space: 150px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  }

  .widget-label {
    font-size: 12px;
  }

  .widget-head h2 {
    font-size: 20px;
  }

  .search-box input {
    font-size: 17px;
  }

  .rail-btn--cat {
    width: 78px;
    height: 70px;
  }

  .rail-btn--cat .rail-btn__icon,
  .rail-btn--cat .rail-btn__icon > svg,
  .rail-btn--cat .rail-btn__icon > img,
  .rail-btn--cat .rail-btn__icon .rail-cat-dot {
    width: 32px;
    height: 32px;
  }

  .rail-btn__label,
  .rail-btn--cat .rail-btn__label {
    font-size: 12px;
  }

  .right-rail {
    width: 92px;
    right: 28px;
  }

  .desktop-surface {
    --cell-w: 128px;
    --cell-h: 136px;
  }

  .desktop-icon {
    width: 112px;
  }

  .desktop-icon__label {
    font-size: 12px;
  }
}

.engine-picker {
  flex: 0 0 auto;
  min-width: 96px;
  width: 96px;
  z-index: 2;
}

.engine-picker select {
  display: block;
  width: 96px;
  min-width: 96px;
  height: 28px;
  padding: 0 22px 0 9px;
  opacity: 1;
  visibility: visible;
}

.search-meta {
  overflow: visible;
}

.engine-cycle {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.12));
  color: #fff;
  font-weight: 650;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.14);
}

.engine-cycle:hover {
  border-color: rgba(var(--accent-rgb), 0.75);
  background: rgba(var(--accent-rgb), 0.3);
}

.engine-cycle #engineCycleLabel {
  font-size: 9.5px;
}

.engine-picker[hidden] { display: none !important; }

.engine-cycle {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  height: 25px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.34), rgba(var(--accent-rgb), 0.16));
  color: #fff;
  font-size: 9.5px;
  font-weight: 650;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.16);
}

.engine-cycle:hover {
  border-color: rgba(var(--accent-rgb), 0.8);
  background: rgba(var(--accent-rgb), 0.3);
}

.engine-cycle svg {
  width: 12px;
  height: 12px;
}

.guest-banner {
  position: fixed;
  left: 24px;
  bottom: 96px;
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 12px;
  background: rgba(18, 26, 35, 0.9);
  color: rgba(255,255,255,0.62);
  font-size: 9px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.3);
}
.guest-banner strong { color: #fff; font-size: 10px; }
.guest-banner a { color: var(--accent-hi); font-weight: 650; }

.rail-brand__logo { width: 32px; height: 32px; object-fit: contain; border-radius: 9px; }

.wallpaper-trigger { border-color: rgba(var(--accent-rgb), 0.55); background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.13)); color: #fff; box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.15); }
.wallpaper-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: rgba(255,255,255,0.4); font-size: 9px; }
.wallpaper-toolbar #bingWallpaperStatus { flex: 1; min-width: 140px; }
.bing-wallpaper-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 54vh; overflow: auto; padding: 2px; }
.bing-wallpaper-item { position: relative; overflow: hidden; padding: 0; border: 1px solid rgba(255,255,255,0.1); border-radius: 11px; background: rgba(255,255,255,0.04); color: #fff; text-align: left; }
.bing-wallpaper-item:hover { border-color: rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.2); }
.bing-wallpaper-item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bing-wallpaper-item span { display: block; padding: 6px 7px; overflow: hidden; color: rgba(255,255,255,0.65); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.widget--note { border-color: color-mix(in srgb, var(--note-color, #f4d58d) 45%, rgba(255,255,255,0.12)); background: linear-gradient(145deg, color-mix(in srgb, var(--note-color, #f4d58d) 32%, rgba(20,27,36,0.92)), rgba(18,25,34,0.9)); }
.widget--note .widget-label { color: color-mix(in srgb, var(--note-color, #f4d58d) 70%, #fff); }
.widget--note .note-meta { color: rgba(255,255,255,0.42); }
@media (max-width: 680px) { .bing-wallpaper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 1100px) {
  .top-actions { gap: 4px; flex-wrap: nowrap; }
  .top-actions .top-action__label { display: none; }
  .top-actions .top-action { width: 34px; min-width: 34px; padding: 0; justify-content: center; }
  .user-chip { max-width: 38px; padding: 0 4px; }
  .engine-cycle { margin-left: auto; }
}

@media (max-width: 700px) {
  .top-actions { gap: 3px; }
  .top-actions .top-action { width: 30px; min-width: 30px; }
  .user-chip { max-width: 32px; }
}
