:root {
  --bg: #f6f7fb;
  --text: #1d1d1f;
  --text-2: #2a2a30;
  --muted: #6e7280;
  --accent: #0070f3;
  --accent-2: #7c3aed;
  --hot: #ff3b8b;
  --lime: #34d399;
  --amber: #ff9f0a;
  --cyan: #06b6d4;
  --good: #16a34a;
  --bad: #ef4444;
  --warn: #f59e0b;
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-border: rgba(255, 255, 255, 0.65);
  --card-shadow: 0 8px 32px -8px rgba(31, 41, 55, 0.18), 0 2px 6px rgba(31, 41, 55, 0.04);
  --card-shadow-hover: 0 18px 48px -12px rgba(31, 41, 55, 0.28), 0 4px 10px rgba(31, 41, 55, 0.06);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background:
    linear-gradient(135deg, #fef3ff 0%, #e0f2fe 35%, #fffbeb 70%, #fce7f3 100%);
  background-attachment: fixed;
}

/* aurora colored blobs */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.55;
  animation: drift 28s ease-in-out infinite;
  mix-blend-mode: multiply;
}
.blob-a { width: 520px; height: 520px; background: #ff7ad9; top: -120px;  left: -100px; }
.blob-b { width: 600px; height: 600px; background: #7c5cff; bottom: -200px; right: -140px; animation-delay: -7s; }
.blob-c { width: 420px; height: 420px; background: #38f0d0; top: 30%; left: 38%; animation-delay: -14s; opacity: 0.4; }
.blob-d { width: 360px; height: 360px; background: #ffd166; top: 55%; right: 18%; animation-delay: -20s; opacity: 0.45; }

@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px, -25px) scale(1.07); }
  66%      { transform: translate(-30px, 20px) scale(0.95); }
}

/* topbar */
.topbar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px 10px;
  opacity: 0;
  transform: translateY(-12px);
  animation: topbarIn 0.7s cubic-bezier(.2,.8,.2,1) 0.05s forwards;
}
@keyframes topbarIn {
  to { opacity: 1; transform: translateY(0); }
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.6px; margin: 0;
  color: var(--text);
  display: inline-flex;
  perspective: 600px;
  cursor: pointer;
  user-select: none;
}
.brand h1 .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(-26px) rotateX(-90deg) scale(0.6);
  transform-origin: 50% 100%;
  animation: letterDrop 0.65s cubic-bezier(.34,1.7,.5,1) forwards;
  animation-delay: calc(var(--i) * 55ms + 0.25s);
  will-change: transform, opacity;
}
.brand h1 .ch.accent {
  background: linear-gradient(120deg, #ff3b8b 0%, #7c3aed 50%, #06b6d4 100%);
  background-size: 220% 220%;
  background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand h1 .ch.accent.done {
  animation: shimmer 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 80ms);
}
.brand h1 .ch.done {
  transition: transform 0.28s cubic-bezier(.4,1.8,.5,1), color 0.2s;
}
.brand h1 .ch.done:hover {
  transform: translateY(-7px) scale(1.18) rotate(-4deg);
}
.brand h1 .ch.accent.done:hover {
  filter: drop-shadow(0 4px 12px rgba(124,92,255,0.45));
}
@keyframes letterDrop {
  0%   { opacity: 0; transform: translateY(-26px) rotateX(-90deg) scale(0.6); }
  55%  { opacity: 1; transform: translateY(6px) rotateX(10deg) scale(1.08); }
  78%  { transform: translateY(-2px) rotateX(-3deg) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #06b6d4);
  box-shadow: 0 0 14px rgba(6,182,212,0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}
.meta { display: flex; align-items: center; gap: 12px; }
.clock {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text-2); font-size: 13px; letter-spacing: 0.6px;
  background: rgba(255,255,255,0.5); backdrop-filter: blur(10px);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
}
.ghost-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.65); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8);
  color: var(--text);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
}
.ghost-btn:hover {
  background: linear-gradient(135deg, rgba(124,92,255,0.12), rgba(6,182,212,0.12));
  box-shadow: 0 6px 18px rgba(124,92,255,0.18);
}
.ghost-btn:active { transform: scale(0.97); }

/* grid */
.grid {
  position: relative; z-index: 1;
  display: grid; gap: 18px;
  grid-template-columns: repeat(12, 1fr);
  padding: 14px 32px 40px;
  max-width: 1600px; margin: 0 auto;
}

.widget {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 18px 20px;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  min-height: 180px;
  overflow: hidden;
}
.widget::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 55%);
  pointer-events: none; border-radius: var(--radius);
}
.widget::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--w-accent, linear-gradient(90deg, #7c3aed, #06b6d4));
  opacity: 0.85; border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}
.widget:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

/* per-widget accent stripes */
.w-weather   { --w-accent: linear-gradient(90deg, #06b6d4, #38bdf8, #ff9f0a, #ff5e7e); }
.w-crypto    { --w-accent: linear-gradient(90deg, #f7931a, #627eea, #ffd166); }
.w-gold      { --w-accent: linear-gradient(90deg, #ffd166, #f59e0b); }
.w-headlines { --w-accent: linear-gradient(90deg, #7c3aed, #ff3b8b, #06b6d4); }
.w-gmail        { --w-accent: linear-gradient(90deg, #ef4444, #f59e0b); }
.w-gmail-victor { --w-accent: linear-gradient(90deg, #06b6d4, #16a34a); }
.w-deals     { --w-accent: linear-gradient(90deg, #16a34a, #34d399); }
.w-sheets    { --w-accent: linear-gradient(90deg, #0f9d58, #34d399); }
.w-docs      { --w-accent: linear-gradient(90deg, #1a73e8, #06b6d4); }
.w-instantly { --w-accent: linear-gradient(90deg, #ff3b8b, #7c3aed, #06b6d4); }
.w-notes     { --w-accent: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.w-calendar  { --w-accent: linear-gradient(90deg, #34d399, #06b6d4, #7c3aed); }

.widget header {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 14px; min-height: 22px;
}
.widget header h2 {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.4px;
  color: var(--text-2); text-transform: uppercase;
}
.widget header .h-meta {
  font-size: 11px; color: var(--muted); font-family: ui-monospace, "SF Mono", monospace;
  font-weight: 500;
}

.status {
  font-family: ui-monospace, "SF Mono", monospace; font-size: 10px;
  color: var(--muted); padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.7);
  text-transform: lowercase; letter-spacing: 0.4px;
  backdrop-filter: blur(8px);
}
.status.ok      { color: #047857; background: rgba(52,211,153,0.18); border-color: rgba(52,211,153,0.35); }
.status.err     { color: #b91c1c; background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); }
.status.loading { color: #b45309; background: rgba(245,158,11,0.18); border-color: rgba(245,158,11,0.32); }

.body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 12px; }

/* widget spans */
.w-weather   { grid-column: span 6; }
.w-crypto    { grid-column: span 4; }
.w-gold      { grid-column: span 2; }
.w-headlines    { grid-column: span 4; }
.w-gmail        { grid-column: span 4; }
.w-gmail-victor { grid-column: span 4; }
.w-deals        { grid-column: span 4; }
.w-sheets    { grid-column: span 6; }
.w-docs      { grid-column: span 6; }
.w-instantly { grid-column: span 12; }
.w-notes     { grid-column: span 12; }
.w-calendar  { grid-column: span 12; }

@media (max-width: 1200px) {
  .w-crypto { grid-column: span 6; }
  .w-gold { grid-column: span 3; }
  .w-weather { grid-column: span 12; }
  .w-headlines { grid-column: span 12; }
  .w-gmail, .w-gmail-victor, .w-deals { grid-column: span 6; }
  .w-sheets, .w-docs { grid-column: span 6; }
  .w-notes { grid-column: span 12; }
}
@media (max-width: 720px) {
  .grid { padding: 10px 14px 30px; gap: 14px; }
  .w-weather, .w-crypto, .w-gold, .w-gmail, .w-gmail-victor, .w-deals, .w-sheets, .w-docs, .w-notes, .w-instantly { grid-column: span 12; }
}

/* KPIs */
.kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.kpi {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
  backdrop-filter: blur(10px);
}
.kpi-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.kpi-val {
  font-size: 22px; font-weight: 700; letter-spacing: -0.4px; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #1d1d1f 0%, #4a4a52 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* campaigns table */
.campaigns {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 14px; padding: 6px 4px; max-height: 320px; overflow: auto;
  font-size: 13px;
  backdrop-filter: blur(10px);
}
.campaigns .row {
  display: grid; grid-template-columns: 1fr 80px 80px 80px;
  gap: 8px; padding: 8px 14px; align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.campaigns .row:last-child { border-bottom: none; }
.campaigns .row.head { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.campaigns .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campaigns .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

/* crypto coins */
.coin-list { display: flex; flex-direction: column; gap: 8px; }
.coin {
  display: grid; grid-template-columns: 70px 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: transform 0.15s, box-shadow 0.2s;
}
.coin:hover { transform: translateX(2px); box-shadow: 0 4px 12px rgba(124,92,255,0.12); }
.coin .sym {
  font-weight: 800; font-size: 14px; letter-spacing: 0.2px;
  padding: 4px 9px; border-radius: 8px; text-align: center;
  color: white; font-family: ui-monospace, "SF Mono", monospace;
}
.coin[data-sym="BTC"] .sym { background: linear-gradient(135deg, #f7931a, #ffb347); }
.coin[data-sym="ETH"] .sym { background: linear-gradient(135deg, #627eea, #8b9dff); }
.coin[data-sym="ZEC"] .sym { background: linear-gradient(135deg, #ecb244, #f59e0b); }

.coin .px  { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.coin .chg { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 999px; }
.coin .chg.up   { color: #047857; background: rgba(52,211,153,0.18); }
.coin .chg.down { color: #b91c1c; background: rgba(239,68,68,0.15); }

/* gold */
.price-body { gap: 6px; }
.big-price {
  font-size: 30px; font-weight: 800; letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums; line-height: 1.15;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 500; }
.sub.up { color: #047857; }
.sub.down { color: #b91c1c; }

/* calendar */
.cal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.cal-col {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  backdrop-filter: blur(10px);
  min-height: 140px;
}
.cal-col-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 700;
}
.cal-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; box-shadow: 0 0 8px rgba(0,0,0,0.1); }
.cal-dot-vr     { background: linear-gradient(135deg, #ef4444, #f59e0b); }
.cal-dot-victor { background: linear-gradient(135deg, #06b6d4, #16a34a); }
.cal-dot-zeb0rr { background: linear-gradient(135deg, #7c3aed, #ff3b8b); }

.cal-events {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 260px; overflow: auto;
}
.cal-event {
  display: grid; grid-template-columns: 72px 1fr;
  column-gap: 10px; row-gap: 2px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  transition: transform 0.12s, box-shadow 0.2s;
}
.cal-event:hover { transform: translateX(2px); box-shadow: 0 3px 10px rgba(124,92,255,0.12); }
.cal-when {
  grid-row: 1 / span 2;
  display: flex; flex-direction: column;
  font-variant-numeric: tabular-nums;
  align-self: center;
}
.cal-day  { font-weight: 700; color: var(--text); font-size: 12px; }
.cal-time { color: var(--muted); font-size: 11px; }
.cal-title {
  font-weight: 600; font-size: 13px; color: var(--text);
  text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-title:hover { color: #7c3aed; }
.cal-loc { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1200px) {
  .cal-grid { grid-template-columns: 1fr; }
}

/* weather */
.weather-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.wx-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 16px; padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px; row-gap: 4px;
  align-items: center;
  backdrop-filter: blur(10px);
  transition: transform 0.15s, box-shadow 0.2s;
}
.wx-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(6,182,212,0.18); }

.wx-card-head {
  display: flex; align-items: center; gap: 10px;
  grid-column: 1; grid-row: 1;
  min-width: 0;
}
.wx-meta {
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.wx-icon { font-size: 32px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15)); flex: 0 0 auto; }
.wx-label {
  font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1.2px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wx-time {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; color: var(--text-2, #4a4a52);
  font-variant-numeric: tabular-nums; font-weight: 600;
  letter-spacing: 0.4px;
}
.wx-temp {
  grid-column: 2; grid-row: 1;
  font-size: 32px; font-weight: 800; letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums; line-height: 1;
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-align: right;
}
.wx-desc {
  grid-column: 1; grid-row: 2;
  color: var(--text-2, #4a4a52); font-size: 12px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wx-range {
  grid-column: 2; grid-row: 2;
  color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums;
  font-weight: 600; text-align: right; white-space: nowrap;
}

/* mobile: 2-col grid but cards restack vertically so they breathe */
@media (max-width: 720px) {
  .weather-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .wx-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    padding: 12px 12px;
    row-gap: 3px;
    text-align: left;
  }
  .wx-card-head { grid-column: 1; grid-row: 1; gap: 8px; }
  .wx-icon { font-size: 26px; }
  .wx-label { font-size: 10px; letter-spacing: 0.8px; }
  .wx-time { font-size: 10px; }
  .wx-temp  { grid-column: 1; grid-row: 2; font-size: 26px; text-align: left; }
  .wx-desc  { grid-column: 1; grid-row: 3; font-size: 11px; }
  .wx-range { grid-column: 1; grid-row: 4; font-size: 11px; text-align: left; }
}


/* mail + deals */
.mail-list, .deals-list { list-style: none; margin: 0; padding: 0; overflow: auto; max-height: 280px; }
.mail-list li, .deals-list li {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 13px;
  border-radius: 8px;
}
.deals-list li {
  padding: 10px 8px;
  display: flex; flex-direction: column; gap: 2px;
  transition: background 0.15s;
}
.mail-list li {
  display: block;
  transition: background 0.15s;
}
.mail-list .mail-link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 8px; border-radius: 8px;
  color: inherit; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.mail-list .mail-link:hover { background: rgba(124,92,255,0.08); }
.mail-list .mail-link:active { transform: scale(0.99); }
.deals-list li:hover { background: rgba(255,255,255,0.5); }
.mail-list li:last-child, .deals-list li:last-child { border-bottom: none; }
.mail-list .from { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.mail-list .subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.mail-list li.unread .subj { font-weight: 600; }
.mail-list .thread-count {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  padding: 1px 8px; border-radius: 999px;
  margin-left: 6px; vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.deals-list li { flex-direction: row; justify-content: space-between; align-items: baseline; }
.deals-list .merch { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.deals-list .amt {
  font-weight: 700; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #16a34a, #34d399);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); font-style: italic; padding: 8px 0; }

/* headlines */
.headlines-grid {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 480px; overflow: auto; padding-right: 4px;
}
.news-source {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 12px; padding: 8px 12px;
  backdrop-filter: blur(10px);
  transition: transform 0.15s, box-shadow 0.2s;
}
.news-source:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,92,255,0.10); }
.news-source h3 {
  margin: 0 0 6px; font-size: 9px; text-transform: uppercase;
  letter-spacing: 1.1px; font-weight: 700;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.news-list a {
  color: var(--text); text-decoration: none; font-size: 12px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 3px 0; border-radius: 6px;
  transition: color 0.15s, transform 0.15s;
}
.news-list a:hover { color: var(--accent); transform: translateX(2px); }

/* sheets / docs link lists */
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.link-list li {
  padding: 4px 6px; border-radius: 12px;
  transition: background 0.15s, transform 0.15s;
}
.link-list li:hover { background: rgba(255,255,255,0.55); transform: translateX(3px); }
.link-list a {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none; font-size: 14px;
  padding: 6px 4px;
}
.link-list .file-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.link-list .icon-sheet { background: linear-gradient(135deg, #0f9d58, #34d399); }
.link-list .icon-doc   { background: linear-gradient(135deg, #1a73e8, #06b6d4); }
.link-list .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* notes */
#notes {
  flex: 1; min-height: 140px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px; padding: 14px;
  color: var(--text); font: inherit; font-size: 14px; line-height: 1.5;
  resize: none; outline: none;
  backdrop-filter: blur(10px);
  transition: border-color 0.15s, box-shadow 0.15s;
}
#notes:focus { border-color: rgba(124,92,255,0.6); box-shadow: 0 0 0 3px rgba(124,92,255,0.15); }

/* dragging */
.widget.dragging { opacity: 0.55; transform: scale(0.97); }
.widget.drag-over { box-shadow: 0 0 0 3px rgba(124,92,255,0.45); }

/* footer */
.foot {
  position: relative; z-index: 1;
  text-align: center; padding: 18px; color: var(--muted);
  font-size: 12px; font-family: ui-monospace, "SF Mono", monospace;
}

/* scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,92,255,0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,92,255,0.32); }
