:root {
  --bg: #edf1f4;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --line: rgba(17, 24, 39, 0.08);
  --text: #13151a;
  --muted: #687383;
  --accent: #6ad6aa;
  --accent-soft: rgba(106, 214, 170, 0.18);
  --danger: #ff6d7d;
  --radius: 30px;
  --shadow: 0 18px 40px rgba(34, 44, 72, 0.08);
  --watch-shadow: 0 40px 80px rgba(18, 20, 26, 0.24);
  font-family: "SF Pro Display", "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(106, 214, 170, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(187, 164, 255, 0.12), transparent 20%),
    linear-gradient(180deg, #f8fafb 0%, #edf1f4 100%);
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 360px minmax(520px, 1fr) 380px;
  gap: 22px;
  padding: 22px;
  overflow: hidden;
}

.left-panel,
.right-panel {
  min-height: 0;
  overflow: hidden;
}

.left-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.left-panel > .panel:last-child {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.center-stage {
  min-height: 0;
  height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel,
.top-actions {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel {
  padding: 20px;
}

.brand-panel {
  padding: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.04;
}

h2 {
  font-size: 22px;
}

.muted {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.panel-head,
.template-head,
.top-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.compact-head {
  align-items: center;
}

.filter-label {
  color: var(--muted);
  font-size: 13px;
}

.strong-label {
  font-weight: 700;
}

.chip,
.size-chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.chip {
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 78%, black);
}

.subtle-chip {
  background: rgba(17, 24, 39, 0.06);
  color: var(--muted);
}

.selected-name {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.swatch-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

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

.theme-swatch {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.theme-swatch:hover,
.theme-swatch.active {
  transform: translateY(-2px);
  border-color: rgba(19, 21, 26, 0.24);
}

.theme-swatch:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.stack-actions,
.toolbar,
.template-save-row,
.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stack-actions {
  margin-top: 14px;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button,
.library-item,
.select-input,
.text-input {
  border: 1px solid var(--line);
  border-radius: 18px;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button,
.library-item {
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 64%, white));
  color: #fff;
  border: 0;
  padding: 12px 18px;
  font-weight: 700;
}

.secondary-button,
.icon-button,
.library-item,
.select-input,
.text-input {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.secondary-button,
.icon-button {
  padding: 11px 14px;
}

.danger {
  color: var(--danger);
}

.secondary-button:hover,
.primary-button:hover,
.icon-button:hover,
.library-item:hover {
  transform: translateY(-1px);
}

.active-pill {
  background: color-mix(in srgb, var(--accent) 16%, white);
  border-color: color-mix(in srgb, var(--accent) 34%, rgba(17, 24, 39, 0.08));
  color: color-mix(in srgb, var(--accent) 74%, black);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.text-input,
.select-input {
  width: 100%;
  padding: 12px 14px;
  outline: none;
}

.template-save-row {
  margin-top: 12px;
  align-items: stretch;
}

.template-save-row .text-input {
  flex: 1;
}

.template-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(144px, 1fr));
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  touch-action: pan-y;
  align-content: start;
}

.template-card {
  padding: 12px;
  border-radius: 18px;
  background: rgba(250, 252, 253, 0.88);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.template-card .template-head {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.template-title {
  font-size: 14px;
  font-weight: 800;
}

.template-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.template-actions .icon-button {
  min-width: 0;
  padding: 7px 0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
}

.template-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 14px);
  gap: 4px;
}

.template-dot {
  min-height: 14px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.06);
}

.template-dot.filled {
  background: linear-gradient(135deg, var(--accent), rgba(17, 24, 39, 0.1));
}

.top-actions {
  padding: 22px;
  flex: none;
}

.watch-stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 0 8px;
  min-height: 0;
}

.watch-frame {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1 / 1.12;
  border-radius: 68px;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(160deg, #4c545f 0%, #909aa6 18%, #2e343d 42%, #76808d 58%, #1d2027 100%);
  box-shadow: var(--watch-shadow);
}

.watch-glass {
  position: absolute;
  inset: 16px;
  border-radius: 54px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 26%);
  pointer-events: none;
}

.watch-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 54px;
  background: #000;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.watch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
}

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
  min-height: 0;
}

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

.grid-row.drag-over {
  outline: 1px dashed rgba(255, 255, 255, 0.18);
  outline-offset: 8px;
}

.widget,
.empty-dropzone {
  min-height: 0;
  height: 100%;
  border-radius: 28px;
}

.widget {
  --widget-accent: var(--accent);
  position: relative;
  background: #000;
  border: 1px solid transparent;
  padding: 12px;
  color: #fff;
  overflow: hidden;
  cursor: grab;
}

.special-widget {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--widget-accent) 22%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.special-widget::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -42%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--widget-accent) 30%, transparent);
  filter: blur(24px);
  opacity: 0.55;
  pointer-events: none;
}

.widget.selected {
  border-color: color-mix(in srgb, var(--widget-accent) 64%, white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 24px color-mix(in srgb, var(--widget-accent) 28%, transparent);
}

.widget.drag-over {
  outline: 2px solid rgba(255, 255, 255, 0.25);
}

.widget[data-span="1"] {
  padding: 10px;
}

.widget[data-span="1"] .hero-top,
.widget[data-span="1"] .status-banner,
.widget[data-span="1"] .period-top {
  gap: 6px;
}

.widget[data-span="1"] .mini-ring {
  width: 30px;
  height: 30px;
}

.widget[data-span="1"] .status-face {
  width: 40px;
  height: 40px;
  font-size: 22px;
}

.widget[data-span="1"] .metric-chip {
  border-radius: 18px;
}

.widget[data-span="1"] .focus-ring.outer,
.widget[data-span="1"] .arc-ring-gradient,
.widget[data-span="1"] .step-ring-circle,
.widget[data-span="1"] .sun-ring-circle,
.widget[data-span="1"] .target-outer {
  width: 80px;
  height: 80px;
}

.widget[data-span="1"] .focus-ring.inner,
.widget[data-span="1"] .target-mid {
  width: 56px;
  height: 56px;
}

.widget[data-span="1"] .target-inner {
  width: 34px;
  height: 34px;
}

.widget[data-span="1"] .arc-ring-cut,
.widget[data-span="1"] .step-ring-cut,
.widget[data-span="1"] .sun-ring-cut {
  width: 58px;
  height: 58px;
}

.widget[data-span="1"] .focus-ring-center,
.widget[data-span="1"] .arc-ring-text strong,
.widget[data-span="1"] .step-ring-text,
.widget[data-span="1"] .sun-ring-text strong {
  font-size: 29px;
  font-weight: 900;
}

.widget[data-span="1"] .arc-ring-text span,
.widget[data-span="1"] .sun-ring-text span {
  font-size: 14px;
  font-weight: 900;
}

.widget[data-span="1"] .step-feet,
.widget[data-span="1"] .sun-mini {
  bottom: 5px;
  font-size: 16px;
}

.widget[data-span="2"] .status-green-title {
  font-size: 24px;
}

.widget[data-span="2"] .status-green-pill {
  font-size: 13px;
  font-weight: 900;
}

.widget[data-span="2"] .metric-pill-shot {
  min-height: 52px;
}

.widget[data-span="2"] .metric-pill-shot strong {
  font-size: 18px;
}

.widget[data-span="2"] .time-main-compact {
  font-size: 86px;
}

.widget[data-span="2"] .status-strip-value {
  font-size: 48px;
}

.widget[data-span="2"] .status-strip-title {
  font-size: 22px;
  max-width: 98px;
}

.widget[data-span="2"] .status-strip-meta {
  font-size: 13px;
  font-weight: 900;
}

.widget[data-span="3"] .status-hero-title {
  font-size: 36px;
}

.widget[data-span="3"] .status-green-title {
  font-size: 34px;
}

.widget[data-span="3"] .status-green-pill {
  font-size: 16px;
  font-weight: 900;
}

.widget[data-span="3"] .avatar-photo {
  width: 66px;
  height: 66px;
}

.widget-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease, background 160ms ease, transform 160ms ease;
}

.widget:hover .widget-remove,
.widget.selected .widget-remove {
  opacity: 1;
}

.widget-remove:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.widget-content {
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.widget-content > * {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.time-fri-large,
.time-fri-compact,
.mood-photo-banner,
.ring-focus-90,
.ring-hrv-78,
.ring-steps-8450,
.ring-sun-80,
.activity-target-small,
.status-green-card,
.metrics-strip-mint,
.status-hero,
.hrv-status-strip,
.steps-sleep-duo,
.status-metrics-stack {
  width: 100%;
  height: 100%;
}

.time-fri-compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.time-fri-corner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.time-fri-compact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 0;
}

.time-fri-corner {
  min-height: 18px;
  justify-content: flex-end;
}

.time-dot-cluster {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--widget-accent) 78%, white) 0 2px, transparent 3px) left center/9px 8px repeat-x;
  opacity: 0.7;
}

.time-main-compact {
  margin-top: auto;
  font-size: 88px;
  line-height: 0.76;
  font-weight: 500;
  letter-spacing: -0.1em;
  white-space: nowrap;
}

.time-caption-row {
  margin-top: 6px;
  color: color-mix(in srgb, var(--widget-accent) 24%, rgba(255, 255, 255, 0.5));
  font-size: 11px;
  font-weight: 800;
}

.time-fri-large {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.time-day {
  align-self: flex-end;
  color: color-mix(in srgb, var(--widget-accent) 72%, #ff756d);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.time-main-large {
  margin-top: 2px;
  font-size: 72px;
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.08em;
}

.mood-photo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-photo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle at 62% 28%, rgba(255, 255, 255, 0.46), transparent 16%),
    linear-gradient(135deg, #8c6a5b, #f0c7a8 38%, #5e7aa5 70%, #28313d);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.mood-copy {
  min-width: 0;
  flex: 1;
}

.mood-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--widget-accent) 18%, #ffd654),
    color-mix(in srgb, var(--widget-accent) 38%, #ff9a7f) 30%,
    color-mix(in srgb, var(--widget-accent) 52%, #ff9af4) 68%,
    color-mix(in srgb, var(--widget-accent) 62%, #b58fff)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mood-sub {
  margin-top: 8px;
  color: color-mix(in srgb, var(--widget-accent) 28%, #ffffff);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rainbow-bars {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.9fr 0.5fr;
  gap: 6px;
}

.rainbow-bars span {
  height: 14px;
  border-radius: 999px;
}

.rainbow-bars span:nth-child(1) {
  background: linear-gradient(90deg, color-mix(in srgb, var(--widget-accent) 26%, #ff6f55), color-mix(in srgb, var(--widget-accent) 54%, #d8a3e3));
}

.rainbow-bars span:nth-child(2) {
  background: linear-gradient(90deg, color-mix(in srgb, var(--widget-accent) 46%, #c19bff), color-mix(in srgb, var(--widget-accent) 64%, #7cb2ff));
}

.rainbow-bars span:nth-child(3) {
  background: linear-gradient(90deg, color-mix(in srgb, var(--widget-accent) 32%, #b8c4b2), color-mix(in srgb, var(--widget-accent) 18%, #efe58d));
}

.rainbow-bars span:nth-child(4) {
  position: relative;
  background: linear-gradient(90deg, color-mix(in srgb, var(--widget-accent) 20%, #f1e06a), color-mix(in srgb, var(--widget-accent) 28%, #ffd13d));
}

.rainbow-bars span:nth-child(4)::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: -8px;
  top: -1px;
  background: #fff9df;
  box-shadow: 0 0 0 3px #111;
}

.focus-ring-wrap,
.arc-ring-wrap,
.step-ring-wrap,
.sun-ring-wrap,
.activity-target-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.focus-ring {
  position: absolute;
  border-radius: 50%;
}

.focus-ring.outer {
  width: 78px;
  height: 78px;
  background: conic-gradient(
    color-mix(in srgb, var(--widget-accent) 54%, #7d38e6),
    color-mix(in srgb, var(--widget-accent) 62%, #b749ef),
    color-mix(in srgb, var(--widget-accent) 36%, #ff83c8),
    color-mix(in srgb, var(--widget-accent) 54%, #7d38e6)
  );
}

.focus-ring.inner {
  width: 54px;
  height: 54px;
  background: conic-gradient(
    color-mix(in srgb, var(--widget-accent) 26%, #f3b4c8),
    color-mix(in srgb, var(--widget-accent) 34%, #ef86d5),
    color-mix(in srgb, var(--widget-accent) 26%, #f3b4c8)
  );
}

.focus-ring.outer.alt-tone {
  background: conic-gradient(
    color-mix(in srgb, var(--widget-accent) 54%, #7b3dff),
    color-mix(in srgb, var(--widget-accent) 68%, white),
    color-mix(in srgb, var(--widget-accent) 38%, #ffa9cf),
    color-mix(in srgb, var(--widget-accent) 54%, #7b3dff)
  );
}

.focus-ring.inner.alt-inner {
  background: conic-gradient(
    color-mix(in srgb, var(--widget-accent) 22%, #ffb6d8),
    color-mix(in srgb, var(--widget-accent) 30%, #e58cd8),
    color-mix(in srgb, var(--widget-accent) 22%, #ffb6d8)
  );
}

.focus-ring.outer::after,
.focus-ring.inner::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #000;
}

.focus-ring.inner::after {
  inset: 8px;
}

.focus-ring-center {
  position: relative;
  z-index: 2;
  font-size: 34px;
  font-weight: 900;
}

.arc-ring-gradient {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: conic-gradient(
    from 215deg,
    color-mix(in srgb, var(--widget-accent) 18%, #ff8a6b) 0 18%,
    color-mix(in srgb, var(--widget-accent) 68%, #7ea4ff) 18% 58%,
    color-mix(in srgb, var(--widget-accent) 34%, #f0e37c) 58% 83%,
    rgba(255,255,255,0.14) 83% 100%
  );
}

.arc-ring-cut {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #000;
}

.arc-ring-end {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--widget-accent) 36%, #f5d84b);
}

.arc-ring-end.one {
  right: 20px;
  bottom: 30px;
}

.arc-ring-end.two {
  right: 13px;
  bottom: 23px;
}

.arc-ring-text {
  position: absolute;
  text-align: center;
}

.arc-ring-text strong {
  display: block;
  font-size: 32px;
  line-height: 0.94;
  font-weight: 900;
}

.arc-ring-text span {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 900;
  color: rgba(255,255,255,0.88);
}

.step-ring-circle,
.sun-ring-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: conic-gradient(from 215deg, transparent 0 12%, color-mix(in srgb, var(--widget-accent) 90%, #2fe95c) 12% 88%, transparent 88% 100%);
}

.step-ring-cut,
.sun-ring-cut {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #000;
}

.step-ring-text {
  position: absolute;
  font-size: 30px;
  font-weight: 900;
}

.step-feet {
  position: absolute;
  bottom: 10px;
  font-size: 18px;
}

.sun-ring-circle {
  background: conic-gradient(
    from 215deg,
    transparent 0 12%,
    color-mix(in srgb, var(--widget-accent) 24%, #ffd22e) 12% 78%,
    rgba(255,255,255,0.14) 78% 100%
  );
}

.sun-ring-text {
  position: absolute;
  text-align: center;
}

.sun-ring-text strong {
  display: block;
  font-size: 30px;
  line-height: 0.95;
  font-weight: 900;
}

.sun-ring-text span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 900;
  color: rgba(255,255,255,0.8);
}

.sun-mini {
  position: absolute;
  bottom: 8px;
  font-size: 16px;
}

.target-ring {
  position: absolute;
  border-radius: 50%;
}

.target-outer {
  width: 82px;
  height: 82px;
  background: color-mix(in srgb, var(--widget-accent) 16%, #ff6872);
}

.target-mid {
  width: 58px;
  height: 58px;
  background: color-mix(in srgb, var(--widget-accent) 56%, #a8ef4f);
}

.target-inner {
  width: 36px;
  height: 36px;
  background: color-mix(in srgb, var(--widget-accent) 72%, #7ee9ff);
}

.target-hole {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  position: relative;
  z-index: 2;
}

.target-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #000;
}

.target-inner::after {
  inset: 6px;
}

.status-green-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-green-card.dark,
.status-green-card.light {
  border-radius: 22px;
  padding: 10px 12px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--widget-accent) 72%, white),
    color-mix(in srgb, var(--widget-accent) 62%, #84caa5)
  );
}

.status-green-card.dark {
  background:
    radial-gradient(circle at top right, rgba(138, 95, 255, 0.25), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--widget-accent) 78%, white), color-mix(in srgb, var(--widget-accent) 64%, #4f9766));
}

.status-face-green {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--widget-accent) 70%, white);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.28);
  font-size: 28px;
}

.status-face-green.outlined {
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.94),
    0 0 0 1px color-mix(in srgb, var(--widget-accent) 30%, rgba(255,255,255,0.4));
}

.status-green-copy {
  min-width: 0;
  flex: 1;
}

.status-green-title {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #122114;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 22px;
  padding: 14px 16px;
}

.status-hero.cool {
  background:
    radial-gradient(circle at top right, rgba(161, 120, 255, 0.28), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--widget-accent) 76%, white), color-mix(in srgb, var(--widget-accent) 64%, #5a8a76));
}

.status-hero.happy {
  background:
    radial-gradient(circle at top left, rgba(255, 213, 110, 0.24), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--widget-accent) 78%, #fff7cb), color-mix(in srgb, var(--widget-accent) 60%, #6db493));
}

.status-hero.sleepy {
  background:
    radial-gradient(circle at top right, rgba(126, 150, 255, 0.24), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--widget-accent) 44%, #7f8cff), color-mix(in srgb, var(--widget-accent) 30%, #354470));
}

.status-hero-face {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--widget-accent) 24%, rgba(255, 255, 255, 0.2));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--widget-accent) 18%, rgba(255,255,255,0.28));
  font-size: 34px;
  flex: none;
}

.status-hero-copy {
  min-width: 0;
  flex: 1;
}

.status-hero-title {
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-hero-bars {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.9fr;
  gap: 8px;
}

.status-hero-bars span {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--widget-accent) 22%, rgba(255,255,255,0.3));
}

.status-green-title.light-text {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.status-green-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--widget-accent) 22%, rgba(32, 45, 52, 0.72));
  color: #eef6f7;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metrics-strip-mint {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  border-radius: 22px;
  padding: 10px 12px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--widget-accent) 52%, white),
    color-mix(in srgb, var(--widget-accent) 66%, #8edbbf)
  );
}

.hrv-status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 22px;
  padding: 10px 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--widget-accent) 66%, #9bd8ff), color-mix(in srgb, var(--widget-accent) 48%, #4f6d78));
}

.hrv-pill-left {
  width: 88px;
  height: 88px;
  flex: none;
}

.hrv-strip-copy {
  min-width: 0;
  flex: 1;
}

.status-strip-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 4px 2px;
}

.status-strip-top,
.status-strip-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.status-strip-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--widget-accent) 14%, rgba(255,255,255,0.08));
  color: color-mix(in srgb, var(--widget-accent) 56%, #ffffff);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.status-strip-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--widget-accent) 16%, rgba(255,255,255,0.08));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--widget-accent) 14%, rgba(255,255,255,0.16));
  font-size: 14px;
}

.status-strip-main {
  align-items: flex-end;
}

.status-strip-value {
  font-size: 52px;
  line-height: 0.84;
  font-weight: 500;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.status-strip-value small {
  margin-left: 4px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--widget-accent) 42%, rgba(255,255,255,0.88));
}

.status-strip-title {
  max-width: 96px;
  text-align: right;
  font-size: 24px;
  line-height: 0.96;
  font-weight: 900;
  color: color-mix(in srgb, var(--widget-accent) 18%, #ffffff);
}

.status-strip-bar {
  margin-top: 8px;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.status-strip-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--widget-accent) 22%, #ff8e78),
    color-mix(in srgb, var(--widget-accent) 78%, #7eb7ff) 55%,
    color-mix(in srgb, var(--widget-accent) 36%, #f5de76)
  );
}

.status-strip-meta {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 900;
  color: color-mix(in srgb, var(--widget-accent) 26%, rgba(255,255,255,0.74));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-strip-card.recovery .status-strip-bar span {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--widget-accent) 24%, #8df2b4),
    color-mix(in srgb, var(--widget-accent) 62%, #7ec8ff),
    color-mix(in srgb, var(--widget-accent) 42%, #f5e07d)
  );
}

.status-strip-card.balance .status-strip-bar span {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--widget-accent) 56%, #8ce0be),
    color-mix(in srgb, var(--widget-accent) 76%, #6be2c6)
  );
}

.status-strip-card.peak .status-strip-bar span {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--widget-accent) 18%, #ffd26f),
    color-mix(in srgb, var(--widget-accent) 58%, #ff9c8f),
    color-mix(in srgb, var(--widget-accent) 72%, #89b9ff)
  );
}

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

.metric-pill-shot.dark-pill {
  background: color-mix(in srgb, var(--widget-accent) 16%, rgba(255,255,255,0.08));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--widget-accent) 14%, rgba(255,255,255,0.18));
  color: #fff;
}

.status-metrics-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-metrics-stack .stack-top {
  height: 54%;
}

.status-metrics-stack .stack-bottom {
  height: calc(46% - 8px);
}

.metric-pill-shot {
  min-height: 54px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--widget-accent) 12%, rgba(255,255,255,0.9));
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #171717;
}

.metric-pill-shot span {
  font-size: 19px;
}

.metric-pill-shot strong {
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.empty-dropzone {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.18);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.hero-top,
.status-banner,
.trend-header,
.period-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 36%, #000 37%),
    conic-gradient(#ff5f7d 0 28%, #e7ff5a 28% 63%, var(--widget-accent) 63% 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.hero-day,
.status-copy small,
.banner-sub,
.chart-caption,
.period-sub,
.custom-image-label,
.cycle-tag {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
}

.hero-clock {
  margin-top: 8px;
  font-size: 58px;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-clock.medium {
  font-size: 42px;
}

.hero-clock.small {
  font-size: 24px;
}

.hero-time-large {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.hero-time-large .hero-clock {
  margin-top: 10px;
}

.hero-time-large .hero-bottom {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-time-large .hero-note {
  font-size: 22px;
  font-weight: 800;
  color: color-mix(in srgb, var(--widget-accent) 75%, white);
}

.analog-wrap {
  height: 100%;
  display: grid;
  place-items: center;
}

.analog-clock {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 54%),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.88) 0 2deg, transparent 2deg 15deg);
  mask: radial-gradient(circle at center, transparent 67%, #000 69%);
}

.analog-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: bottom center;
  border-radius: 999px;
}

.hand.hour {
  width: 5px;
  height: 24px;
  background: #fff;
  margin-left: -2.5px;
}

.hand.minute {
  width: 4px;
  height: 34px;
  background: #fff;
  margin-left: -2px;
}

.hand.second {
  width: 2px;
  height: 38px;
  background: #ff6262;
  margin-left: -1px;
}

.clock-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
}

.data-ring,
.metric-chip,
.image-widget {
  height: 100%;
}

.ring-widget {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.progress-ring {
  width: 46px;
  height: 46px;
}

.progress-ring circle {
  fill: none;
  stroke-width: 7;
}

.progress-track {
  stroke: rgba(255, 255, 255, 0.08);
}

.progress-value {
  stroke: var(--widget-accent);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
}

.ring-number {
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.ring-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
}

.status-banner {
  height: 100%;
  align-items: center;
}

.status-face {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--widget-accent) 78%, white), rgba(255, 255, 255, 0.08));
}

.status-copy {
  flex: 1;
  min-width: 0;
}

.status-copy strong,
.period-main strong,
.sun-copy strong,
.banner-copy strong {
  display: block;
  font-size: 21px;
  line-height: 1.02;
  font-weight: 900;
  color: color-mix(in srgb, var(--widget-accent) 84%, white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-copy span,
.period-main span,
.sun-copy span,
.banner-copy span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sparkles {
  color: #ffe57a;
  font-size: 18px;
}

.banner-card,
.sun-card,
.period-card,
.period-odds,
.chart-card,
.factor-card,
.large-custom-widget {
  height: 100%;
}

.banner-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.banner-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sun-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sun-copy {
  min-width: 0;
}

.sun-copy ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
}

.sun-jar {
  width: 56px;
  height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, #fff0aa, #f6d367);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
  color: #6a5400;
  font-size: 28px;
}

.metric-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.metric-chip {
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  min-width: 0;
  overflow: hidden;
}

.metric-chip .emoji {
  font-size: 20px;
}

.metric-chip strong {
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-chip span:last-child {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
}

.factor-bars {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.factor-bars span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7184, #ffd85a, var(--widget-accent));
}

.mini-stat-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-stat {
  min-height: 56px;
  border-radius: 50%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #000 54%, transparent 56%),
    conic-gradient(var(--widget-accent) 0 76%, rgba(255, 255, 255, 0.12) 76% 100%);
  font-size: 24px;
  font-weight: 900;
}

.chart-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-header strong {
  font-size: 20px;
  font-weight: 900;
}

.chart-header span {
  font-size: 16px;
  font-weight: 900;
  color: color-mix(in srgb, var(--widget-accent) 80%, white);
}

.chart-points {
  margin-top: 10px;
  height: 50px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.chart-points span {
  position: relative;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--widget-accent) 88%, white), rgba(255, 255, 255, 0.1));
}

.chart-points span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--widget-accent) 82%, white);
}

.mood-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
  font-size: 24px;
}

.arc-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arc-wrap {
  margin-top: 10px;
  display: grid;
  place-items: center;
}

.arc-gauge {
  width: 184px;
  height: 184px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at center, #000 48%, transparent 49%),
    conic-gradient(from 220deg, #ff7283 0 18%, #89a8ff 18% 52%, #f9dd58 52% 80%, rgba(255, 255, 255, 0.08) 80% 100%);
  mask: radial-gradient(circle at center, transparent 53%, #000 54%);
}

.arc-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
}

.arc-center strong {
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
}

.arc-center span {
  font-size: 22px;
  font-weight: 900;
}

.period-card,
.period-odds {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 0;
}

.cycle-tag {
  color: color-mix(in srgb, var(--widget-accent) 78%, white);
}

.period-main strong {
  font-size: 22px;
}

.period-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.period-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 800;
}

.bar-card,
.icon-stat-card,
.dual-ring-card,
.sleep-bar-card,
.big-icon-card {
  height: 100%;
}

.bar-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 0;
}

.bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bar-icon {
  font-size: 20px;
}

.bar-value {
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.bar-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.68);
}

.bar-track,
.cycle-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--widget-accent) 88%, white), var(--widget-accent));
}

.icon-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
}

.icon-stat-icon {
  font-size: 28px;
  line-height: 1;
  color: color-mix(in srgb, var(--widget-accent) 86%, white);
}

.icon-stat-value {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.icon-stat-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.68);
}

.dual-ring-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
}

.dual-rings {
  display: flex;
  gap: 6px;
}

.mini-progress {
  width: 34px;
  height: 34px;
}

.mini-progress circle {
  fill: none;
  stroke-width: 5;
}

.dual-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dual-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.dual-copy span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.68);
}

.sleep-bars {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 1.1fr 0.5fr;
  gap: 6px;
}

.sleep-bars span {
  height: 14px;
  border-radius: 999px;
}

.sleep-bars .deep {
  background: #6f63ff;
}

.sleep-bars .core {
  background: #5f88ff;
}

.sleep-bars .rem {
  background: #69d0ff;
}

.sleep-bars .awake {
  background: #ff8b8b;
}

.sleep-legend {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.big-icon-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
}

.big-icon {
  font-size: 42px;
  line-height: 1;
}

.big-icon-copy strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.big-icon-copy span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cycle-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: transparent;
}

.cycle-progress .phase {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.cycle-progress .phase.done {
  background: color-mix(in srgb, var(--widget-accent) 72%, white);
}

.cycle-progress .phase.active {
  background: linear-gradient(90deg, #ff8cab, color-mix(in srgb, var(--widget-accent) 70%, white));
}

.custom-image-widget,
.large-custom-widget {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  min-height: 0;
}

.custom-image-widget img,
.large-custom-widget img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-image-label {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.66));
}

.right-panel {
  min-height: calc(100vh - 44px);
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.library-panel {
  height: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.filter-group + .filter-group {
  margin-top: 10px;
}

.upload-block {
  padding-top: 2px;
}

.upload-drop {
  margin-top: 8px;
  min-height: 64px;
  border-radius: 18px;
  border: 1px dashed rgba(17, 24, 39, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.upload-hint {
  font-size: 11px;
}

.resolution-tips {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.04);
  color: var(--muted);
  font-size: 11px;
}

.resolution-tips p + p {
  margin-top: 2px;
}

.library-list {
  margin-top: 12px;
  flex: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  min-height: 0;
}

.library-item-shell {
  position: relative;
}

.library-item {
  width: 100%;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.library-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
}

.library-item-remove:hover {
  background: rgba(17, 24, 39, 0.9);
}

.library-preview-shell {
  width: 118px;
  height: 84px;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.library-preview-widget {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  padding: 0;
  color: inherit;
}

.library-copy {
  min-width: 0;
}

.library-item-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.05;
}

.library-item-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.library-item-desc {
  margin-top: 4px;
  color: color-mix(in srgb, var(--muted) 94%, white);
  font-size: 11px;
  line-height: 1.25;
}

.size-chip {
  background: rgba(17, 24, 39, 0.05);
  color: var(--muted);
}

.preview-widget {
  position: absolute;
  left: 0;
  top: 0;
}

.status-line {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1320px) {
  .page-shell {
    grid-template-columns: 320px minmax(420px, 1fr) 340px;
  }
}

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .page-shell {
    height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .right-panel,
  .left-panel,
  .center-stage {
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .library-panel {
    max-height: 620px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px;
    gap: 14px;
  }

  .watch-frame {
    border-radius: 44px;
    padding: 14px;
    width: min(100%, 440px);
  }

  .watch-screen {
    border-radius: 36px;
    padding: 14px;
  }

  .hero-clock {
    font-size: 46px;
  }

  .hero-clock.medium {
    font-size: 34px;
  }

  .arc-gauge {
    width: 168px;
    height: 168px;
  }

  .arc-center strong {
    font-size: 50px;
  }

  .widget,
  .empty-dropzone {
    min-height: 0;
  }
}
