/* WIDECK — an intentionally quiet, card-first personal space */

html.wideck-page-active,
body.wideck-page-active {
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

main.wideck-main.page-main[data-page-key="wideck"]:not([data-page-key="music"]):not([data-page-key="home"]) {
  --wideck-ink: #1d1d1f;
  --wideck-muted: #6e6e73;
  --wideck-line: rgba(60, 60, 67, .12);
  --wideck-blue: #0071e3;
  --wideck-blue-deep: #005bb8;
  min-height: calc(100svh - 160px);
  padding-top: clamp(24px,2.6vw,40px);
  color: var(--wideck-ink);
}

.wideck-stage { width: 100%; max-width: none; padding-top: 2px; }

/* The page actions live in the shared navigation only while WIDECK is active. */
.wideck-nav-trigger {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #0f172a;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38),0 5px 14px rgba(15,23,42,.05);
  cursor: pointer;
  transition: transform .24s cubic-bezier(.22,1,.36,1),border-color .24s ease,background .24s ease,box-shadow .24s ease,color .24s ease;
}
.wideck-nav-trigger::before {
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background: radial-gradient(circle 36px at var(--local-glow-x,50%) var(--local-glow-y,50%),rgba(20,184,166,.18),rgba(37,99,235,.08) 44%,transparent 78%),radial-gradient(circle 120px at var(--local-glow-x,50%) var(--local-glow-y,50%),rgba(20,184,166,.1),transparent 70%);
  content: "";
  filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
  transition: opacity .18s ease;
}
.wideck-nav-trigger:hover,
.wideck-nav-trigger:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58),0 9px 24px rgba(15,23,42,.09);
}
.wideck-nav-trigger:hover::before,
.wideck-nav-trigger:focus-visible::before,
.wideck-nav-trigger.is-local-glowing::before { opacity: .9; }
.wideck-nav-trigger [data-icon] {
  position: relative;
  z-index: 1;
  display: block;
  width: 20px;
  height: 20px;
  transform: rotate(0deg);
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.wideck-nav-trigger[aria-expanded="true"] [data-icon] { transform: rotate(45deg); }
.wideck-nav-trigger.is-arriving [data-icon] { animation: wideck-plus-arrive .68s cubic-bezier(.22,.8,.22,1) .12s both; }
@keyframes wideck-plus-arrive { 0%,100% { transform: rotate(0deg); } 24% { transform: rotate(-7deg); } 48% { transform: rotate(6deg); } 68% { transform: rotate(-3deg); } 84% { transform: rotate(2deg); } }

.wideck-nav-menu {
  position: fixed;
  z-index: 120;
  width: 148px;
  padding: 6px;
  border: 1px solid rgba(60,60,67,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 18px 50px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.82);
  transform-origin: top right;
  animation: wideck-nav-menu-in .18s cubic-bezier(.2,.8,.2,1) both;
}
.wideck-nav-menu[hidden] { display: none; }
.wideck-nav-menu button,
.wideck-nav-menu a {
  display: flex;
  width: 100%;
  min-height: 40px;
  padding: 0 13px;
  align-items: center;
  border: 0;
  border-radius: 12px;
  color: #1d1d1f;
  background: transparent;
  cursor: pointer;
  font: 650 13px/1 system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC",sans-serif;
  text-align: left;
  transition: background .16s ease,color .16s ease;
}
.wideck-nav-menu button:hover,
.wideck-nav-menu button:focus-visible,
.wideck-nav-menu a:hover,
.wideck-nav-menu a:focus-visible { color: #0066cc; background: rgba(0,113,227,.09); outline: none; }
.wideck-nav-menu button:active,
.wideck-nav-menu a:active { background: rgba(0,113,227,.15); }
.wideck-nav-menu [data-wideck-make] { margin-top: 4px; border-top: 1px solid rgba(60,60,67,.1); border-radius: 0 0 12px 12px; }
@keyframes wideck-nav-menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }

:root[data-theme="dark"] .wideck-nav-trigger { color: #e5eef8; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 8px 22px rgba(0,0,0,.18); }
:root[data-theme="dark"] .wideck-nav-trigger:hover,
:root[data-theme="dark"] .wideck-nav-trigger:focus-visible { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); }
:root[data-theme="dark"] .wideck-nav-menu { border-color: rgba(255,255,255,.12); background: rgba(32,32,34,.92); box-shadow: 0 20px 54px rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.1); }
:root[data-theme="dark"] .wideck-nav-menu button,
:root[data-theme="dark"] .wideck-nav-menu a { color: #f5f5f7; }
:root[data-theme="dark"] .wideck-nav-menu button:hover,
:root[data-theme="dark"] .wideck-nav-menu button:focus-visible,
:root[data-theme="dark"] .wideck-nav-menu a:hover,
:root[data-theme="dark"] .wideck-nav-menu a:focus-visible { color: #64b5ff; background: rgba(10,132,255,.16); }
:root[data-theme="dark"] .wideck-nav-menu [data-wideck-make] { border-top-color: rgba(255,255,255,.1); }

.wideck-grid {
  --wideck-columns: 6;
  --wideck-cell: 78px;
  --wideck-gap: 14px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--wideck-columns), minmax(0, 1fr));
  grid-auto-rows: var(--wideck-cell);
  min-height: calc(var(--wideck-cell) * 4 + var(--wideck-gap) * 3);
  gap: var(--wideck-gap);
}
.wideck-grid::before { position: absolute; z-index: 3; display: none; width: calc(var(--wideck-cell) * var(--wideck-drop-columns) + var(--wideck-gap) * (var(--wideck-drop-columns) - 1)); height: calc(var(--wideck-cell) * var(--wideck-drop-rows) + var(--wideck-gap) * (var(--wideck-drop-rows) - 1)); transform: translate(calc((var(--wideck-drop-column) - 1) * (var(--wideck-cell) + var(--wideck-gap))),calc((var(--wideck-drop-row) - 1) * (var(--wideck-cell) + var(--wideck-gap)))); border: 2px solid var(--wideck-blue); border-radius: 22px; background: rgba(0,113,227,.08); box-shadow: 0 0 0 4px rgba(0,113,227,.1); content: ""; pointer-events: none; }
.wideck-grid.is-layout-dragging::before { display: block; }
.wideck-grid.is-arranging > .wideck-card { pointer-events: none; }

.wideck-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: clamp(18px, 2.05vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 30px rgba(0,0,0,.055), inset 0 1px 0 rgba(255,255,255,.94);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, opacity .2s ease;
}
.wideck-card::after { position: absolute; inset: 0; border: 1px solid rgba(0,0,0,.025); border-radius: inherit; content: ""; pointer-events: none; }
.wideck-card[hidden] { display: none; }
.wideck-card.is-dragging {
  z-index: 70;
  opacity: .94;
  transform: translate3d(var(--wideck-drag-x,0px),var(--wideck-drag-y,0px),0) scale(1.025);
  box-shadow: 0 26px 64px rgba(20,32,50,.24),0 8px 20px rgba(20,32,50,.16),inset 0 1px 0 rgba(255,255,255,.9);
  cursor: grabbing;
  transition: box-shadow .16s ease,opacity .12s ease;
  will-change: transform;
}
.wideck-card.is-drag-over { box-shadow: 0 0 0 3px rgba(0,113,227,.28), 0 14px 36px rgba(0,0,0,.09); }
@media (hover: hover) { .wideck-card:hover { z-index: 1; transform: translateY(-3px); box-shadow: 0 18px 42px rgba(0,0,0,.1), inset 0 1px 0 #fff; } }

.wideck-card--now { background: linear-gradient(145deg, #162e59 0%, #1555a4 58%, #2e9ad5 100%); color: #fff; }
.wideck-card--prompt { background: linear-gradient(145deg, #f4f8ff, #e8f1ff); }
.wideck-card--clock { background: linear-gradient(145deg, #fffdf7, #faf8f1); }
.wideck-card--memory { background: linear-gradient(145deg, #0868d9, #307fec 60%, #5daefb); color: #fff; }
.wideck-card--radar { background: #fff; }
.wideck-card--todo { background: linear-gradient(145deg, #f4fbf8, #e8f6f0); }
.wideck-card--imported { color: #fff; }
.wideck-card--imported-blue { background: linear-gradient(145deg, #2761be, #4895f1); }
.wideck-card--imported-mint { background: linear-gradient(145deg, #16836c, #44b999); }
.wideck-card--imported-purple { background: linear-gradient(145deg, #6c4ac7, #9a75e8); }
.wideck-card--imported-peach { background: linear-gradient(145deg, #b34c37, #e78466); }
.wideck-card--imported-graphite { background: linear-gradient(145deg, #29313a, #626c78); }

.wideck-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wideck-card-head > span,
.wideck-clock-location,
.wideck-palette-head p,
.wideck-imported-note {
  margin: 0;
  color: var(--wideck-muted);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .02em;
  line-height: 1.25;
}
.wideck-card--now .wideck-card-head > span,.wideck-card--memory .wideck-card-head > span,.wideck-card--imported .wideck-card-head > span,.wideck-card--imported .wideck-imported-note { color: rgba(255,255,255,.72); }
.wideck-card-tools { display: flex; gap: 3px; opacity: 0; transition: opacity .2s ease; }
.wideck-card:hover .wideck-card-tools,.wideck-card:focus-within .wideck-card-tools { opacity: 1; }
.wideck-card-tools button { display: grid; width: 27px; height: 27px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: rgba(118,118,128,.1); color: currentColor; cursor: pointer; font-size: 15px; }
.wideck-card-tools button:hover { background: rgba(118,118,128,.2); }
.wideck-card--now .wideck-card-tools button,.wideck-card--memory .wideck-card-tools button,.wideck-card--imported .wideck-card-tools button { background: rgba(255,255,255,.12); }
.wideck-card--now .wideck-card-tools button:hover,.wideck-card--memory .wideck-card-tools button:hover,.wideck-card--imported .wideck-card-tools button:hover { background: rgba(255,255,255,.22); }

.wideck-now-body { display: grid; grid-template-columns: minmax(130px,.95fr) minmax(0,1.05fr); gap: clamp(16px,2vw,26px); align-items: end; flex: 1; margin: 18px 0 14px; }
.wideck-now-body img { width: 100%; max-height: 225px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 28px rgba(0,0,0,.22); }
.wideck-now-body p { margin: 0 0 7px; color: rgba(255,255,255,.64); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.wideck-now-body h2 { margin: 0 0 7px; font-size: clamp(24px,3vw,42px); letter-spacing: -.055em; line-height: 1.02; }
.wideck-now-body span { color: rgba(255,255,255,.75); font-size: 13px; }
.wideck-now-controls { display: flex; align-items: center; gap: 7px; }
.wideck-now-controls button { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 17px; }
.wideck-now-controls .wideck-play { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #fff; color: #1555a4; font-size: 12px; }
.wideck-now-controls button:last-child { margin-left: auto; color: rgba(255,255,255,.8); font-size: 11px; font-weight: 650; }

.wideck-prompt-mark { margin-top: 17px; color: #0071e3; font-family: Georgia,serif; font-size: 74px; line-height: .55; }
.wideck-prompt-copy { max-width: 19ch; margin: auto 0 18px; font-size: clamp(19px,2vw,27px); font-weight: 700; letter-spacing: -.045em; line-height: 1.36; }
.wideck-prompt-foot { display: flex; justify-content: space-between; gap: 10px; color: var(--wideck-muted); font-size: 11px; }.wideck-prompt-foot a { color: var(--wideck-blue); font-weight: 650; }

.wideck-clock-location { margin-top: auto; }.wideck-clock { margin: 6px 0 3px; color: var(--wideck-ink); font-size: clamp(44px,6.3vw,76px); font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: -.07em; line-height: 1; }.wideck-clock-date { margin: 0; color: var(--wideck-muted); font-size: 12px; }

.wideck-memory::before { position: absolute; inset: 0; background: radial-gradient(circle at 81% 12%,rgba(198,238,255,.6),transparent 24%),radial-gradient(circle at 14% 94%,rgba(0,69,197,.6),transparent 33%); content: ""; }.wideck-memory > * { position: relative; }.wideck-memory-orbit { position: absolute; top: 46%; left: 54%; width: 186px; aspect-ratio: 1; transform: translate(-50%,-50%); }.wideck-memory-orbit i { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; transform: rotate(35deg) scaleY(.48); }.wideck-memory-orbit i:nth-child(2) { transform: rotate(95deg) scaleY(.48); }.wideck-memory-orbit i:nth-child(3) { inset: 36%; border: 0; background: #fff; box-shadow: 0 0 38px #fff; }.wideck-memory-copy { display: flex; min-height: 150px; flex-direction: column; justify-content: end; }.wideck-memory-copy p { max-width: 15ch; margin: 0 0 14px; color: rgba(255,255,255,.95); font-size: 20px; font-weight: 700; letter-spacing: -.035em; line-height: 1.35; }.wideck-memory-copy button { align-self: start; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }

.wideck-radar-title { display: flex; align-items: center; gap: 8px; margin: 24px 0 11px; }.wideck-radar-title span { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 5px rgba(48,209,88,.15); }.wideck-radar-title p { margin: 0; font-size: 12px; font-weight: 700; }.wideck-radar-list { display: grid; border-top: 1px solid var(--wideck-line); }.wideck-radar-list a { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; min-width: 0; padding: 11px 0; border-bottom: 1px solid var(--wideck-line); }.wideck-radar-list b { color: var(--wideck-blue); font-size: 11px; font-weight: 650; }.wideck-radar-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.wideck-radar-list i { font-style: normal; }

.wideck-card--todo h2 { margin: auto 0 14px; font-size: 34px; letter-spacing: -.06em; }.wideck-todo-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }.wideck-todo-list li { display: flex; gap: 9px; align-items: center; font-size: 13px; }.wideck-todo-list button { width: 16px; height: 16px; flex: 0 0 auto; padding: 0; border: 1px solid #a4cdbf; border-radius: 50%; background: transparent; cursor: pointer; }.wideck-todo-list li.is-done span { color: var(--wideck-muted); text-decoration: line-through; }.wideck-todo-list li.is-done button { border-color: #1ba56b; background: #1ba56b; box-shadow: inset 0 0 0 3px #e8f6f0; }.wideck-todo-add { align-self: start; margin-top: 15px; padding: 0; border: 0; background: transparent; color: var(--wideck-blue); cursor: pointer; font-size: 12px; font-weight: 650; }

.wideck-imported-body { display: flex; flex: 1; flex-direction: column; justify-content: end; }.wideck-imported-body h2 { max-width: 16ch; margin: 0 0 9px; font-size: clamp(23px,2.8vw,34px); letter-spacing: -.05em; line-height: 1.06; }.wideck-imported-body p { max-width: 28ch; margin: 0 0 12px; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.55; }.wideck-imported-list { display: grid; margin: 2px 0 12px; border-top: 1px solid rgba(255,255,255,.22); }.wideck-imported-list a { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; min-width: 0; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.2); color: #fff; }.wideck-imported-list b { font-size: 10px; color: rgba(255,255,255,.68); }.wideck-imported-list span { overflow: hidden; font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }.wideck-imported-list i { font-style: normal; }.wideck-imported-action { align-self: flex-start; margin: 0 0 11px; color: #fff; font-size: 12px; font-weight: 700; }.wideck-imported-badge { align-self: flex-start; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 10px; font-weight: 650; }
.wideck-card--imported .wideck-imported-note,.wideck-card--imported .wideck-imported-body > p { color: rgba(255,255,255,.82); }
.wideck-card--sandbox { padding-bottom: 18px; }
.wideck-sandbox-body { display: grid; flex: 1; grid-template-rows: auto minmax(142px, 1fr) auto; gap: 11px; min-height: 0; padding-top: 12px; }
.wideck-sandbox-body h2 { margin: 3px 0 0; font-size: clamp(20px, 2.3vw, 30px); letter-spacing: -.05em; line-height: 1.08; }
.wideck-sandbox-frame { display: block; width: 100%; min-height: 142px; height: 188px; border: 0; border-radius: 15px; background: rgba(0,0,0,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); }
.wideck-sandbox-missing { display: grid; min-height: 142px; margin: 0; place-items: center; border-radius: 15px; background: rgba(0,0,0,.13); color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.5; text-align: center; }

/* Desktop tile rules: each system card maps to an explicit 1×1, 2×1, or 2×2 block. */
@media (min-width: 761px) {
  .wideck-card[data-wideck-size="1x1"] { padding: 14px; border-radius: 20px; }
  .wideck-card[data-wideck-size="2x1"] { padding: 10px 18px; }
  .wideck-card[data-wideck-size="2x2"] { padding: 20px; }
  .wideck-card--now[data-wideck-size="2x2"] .wideck-now-body { grid-template-columns: minmax(92px,.8fr) minmax(0,1.2fr); gap: 14px; margin: 14px 0 10px; }
  .wideck-card--now[data-wideck-size="2x2"] .wideck-now-body img { max-height: 140px; }
  .wideck-card--now[data-wideck-size="2x2"] .wideck-now-body h2 { font-size: clamp(24px,2.3vw,32px); }
  .wideck-card--clock .wideck-clock-location { font-size: 9px; }
  .wideck-card--clock .wideck-clock { margin: 4px 0 2px; font-size: clamp(34px,3.1vw,46px); }
  .wideck-card--clock .wideck-clock-date { font-size: 10px; }
  .wideck-card--memory .wideck-memory-copy { min-height: 0; }
  .wideck-card--memory .wideck-memory-copy p { margin-bottom: 8px; font-size: 15px; }
  .wideck-card--memory .wideck-memory-copy button { font-size: 10px; }
  .wideck-card--memory .wideck-memory-orbit { width: 118px; }
  .wideck-card--radar .wideck-radar-title { margin: 8px 0 4px; }
  .wideck-card--radar .wideck-radar-title p { font-size: 11px; }
  .wideck-card--radar .wideck-radar-list a { grid-template-columns: 34px 1fr auto; gap: 6px; padding: 3px 0; }
  .wideck-card--radar .wideck-radar-list b,.wideck-card--radar .wideck-radar-list strong { font-size: 10px; }
  .wideck-card--todo h2 { margin: 6px 0 6px; font-size: 23px; }
  .wideck-card--todo .wideck-todo-list { gap: 5px; }
  .wideck-card--todo .wideck-todo-list li { font-size: 11px; }
  .wideck-card--todo .wideck-todo-list li:nth-child(n+3) { display: none; }
  .wideck-card--todo .wideck-todo-add { margin-top: 6px; }
}

.wideck-palette { position: fixed; z-index: 130; inset: 0; display: grid; padding: 16px 0 max(16px,env(safe-area-inset-bottom,0px)); place-items: end center; }.wideck-palette[hidden],.wideck-expanded[hidden] { display: none; }.wideck-palette-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.3); backdrop-filter: blur(12px); cursor: pointer; }.wideck-palette-sheet { position: relative; width: min(700px,100%); max-height: min(calc(100svh - 32px - env(safe-area-inset-bottom,0px)),750px); padding: 24px 24px calc(24px + env(safe-area-inset-bottom,0px)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(255,255,255,.8); border-radius: 26px; background: rgba(250,250,252,.96); box-shadow: 0 -18px 58px rgba(0,0,0,.2); }.wideck-palette-head { display: flex; align-items: start; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--wideck-line); }.wideck-palette-head h2 { margin: 3px 0 0; font-size: 27px; letter-spacing: -.06em; }.wideck-palette-head button { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: rgba(118,118,128,.12); color: var(--wideck-ink); cursor: pointer; font-size: 19px; }.wideck-palette-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding-top: 16px; }.wideck-palette-list button { display: grid; grid-template-columns: 1fr auto; gap: 6px; min-height: 100px; padding: 16px; border: 0; border-radius: 18px; background: #fff; color: var(--wideck-ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.045); text-align: left; cursor: pointer; }.wideck-palette-list button:hover { background: #f3f8ff; box-shadow: inset 0 0 0 1px rgba(0,113,227,.26); }.wideck-palette-list button:disabled { background: rgba(118,118,128,.08); color: var(--wideck-muted); cursor: default; }.wideck-palette-list button:disabled i { color: var(--wideck-muted); }.wideck-palette-list b { font-size: 14px; }.wideck-palette-list span { grid-column: 1; color: var(--wideck-muted); font-size: 11px; line-height: 1.5; }.wideck-palette-list i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--wideck-blue); font-size: 19px; font-style: normal; }.wideck-component-error { grid-column: 1 / -1; margin: 4px 0; color: var(--wideck-muted); font-size: 12px; }

.wideck-import { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-top: 14px; padding: 16px; border: 1px dashed transparent; border-radius: 18px; background: rgba(0,113,227,.07); transition: border-color .2s ease, background .2s ease, transform .2s ease; }.wideck-import.is-drag-over { border-color: var(--wideck-blue); background: rgba(0,113,227,.14); transform: scale(1.01); }.wideck-import > div:first-child { display: grid; gap: 3px; }.wideck-import b { font-size: 13px; }.wideck-import span { color: var(--wideck-muted); font-size: 11px; line-height: 1.45; }.wideck-import small { min-height: 15px; color: var(--wideck-blue); font-size: 10px; font-weight: 650; line-height: 1.35; }.wideck-import-button { display: inline-flex; min-height: 33px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; background: var(--wideck-blue); color: #fff; cursor: pointer; font-size: 11px; font-weight: 650; }.wideck-import-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }.wideck-import-button:has(input:disabled) { opacity: .58; cursor: wait; }.wideck-import-links { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 7px 11px; }.wideck-import-links a { color: var(--wideck-blue); font-size: 11px; font-weight: 650; }.wideck-import-links a:last-child { color: #19785f; }

/* Card-library previews keep the grid rules invisible and let the content lead. */
.wideck-card-tools { margin-left: 2px; }
.wideck-card.wideck-card--sandbox { padding: 0 !important; }
.wideck-card--sandbox .wideck-sandbox-body { display: block; width: 100%; height: 100%; min-height: 0; padding: 0; }
.wideck-card--sandbox .wideck-sandbox-frame { width: 100%; height: 100%; min-height: 100%; border-radius: 0; background: transparent; box-shadow: none; }
.wideck-sandbox-gate { position: absolute; z-index: 5; inset: 0; display: grid; padding: clamp(20px,4vw,38px); align-content: center; justify-items: start; border-radius: inherit; background: linear-gradient(145deg,rgba(246,248,251,.98),rgba(231,237,246,.98)); color: #1d1d1f; }
.wideck-sandbox-gate[hidden] { display: none; }
.wideck-sandbox-gate span { margin-bottom: 10px; color: #16805f; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.wideck-sandbox-gate strong { max-width: 15ch; font-size: clamp(22px,3vw,38px); letter-spacing: -.05em; line-height: 1.04; }
.wideck-sandbox-gate small { margin-top: 8px; color: #6e6e73; font-size: 11px; line-height: 1.45; }
.wideck-sandbox-gate button { min-height: 38px; margin-top: 18px; padding: 0 15px; border: 0; border-radius: 999px; background: #0071e3; color: #fff; cursor: pointer; font: 650 12px -apple-system,BlinkMacSystemFont,sans-serif; }
.wideck-package-preview { padding: 0 !important; background: #eef2f6; }
.wideck-package-preview > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wideck-package-preview-copy { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: 34px 16px 14px; background: linear-gradient(transparent,rgba(9,12,18,.82)); color: #fff; }
.wideck-package-preview-copy span { color: #91f0ca; font-size: 8px; font-weight: 750; letter-spacing: .08em; }
.wideck-package-preview--local .wideck-package-preview-copy span { color: #8ac8ff; }
.wideck-package-preview-copy strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.wideck-package-preview-copy small { overflow: hidden; color: rgba(255,255,255,.68); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.wideck-palette { --wideck-ink: #1d1d1f; --wideck-muted: #6e6e73; --wideck-line: rgba(60,60,67,.12); --wideck-blue: #0071e3; z-index: 170; padding: 24px; place-items: center; color: var(--wideck-ink); }
.wideck-palette-backdrop { background: rgba(10,14,22,.38); backdrop-filter: blur(18px) saturate(130%); }
.wideck-palette-sheet {
  display: grid;
  width: min(1240px,100%);
  height: min(880px,calc(100svh - 48px));
  max-height: calc(100svh - 48px);
  padding: 0;
  grid-template-rows: auto auto minmax(0,1fr);
  overflow: hidden;
  border-color: rgba(255,255,255,.72);
  border-radius: 32px;
  background: rgba(247,248,250,.97);
  box-shadow: 0 30px 90px rgba(0,0,0,.24);
}
.wideck-palette-head { align-items: center; padding: 22px 28px 14px; border: 0; }
.wideck-palette-head h2 { margin: 0; font-size: 28px; }
.wideck-palette-head button { width: 38px; height: 38px; font-size: 22px; }
.wideck-library-search {
  display: grid;
  min-height: 52px;
  align-items: center;
  margin: 0 28px 10px;
  padding: 0 14px;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  border: 1px solid rgba(29,29,31,.08);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(20,28,40,.045);
}
.wideck-library-search > span { color: var(--wideck-muted); font-size: 25px; transform: rotate(-18deg); }
.wideck-library-search input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--wideck-ink); font: 600 15px/1.2 -apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC",sans-serif; }
.wideck-library-search input::placeholder { color: #9a9aa0; }
.wideck-library-search kbd { padding: 4px 7px; border: 1px solid rgba(29,29,31,.08); border-radius: 7px; background: #f3f3f5; color: var(--wideck-muted); font: 650 10px/1 -apple-system,BlinkMacSystemFont,sans-serif; }
.wideck-library-scroll { min-height: 0; padding: 0 28px 32px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.wideck-library-section { padding: 21px 0 24px; border-top: 1px solid rgba(29,29,31,.08); }
.wideck-library-section:first-child { border-top: 0; }
.wideck-library-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.wideck-library-heading h3 { margin: 0; font-size: 22px; letter-spacing: -.045em; }
.wideck-library-heading small { color: var(--wideck-muted); font-size: 10px; }
.wideck-suggestion-rail,.wideck-library-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: start; }
.wideck-suggestion-rail { flex-wrap: nowrap; padding: 2px 2px 8px; overflow-x: auto; scrollbar-width: none; }
.wideck-suggestion-rail::-webkit-scrollbar { display: none; }
.wideck-library-item {
  display: flex;
  width: min(var(--wideck-preview-width),100%);
  flex: 0 0 auto;
  flex-direction: column;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wideck-ink);
  text-align: left;
  cursor: pointer;
}
.wideck-library-item--suggested { width: min(var(--wideck-preview-width),440px); }
.wideck-library-entry { position: relative; width: min(var(--wideck-preview-width),100%); flex: 0 0 auto; }
.wideck-library-entry > .wideck-library-item { width: 100%; }
.wideck-library-delete { position: absolute; z-index: 7; top: 10px; right: 10px; display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(28,28,30,.58); color: #fff; box-shadow: 0 5px 16px rgba(0,0,0,.18); backdrop-filter: blur(12px); cursor: pointer; font-size: 18px; line-height: 1; transition: transform .2s ease,background .2s ease; }
.wideck-library-delete:hover { transform: scale(1.06); background: rgba(215,52,52,.88); }
.wideck-library-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--wideck-preview-ratio);
  min-height: 108px;
  max-height: 250px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(25,35,50,.1);
  transition: transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s ease;
}
.wideck-library-item:not(:disabled):hover .wideck-library-preview { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(25,35,50,.16); }
.wideck-library-item:focus-visible { outline: 0; }
.wideck-library-item:focus-visible .wideck-library-preview { box-shadow: 0 0 0 3px rgba(0,113,227,.35),0 18px 42px rgba(25,35,50,.14); }
.wideck-library-meta { display: grid; gap: 4px; width: 100%; padding: 0 3px; }
.wideck-library-name { overflow: hidden; color: var(--wideck-ink); font-size: 14px; font-weight: 650; line-height: 1.35; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.wideck-library-description { display: -webkit-box; overflow: hidden; color: var(--wideck-muted); font-size: 11px; font-weight: 400; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wideck-library-card-preview { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; padding: clamp(11px,1.5vw,18px) !important; border-radius: inherit !important; transform: none !important; pointer-events: none !important; }
.wideck-library-card-preview .wideck-card-tools { display: none; }
.wideck-library-card-preview .wideck-now-body { min-height: 0; }
.wideck-library-card-preview .wideck-sandbox-frame { min-height: 72px; pointer-events: none; }
.wideck-library-state { position: absolute; right: 10px; bottom: 10px; z-index: 4; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: rgba(0,113,227,.92); color: #fff; box-shadow: 0 4px 14px rgba(0,80,180,.24); font-size: 17px; font-weight: 550; }
.wideck-library-item:disabled { cursor: default; }
.wideck-library-item:disabled .wideck-library-preview { opacity: .72; box-shadow: 0 8px 24px rgba(25,35,50,.065); }
.wideck-library-item:disabled .wideck-library-state { background: rgba(48,209,88,.92); font-size: 12px; }
.wideck-library-empty { margin: 0; padding: 20px; border: 1px dashed rgba(29,29,31,.12); border-radius: 18px; color: var(--wideck-muted); font-size: 12px; text-align: center; }
.wideck-library-scroll > .wideck-import { margin-top: 4px; padding: 20px; border-color: rgba(0,113,227,.18); }

html[data-theme="dark"] .wideck-palette-sheet { border-color: rgba(255,255,255,.1); background: rgba(17,17,19,.98); }
html[data-theme="dark"] .wideck-palette { --wideck-ink: #f5f5f7; --wideck-muted: #a1a1a6; --wideck-line: rgba(235,235,245,.14); --wideck-blue: #2997ff; }
html[data-theme="dark"] .wideck-library-search { border-color: rgba(255,255,255,.1); background: #242426; }
html[data-theme="dark"] .wideck-library-search kbd { border-color: rgba(255,255,255,.1); background: #303033; }
html[data-theme="dark"] .wideck-library-section { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .wideck-library-preview { box-shadow: 0 14px 34px rgba(0,0,0,.34); }
html[data-theme="dark"] .wideck-library-empty { border-color: rgba(255,255,255,.12); }

@media (max-width: 760px) {
  .wideck-palette { padding: 0; }
  .wideck-palette-sheet { width: 100%; height: 100svh; max-height: 100svh; border: 0; border-radius: 0; }
  .wideck-palette-head { padding: calc(18px + env(safe-area-inset-top,0px)) 18px 13px; }
  .wideck-palette-head h2 { font-size: 27px; }
  .wideck-library-search { min-height: 48px; margin: 0 18px 8px; }
  .wideck-library-search kbd { display: none; }
  .wideck-library-scroll { padding: 0 18px calc(28px + env(safe-area-inset-bottom,0px)); }
  .wideck-library-section { padding: 21px 0 24px; }
  .wideck-library-heading { margin-bottom: 13px; }
  .wideck-library-heading h3 { font-size: 20px; }
  .wideck-library-heading small { max-width: 42%; text-align: right; }
  .wideck-suggestion-rail,.wideck-library-grid { gap: 14px; }
  .wideck-library-grid { align-items: start; }
  .wideck-library-item { max-width: 100%; }
  .wideck-library-item--suggested { width: min(var(--wideck-preview-width),80vw); }
  .wideck-library-preview { max-height: 230px; border-radius: 21px; }
  .wideck-library-card-preview { padding: 13px !important; touch-action: auto; }
  .wideck-library-scroll > .wideck-import { grid-template-columns: 1fr; padding: 17px; }
}

.wideck-card-placeholder { min-width: 0; min-height: 0; visibility: hidden; pointer-events: none; }
html:has(body.wideck-modal-open) { overflow: hidden; overscroll-behavior: none; }
body.wideck-modal-open { position: fixed; top: var(--wideck-scroll-lock-offset,0); left: 0; width: 100%; overflow: hidden; overscroll-behavior: none; }
.wideck-expanded { --wideck-ink: #1d1d1f; --wideck-muted: #6e6e73; --wideck-line: rgba(60,60,67,.12); --wideck-blue: #0071e3; position: fixed; z-index: 180; inset: 0; display: grid; padding: 0; place-items: stretch; overflow: hidden; color: var(--wideck-ink); background: #f5f5f7; }.wideck-expanded > div { position: relative; width: 100%; height: 100svh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }.wideck-expanded .wideck-card { --expanded-cell: min(8.333vw,104px); width: 100%; min-height: 100svh; padding: clamp(54px,7vw,110px); border: 0; border-radius: 0; background-image: linear-gradient(rgba(98,112,132,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(98,112,132,.075) 1px,transparent 1px); background-size: var(--expanded-cell) var(--expanded-cell); box-shadow: none; transform: none; }.wideck-expanded .wideck-card::after { border: 0; }.wideck-expanded .wideck-card--clock { display:flex; align-items:center; justify-content:center; }.wideck-expanded .wideck-card--clock .wideck-clock { font-size: clamp(88px,16vw,220px); }.wideck-expanded .wideck-card--memory .wideck-memory-copy { min-height: min(54svh,520px); }.wideck-expanded .wideck-card--memory .wideck-memory-copy p { font-size: clamp(32px,5vw,68px); }.wideck-expanded .wideck-card--todo h2 { font-size: clamp(48px,8vw,110px); }.wideck-expanded .wideck-sandbox-frame { height: min(66svh,880px) !important; }

/* Square-cell visual system: quiet whites first, pale accents only as orientation. */
html:not([data-theme="dark"]) .wideck-card { border-color: #e7eaf0; background: #fff; box-shadow: 0 10px 28px rgba(32,45,64,.055), inset 0 1px 0 #fff; color: var(--wideck-ink); }
html:not([data-theme="dark"]) .wideck-card--now { background: linear-gradient(145deg,#fff,#f4f8ff); color: var(--wideck-ink); }
html:not([data-theme="dark"]) .wideck-card--prompt { background: #fbfcff; }
html:not([data-theme="dark"]) .wideck-card--clock { background: #fff; }
html:not([data-theme="dark"]) .wideck-card--memory { background: linear-gradient(145deg,#fff,#f3f8ff); color: var(--wideck-ink); }
html:not([data-theme="dark"]) .wideck-card--radar { background: #fff; }
html:not([data-theme="dark"]) .wideck-card--todo { background: #fbfefc; }
html:not([data-theme="dark"]) .wideck-card--imported-blue { background: #f4f8ff; } html:not([data-theme="dark"]) .wideck-card--imported-mint { background: #f1fbf7; } html:not([data-theme="dark"]) .wideck-card--imported-purple { background: #f7f4ff; } html:not([data-theme="dark"]) .wideck-card--imported-peach { background: #fff6f2; } html:not([data-theme="dark"]) .wideck-card--imported-graphite { background: #f6f7f9; }
html:not([data-theme="dark"]) .wideck-card--now .wideck-card-head > span,html:not([data-theme="dark"]) .wideck-card--memory .wideck-card-head > span,html:not([data-theme="dark"]) .wideck-card--imported .wideck-card-head > span,html:not([data-theme="dark"]) .wideck-card--imported .wideck-imported-note { color: var(--wideck-muted); }
html:not([data-theme="dark"]) .wideck-now-body p,html:not([data-theme="dark"]) .wideck-now-body span,html:not([data-theme="dark"]) .wideck-card--imported .wideck-imported-body > p,html:not([data-theme="dark"]) .wideck-card--imported .wideck-imported-note { color: var(--wideck-muted); }
html:not([data-theme="dark"]) .wideck-now-controls button,html:not([data-theme="dark"]) .wideck-memory-copy p,html:not([data-theme="dark"]) .wideck-memory-copy button,html:not([data-theme="dark"]) .wideck-imported-body h2,html:not([data-theme="dark"]) .wideck-imported-list a,html:not([data-theme="dark"]) .wideck-imported-action { color: var(--wideck-ink); }
html:not([data-theme="dark"]) .wideck-now-controls .wideck-play { background: var(--wideck-blue); color: #fff; } html:not([data-theme="dark"]) .wideck-now-controls button:last-child { color: var(--wideck-blue); }
html:not([data-theme="dark"]) .wideck-memory::before { background: radial-gradient(circle at 82% 12%,rgba(86,157,255,.13),transparent 25%),radial-gradient(circle at 14% 94%,rgba(86,157,255,.1),transparent 36%); } html:not([data-theme="dark"]) .wideck-memory-orbit i { border-color: rgba(0,113,227,.22); } html:not([data-theme="dark"]) .wideck-memory-orbit i:nth-child(3) { background: #2787ec; box-shadow: 0 0 32px rgba(39,135,236,.38); }
html:not([data-theme="dark"]) .wideck-card--imported .wideck-imported-badge { background: rgba(0,113,227,.1); color: var(--wideck-blue); } html:not([data-theme="dark"]) .wideck-imported-list { border-color: var(--wideck-line); } html:not([data-theme="dark"]) .wideck-imported-list a { border-color: var(--wideck-line); }
.wideck-card[data-builtin-component] { cursor: default; }.wideck-card[data-builtin-component] button,.wideck-card[data-builtin-component] a { cursor: pointer; }

html[data-theme="dark"] .wideck-main { --wideck-ink: #f5f5f7; --wideck-muted: #a1a1a6; --wideck-line: rgba(235,235,245,.14); --wideck-blue: #2997ff; --wideck-blue-deep: #0077ed; } html[data-theme="dark"] .wideck-card { border-color: rgba(255,255,255,.08); background: #1c1c1e; box-shadow: 0 14px 34px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04); } html[data-theme="dark"] .wideck-card--now { background: linear-gradient(145deg,#0d1d38,#16477d 62%,#227aa4); } html[data-theme="dark"] .wideck-card--prompt { background: #1d2a3d; } html[data-theme="dark"] .wideck-card--clock { background: #242424; } html[data-theme="dark"] .wideck-card--todo { background: #192b25; } html[data-theme="dark"] .wideck-clock { color: var(--wideck-ink); } html[data-theme="dark"] .wideck-palette-sheet,html[data-theme="dark"] .wideck-palette-list button { background: #262629; color: var(--wideck-ink); } html[data-theme="dark"] .wideck-palette-list button:hover { background: #213656; } html[data-theme="dark"] .wideck-import { background: rgba(41,151,255,.15); } html[data-theme="dark"] .wideck-todo-list li.is-done button { box-shadow: inset 0 0 0 3px #192b25; }
html[data-theme="dark"] .wideck-expanded { --wideck-ink: #f5f5f7; --wideck-muted: #a1a1a6; --wideck-line: rgba(235,235,245,.14); --wideck-blue: #2997ff; background: #000; }

.wideck-expanded .wideck-card { background-image: linear-gradient(rgba(98,112,132,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(98,112,132,.075) 1px,transparent 1px) !important; }
.wideck-expanded .wideck-card.wideck-card--sandbox,.wideck-expanded .wideck-card.wideck-card--sandbox:hover { transform: none; border: 0; border-radius: 0; background: transparent !important; background-image: none !important; box-shadow: none !important; }
.wideck-expanded .wideck-card--sandbox .wideck-sandbox-frame { height: 100svh !important; min-height: 100svh; }
.wideck-expanded .wideck-card-tools { opacity: 1; }
.wideck-expanded .wideck-card-tools [data-card-remove] { display: none; }
.wideck-expanded .wideck-card-tools [data-card-expand] { width: 34px; height: 34px; background: rgba(0,113,227,.12); color: var(--wideck-blue); font-size: 18px; }

/* Third-party full screen keeps the original iframe mounted, preserving games,
   timers, audio and in-memory state without the flash caused by DOM reparenting. */
body.wideck-sandbox-fullscreen > *:not(main) { visibility: hidden !important; pointer-events: none !important; }
body.wideck-sandbox-fullscreen > main { position: relative; z-index: 2147483400; visibility: visible !important; }
.wideck-card.wideck-card--sandbox.is-expanded,
.wideck-card.wideck-card--sandbox.is-expanded:hover {
  position: fixed !important;
  z-index: 2147483500;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000 !important;
  box-shadow: none !important;
  transform: none;
  transition: none;
}
.wideck-card.wideck-card--sandbox.is-expanded::after { display: none; }
.wideck-card.wideck-card--sandbox.is-expanded .wideck-sandbox-body,
.wideck-card.wideck-card--sandbox.is-expanded .wideck-sandbox-frame {
  width: 100%;
  height: 100svh !important;
  min-height: 100svh;
  border-radius: 0;
}
.wideck-card.wideck-card--sandbox.is-expanded,
.wideck-card.wideck-card--sandbox.is-expanded .wideck-sandbox-frame {
  -webkit-user-select: auto !important;
  user-select: auto !important;
  -webkit-touch-callout: default !important;
}
.wideck-card.wideck-card--sandbox.is-expanded .wideck-card-tools--floating { z-index: 10; opacity: 1; }
.wideck-card.wideck-card--sandbox.is-expanded [data-card-remove] { display: none; }
.wideck-card.wideck-card--sandbox.is-expanded [data-card-expand] { width: 36px; height: 36px; }

@media (min-width: 761px) and (max-width: 1099px) { .wideck-grid { --wideck-columns: 6; --wideck-gap: 12px; gap: var(--wideck-gap); }.wideck-card { border-radius: 22px; }.wideck-now-body { grid-template-columns: minmax(112px,.9fr) minmax(0,1.1fr); gap: 14px; }.wideck-now-body h2 { font-size: clamp(22px,3.3vw,34px); }.wideck-sandbox-body { gap: 9px; }.wideck-sandbox-frame { min-height: 132px; } }
@media (max-width: 920px) { .wideck-nav-trigger { width: 40px; height: 40px; flex-basis: 40px; } }
@media (max-width: 760px) { .wideck-main { padding-top: 18px; }.wideck-nav-menu { width: 142px; border-radius: 17px; }.wideck-grid { --wideck-columns: 2; --wideck-gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: var(--wideck-cell); gap: var(--wideck-gap); }.wideck-card { min-height: 0; padding: 16px; border-radius: 20px; touch-action: pan-y; }.wideck-card--sandbox { min-height: 0; }.wideck-now-body { grid-template-columns: 104px 1fr; gap: 14px; margin: 13px 0 10px; }.wideck-now-body img { max-height: 132px; border-radius: 12px; }.wideck-now-body h2 { font-size: clamp(25px,8vw,37px); }.wideck-prompt-copy { font-size: clamp(18px,6vw,25px); }.wideck-clock { font-size: clamp(42px,14vw,66px); }.wideck-card--memory .wideck-memory-copy { min-height: 0; }.wideck-card--memory .wideck-memory-copy p { font-size: 17px; }.wideck-memory-orbit { width: 142px; left: 60%; }.wideck-card--todo h2 { margin: 10px 0 11px; font-size: 29px; }.wideck-todo-list { gap: 7px; }.wideck-todo-list li { font-size: 11px; }.wideck-todo-add { margin-top: 10px; }.wideck-radar-title { margin: 12px 0 7px; }.wideck-radar-list a { padding: 7px 0; }.wideck-card-tools { opacity: 1; }.wideck-palette-list { grid-template-columns: 1fr; }.wideck-import { grid-template-columns: 1fr; }.wideck-import-button { justify-self: start; }.wideck-expanded .wideck-card { padding: 58px 24px 32px; } }
@media (max-width: 760px) { .wideck-card--clock .wideck-clock { font-size: clamp(34px,12vw,50px); } }
/* Mobile keeps the same tile ratios as desktop; only the canvas changes to two columns. */
@media (max-width: 760px) {
  main.wideck-main.page-main[data-page-key="wideck"]:not([data-page-key="music"]):not([data-page-key="home"]) { padding-top: 24px; }
  .wideck-grid > .wideck-card[data-wideck-mobile-size="1x1"] { padding: 14px; border-radius: 20px; }
  .wideck-grid > .wideck-card[data-wideck-mobile-size="2x1"] { padding: 12px 16px; }
  .wideck-grid > .wideck-card--now[data-wideck-mobile-size="2x2"] .wideck-now-body { grid-template-columns: 100px minmax(0,1fr); gap: 13px; margin: 13px 0 9px; }
  .wideck-grid > .wideck-card--now[data-wideck-mobile-size="2x2"] .wideck-now-body img { max-height: 128px; }
  .wideck-grid > .wideck-card--now[data-wideck-mobile-size="2x2"] .wideck-now-body h2 { font-size: clamp(24px,7vw,31px); }
  .wideck-grid > .wideck-card--clock .wideck-clock-location { font-size: 9px; }
  .wideck-grid > .wideck-card--clock .wideck-clock { margin: 4px 0 2px; font-size: clamp(32px,10vw,42px); }
  .wideck-grid > .wideck-card--clock .wideck-clock-date { font-size: 10px; }
  .wideck-grid > .wideck-card--memory .wideck-memory-copy { min-height: 0; }
  .wideck-grid > .wideck-card--memory .wideck-memory-copy p { margin-bottom: 7px; font-size: 15px; }
  .wideck-grid > .wideck-card--memory .wideck-memory-copy button { font-size: 10px; }
  .wideck-grid > .wideck-card--memory .wideck-memory-orbit { width: 112px; }
  .wideck-grid > .wideck-card--radar .wideck-radar-title { margin: 7px 0 4px; }
  .wideck-grid > .wideck-card--radar .wideck-radar-title p { font-size: 11px; }
  .wideck-grid > .wideck-card--radar .wideck-radar-list a { grid-template-columns: 34px 1fr auto; gap: 6px; padding: 3px 0; }
  .wideck-grid > .wideck-card--radar .wideck-radar-list b,.wideck-grid > .wideck-card--radar .wideck-radar-list strong { font-size: 10px; }
  .wideck-grid > .wideck-card--todo h2 { margin: 6px 0; font-size: 23px; }
  .wideck-grid > .wideck-card--todo .wideck-todo-list { gap: 5px; }
  .wideck-grid > .wideck-card--todo .wideck-todo-list li { font-size: 11px; }
  .wideck-grid > .wideck-card--todo .wideck-todo-list li:nth-child(n+3) { display: none; }
  .wideck-grid > .wideck-card--todo .wideck-todo-add { margin-top: 6px; }
}

/* Card previews use the real component DOM with library-scale typography. */
.wideck-library-card-preview .wideck-now-body { grid-template-columns: minmax(64px,.78fr) minmax(0,1.22fr) !important; gap: 10px !important; margin: auto 0 8px !important; }
.wideck-library-card-preview .wideck-now-body img { max-height: 104px !important; border-radius: 11px !important; }
.wideck-library-card-preview .wideck-now-body p { font-size: 8px !important; }
.wideck-library-card-preview .wideck-now-body h2 { font-size: clamp(17px,2vw,25px) !important; }
.wideck-library-card-preview .wideck-now-body span { font-size: 10px !important; }
.wideck-library-card-preview .wideck-now-controls { gap: 5px !important; }
.wideck-library-card-preview .wideck-now-controls button { font-size: 12px !important; }
.wideck-library-card-preview .wideck-now-controls .wideck-play { width: 34px !important; height: 34px !important; }
.wideck-library-card-preview .wideck-prompt-copy { font-size: clamp(16px,2vw,24px) !important; }
.wideck-library-card-preview .wideck-clock { font-size: clamp(34px,5vw,58px) !important; }
.wideck-library-card-preview .wideck-memory-copy { min-height: 0 !important; }
.wideck-library-card-preview .wideck-memory-copy p { font-size: clamp(14px,1.8vw,20px) !important; }
.wideck-library-card-preview .wideck-memory-orbit { width: 112px !important; }
.wideck-library-card-preview .wideck-radar-title { margin: 8px 0 5px !important; }
.wideck-library-card-preview .wideck-radar-list a { padding: 4px 0 !important; }
.wideck-library-card-preview .wideck-card--todo h2 { margin: 7px 0 !important; font-size: 24px !important; }
.wideck-library-card-preview .wideck-todo-list { gap: 5px !important; }
.wideck-library-card-preview .wideck-todo-list li { font-size: 10px !important; }
.wideck-library-card-preview .wideck-todo-add { margin-top: 6px !important; }
@media (prefers-reduced-motion: reduce) { .wideck-card,.wideck-card-tools,.wideck-nav-trigger,.wideck-nav-trigger [data-icon] { transition: none; }.wideck-nav-trigger.is-arriving [data-icon],.wideck-nav-menu { animation: none; } }

/* WIDECK official components V2 */
.wideck-detail { display: none; }
.wideck-card--weather,.wideck-card--calendar,.wideck-card--battery,.wideck-card--now,.wideck-card--prompt,.wideck-card--radar,.wideck-card--todo { background: #fff; color: #1d1d1f; }
.wideck-card--weather { background: linear-gradient(155deg,#eef6ff 0%,#fff 62%); }
.wideck-weather-current { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: auto 0 10px; }
.wideck-weather-current > div { display: grid; min-width: 0; }
.wideck-weather-current strong { font-size: clamp(45px,5.2vw,68px); font-weight: 420; letter-spacing: -.075em; line-height: .92; }
.wideck-weather-current span { margin-top: 7px; color: var(--wideck-muted); font-size: 13px; font-weight: 620; }
.wideck-weather-symbol { flex: 0 0 auto; color: #2589e8 !important; font-size: clamp(36px,4vw,54px) !important; font-weight: 400 !important; line-height: 1; }
.wideck-weather-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-bottom: 10px; }
.wideck-weather-meta span { display: grid; gap: 2px; padding: 7px 8px; border-radius: 11px; background: rgba(255,255,255,.66); color: var(--wideck-muted); font-size: 8px; }
.wideck-weather-meta b { overflow: hidden; color: var(--wideck-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.wideck-weather-hours { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; padding-top: 9px; border-top: 1px solid var(--wideck-line); }
.wideck-weather-hours span { display: grid; grid-template-columns: 1fr auto; gap: 3px 5px; align-items: center; min-width: 0; }
.wideck-weather-hours time { color: var(--wideck-muted); font-size: 8px; }
.wideck-weather-hours i { grid-column: 2; grid-row: 1 / span 2; font-size: 16px; font-style: normal; }
.wideck-weather-hours b { font-size: 11px; }

.wideck-card--calendar { background: #fff; }
.wideck-calendar-date { display: flex; align-items: start; gap: 8px; margin: auto 0 8px; }
.wideck-calendar-date > strong { font-size: clamp(49px,5vw,68px); font-weight: 500; letter-spacing: -.08em; line-height: .84; }
.wideck-calendar-date > span { display: grid; gap: 2px; padding-top: 2px; }
.wideck-calendar-date b,.wideck-calendar-date i { color: var(--wideck-muted); font-size: 10px; font-style: normal; font-weight: 600; white-space: nowrap; }
.wideck-calendar-date i { color: #ff3b30; }
.wideck-calendar-summary { display: -webkit-box; overflow: hidden; margin: 0; color: #8e8e93; font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.wideck-card--battery { background: linear-gradient(150deg,#f4f1f8,#fff); }
.wideck-battery-main { display: grid; grid-template-columns: minmax(84px,.8fr) minmax(0,1.2fr); gap: 14px; align-items: center; margin: auto 0 12px; }
.wideck-battery-ring { --battery-level: 0%; display: grid; width: min(100%,112px); aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(#30d158 var(--battery-level),rgba(120,120,128,.14) 0); box-shadow: inset 0 0 0 9px rgba(255,255,255,.9); }
.wideck-battery-ring span,.wideck-battery-ring strong { grid-area: 1/1; }
.wideck-battery-ring span { margin-top: -25px; color: #30a94f; font-size: 16px; }
.wideck-battery-ring strong { margin-top: 17px; font-size: 18px; letter-spacing: -.04em; }
.wideck-battery-main h2 { margin: 0 0 6px; font-size: clamp(18px,2vw,25px); letter-spacing: -.045em; }
.wideck-battery-main p { margin: 0; color: var(--wideck-muted); font-size: 10px; line-height: 1.45; }
.wideck-battery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.wideck-battery-grid span { display: grid; gap: 3px; min-width: 0; padding: 9px; border: 1px solid var(--wideck-line); border-radius: 12px; }
.wideck-battery-grid small { color: var(--wideck-muted); font-size: 8px; }
.wideck-battery-grid b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.wideck-card--battery[data-battery-supported="false"] .wideck-battery-ring { filter: grayscale(1); opacity: .58; }

.wideck-card--now { display: grid; padding: 12px 14px !important; grid-template: auto 1fr / minmax(0,1fr) auto; gap: 4px 10px; background: linear-gradient(120deg,rgba(255,255,255,.98),rgba(240,246,255,.94)),var(--wideck-now-cover); background-position: center; background-size: cover; color: var(--wideck-ink); }
.wideck-card--now::before { position: absolute; inset: 0; background: linear-gradient(100deg,rgba(255,255,255,.97) 20%,rgba(255,255,255,.78)); content: ""; pointer-events: none; }
.wideck-card--now > * { position: relative; }
.wideck-card--now .wideck-card-head { grid-column: 1/-1; }
.wideck-card--now .wideck-card-head > span { color: var(--wideck-muted); }
.wideck-now-body { display: grid; min-width: 0; grid-template-columns: 58px minmax(0,1fr); gap: 10px; align-items: center; margin: 0; }
.wideck-now-body img { width: 58px; height: 58px; border-radius: 10px; box-shadow: 0 7px 18px rgba(25,38,58,.14); }
.wideck-now-body p { margin: 0 0 3px; color: var(--wideck-muted); font-size: 7px; }
.wideck-now-body h2 { overflow: hidden; margin: 0 0 3px; color: var(--wideck-ink); font-size: 15px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.wideck-now-body span { display: block; overflow: hidden; color: var(--wideck-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.wideck-now-controls { align-self: center; gap: 3px; }
.wideck-now-controls button { display: grid; width: 26px; height: 26px; padding: 0; place-items: center; color: var(--wideck-ink); font-size: 18px; }
.wideck-now-controls .wideck-play { width: 34px; height: 34px; background: var(--wideck-ink); color: #fff; }

.wideck-card--prompt { background: linear-gradient(150deg,#fff,#f5f8ff); }
.wideck-prompt-copy { display: -webkit-box; overflow: hidden; max-width: 14ch; margin: auto 0 2px; font-size: clamp(15px,1.45vw,20px); line-height: 1.36; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.wideck-prompt-refresh { position: absolute; right: 13px; bottom: 13px; display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: rgba(0,113,227,.09); color: var(--wideck-blue); cursor: pointer; font-size: 15px; }

.wideck-card--memory { isolation: isolate; padding: 14px !important; background: #182233; color: #fff; }
.wideck-memory-backdrop { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(18,28,42,.12),rgba(18,28,42,.88)),url('/assets/images/PEAK（中英版）.webp') center/cover; transform: scale(1.03); }
.wideck-card--memory .wideck-card-head > span { color: rgba(255,255,255,.75); }
.wideck-memory-copy { display: grid; min-height: 0; margin-top: auto; gap: 3px; }
.wideck-memory-copy small { color: rgba(255,255,255,.68); font-size: 9px; }
.wideck-memory-copy strong { overflow: hidden; color: #fff; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.wideck-memory-copy button { justify-self: start; margin-top: 4px; color: #fff; font-size: 10px; }

.wideck-card--radar { padding: 11px 16px !important; }
.wideck-radar-title { margin: 3px 0 2px; }
.wideck-radar-title i { width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgba(48,209,88,.13); }
.wideck-radar-title strong { font-size: 10px; }
.wideck-radar-title button { margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--wideck-muted); cursor: pointer; }
.wideck-radar-list { grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 0; gap: 7px; }
.wideck-radar-list a { display: grid; grid-template-columns: 1fr; gap: 2px; min-width: 0; padding: 7px 8px; border: 0; border-radius: 10px; background: #f5f5f7; }
.wideck-radar-list b { font-size: 8px; }
.wideck-radar-list span { overflow: hidden; color: var(--wideck-ink); font-size: 9px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }

.wideck-card--todo { background: linear-gradient(150deg,#f6fbf8,#fff); }
.wideck-todo-summary { display: flex; align-items: baseline; gap: 7px; margin: auto 0 8px; }
.wideck-todo-summary strong { font-size: clamp(33px,4vw,50px); font-weight: 560; letter-spacing: -.07em; line-height: 1; }
.wideck-todo-summary span { color: var(--wideck-muted); font-size: 10px; }
.wideck-todo-list { min-height: 0; gap: 6px; overflow: hidden; }
.wideck-todo-list li { min-width: 0; gap: 7px; font-size: 10px; }
.wideck-todo-list li:nth-child(n+4) { display: none; }
.wideck-todo-list li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wideck-todo-list li > button:first-child { width: 15px; height: 15px; }
.wideck-todo-delete { display: none; margin-left: auto; border: 0 !important; color: var(--wideck-muted); font-size: 14px; }
.wideck-todo-form { display: grid; min-height: 32px; margin-top: 9px; grid-template-columns: 1fr 30px; border: 1px solid rgba(27,129,85,.15); border-radius: 11px; background: rgba(255,255,255,.72); }
.wideck-todo-form input { min-width: 0; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--wideck-ink); font: 550 10px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; }
.wideck-todo-form button { border: 0; background: transparent; color: #168b5b; cursor: pointer; font-size: 17px; }

html[data-theme="dark"] .wideck-card--weather { background: linear-gradient(150deg,#152334,#1c1c1e); }
html[data-theme="dark"] .wideck-card--calendar { background: #f5f5f7; color: #1d1d1f; --wideck-muted:#737378; --wideck-line:rgba(60,60,67,.13); }
html[data-theme="dark"] .wideck-card--battery { background: linear-gradient(150deg,#292432,#1c1c1e); }
html[data-theme="dark"] .wideck-card--now { background: linear-gradient(100deg,rgba(21,25,32,.97),rgba(21,25,32,.78)),var(--wideck-now-cover); color: #f5f5f7; }
html[data-theme="dark"] .wideck-card--now::before { background: linear-gradient(100deg,rgba(20,23,29,.97) 20%,rgba(20,23,29,.72)); }
html[data-theme="dark"] .wideck-card--now .wideck-now-body h2,html[data-theme="dark"] .wideck-card--now .wideck-now-controls button { color: #f5f5f7; }
html[data-theme="dark"] .wideck-card--now .wideck-play { background: #f5f5f7; color: #1d1d1f; }
html[data-theme="dark"] .wideck-card--prompt { background: linear-gradient(150deg,#1d2939,#1c1c1e); }
html[data-theme="dark"] .wideck-card--radar { background: #1c1c1e; }
html[data-theme="dark"] .wideck-radar-list a { background: #29292c; }
html[data-theme="dark"] .wideck-radar-list span { color: #f5f5f7; }
html[data-theme="dark"] .wideck-card--todo { background: linear-gradient(150deg,#182b23,#1c1c1e); }
html[data-theme="dark"] .wideck-weather-meta span,html[data-theme="dark"] .wideck-todo-form { background: rgba(255,255,255,.055); }
html[data-theme="dark"] .wideck-battery-ring { box-shadow: inset 0 0 0 9px #252129; }

.wideck-expanded .wideck-detail { display: grid; gap: 14px; margin-top: 30px; }
.wideck-expanded .wideck-detail button,.wideck-expanded [data-wideck-calendar-form] button { justify-self: start; min-height: 42px; padding: 0 17px; border: 0; border-radius: 999px; background: var(--wideck-blue); color: #fff; cursor: pointer; font-weight: 650; }
.wideck-expanded .wideck-card:not(.wideck-card--sandbox) { display: flex; width: min(100%,1100px); min-height: 100svh; margin: 0 auto; justify-content: center; background-size: var(--expanded-cell) var(--expanded-cell) !important; }
.wideck-expanded .wideck-card-head { position: absolute; z-index: 4; top: clamp(24px,4vw,54px); right: clamp(24px,5vw,70px); left: clamp(24px,5vw,70px); }
.wideck-expanded .wideck-card-head > span { font-size: 14px; }
.wideck-expanded .wideck-card--weather .wideck-weather-current strong { font-size: clamp(92px,15vw,180px); }
.wideck-expanded .wideck-card--weather .wideck-weather-symbol { font-size: clamp(80px,10vw,130px) !important; }
.wideck-expanded .wideck-weather-meta,.wideck-expanded .wideck-weather-hours { width: min(100%,720px); }
.wideck-expanded .wideck-card--now .wideck-now-body { width: min(100%,780px); grid-template-columns: minmax(170px,300px) 1fr; gap: clamp(24px,5vw,60px); }
.wideck-expanded .wideck-card--now .wideck-now-body img { width: 100%; height: auto; max-height: none; border-radius: 26px; }
.wideck-expanded .wideck-card--now .wideck-now-body h2 { font-size: clamp(38px,6vw,82px); white-space: normal; }
.wideck-expanded .wideck-card--now .wideck-now-body span { font-size: 16px; }
.wideck-expanded .wideck-card--now .wideck-now-controls { margin-top: 24px; }
.wideck-expanded .wideck-card--now .wideck-now-controls button { width: 50px; height: 50px; font-size: 30px; }
.wideck-expanded .wideck-card--now .wideck-now-controls .wideck-play { width: 58px; height: 58px; font-size: 17px; }
.wideck-expanded .wideck-card--calendar .wideck-calendar-date > strong { font-size: clamp(130px,22vw,280px); }
.wideck-expanded .wideck-card--calendar .wideck-calendar-date b,.wideck-expanded .wideck-card--calendar .wideck-calendar-date i { font-size: clamp(18px,2vw,28px); }
.wideck-expanded .wideck-card--calendar .wideck-calendar-summary { font-size: 18px; }
.wideck-expanded [data-wideck-calendar-events] { display: grid; width: min(100%,700px); gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.wideck-expanded [data-wideck-calendar-events] li { display: flex; justify-content: space-between; padding: 13px 16px; border-radius: 14px; background: rgba(118,118,128,.09); }
.wideck-expanded [data-wideck-calendar-events] button { border: 0; background: transparent; color: var(--wideck-muted); cursor: pointer; font-size: 20px; }
.wideck-expanded [data-wideck-calendar-form] { display: grid; width: min(100%,700px); grid-template-columns: 1fr auto; gap: 9px; }
.wideck-expanded [data-wideck-calendar-form] input { min-height: 44px; padding: 0 14px; border: 1px solid var(--wideck-line); border-radius: 14px; outline: 0; background: rgba(255,255,255,.7); color: inherit; }
.wideck-expanded .wideck-card--battery .wideck-battery-main { width: min(100%,720px); grid-template-columns: minmax(180px,280px) 1fr; }
.wideck-expanded .wideck-battery-main h2 { font-size: clamp(34px,5vw,64px); }
.wideck-expanded .wideck-card--prompt .wideck-prompt-copy { max-width: 18ch; font-size: clamp(40px,7vw,92px); -webkit-line-clamp: initial; }
.wideck-expanded .wideck-card--memory .wideck-memory-copy strong { font-size: clamp(46px,8vw,100px); white-space: normal; }
.wideck-expanded .wideck-card--radar .wideck-radar-list { width: min(100%,820px); grid-template-columns: 1fr; margin-top: 25px; }
.wideck-expanded .wideck-card--radar .wideck-radar-list a { padding: 20px; }
.wideck-expanded .wideck-card--radar .wideck-radar-list span { font-size: 18px; }
.wideck-expanded .wideck-card--todo .wideck-todo-summary strong { font-size: clamp(72px,12vw,150px); }
.wideck-expanded .wideck-card--todo .wideck-todo-list { width: min(100%,700px); max-height: 45svh; overflow-y: auto; }
.wideck-expanded .wideck-card--todo .wideck-todo-list li { display: flex; padding: 11px 4px; font-size: 16px; }
.wideck-expanded .wideck-card--todo .wideck-todo-delete { display: block; }
.wideck-expanded .wideck-card--todo .wideck-todo-form { width: min(100%,700px); min-height: 44px; }

@media (max-width:760px) {
  .wideck-grid > .wideck-card--now[data-wideck-mobile-size="2x1"] { padding: 11px 12px !important; }
  .wideck-grid > .wideck-card--now .wideck-now-body { grid-template-columns: 52px minmax(0,1fr); gap: 8px; margin: 0; }
  .wideck-grid > .wideck-card--now .wideck-now-body img { width: 52px; height: 52px; }
  .wideck-grid > .wideck-card--now .wideck-now-controls button:first-child { display: none; }
  .wideck-grid > .wideck-card--weather .wideck-weather-current strong { font-size: 52px; }
  .wideck-grid > .wideck-card--weather .wideck-weather-symbol { font-size: 40px !important; }
  .wideck-grid > .wideck-card--battery .wideck-battery-main { grid-template-columns: 94px 1fr; }
  .wideck-grid > .wideck-card--radar .wideck-radar-list a { padding: 6px; }
  .wideck-expanded .wideck-card:not(.wideck-card--sandbox) { padding: 88px 24px 38px; }
  .wideck-expanded .wideck-card--now .wideck-now-body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .wideck-expanded .wideck-card--now .wideck-now-body img { width: min(62vw,290px); }
  .wideck-expanded .wideck-card--now .wideck-now-controls { align-self: center; }
  .wideck-expanded .wideck-card--battery .wideck-battery-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

.wideck-library-card-preview .wideck-detail { display: none !important; }
.wideck-library-card-preview.wideck-card--weather .wideck-weather-current strong { font-size: clamp(38px,4vw,56px); }
.wideck-library-card-preview.wideck-card--weather .wideck-weather-meta,
.wideck-library-card-preview.wideck-card--todo .wideck-todo-form { display: none !important; }
.wideck-library-card-preview.wideck-card--calendar .wideck-calendar-date > strong { font-size: clamp(42px,4.8vw,64px); }
.wideck-library-card-preview.wideck-card--battery .wideck-battery-main { grid-template-columns: 78px 1fr; }
.wideck-library-card-preview.wideck-card--battery .wideck-battery-ring { width: 78px; }
.wideck-card--todo .wideck-todo-list li:nth-child(3) { display: flex !important; }
.wideck-card--todo .wideck-todo-list li:nth-child(n+4) { display: none !important; }
html[data-theme="dark"] .wideck-card--now .wideck-now-controls .wideck-play { background: #f5f5f7; color: #1d1d1f !important; }

/* WIDECK V5 — native Apple-like surfaces and strict square-grid geometry. */
.wideck-grid {
  min-height: calc(var(--wideck-cell) * 2 + var(--wideck-gap));
}
.wideck-card[data-wideck-kind="system"] {
  border: 1px solid rgba(60,60,67,.1);
  border-radius: 26px;
  color: var(--wideck-ink);
  box-shadow: 0 12px 34px rgba(25,32,44,.075),inset 0 1px 0 rgba(255,255,255,.82);
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","PingFang SC",sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wideck-card[data-wideck-kind="system"]::after {
  border-color: rgba(60,60,67,.035);
}
.wideck-card[data-wideck-kind="system"] .wideck-card-head > span {
  color: #6e6e73;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -.005em;
}
.wideck-card[data-wideck-kind="system"] .wideck-card-tools button {
  border: 1px solid rgba(60,60,67,.06);
  background: rgba(118,118,128,.1);
  color: #55555a;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
@media (hover:hover) {
  .wideck-card[data-wideck-kind="system"]:hover {
    transform: translateY(-2px) scale(1.002);
    box-shadow: 0 18px 46px rgba(25,32,44,.11),inset 0 1px 0 #fff;
  }
}
.wideck-card--weather[data-wideck-kind="system"] { background: linear-gradient(145deg,#eaf5ff 0%,#f7fbff 44%,#fff 100%); }
.wideck-card--calendar[data-wideck-kind="system"] { background: linear-gradient(150deg,#fff 0%,#fbfbfd 100%); }
.wideck-card--battery[data-wideck-kind="system"] { background: linear-gradient(145deg,#f2eff7 0%,#fbfafd 54%,#fff 100%); }
.wideck-card--prompt[data-wideck-kind="system"] { background: linear-gradient(145deg,#f5f9ff 0%,#fff 100%); }
.wideck-card--radar[data-wideck-kind="system"] { background: linear-gradient(145deg,#f8fafc 0%,#fff 70%); }
.wideck-card--todo[data-wideck-kind="system"] { background: linear-gradient(145deg,#eef9f3 0%,#fbfefc 58%,#fff 100%); }
.wideck-card--now[data-wideck-kind="system"] {
  background: var(--wideck-now-cover) center/cover,#eef4fb;
}
.wideck-card--now[data-wideck-kind="system"]::before {
  background: linear-gradient(100deg,rgba(255,255,255,.98) 16%,rgba(250,252,255,.9) 66%,rgba(244,248,253,.76));
  backdrop-filter: blur(3px) saturate(120%);
  -webkit-backdrop-filter: blur(3px) saturate(120%);
}
.wideck-weather-meta span,
.wideck-battery-grid span,
.wideck-radar-list a,
.wideck-todo-form {
  border-color: rgba(60,60,67,.08);
  background: rgba(255,255,255,.64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.wideck-battery-ring {
  box-shadow: inset 0 0 0 9px rgba(250,250,252,.94),0 8px 22px rgba(74,61,89,.08);
}
.wideck-prompt-refresh {
  border: 1px solid rgba(0,113,227,.06);
  background: rgba(0,113,227,.09);
  backdrop-filter: blur(12px);
}

.wideck-sandbox-gate {
  inset: auto 14px 14px;
  display: grid;
  max-width: min(390px,calc(100% - 28px));
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  align-content: initial;
  align-items: center;
  justify-items: stretch;
  overflow: hidden;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(60,60,67,.1);
  border-radius: 17px;
  background:
    radial-gradient(circle at 92% 8%,rgba(0,122,255,.13),transparent 35%),
    linear-gradient(145deg,rgba(250,250,252,.93),rgba(240,243,248,.93));
  color: #1d1d1f;
  box-shadow: 0 10px 28px rgba(25,32,44,.12),inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.wideck-sandbox-gate span,.wideck-sandbox-gate strong { display: none; }
.wideck-card[data-wideck-trust="publisher"] .wideck-sandbox-gate span { color: #16805f; }
.wideck-sandbox-gate small { max-width: none; margin: 0; color: #6e6e73; font-size: 11px; line-height: 1.4; }
.wideck-sandbox-gate button {
  min-height: 34px;
  margin: 0;
  padding: 0 13px;
  background: #0071e3;
  box-shadow: 0 7px 18px rgba(0,113,227,.2);
  transition: transform .18s ease,background .18s ease;
}
.wideck-sandbox-gate button:hover { background: #0077ed; }
.wideck-sandbox-gate button:active { transform: scale(.96); }
.wideck-sandbox-gate button:disabled { opacity: .68; cursor: wait; transform: none; }
.wideck-card.wideck-card--sandbox {
  overflow: hidden;
  border: 1px solid rgba(60,60,67,.1);
  border-radius: 26px;
  background: #fff !important;
  box-shadow: 0 12px 34px rgba(25,32,44,.075),inset 0 1px 0 rgba(255,255,255,.82) !important;
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","PingFang SC",sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wideck-card.wideck-card--sandbox::after { display: block; border-color: rgba(60,60,67,.035); }
.wideck-card.wideck-card--sandbox.is-dragging,
.wideck-card.wideck-card--sandbox.is-dragging:hover {
  z-index: 70;
  opacity: .96;
  transform: translate3d(var(--wideck-drag-x,0px),var(--wideck-drag-y,0px),0) scale(1.025);
  box-shadow: 0 26px 64px rgba(20,32,50,.25),0 8px 20px rgba(20,32,50,.16),inset 0 1px 0 rgba(255,255,255,.92) !important;
  cursor: grabbing;
  transition: box-shadow .16s ease,opacity .12s ease;
  will-change: transform;
}
@media (hover:hover) {
  .wideck-card.wideck-card--sandbox:hover {
    transform: translateY(-2px) scale(1.002);
    box-shadow: 0 18px 46px rgba(25,32,44,.11),inset 0 1px 0 #fff !important;
  }
  .wideck-card.wideck-card--sandbox.is-dragging,
  .wideck-card.wideck-card--sandbox.is-dragging:hover {
    z-index: 70;
    opacity: .96;
    transform: translate3d(var(--wideck-drag-x,0px),var(--wideck-drag-y,0px),0) scale(1.028);
    box-shadow: 0 30px 72px rgba(20,32,50,.28),0 10px 24px rgba(20,32,50,.16),inset 0 1px 0 rgba(255,255,255,.92) !important;
  }
}
.wideck-card--sandbox .wideck-sandbox-frame { opacity: 1; transition: opacity .24s ease; }
.wideck-card--sandbox[data-wideck-runtime="starting"] .wideck-sandbox-frame { opacity: .38; }
.wideck-card-tools--floating {
  position: absolute;
  z-index: 8;
  top: 8px;
  right: 8px;
  margin: 0;
  color: #fff;
  pointer-events: none;
}
.wideck-card-tools--floating button {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(20,20,23,.48) !important;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  pointer-events: auto;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.wideck-card-tools--floating button:hover { background: rgba(20,20,23,.68) !important; }

html[data-theme="dark"] .wideck-card[data-wideck-kind="system"] {
  border-color: rgba(255,255,255,.095);
  color: #f5f5f7;
  box-shadow: 0 16px 40px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.05);
  --wideck-ink: #f5f5f7;
  --wideck-muted: #a1a1a6;
  --wideck-line: rgba(235,235,245,.14);
}
html[data-theme="dark"] .wideck-card[data-wideck-kind="system"] .wideck-card-head > span,
html[data-theme="dark"] .wideck-card[data-wideck-kind="system"] .wideck-now-body p,
html[data-theme="dark"] .wideck-card[data-wideck-kind="system"] .wideck-now-body span { color: #a1a1a6; }
html[data-theme="dark"] .wideck-card[data-wideck-kind="system"] .wideck-card-tools button {
  border-color: rgba(255,255,255,.07);
  background: rgba(118,118,128,.22);
  color: #e5e5ea;
}
html[data-theme="dark"] .wideck-card--weather[data-wideck-kind="system"] { background: linear-gradient(145deg,#172536 0%,#1b2028 54%,#1c1c1e 100%); }
html[data-theme="dark"] .wideck-card--calendar[data-wideck-kind="system"] { background: linear-gradient(145deg,#242426 0%,#1c1c1e 100%); color: #f5f5f7; --wideck-muted:#a1a1a6; --wideck-line:rgba(235,235,245,.14); }
html[data-theme="dark"] .wideck-card--battery[data-wideck-kind="system"] { background: linear-gradient(145deg,#292531 0%,#211f25 56%,#1c1c1e 100%); }
html[data-theme="dark"] .wideck-card--prompt[data-wideck-kind="system"] { background: linear-gradient(145deg,#192638 0%,#1c2027 58%,#1c1c1e 100%); }
html[data-theme="dark"] .wideck-card--radar[data-wideck-kind="system"] { background: linear-gradient(145deg,#242629 0%,#1c1c1e 100%); }
html[data-theme="dark"] .wideck-card--todo[data-wideck-kind="system"] { background: linear-gradient(145deg,#183027 0%,#1b2420 56%,#1c1c1e 100%); }
html[data-theme="dark"] .wideck-card--now[data-wideck-kind="system"] { background: var(--wideck-now-cover) center/cover,#15171b; }
html[data-theme="dark"] .wideck-card--now[data-wideck-kind="system"]::before { background: linear-gradient(100deg,rgba(19,21,25,.97) 15%,rgba(20,23,28,.88) 68%,rgba(18,20,24,.76)); }
html[data-theme="dark"] .wideck-weather-meta span,
html[data-theme="dark"] .wideck-battery-grid span,
html[data-theme="dark"] .wideck-radar-list a,
html[data-theme="dark"] .wideck-todo-form {
  border-color: rgba(255,255,255,.075);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-theme="dark"] .wideck-calendar-summary { color: #a1a1a6; }
html[data-theme="dark"] .wideck-battery-ring { box-shadow: inset 0 0 0 9px #29272d,0 9px 24px rgba(0,0,0,.2); }
html[data-theme="dark"] .wideck-sandbox-gate {
  border-color: rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 92% 8%,rgba(41,151,255,.18),transparent 36%),
    linear-gradient(145deg,rgba(31,32,36,.98),rgba(18,19,22,.98));
  color: #f5f5f7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
html[data-theme="dark"] .wideck-sandbox-gate span { color: #64b5ff; }
html[data-theme="dark"] .wideck-card[data-wideck-trust="publisher"] .wideck-sandbox-gate span { color: #63d9ae; }
html[data-theme="dark"] .wideck-sandbox-gate small { color: #a1a1a6; }
html[data-theme="dark"] .wideck-card.wideck-card--sandbox {
  border-color: rgba(255,255,255,.095);
  background: #1c1c1e !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.05) !important;
}
html[data-theme="dark"] .wideck-card.wideck-card--sandbox.is-dragging,
html[data-theme="dark"] .wideck-card.wideck-card--sandbox.is-dragging:hover {
  z-index: 70;
  opacity: .96;
  transform: translate3d(var(--wideck-drag-x,0px),var(--wideck-drag-y,0px),0) scale(1.025);
  box-shadow: 0 28px 68px rgba(0,0,0,.58),0 9px 22px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.08) !important;
}
@media (hover:hover) {
  html[data-theme="dark"] .wideck-card.wideck-card--sandbox:not(.is-expanded):not(.is-dragging):hover {
    box-shadow: 0 20px 50px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.06) !important;
  }
  html[data-theme="dark"] .wideck-card.wideck-card--sandbox.is-dragging,
  html[data-theme="dark"] .wideck-card.wideck-card--sandbox.is-dragging:hover {
    z-index: 70;
    opacity: .96;
    transform: translate3d(var(--wideck-drag-x,0px),var(--wideck-drag-y,0px),0) scale(1.028);
    box-shadow: 0 32px 76px rgba(0,0,0,.62),0 10px 24px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.08) !important;
  }
}

.wideck-grid.is-layout-dragging::before {
  border-color: rgba(0,122,255,.8);
  background: rgba(0,122,255,.1);
  box-shadow: 0 0 0 5px rgba(0,122,255,.1),0 12px 30px rgba(0,90,190,.12);
}
.wideck-grid.is-layout-dragging { padding-bottom: min(32vh,280px); }
html.wideck-pointer-held { scroll-behavior: auto !important; }
html.wideck-pointer-held [data-wideck-card],
html.wideck-pointer-held [data-wideck-card] * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}
.wideck-grid > .wideck-card,
.wideck-grid > .wideck-card * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.wideck-grid > .wideck-card input,
.wideck-grid > .wideck-card textarea,
.wideck-grid > .wideck-card [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* System and imported cards share one physical pointer-follow surface. This
   final rule intentionally outranks their individual hover skins. */
.wideck-grid > .wideck-card:not(.is-expanded) { cursor: default; }
.wideck-grid > .wideck-card.is-dragging,
.wideck-grid > .wideck-card.is-dragging:hover {
  z-index: 70;
  opacity: .96;
  transform: translate3d(var(--wideck-drag-x,0px),var(--wideck-drag-y,0px),0);
  box-shadow: 0 30px 72px rgba(20,32,50,.28),0 10px 24px rgba(20,32,50,.16),inset 0 1px 0 rgba(255,255,255,.92) !important;
  cursor: default;
  transition: box-shadow .16s ease,opacity .12s ease;
  touch-action: none !important;
  will-change: transform;
}
.wideck-grid > .wideck-card.is-settling { transition: none !important; }
html[data-theme="dark"] .wideck-grid > .wideck-card.is-dragging,
html[data-theme="dark"] .wideck-grid > .wideck-card.is-dragging:hover {
  box-shadow: 0 32px 76px rgba(0,0,0,.62),0 10px 24px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.wideck-card img,.wideck-card picture {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
html[data-theme="dark"] .wideck-grid.is-layout-dragging::before { border-color: #2997ff; background: rgba(41,151,255,.14); }

@media (max-width:760px) {
  .wideck-grid { min-height: calc(var(--wideck-cell) * 2 + var(--wideck-gap)); }
  .wideck-card[data-wideck-kind="system"],.wideck-card.wideck-card--sandbox { border-radius: 22px; }
  .wideck-sandbox-gate { inset: auto 10px 10px; max-width: calc(100% - 20px); padding: 10px 10px 10px 12px; border-radius: 15px; }
  .wideck-card-tools--floating { top: 7px; right: 7px; opacity: 1; }
}

/* WIDECK V5 official cards — Apple HIG-inspired widget and full-screen layout. */
.wideck-card[data-wideck-kind="system"] {
  --widget-label: #6e6e73;
  --widget-secondary: #6e6e73;
  --widget-separator: rgba(60,60,67,.12);
  padding: 16px;
  border: 1px solid rgba(60,60,67,.08);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.065),inset 0 1px 0 rgba(255,255,255,.72);
  color: #1d1d1f;
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","PingFang SC",sans-serif;
  font-size: 11px;
  line-height: 1.3;
}
.wideck-card[data-wideck-kind="system"] .wideck-card-head { min-height: 30px; align-items: start; }
.wideck-card[data-wideck-kind="system"] .wideck-card-head > span {
  overflow: hidden;
  padding-top: 4px;
  color: var(--widget-label);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wideck-card[data-wideck-kind="system"] .wideck-card-tools { z-index: 5; gap: 4px; }
.wideck-card[data-wideck-kind="system"] .wideck-card-tools button {
  width: 30px;
  height: 30px;
  border: 0;
  background: rgba(118,118,128,.1);
  color: #3a3a3c;
  font-size: 15px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.wideck-card[data-wideck-kind="system"] .wideck-card-tools button:active { transform: scale(.92); }

/* Weather: one dominant value, a concise condition, then a short forecast. */
.wideck-card--weather[data-wideck-kind="system"] { background: linear-gradient(160deg,#eaf5ff 0%,#f7fbff 58%,#fff 100%); }
.wideck-card--weather[data-wideck-kind="system"] .wideck-weather-current { margin: auto 0 16px; align-items: center; }
.wideck-card--weather[data-wideck-kind="system"] .wideck-weather-current strong { font-size: clamp(56px,5.6vw,78px); font-weight: 350; letter-spacing: -.08em; }
.wideck-card--weather[data-wideck-kind="system"] .wideck-weather-current span { margin-top: 8px; color: var(--widget-secondary); font-size: 12px; }
.wideck-card--weather[data-wideck-kind="system"] .wideck-weather-symbol { color: #0a84ff !important; font-size: clamp(46px,4.5vw,64px) !important; }
.wideck-grid > .wideck-card--weather[data-wideck-kind="system"] .wideck-weather-meta { display: none; }
.wideck-card--weather[data-wideck-kind="system"] .wideck-weather-hours { gap: 10px; padding-top: 12px; border-top-color: var(--widget-separator); }
.wideck-card--weather[data-wideck-kind="system"] .wideck-weather-hours time { color: var(--widget-secondary); font-size: 11px; }
.wideck-card--weather[data-wideck-kind="system"] .wideck-weather-hours b { font-size: 13px; }
.wideck-card--weather[data-wideck-kind="system"] .wideck-weather-hours i { font-size: 18px; }

/* Calendar: the date is the single glanceable idea. */
.wideck-card--calendar[data-wideck-kind="system"] { background: #fff; }
.wideck-card--calendar[data-wideck-kind="system"] .wideck-calendar-date { margin: auto 0 12px; gap: 9px; }
.wideck-card--calendar[data-wideck-kind="system"] .wideck-calendar-date > strong { font-size: clamp(58px,5.6vw,78px); font-weight: 450; letter-spacing: -.08em; }
.wideck-card--calendar[data-wideck-kind="system"] .wideck-calendar-date b,
.wideck-card--calendar[data-wideck-kind="system"] .wideck-calendar-date i { font-size: 11px; }
.wideck-card--calendar[data-wideck-kind="system"] .wideck-calendar-summary { color: #8e8e93; font-size: 12px; line-height: 1.35; }

/* Battery: state first; supporting diagnostics stay secondary. */
.wideck-card--battery[data-wideck-kind="system"] { background: linear-gradient(155deg,#f5f2f8,#fff 68%); }
.wideck-card--battery[data-wideck-kind="system"] .wideck-battery-main { margin: auto 0 16px; }
.wideck-card--battery[data-wideck-kind="system"] .wideck-battery-ring { width: min(100%,122px); box-shadow: inset 0 0 0 10px rgba(250,250,252,.96); }
.wideck-card--battery[data-wideck-kind="system"] .wideck-battery-main h2 { font-size: clamp(20px,2.1vw,28px); }
.wideck-card--battery[data-wideck-kind="system"] .wideck-battery-main p { font-size: 11px; }
.wideck-card--battery[data-wideck-kind="system"] .wideck-battery-grid { gap: 8px; }
.wideck-card--battery[data-wideck-kind="system"] .wideck-battery-grid span { padding: 10px; border: 0; background: rgba(118,118,128,.08); }
.wideck-card--battery[data-wideck-kind="system"] .wideck-battery-grid small { font-size: 11px; }
.wideck-card--battery[data-wideck-kind="system"] .wideck-battery-grid b { font-size: 11px; }

/* Music: media may keep full colour; controls stay focused and confident. */
.wideck-card--now[data-wideck-kind="system"] { padding: 14px 16px !important; gap: 6px 12px; background: var(--wideck-now-cover) center/cover,#eceff4; }
.wideck-card--now[data-wideck-kind="system"]::before { background: linear-gradient(100deg,rgba(255,255,255,.98) 12%,rgba(255,255,255,.9) 62%,rgba(255,255,255,.75)); }
.wideck-card--now[data-wideck-kind="system"] .wideck-now-body { grid-template-columns: 64px minmax(0,1fr); gap: 12px; }
.wideck-card--now[data-wideck-kind="system"] .wideck-now-body img { width: 64px; height: 64px; border-radius: 12px; }
.wideck-card--now[data-wideck-kind="system"] .wideck-now-body p { font-size: 11px; letter-spacing: .025em; }
.wideck-card--now[data-wideck-kind="system"] .wideck-now-body h2 { font-size: 16px; }
.wideck-card--now[data-wideck-kind="system"] .wideck-now-body span { font-size: 11px; }
.wideck-card--now[data-wideck-kind="system"] .wideck-now-controls { display: flex; gap: 4px; }
.wideck-card--now[data-wideck-kind="system"] .wideck-now-controls button { width: 32px; height: 32px; }
.wideck-card--now[data-wideck-kind="system"] .wideck-now-controls .wideck-play { width: 38px; height: 38px; }

/* Inspiration, memory, radar and tasks each retain one clear purpose. */
.wideck-card--prompt[data-wideck-kind="system"] { background: linear-gradient(155deg,#f3f8ff,#fff 72%); }
.wideck-card--prompt[data-wideck-kind="system"] .wideck-prompt-copy { max-width: 13ch; font-size: clamp(18px,1.8vw,24px); font-weight: 560; line-height: 1.32; }
.wideck-card--prompt[data-wideck-kind="system"] .wideck-prompt-refresh { width: 32px; height: 32px; }
.wideck-card--memory[data-wideck-kind="system"] { padding: 16px !important; background: #18202d; }
.wideck-card--memory[data-wideck-kind="system"] .wideck-memory-backdrop { background-position: center; }
.wideck-card--memory[data-wideck-kind="system"] .wideck-memory-copy small { font-size: 11px; }
.wideck-card--memory[data-wideck-kind="system"] .wideck-memory-copy strong { font-size: 17px; }
.wideck-card--memory[data-wideck-kind="system"] .wideck-memory-copy button { min-height: 30px; margin-top: 7px; font-size: 11px; }
.wideck-card--radar[data-wideck-kind="system"] { padding: 14px 16px !important; background: #fff; }
.wideck-card--radar[data-wideck-kind="system"] .wideck-radar-title { margin: 4px 0 6px; }
.wideck-card--radar[data-wideck-kind="system"] .wideck-radar-title strong { font-size: 11px; }
.wideck-card--radar[data-wideck-kind="system"] .wideck-radar-list { gap: 8px; }
.wideck-card--radar[data-wideck-kind="system"] .wideck-radar-list a { padding: 9px 10px; border-radius: 12px; background: #f5f5f7; }
.wideck-card--radar[data-wideck-kind="system"] .wideck-radar-list b,
.wideck-card--radar[data-wideck-kind="system"] .wideck-radar-list span { font-size: 11px; }
.wideck-card--todo[data-wideck-kind="system"] { background: linear-gradient(155deg,#eef9f3,#fff 72%); }
.wideck-card--todo[data-wideck-kind="system"] .wideck-todo-summary { margin: auto 0 12px; }
.wideck-card--todo[data-wideck-kind="system"] .wideck-todo-summary strong { font-size: clamp(42px,4.3vw,58px); }
.wideck-card--todo[data-wideck-kind="system"] .wideck-todo-summary span,
.wideck-card--todo[data-wideck-kind="system"] .wideck-todo-list li { font-size: 11px; }
.wideck-grid > .wideck-card--todo[data-wideck-kind="system"] .wideck-todo-form { display: none; }

/* Expanded mode is a responsive app layout, not an enlarged widget. */
.wideck-expanded {
  --expanded-surface: #f5f5f7;
  background: var(--expanded-surface);
}
.wideck-expanded > div { height: 100dvh; min-height: 100svh; }
.wideck-expanded .wideck-card[data-wideck-kind="system"] {
  width: min(100%,1180px);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(92px,calc(env(safe-area-inset-top,0px) + 72px))
    max(28px,calc(env(safe-area-inset-right,0px) + 28px))
    max(40px,calc(env(safe-area-inset-bottom,0px) + 28px))
    max(28px,calc(env(safe-area-inset-left,0px) + 28px));
  align-content: center;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: none !important;
  box-shadow: none;
}
.wideck-expanded .wideck-card[data-wideck-kind="system"]::after { display: none; }
.wideck-expanded .wideck-card[data-wideck-kind="system"]:not(.wideck-card--now):not(.wideck-card--memory) { align-items: center; }
.wideck-expanded .wideck-card[data-wideck-kind="system"] .wideck-card-head {
  position: absolute;
  top: max(22px,calc(env(safe-area-inset-top,0px) + 12px));
  right: max(22px,calc(env(safe-area-inset-right,0px) + 18px));
  left: max(22px,calc(env(safe-area-inset-left,0px) + 18px));
  min-height: 44px;
  align-items: center;
}
.wideck-expanded .wideck-card[data-wideck-kind="system"] .wideck-card-head > span { padding: 0; font-size: 15px; }
.wideck-expanded .wideck-card[data-wideck-kind="system"] .wideck-card-tools button { width: 44px; height: 44px; font-size: 18px; }
.wideck-expanded .wideck-detail { width: min(100%,720px); margin-top: 28px; color: var(--widget-secondary); font-size: 15px; line-height: 1.5; }
.wideck-expanded .wideck-detail button,
.wideck-expanded [data-wideck-calendar-form] button { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
.wideck-expanded .wideck-card--weather[data-wideck-kind="system"] { background: radial-gradient(circle at 78% 16%,rgba(10,132,255,.17),transparent 34%),linear-gradient(180deg,#eef7ff,#f5f5f7 72%); }
.wideck-expanded .wideck-card--weather .wideck-weather-current,
.wideck-expanded .wideck-card--weather .wideck-weather-meta,
.wideck-expanded .wideck-card--weather .wideck-weather-hours { width: min(100%,820px); }
.wideck-expanded .wideck-card--weather .wideck-weather-current { margin: 0 0 32px; }
.wideck-expanded .wideck-card--weather .wideck-weather-current strong { font-size: clamp(96px,16vw,190px); }
.wideck-expanded .wideck-card--weather .wideck-weather-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.wideck-expanded .wideck-card--weather .wideck-weather-meta span { padding: 16px; border-radius: 16px; font-size: 12px; }
.wideck-expanded .wideck-card--weather .wideck-weather-meta b { font-size: 16px; }
.wideck-expanded .wideck-card--weather .wideck-weather-hours { gap: 18px; padding-top: 18px; }
.wideck-expanded .wideck-card--weather .wideck-weather-hours time,
.wideck-expanded .wideck-card--weather .wideck-weather-hours b { font-size: 15px; }
.wideck-expanded .wideck-weather-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wideck-expanded .wideck-card--calendar[data-wideck-kind="system"] { align-content: center; background: #f5f5f7; }
.wideck-expanded .wideck-card--calendar .wideck-calendar-date,
.wideck-expanded .wideck-card--calendar .wideck-calendar-summary,
.wideck-expanded .wideck-card--calendar .wideck-detail { width: min(100%,760px); }
.wideck-expanded .wideck-card--calendar .wideck-calendar-date > strong { font-size: clamp(150px,24vw,300px); }
.wideck-expanded .wideck-card--battery[data-wideck-kind="system"] { background: radial-gradient(circle at 25% 28%,rgba(175,82,222,.1),transparent 32%),#f5f5f7; }
.wideck-expanded .wideck-card--battery .wideck-battery-main,
.wideck-expanded .wideck-card--battery .wideck-battery-grid,
.wideck-expanded .wideck-card--battery .wideck-detail { width: min(100%,800px); }
.wideck-expanded .wideck-card--now[data-wideck-kind="system"] { display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; background: var(--wideck-now-cover) center/cover,#1c1c1e; color: #fff; }
.wideck-expanded .wideck-card--now[data-wideck-kind="system"]::before { background: linear-gradient(90deg,rgba(12,13,16,.94),rgba(18,20,25,.82) 60%,rgba(18,20,25,.64)); }
.wideck-expanded .wideck-card--now .wideck-card-head { grid-column: 1/-1; }
.wideck-expanded .wideck-card--now .wideck-now-body { width: min(100%,860px); grid-template-columns: minmax(220px,340px) minmax(0,1fr); }
.wideck-expanded .wideck-card--now .wideck-now-controls { align-self: center; }
.wideck-expanded .wideck-card--now .wideck-detail { grid-column: 1/-1; color: rgba(255,255,255,.72); }
.wideck-expanded .wideck-card--prompt[data-wideck-kind="system"] { background: radial-gradient(circle at 70% 20%,rgba(10,132,255,.12),transparent 30%),#f5f5f7; }
.wideck-expanded .wideck-card--prompt .wideck-prompt-copy { max-width: 18ch; font-size: clamp(44px,7vw,88px); }
.wideck-expanded .wideck-card--prompt .wideck-prompt-refresh { position: static; width: 44px; height: 44px; margin-top: 24px; font-size: 20px; }
.wideck-expanded .wideck-card--memory[data-wideck-kind="system"] { width: 100%; max-width: none; background: #101216; color: #fff; }
.wideck-expanded .wideck-card--memory .wideck-memory-backdrop { transform: none; }
.wideck-expanded .wideck-card--memory .wideck-memory-copy { width: min(100%,980px); min-height: 52svh; justify-content: end; }
.wideck-expanded .wideck-card--memory .wideck-memory-copy button { min-height: 44px; padding: 0 18px; font-size: 15px; }
.wideck-expanded .wideck-card--radar .wideck-radar-title,
.wideck-expanded .wideck-card--radar .wideck-radar-list { width: min(100%,900px); }
.wideck-expanded .wideck-card--radar .wideck-radar-list { grid-template-columns: 1fr; gap: 10px; }
.wideck-expanded .wideck-card--radar .wideck-radar-list a { min-height: 64px; padding: 18px; align-content: center; }
.wideck-expanded .wideck-card--todo .wideck-todo-summary,
.wideck-expanded .wideck-card--todo .wideck-todo-list,
.wideck-expanded .wideck-card--todo .wideck-todo-form { width: min(100%,760px); }
.wideck-expanded .wideck-card--todo .wideck-todo-form { display: grid; }
.wideck-expanded .wideck-card--todo .wideck-todo-list li > button:first-child { width: 24px; height: 24px; }

html[data-theme="dark"] .wideck-card[data-wideck-kind="system"] {
  --widget-label: #a1a1a6;
  --widget-secondary: #a1a1a6;
  --widget-separator: rgba(235,235,245,.14);
  border-color: rgba(255,255,255,.08);
  background: #1c1c1e;
  color: #f5f5f7;
  box-shadow: 0 12px 30px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.04);
}
html[data-theme="dark"] .wideck-card--weather[data-wideck-kind="system"] { background: linear-gradient(155deg,#17283a,#1c1c1e 72%); }
html[data-theme="dark"] .wideck-card--calendar[data-wideck-kind="system"] { background: #1c1c1e; color: #f5f5f7; }
html[data-theme="dark"] .wideck-card--battery[data-wideck-kind="system"] { background: linear-gradient(155deg,#2b2531,#1c1c1e 72%); }
html[data-theme="dark"] .wideck-card--prompt[data-wideck-kind="system"] { background: linear-gradient(155deg,#1b293b,#1c1c1e 72%); }
html[data-theme="dark"] .wideck-card--radar[data-wideck-kind="system"] { background: #1c1c1e; }
html[data-theme="dark"] .wideck-card--todo[data-wideck-kind="system"] { background: linear-gradient(155deg,#183027,#1c1c1e 72%); }
html[data-theme="dark"] .wideck-card--radar[data-wideck-kind="system"] .wideck-radar-list a,
html[data-theme="dark"] .wideck-card--battery[data-wideck-kind="system"] .wideck-battery-grid span { background: rgba(118,118,128,.18); }
html[data-theme="dark"] .wideck-card[data-wideck-kind="system"] .wideck-card-tools button { background: rgba(118,118,128,.24); color: #f5f5f7; }
html[data-theme="dark"] .wideck-expanded { --expanded-surface: #000; }
html[data-theme="dark"] .wideck-expanded .wideck-card[data-wideck-kind="system"] { background-color: #000; box-shadow: none; }
html[data-theme="dark"] .wideck-expanded .wideck-card--weather[data-wideck-kind="system"] { background: radial-gradient(circle at 78% 16%,rgba(10,132,255,.22),transparent 34%),#000; }
html[data-theme="dark"] .wideck-expanded .wideck-card--calendar[data-wideck-kind="system"],
html[data-theme="dark"] .wideck-expanded .wideck-card--battery[data-wideck-kind="system"],
html[data-theme="dark"] .wideck-expanded .wideck-card--prompt[data-wideck-kind="system"] { background-color: #000; }

@media (max-width:760px) {
  .wideck-card[data-wideck-kind="system"] { padding: 16px; border-radius: 22px; }
  .wideck-card[data-wideck-kind="system"] .wideck-card-tools button { width: 30px; height: 30px; }
  .wideck-grid > .wideck-card--weather[data-wideck-kind="system"] .wideck-weather-current strong { font-size: 56px; }
  .wideck-grid > .wideck-card--battery[data-wideck-kind="system"] .wideck-battery-main { grid-template-columns: 92px minmax(0,1fr); }
  .wideck-grid > .wideck-card--battery[data-wideck-kind="system"] .wideck-battery-ring { width: 92px; }
  .wideck-grid > .wideck-card--battery[data-wideck-kind="system"] .wideck-battery-grid span:nth-child(2) { display: none; }
  .wideck-grid > .wideck-card--battery[data-wideck-kind="system"] .wideck-battery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wideck-grid > .wideck-card--radar[data-wideck-kind="system"] .wideck-radar-list a { padding: 8px; }
  .wideck-expanded .wideck-card[data-wideck-kind="system"] { padding: max(86px,calc(env(safe-area-inset-top,0px) + 70px)) max(20px,calc(env(safe-area-inset-right,0px) + 20px)) max(32px,calc(env(safe-area-inset-bottom,0px) + 20px)) max(20px,calc(env(safe-area-inset-left,0px) + 20px)); }
  .wideck-expanded .wideck-card--weather .wideck-weather-current strong { font-size: clamp(92px,30vw,150px); }
  .wideck-expanded .wideck-card--weather .wideck-weather-meta { grid-template-columns: 1fr; }
  .wideck-expanded .wideck-card--now[data-wideck-kind="system"] { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .wideck-expanded .wideck-card--now .wideck-now-body { grid-template-columns: 1fr; justify-items: center; }
  .wideck-expanded .wideck-card--now .wideck-now-body img { width: min(68vw,300px); }
  .wideck-expanded .wideck-card--now .wideck-now-controls { justify-self: center; }
  .wideck-expanded .wideck-card--battery .wideck-battery-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (prefers-reduced-motion:reduce) {
  .wideck-card[data-wideck-kind="system"],
  .wideck-card[data-wideck-kind="system"] * { scroll-behavior: auto !important; }
}

/* WIDECK 5.1 — rebuilt official widgets and native full-screen experiences. */
.wideck-card[data-wideck-kind="system"] {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  padding: 14px 16px 16px;
  border-radius: 26px;
  background: #fff;
}
.wideck-card[data-wideck-kind="system"] .wideck-card-head {
  position: relative;
  z-index: 8;
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  min-height: 30px;
  justify-content: space-between;
}
.wideck-widget-view { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; }
.wideck-fullscreen-view { display: none; }
.wideck-card[data-wideck-kind="system"] button { font: inherit; }
.wideck-card[data-wideck-kind="system"] .wideck-card-tools button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
}
.wideck-grid > .wideck-card[data-wideck-kind="system"]:not(.is-dragging):hover { transform: translateY(-2px); }

/* Weather — 1 row × 2 columns. */
.wideck-card--weather[data-wideck-kind="system"] { background: linear-gradient(140deg,#e7f5ff,#f7fbff 62%,#fff); }
.wideck-weather-widget { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(180px,.92fr); gap: 16px; align-items: end; }
.wideck-weather-glance { align-self: center; }
.wideck-weather-glance strong { display: block; font-size: clamp(39px,4.1vw,58px); font-weight: 340; line-height: .88; letter-spacing: -.075em; }
.wideck-weather-glance span { display: block; overflow: hidden; margin-top: 8px; color: var(--widget-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wideck-weather-widget > .wideck-weather-symbol { align-self: center; color: #0a84ff; font-size: 42px; }
.wideck-weather-widget .wideck-weather-hours { align-self: stretch; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; padding: 0; border: 0; }
.wideck-weather-widget .wideck-weather-hours span { display: grid; place-items: center; align-content: center; gap: 5px; border-radius: 14px; background: rgba(255,255,255,.58); }
.wideck-weather-widget .wideck-weather-hours time { color: #6e6e73; font-size: 10px; }
.wideck-weather-widget .wideck-weather-hours i { color: #0a84ff; font-size: 17px; }
.wideck-weather-widget .wideck-weather-hours b { font-size: 12px; }

/* Next — 1 row × 2 columns. */
.wideck-card--todo[data-wideck-kind="system"] { background: linear-gradient(145deg,#edf9f2,#fff 72%); }
.wideck-todo-widget { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 12px; align-items: center; }
.wideck-todo-widget .wideck-todo-summary { display: grid; margin: 0; align-content: center; }
.wideck-todo-widget .wideck-todo-summary strong { font-size: 42px; font-weight: 560; line-height: .9; letter-spacing: -.055em; }
.wideck-todo-widget .wideck-todo-summary span { margin-top: 7px; color: #6e6e73; font-size: 11px; }
.wideck-todo-widget .wideck-todo-list { display: grid; min-height: 0; margin: 0; padding: 0; align-content: center; gap: 7px; }
.wideck-todo-widget .wideck-todo-list li { min-height: 28px; padding: 5px 8px; border: 0; border-radius: 10px; background: rgba(255,255,255,.7); font-size: 11px; }
.wideck-todo-widget .wideck-todo-list li:nth-child(n+3) { display: none; }

/* Now playing. */
.wideck-card--now[data-wideck-kind="system"] { display: flex; padding: 14px 16px 16px !important; background: #f1f2f5; }
.wideck-card--now[data-wideck-kind="system"]::before { background: linear-gradient(100deg,rgba(255,255,255,.97),rgba(255,255,255,.78)); }
.wideck-now-widget { position: relative; z-index: 2; display: grid; grid-template-columns: 62px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.wideck-now-widget > img { width: 62px; height: 62px; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 22px rgba(0,0,0,.13); }
.wideck-now-copy { min-width: 0; }
.wideck-now-copy small { display: block; margin-bottom: 4px; color: #8e8e93; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.wideck-now-copy strong,.wideck-now-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wideck-now-copy strong { font-size: 15px; }
.wideck-now-copy span { margin-top: 3px; color: #6e6e73; font-size: 11px; }
.wideck-now-widget .wideck-now-controls { display: flex; gap: 3px; }
.wideck-now-controls button { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: currentColor; font-size: 20px; }
.wideck-now-controls .wideck-play { width: 38px; height: 38px; background: rgba(118,118,128,.12); font-size: 13px; }

/* Calendar and clock. */
.wideck-calendar-widget { display: grid; align-content: space-between; }
.wideck-calendar-widget .wideck-calendar-date { margin: 3px 0 0; align-items: start; }
.wideck-calendar-widget .wideck-calendar-date > strong { font-size: clamp(52px,5vw,68px); line-height: .9; }
.wideck-calendar-widget > p { overflow: hidden; margin: 0; color: #8e8e93; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wideck-card--clock[data-wideck-kind="system"] { background: linear-gradient(145deg,#17191f,#272b35); color: #fff; }
.wideck-card--clock .wideck-card-head > span { color: rgba(255,255,255,.58) !important; }
.wideck-card--clock .wideck-card-tools button { background: rgba(255,255,255,.12) !important; color: #fff !important; }
.wideck-clock-widget { display: grid; align-content: center; }
.wideck-clock-widget time { font-size: clamp(37px,3.6vw,52px); font-weight: 330; line-height: 1; letter-spacing: -.07em; }
.wideck-clock-widget p { margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: 12px; }
.wideck-clock-widget span { margin-top: 3px; color: rgba(255,255,255,.42); font-size: 9px; letter-spacing: .04em; }

/* Inspiration. */
.wideck-prompt-widget { position: relative; display: grid; align-content: center; }
.wideck-prompt-widget p { max-width: 13ch; margin: 0; font-size: clamp(17px,1.65vw,22px); font-weight: 590; line-height: 1.34; letter-spacing: -.025em; }
.wideck-prompt-widget > button { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(10,132,255,.1); color: #0071e3; }

/* Battery. */
.wideck-battery-widget { display: grid; grid-template-columns: minmax(104px,.72fr) 1.15fr; grid-template-rows: 1fr auto; gap: 14px 20px; align-items: center; }
.wideck-battery-widget .wideck-battery-ring { width: min(100%,132px); grid-row: 1/3; justify-self: center; }
.wideck-battery-copy strong,.wideck-battery-copy span { display: block; }
.wideck-battery-copy strong { font-size: clamp(20px,2vw,28px); letter-spacing: -.03em; }
.wideck-battery-copy span { margin-top: 6px; color: #6e6e73; font-size: 11px; line-height: 1.4; }
.wideck-battery-widget .wideck-battery-grid { grid-template-columns: repeat(3,1fr); gap: 7px; }
.wideck-battery-widget .wideck-battery-grid span { padding: 10px; border: 0; border-radius: 13px; background: rgba(118,118,128,.08); }

/* Radar. */
.wideck-radar-widget { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; align-items: center; }
.wideck-radar-pulse { display: grid; place-items: center; gap: 8px; color: #6e6e73; font-size: 11px; }
.wideck-radar-pulse i { width: 48px; height: 48px; border: 1px solid rgba(10,132,255,.24); border-radius: 50%; background: radial-gradient(circle,#0a84ff 0 4px,rgba(10,132,255,.15) 5px 19px,transparent 20px); box-shadow: 0 0 0 8px rgba(10,132,255,.06); }
.wideck-radar-widget .wideck-radar-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.wideck-radar-widget .wideck-radar-list a { display: grid; min-width: 0; min-height: 62px; padding: 9px; align-content: center; border-radius: 13px; background: #f5f5f7; }
.wideck-radar-widget .wideck-radar-list b,.wideck-radar-widget .wideck-radar-list span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

/* Full-screen: a separate app surface, never an enlarged widget. */
.wideck-expanded { overflow: hidden; background: #f5f5f7; }
.wideck-expanded > div { height: 100dvh; overflow: hidden auto; overscroll-behavior: contain; }
.wideck-expanded .wideck-card[data-wideck-kind="system"],
.wideck-expanded .wideck-card[data-wideck-kind="system"]:hover,
.wideck-expanded .wideck-card[data-wideck-kind="system"]:focus-within {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
  cursor: default;
}
.wideck-expanded .wideck-card[data-wideck-kind="system"]::before,
.wideck-expanded .wideck-card[data-wideck-kind="system"]::after { display: none !important; }
.wideck-expanded .wideck-card[data-wideck-kind="system"] .wideck-card-head {
  position: fixed;
  z-index: 20;
  top: max(16px,env(safe-area-inset-top));
  right: max(18px,env(safe-area-inset-right));
  left: max(18px,env(safe-area-inset-left));
  width: auto;
  min-height: 46px;
  pointer-events: none;
}
.wideck-expanded .wideck-card[data-wideck-kind="system"] .wideck-card-head > span { opacity: 0; }
.wideck-expanded .wideck-card[data-wideck-kind="system"] .wideck-card-tools { margin-left: auto; pointer-events: auto; }
.wideck-expanded .wideck-card[data-wideck-kind="system"] .wideck-card-tools button { width: 44px; height: 44px; background: rgba(118,118,128,.14); color: #1d1d1f; }
.wideck-expanded .wideck-card[data-wideck-kind="system"] .wideck-card-tools [data-card-remove] { display: none !important; }
.wideck-expanded .wideck-widget-view { display: none !important; }
.wideck-expanded .wideck-fullscreen-view { display: block !important; min-height: 100dvh; }
.wideck-screen-shell {
  width: min(100%,1180px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(96px,calc(env(safe-area-inset-top) + 76px)) max(32px,calc(env(safe-area-inset-right) + 32px)) max(52px,calc(env(safe-area-inset-bottom) + 36px)) max(32px,calc(env(safe-area-inset-left) + 32px));
}
.wideck-screen-intro { max-width: 780px; margin-bottom: 38px; }
.wideck-screen-intro > span,.wideck-screen-eyebrow { display: block; margin-bottom: 10px; color: #0071e3; font-size: 14px; font-weight: 700; }
.wideck-screen-intro h1 { margin: 0; font-size: clamp(38px,5vw,72px); font-weight: 650; line-height: 1.03; letter-spacing: -.055em; }
.wideck-screen-intro p { margin: 15px 0 0; color: #6e6e73; font-size: 17px; line-height: 1.55; }
.wideck-screen-panel { padding: 24px; border: 1px solid rgba(60,60,67,.08); border-radius: 24px; background: rgba(255,255,255,.78); box-shadow: 0 12px 34px rgba(15,23,42,.055); }
.wideck-panel-title { display: flex; margin-bottom: 18px; align-items: center; justify-content: space-between; gap: 16px; }
.wideck-panel-title h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.wideck-panel-title span { color: #8e8e93; font-size: 13px; }
.wideck-screen-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.wideck-screen-actions button,.wideck-text-action { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: #0071e3; color: #fff; font-size: 15px; font-weight: 650; }
.wideck-screen-actions button.is-secondary,.wideck-text-action { background: rgba(118,118,128,.12); color: #1d1d1f; }
.wideck-metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.wideck-metric-grid > span { display: grid; min-height: 92px; padding: 16px; align-content: center; border-radius: 18px; background: rgba(255,255,255,.75); }
.wideck-metric-grid small { color: #8e8e93; font-size: 12px; }
.wideck-metric-grid b { margin-top: 5px; font-size: 20px; }

.wideck-weather-screen { min-height: 100dvh; background: radial-gradient(circle at 78% 18%,rgba(10,132,255,.18),transparent 34%),linear-gradient(180deg,#edf7ff,#f5f5f7 72%); }
.wideck-weather-hero { display: flex; margin-bottom: 28px; align-items: end; justify-content: space-between; }
.wideck-weather-hero strong { font-size: clamp(116px,18vw,220px); font-weight: 290; line-height: .78; letter-spacing: -.095em; }
.wideck-weather-hero p { margin: 22px 0 0; color: #6e6e73; font-size: 20px; }
.wideck-weather-hero > span { color: #0a84ff; font-size: clamp(76px,10vw,130px); }
.wideck-weather-screen .wideck-screen-panel { margin-top: 12px; }
.wideck-weather-screen .wideck-weather-hours { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 0; border: 0; }
.wideck-weather-screen .wideck-weather-hours span { display: grid; min-height: 110px; place-items: center; align-content: center; gap: 8px; border-radius: 17px; background: rgba(118,118,128,.07); }
.wideck-weather-screen .wideck-weather-hours time,.wideck-weather-screen .wideck-weather-hours b { font-size: 14px; }
.wideck-weather-screen .wideck-weather-hours i { color: #0a84ff; font-size: 24px; }

.wideck-todo-screen .wideck-todo-panel { max-width: 860px; }
.wideck-todo-screen .wideck-todo-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; }
.wideck-todo-screen .wideck-todo-list li { min-height: 54px; padding: 10px 12px; border: 0; border-radius: 14px; background: rgba(118,118,128,.07); font-size: 15px; }
.wideck-todo-screen .wideck-todo-list li > button:first-child { width: 24px; height: 24px; }
.wideck-todo-form,.wideck-calendar-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.wideck-todo-form input,.wideck-calendar-form input { min-width: 0; height: 46px; padding: 0 14px; border: 1px solid rgba(60,60,67,.12); border-radius: 12px; background: #fff; color: inherit; font: inherit; }
.wideck-todo-form button,.wideck-calendar-form button { min-width: 74px; border: 0; border-radius: 12px; background: #0071e3; color: #fff; font-weight: 650; }

.wideck-now-screen { min-height: 100dvh; background: radial-gradient(circle at 50% 28%,rgba(10,132,255,.18),transparent 40%),#0d0e12; color: #fff; }
.wideck-now-screen .wideck-screen-shell { display: grid; place-items: center; }
.wideck-now-stage { display: grid; width: min(100%,920px); grid-template-columns: minmax(260px,420px) 1fr; gap: clamp(40px,7vw,90px); align-items: center; }
.wideck-now-stage > img { width: 100%; aspect-ratio: 1; border-radius: 28px; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.wideck-now-screen-copy > span { color: rgba(255,255,255,.54); font-size: 13px; font-weight: 650; }
.wideck-now-screen-copy h1 { margin: 12px 0 5px; font-size: clamp(40px,6vw,78px); line-height: 1; letter-spacing: -.055em; }
.wideck-now-screen-copy > p { margin: 0; color: rgba(255,255,255,.62); font-size: 18px; }
.wideck-now-progress { height: 4px; margin: 38px 0 23px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.18); }
.wideck-now-progress i { display: block; width: 36%; height: 100%; border-radius: inherit; background: #fff; }
.wideck-now-screen .wideck-now-controls { display: flex; gap: 12px; align-items: center; }
.wideck-now-screen .wideck-now-controls button { width: 52px; height: 52px; color: #fff; font-size: 34px; }
.wideck-now-screen .wideck-now-controls .wideck-play { width: 64px; height: 64px; background: #fff; color: #111; font-size: 18px; }
.wideck-now-screen .wideck-text-action { margin-top: 26px; background: rgba(255,255,255,.12); color: #fff; }

.wideck-calendar-screen .wideck-screen-intro h1 { display: flex; align-items: baseline; gap: 18px; }
.wideck-calendar-screen .wideck-screen-intro h1 b { font-size: clamp(118px,18vw,210px); font-weight: 430; line-height: .78; }
.wideck-calendar-screen .wideck-screen-intro h1 em { color: #ff3b30; font-size: clamp(30px,4vw,52px); font-style: normal; }
.wideck-calendar-screen .wideck-screen-panel { max-width: 860px; }
.wideck-calendar-events { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.wideck-calendar-events li { padding: 14px; border-radius: 14px; background: rgba(118,118,128,.07); }

.wideck-prompt-screen { display: grid; align-content: center; }
.wideck-prompt-screen blockquote { max-width: 17ch; margin: 0; font-size: clamp(46px,7.2vw,96px); font-weight: 620; line-height: 1.08; letter-spacing: -.055em; }
.wideck-prompt-screen > p { max-width: 560px; margin: 26px 0 0; color: #6e6e73; font-size: 17px; line-height: 1.6; }

.wideck-battery-dashboard { display: grid; max-width: 900px; grid-template-columns: minmax(200px,320px) 1fr; gap: clamp(30px,6vw,72px); align-items: center; }
.wideck-battery-dashboard > .wideck-battery-ring { width: min(100%,300px); }
.wideck-battery-dashboard .wideck-battery-grid { grid-template-columns: 1fr; }

.wideck-radar-screen .wideck-screen-panel { max-width: 930px; }
.wideck-radar-screen .wideck-radar-list { display: grid; gap: 9px; }
.wideck-radar-screen .wideck-radar-list a { display: grid; grid-template-columns: 90px 1fr auto; min-height: 66px; padding: 16px; align-items: center; border-radius: 16px; background: rgba(118,118,128,.07); color: inherit; text-decoration: none; }
.wideck-radar-screen .wideck-radar-list a::after { content: "›"; color: #8e8e93; font-size: 24px; }
.wideck-radar-screen .wideck-radar-list span { color: #6e6e73; }
.wideck-icon-action { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(118,118,128,.1); color: inherit; }

.wideck-clock-screen { display: grid; align-content: center; background: radial-gradient(circle at 50% 48%,rgba(10,132,255,.13),transparent 32%),#050609; color: #fff; }
.wideck-clock-screen .wideck-screen-eyebrow { color: rgba(255,255,255,.5); }
.wideck-clock-screen time { font-size: clamp(112px,24vw,320px); font-weight: 260; line-height: .82; letter-spacing: -.09em; }
.wideck-clock-screen p { margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: clamp(22px,3vw,38px); }
.wideck-clock-rule { width: min(100%,760px); height: 1px; margin: 42px 0 20px; background: rgba(255,255,255,.14); }
.wideck-clock-screen small { color: rgba(255,255,255,.44); font-size: 13px; }

html[data-theme="dark"] .wideck-card--clock[data-wideck-kind="system"] { background: linear-gradient(145deg,#111319,#262a35); }
html[data-theme="dark"] .wideck-card--now[data-wideck-kind="system"]::before { background: linear-gradient(100deg,rgba(28,28,30,.98),rgba(28,28,30,.82)); }
html[data-theme="dark"] .wideck-radar-widget .wideck-radar-list a,
html[data-theme="dark"] .wideck-todo-widget .wideck-todo-list li { background: rgba(118,118,128,.16); }
html[data-theme="dark"] .wideck-expanded { background: #000; }
html[data-theme="dark"] .wideck-expanded .wideck-card[data-wideck-kind="system"] .wideck-card-tools button { background: rgba(118,118,128,.28); color: #fff; }
html[data-theme="dark"] .wideck-screen-shell { color: #f5f5f7; }
html[data-theme="dark"] .wideck-screen-intro p,
html[data-theme="dark"] .wideck-prompt-screen > p,
html[data-theme="dark"] .wideck-radar-screen .wideck-radar-list span { color: #a1a1a6; }
html[data-theme="dark"] .wideck-screen-panel { border-color: rgba(255,255,255,.08); background: rgba(28,28,30,.82); box-shadow: none; }
html[data-theme="dark"] .wideck-metric-grid > span,
html[data-theme="dark"] .wideck-todo-screen .wideck-todo-list li,
html[data-theme="dark"] .wideck-calendar-events li,
html[data-theme="dark"] .wideck-radar-screen .wideck-radar-list a { background: rgba(118,118,128,.17); }
html[data-theme="dark"] .wideck-screen-actions button.is-secondary,
html[data-theme="dark"] .wideck-text-action { background: rgba(118,118,128,.28); color: #fff; }
html[data-theme="dark"] .wideck-todo-form input,
html[data-theme="dark"] .wideck-calendar-form input { border-color: rgba(255,255,255,.1); background: #1c1c1e; color: #fff; }
html[data-theme="dark"] .wideck-weather-screen { background: radial-gradient(circle at 78% 18%,rgba(10,132,255,.22),transparent 34%),#000; }

.wideck-library-card-preview .wideck-fullscreen-view { display: none !important; }

@media (max-width:760px) {
  .wideck-card[data-wideck-kind="system"] { padding: 13px 14px 14px; }
  .wideck-weather-widget { grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .wideck-weather-widget .wideck-weather-hours { display: none; }
  .wideck-weather-glance strong { font-size: 42px; }
  .wideck-weather-widget > .wideck-weather-symbol { font-size: 34px; }
  .wideck-todo-widget { grid-template-columns: 72px minmax(0,1fr); gap: 8px; }
  .wideck-todo-widget .wideck-todo-summary strong { font-size: 34px; }
  .wideck-todo-widget .wideck-todo-list li { padding: 4px 6px; }
  .wideck-now-widget { grid-template-columns: 52px minmax(0,1fr) auto; gap: 9px; }
  .wideck-now-widget > img { width: 52px; height: 52px; border-radius: 11px; }
  .wideck-now-widget .wideck-now-controls button:not(.wideck-play) { display: none; }
  .wideck-radar-widget { grid-template-columns: 66px minmax(0,1fr); gap: 8px; }
  .wideck-radar-pulse i { width: 38px; height: 38px; }
  .wideck-radar-widget .wideck-radar-list a { padding: 7px; }
  .wideck-screen-shell { padding: max(84px,calc(env(safe-area-inset-top) + 70px)) max(20px,calc(env(safe-area-inset-right) + 20px)) max(34px,calc(env(safe-area-inset-bottom) + 22px)) max(20px,calc(env(safe-area-inset-left) + 20px)); }
  .wideck-screen-intro { margin-bottom: 26px; }
  .wideck-screen-intro h1 { font-size: 40px; }
  .wideck-screen-intro p { font-size: 15px; }
  .wideck-screen-panel { padding: 18px; border-radius: 20px; }
  .wideck-metric-grid { grid-template-columns: 1fr; }
  .wideck-weather-hero strong { font-size: min(36vw,142px); }
  .wideck-weather-hero > span { font-size: 60px; }
  .wideck-weather-screen .wideck-weather-hours span { min-height: 90px; }
  .wideck-now-stage { grid-template-columns: 1fr; gap: 30px; justify-items: center; text-align: center; }
  .wideck-now-stage > img { width: min(68vw,310px); border-radius: 24px; }
  .wideck-now-screen-copy { width: 100%; }
  .wideck-now-screen .wideck-now-controls { justify-content: center; }
  .wideck-calendar-screen .wideck-screen-intro h1 b { font-size: 126px; }
  .wideck-battery-dashboard { grid-template-columns: 1fr; justify-items: center; }
  .wideck-battery-dashboard > .wideck-battery-ring { width: 210px; }
  .wideck-battery-dashboard .wideck-battery-grid { width: 100%; }
  .wideck-prompt-screen blockquote { font-size: clamp(42px,12vw,68px); }
  .wideck-clock-screen time { font-size: min(30vw,150px); }
  .wideck-radar-screen .wideck-radar-list a { grid-template-columns: 68px minmax(0,1fr) auto; }
}

/* WIDECK 5.2 — shared host controls for system and imported cards */
.wideck-grid > .wideck-card[data-wideck-kind="system"] .wideck-card-head {
  position: static;
  padding-right: 72px;
}

.wideck-grid > .wideck-card .wideck-card-tools--host {
  position: absolute !important;
  z-index: 18;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  display: flex !important;
  align-items: center;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.96);
  transform-origin: top right;
  transition: opacity 160ms ease,visibility 160ms ease,transform 180ms cubic-bezier(.2,.8,.2,1);
}

.wideck-grid > .wideck-card .wideck-card-tools--host button {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px;
  min-height: 30px;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(60,60,67,.13) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.78) !important;
  color: #1d1d1f !important;
  box-shadow: 0 3px 14px rgba(0,0,0,.1),inset 0 1px 0 rgba(255,255,255,.88) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  font: 600 15px/1 -apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC",sans-serif;
  cursor: pointer;
  transform: none;
  transition: background-color 160ms ease,border-color 160ms ease,transform 120ms ease;
}

.wideck-grid > .wideck-card .wideck-card-tools--host button:hover {
  background: rgba(255,255,255,.96) !important;
  border-color: rgba(60,60,67,.2) !important;
}

.wideck-grid > .wideck-card .wideck-card-tools--host button:active { transform: scale(.92); }
.wideck-grid > .wideck-card .wideck-card-tools--host button:focus-visible { outline: 3px solid rgba(10,132,255,.34); outline-offset: 2px; }

.wideck-expanded .wideck-card-tools--host,
.wideck-card.wideck-card--sandbox.is-expanded .wideck-card-tools--host {
  position: fixed !important;
  z-index: 1000004 !important;
  top: max(16px,env(safe-area-inset-top)) !important;
  right: max(18px,env(safe-area-inset-right)) !important;
  left: auto !important;
  display: flex !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.wideck-expanded .wideck-card-tools--host [data-card-remove],
.wideck-card.wideck-card--sandbox.is-expanded .wideck-card-tools--host [data-card-remove] { display: none !important; }

.wideck-expanded .wideck-card-tools--host [data-card-expand],
.wideck-card.wideck-card--sandbox.is-expanded .wideck-card-tools--host [data-card-expand] {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(60,60,67,.13) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.8) !important;
  color: #1d1d1f !important;
  box-shadow: 0 5px 22px rgba(0,0,0,.13),inset 0 1px 0 rgba(255,255,255,.9) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  font-size: 18px !important;
}

:root[data-theme="dark"] .wideck-grid > .wideck-card .wideck-card-tools--host button,
:root[data-theme="dark"] .wideck-expanded .wideck-card-tools--host [data-card-expand],
:root[data-theme="dark"] .wideck-card.wideck-card--sandbox.is-expanded .wideck-card-tools--host [data-card-expand] {
  border-color: rgba(255,255,255,.2) !important;
  background: rgba(30,30,32,.62) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.08) !important;
}

:root[data-theme="dark"] .wideck-grid > .wideck-card .wideck-card-tools--host button:hover,
:root[data-theme="dark"] .wideck-expanded .wideck-card-tools--host [data-card-expand]:hover,
:root[data-theme="dark"] .wideck-card.wideck-card--sandbox.is-expanded .wideck-card-tools--host [data-card-expand]:hover {
  border-color: rgba(255,255,255,.32) !important;
  background: rgba(30,30,32,.8) !important;
}

@media (hover:hover) and (pointer:fine) {
  .wideck-grid > .wideck-card:not(.is-expanded) .wideck-card-tools--host { opacity: 0; }
  .wideck-grid > .wideck-card:not(.is-expanded):hover .wideck-card-tools--host,
  .wideck-grid > .wideck-card:not(.is-expanded):focus-within .wideck-card-tools--host {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

@media (hover:none),(pointer:coarse),(max-width:760px) {
  .wideck-grid > .wideck-card:not(.is-expanded) .wideck-card-tools--host {
    top: 8px !important;
    right: 8px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(.94);
  }
  .wideck-grid > .wideck-card:not(.is-expanded).is-controls-visible .wideck-card-tools--host,
  .wideck-grid > .wideck-card:not(.is-expanded):focus-within .wideck-card-tools--host {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none;
  }
  .wideck-expanded .wideck-card-tools--host,
  .wideck-card.wideck-card--sandbox.is-expanded .wideck-card-tools--host {
    top: max(12px,env(safe-area-inset-top)) !important;
    right: max(12px,env(safe-area-inset-right)) !important;
  }
}

@media (max-width:760px) and (hover:hover), (max-width:760px) and (any-hover:hover) {
  .wideck-grid > .wideck-card:not(.is-expanded):hover .wideck-card-tools--host {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none;
  }
}

@media (max-width:920px) {
  .wideck-nav-trigger { width: 40px; height: 40px; flex-basis: 40px; }
}

@media (max-width:640px) {
  .wideck-nav-trigger { width: 38px; height: 38px; flex-basis: 38px; }
  .wideck-nav-trigger [data-icon] { width: 18px; height: 18px; }
  body:has(main) .nav-compact .wideck-nav-trigger { width: 34px; height: 34px; flex-basis: 34px; }
}

/* The physical picked-up state must be the last transform authority. Mobile
   Safari can retain :hover throughout a long press, while imported cards may
   define their own hover skin; neither is allowed to replace live movement. */
.wideck-grid > .wideck-card.is-dragging,
.wideck-grid > .wideck-card.is-dragging:hover,
.wideck-grid > .wideck-card[data-wideck-kind="system"].is-dragging,
.wideck-grid > .wideck-card[data-wideck-kind="system"].is-dragging:hover,
.wideck-grid > .wideck-card.wideck-card--sandbox.is-dragging,
.wideck-grid > .wideck-card.wideck-card--sandbox.is-dragging:hover {
  z-index: 90 !important;
  opacity: .98;
  -webkit-transform: translate3d(var(--wideck-drag-x,0px),var(--wideck-drag-y,0px),0) scale(1.025) !important;
  transform: translate3d(var(--wideck-drag-x,0px),var(--wideck-drag-y,0px),0) scale(1.025) !important;
  animation: none !important;
  transition: box-shadow .16s ease,opacity .12s ease !important;
  box-shadow: 0 38px 86px rgba(20,32,50,.3),0 13px 30px rgba(20,32,50,.2),inset 0 1px 0 rgba(255,255,255,.92) !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

:root[data-theme="dark"] .wideck-grid > .wideck-card.is-dragging,
:root[data-theme="dark"] .wideck-grid > .wideck-card.is-dragging:hover {
  box-shadow: 0 40px 92px rgba(0,0,0,.66),0 13px 30px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.1) !important;
}
