﻿*{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;}
body{
  font-family:"Segoe UI", -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
  overflow-x:hidden;
  overflow-y:auto;
  background:#152331;
  background:-webkit-linear-gradient(to right, #000000, #152331);
  background:linear-gradient(to right, #000000, #152331);
  --dd-bg:#1f1f1f;
  --dd-text:#f5f5f5;
  --dd-border:rgba(255,255,255,.1);
  --dd-input-bg:#2b2b2b;
  --dd-hover:rgba(255,255,255,.07);
  
  /* Dynamic workspace icon scaling variable */
  --icon-size: 48px;
}

/* Base style for navbar in default Dark Mode */
#navbar {
  background: #212121!important;
}
.nav-btn {
  color: white;
}

body.theme-light{
  /* Modified background to paint the application canvas in a clean whitesmoke tone when Light Mode is active */
  background: whitesmoke !important;
  --dd-bg:#f5f5f5;
  --dd-text:#1a1a1a;
  --dd-border:rgba(0,0,0,.08);
  --dd-input-bg:#ffffff;
  --dd-hover:rgba(0,0,0,.05);
}

/* Light Mode Override to restore original white background and dark text */
body.theme-light #navbar {
  background: #fff!important;
}
body.theme-light .nav-btn {
  color: #1a1a1a;
}

/* ---------- Desktop / workspace ---------- */
#desktop{
  position:relative;
  width:100vw;
  min-height:100vh;
  height:auto;
  background-color:transparent;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  overflow-x:hidden;
}
.icon{
  position:absolute;
  width: calc(var(--icon-size) + 24px);
  display:flex;flex-direction:column;align-items:center;gap:6px;
  cursor:grab;user-select:none;touch-action:none;
  padding:4px;
  transition: width 0.2s ease, transform 0.1s ease;
}
.icon:active{cursor:grabbing;}
.icon-img{
  width:var(--icon-size);
  height:var(--icon-size);
  border-radius:10px;
  background:rgba(255,255,255,.07);
  object-fit:contain;padding:6px;
  transition: width 0.2s ease, height 0.2s ease;
}
.selection-box {
  position: absolute;
  border: 1px dashed #6a2ce9;
  background-color: rgba(106, 43, 233, 0.15);
  pointer-events: none;
  z-index: 1000;
}
.icon.selected .icon-img {
  outline: 2px solid #6a2ce9;
  outline-offset: 2px;
  background: rgba(106, 43, 233, 0.2) !important;
}
body.theme-light .selection-box {
  border-color: #1a1a1a;
  background-color: rgba(26, 26, 26, 0.12);
}
body.theme-light .icon.selected .icon-img {
  outline-color: #1a1a1a;
  background: rgba(0, 0, 0, 0.1) !important;
}
.icon-label{
  color:#fff;font-size:12px;text-align:center;line-height:1.25;
  text-shadow:0 1px 4px rgba(0,0,0,.9);
  max-width: 100%;overflow-wrap:break-word;
}
body.theme-light .icon-label{
  color:#1a1a1a;
  text-shadow:0 1px 2px rgba(255,255,255,.6);
}
/* White Icon Labels setting: force white regardless of theme */
body.white-icon-labels .icon-label{
  color:#fff !important;
  text-shadow:0 1px 4px rgba(0,0,0,.9) !important;
}
.icon-delete{
  position:absolute;top:-6px;right:6px;width:18px;height:18px;border-radius:50%;
  background:rgba(0,0,0,.65);color:#fff;border:1px solid rgba(255,255,255,.35);
  font-size:13px;line-height:1;display:none;align-items:center;justify-content:center;
  cursor:pointer;
}
.icon:hover .icon-delete{display:flex;}

/* Inline Label Editor */
.icon-rename-input {
  width: 100%;
  font-size: 11px;
  padding: 2px;
  border: 1px solid #6a2ce9;
  background: var(--dd-input-bg);
  color: var(--dd-text);
  border-radius: 4px;
  text-align: center;
  outline: none;
  font-family: inherit;
}

/* ---------- Windows-like Context Menu ---------- */
.context-menu {
  position: absolute;
  background: var(--dd-bg);
  color: var(--dd-text);
  border: 1px solid var(--dd-border);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  padding: 4px 0;
  min-width: 170px;
  z-index: 2000;
  display: none;
  font-size: 13px;
}
.context-menu-item {
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.context-menu-item:hover {
  background: var(--dd-hover);
}
.context-menu-item.disabled {
  opacity: 0.4;
  cursor: default;
}
.context-menu-item.disabled:hover {
  background: transparent;
}
.context-menu-separator {
  height: 1px;
  background: var(--dd-border);
  margin: 4px 0;
}
.context-menu-item .checkmark {
  font-size: 10px;
  opacity: 0.8;
}

/* Context Menu Inline Form */
.context-menu-inline-form {
  padding: 6px 14px;
  display: flex;
  gap: 6px;
}

/* ---------- Navbar Layout ---------- */
#navbar{
  position:fixed;top:14px;right:14px;
  display:flex;align-items:center;gap:2px;
  border-radius:14px;
  padding:6px 8px;
  box-shadow:0 6px 22px rgba(0,0,0,.28);
  z-index:500;
}
.nav-item{position:relative;}
.nav-item.hidden{display:none;}
.nav-btn{
  display:flex;align-items:center;gap:6px;
  background:none;border:none;
  font-family:inherit;font-size:13px;
  padding:8px 10px;border-radius:10px;cursor:pointer;white-space:nowrap;
}
.nav-btn:hover{background:rgba(255,255,255,.12);}
body.theme-light .nav-btn:hover{background:rgba(0,0,0,.06);}
.nav-btn:disabled{cursor:default;}
.nav-svg{width:18px;height:18px;flex:none;display:flex;}
.nav-svg svg{width:100%;height:100%;}

/* ---------- Dropdowns ---------- */
.dropdown{
  position:absolute;top:calc(100% + 10px);right:0;
  min-width:270px;max-width:330px;
  background:var(--dd-bg);color:var(--dd-text);
  border:1px solid var(--dd-border);
  border-radius:12px;padding:14px;
  box-shadow:0 14px 36px rgba(0,0,0,.4);
  display:none;z-index:1000;font-size:13px;
}
.dropdown.open{display:block;}
.dropdown h4{
  font-size:11px;text-transform:uppercase;letter-spacing:.07em;
  opacity:.55;margin-bottom:10px;font-weight:700;
}
.dd-row{display:flex;gap:8px;}
.dd-input{
  flex:1;background:var(--dd-input-bg);color:var(--dd-text);
  border:1px solid var(--dd-border);border-radius:8px;padding:8px 10px;
  font-size:13px;outline:none;font-family:inherit;
}
.dd-btn{
  background:#6a2ce9;color:#fff;border:none;border-radius:8px;
  padding:8px 14px;font-size:13px;cursor:pointer;font-weight:500;font-family:inherit;
}
body.theme-light .dd-btn{background:#1a1a1a;}
.dd-btn.secondary{background:#6a2ce9;border:1px solid var(--dd-border);}
.dd-btn:hover{opacity:.85;}

.search-results{margin-top:10px;display:flex;flex-direction:column;gap:4px;max-height:190px;overflow:auto;}
.search-results a{
  color:var(--dd-text);text-decoration:none;padding:6px 8px;border-radius:6px;
  display:flex;align-items:center;gap:8px;font-size:12px;
}
.search-results a:hover{background:var(--dd-hover);}
.search-results img{width:16px;height:16px;flex:none;}
.search-results span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.search-empty{opacity:.5;font-size:12px;padding:6px 2px;}

.settings-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 0;border-bottom:1px solid var(--dd-border);
}
.settings-row:last-child{border-bottom:none;}
.settings-row .label{display:flex;align-items:center;gap:10px;}
.settings-row .nav-svg{opacity:.75;}
.settings-row.clickable{cursor:pointer;}
.settings-row.clickable:hover{opacity:.85;}

.toggle{position:relative;width:38px;height:21px;flex:none;}
.toggle input{opacity:0;width:0;height:0;position:absolute;}
.toggle .slider{position:absolute;inset:0;background:rgba(255,255,255,.2);border-radius:20px;cursor:pointer;transition:.18s;}
body.theme-light .toggle .slider{background:rgba(0,0,0,.15);}
.toggle .slider::before{
  content:'';position:absolute;width:17px;height:17px;left:2px;top:2px;
  background:#fff;border-radius:50%;transition:.18s;
}
.toggle input:checked + .slider{background:#6a2ce9;}
.toggle input:checked + .slider::before{transform:translateX(17px);}

/* Pages */
.page-list{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;max-height:220px;overflow:auto;}
.page-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;background:var(--dd-hover);}
.page-item .page-name{flex:1;cursor:pointer;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.page-item.active .page-name{color:white;}
.page-item.active{background:#6a2ce9!important;}
.rename-input{
  flex:1;background:var(--dd-input-bg);color:var(--dd-text);border:1px solid var(--dd-border);
  border-radius:6px;padding:5px 7px;font-size:12px;font-family:inherit;outline:none;
}
.icon-action{background:none;border:none;color:var(--dd-text);opacity:.6;cursor:pointer;display:flex;flex:none;padding:2px;}
.icon-action:hover{opacity:1;}
.icon-action svg{width:15px;height:15px;}
.add-page-row{
  display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;
  cursor:pointer;opacity:.85;
}
.add-page-row:hover{background:var(--dd-hover);}
.add-page-row .nav-svg{width:16px;height:16px;}

/* Settings sub-views */
.home-instructions{font-size:12px;line-height:1.6;opacity:.85;max-height:170px;overflow:auto;}
.url-box{display:flex;gap:8px;margin-bottom:10px;}
.url-box code{
  flex:1;background:var(--dd-input-bg);border:1px solid var(--dd-border);border-radius:8px;
  padding:8px 10px;font-size:11px;word-break:break-all;display:flex;align-items:center;
}
.back-link{display:flex;align-items:center;gap:6px;cursor:pointer;opacity:.65;margin-bottom:12px;font-size:12px;}
.back-link:hover{opacity:1;}
.back-link svg{width:14px;height:14px;}
.profile-link{display:block;text-align:center;margin-top:10px;font-size:12px;opacity:.65;text-decoration:underline;cursor:pointer;}
.profile-link:hover{opacity:1;}
.field-group{display:flex;flex-direction:column;gap:8px;margin-bottom:10px;}
.note{font-size:11px;opacity:.55;margin-top:8px;line-height:1.4;}
.view{display:none;}
.view.active{display:block;}

/* Wallpaper Subsections Styles */
.wallpaper-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--dd-border);
}
.wallpaper-section-title {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.8;
}
.wallpaper-panel-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.color-preview-btn {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid var(--dd-border);
  cursor: pointer;
  position: relative;
  transition: transform 0.1s;
}
.color-preview-btn:hover {
  transform: scale(1.1);
}
.color-preview-btn.selected {
  outline: 2px solid #6a2ce9;
  outline-offset: 1px;
}
body.theme-light .color-preview-btn.selected {
  outline: 2px solid #1a1a1a;
}
.transparency-container {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.transparency-slider {
  width: 100%;
  accent-color: #6a2ce9;
  cursor: pointer;
}
body.theme-light .transparency-slider {
  accent-color: #1a1a1a;
}

@media (max-width:520px){
  #navbar{max-width:calc(100vw - 24px);overflow:auto;}
  .nav-btn .nav-label{display:none;}
  .nav-btn{padding:8px;}
  .dropdown{max-width:calc(100vw - 24px);right:-6px;}
}

/* ===== GADGETS DROPDOWN ===== */
.gadgets-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}
.gadgets-row-label {
  font-size: 13px;
  font-weight: 500;
}
.gadget-add-btn {
  background: #6a2ce9;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 5px 13px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: opacity .15s;
}
.gadget-add-btn:hover { opacity: .82; }
body.theme-light .gadget-add-btn { background: #1a1a1a; }

/* ===== NOTES GADGET WIDGET ===== */
.notes-gadget {
  position: absolute;
  width: 430px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  z-index: 300;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
  --note-accent: #6a2be9;
  --note-accent-dim: rgba(106,43,233,.13);
  --note-accent-border: rgba(106,43,233,.35);
  --note-text: #f5f5f5;
  --note-placeholder: rgba(245,245,245,.35);
  --note-bg: #212121;
  --note-btn-bg: rgba(106,43,233,.15);
  --note-btn-hover: rgba(106,43,233,.28);
  --note-arrow-color: #ffffff;
  --note-titlebar-text: #ffffff;
  display: flex;
  flex-direction: column;
  --tasks-accent: #6a2ce9;
  --tasks-accent-soft: rgba(106,44,233,.16);
  --tasks-titlebar-text: #ffffff;
  --tasks-border: rgba(255,255,255,.12);
  --tasks-muted: rgba(245,245,245,.58);
  --tasks-input-bg: rgba(128,128,128,.12);
}
.notes-gadget:active {
  cursor: grabbing;
}
.notes-gadget .yt-form-title svg {
  color: #6a2be9 !important;
}
body.theme-light .notes-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
  --note-text: #1a1a1a;
  --note-placeholder: rgba(26,26,26,.35);
  --note-bg: #f7f7f7;
  --note-btn-bg: rgba(106,43,233,.10);
  --note-btn-hover: rgba(106,43,233,.20);
  --note-arrow-color: #1a1a1a;
  --note-titlebar-text: #1a1a1a;
  --tasks-titlebar-text: #1a1a1a;
  --tasks-border: rgba(0,0,0,.15);
  --tasks-muted: rgba(26,26,26,.58);
  --tasks-input-bg: rgba(0,0,0,.05);
}

/* ── Shared gadget title bar (drag handle for all gadgets) ── */
.gadget-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 36px;
  min-height: 36px;
  flex: none;
  cursor: grab;
  border-bottom: 1px solid rgba(128,128,128,0.15);
  background: rgba(128,128,128,0.07);
}
.gadget-titlebar:active { cursor: grabbing; }
.gadget-titlebar-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  pointer-events: none;
  color: inherit;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gadget-titlebar-left svg {
  width: 17px; height: 17px;
  flex: none;
}
.gadget-titlebar-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
  flex: none;
}
.gadget-titlebar-close:hover { opacity: 1; background: rgba(128,128,128,0.18); }
.gadget-titlebar-close svg { width: 15px; height: 15px; }

.notes-gadget-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 16px 12px;
  position: relative;
}

/* Headline */
.notes-headline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #e9e9e9;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  margin-bottom: 8px;
  padding: 0;
  caret-color: var(--note-accent);
  user-select: text;
  cursor: text;
}
.notes-headline::placeholder {
  color: var(--note-placeholder);
  font-style: italic;
}

/* Body textarea */
.notes-body {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-size: 12.5px;
  line-height: 1.65;
  color: #c3c3c3;
  font-family: 'Segoe UI', system-ui, sans-serif;
  caret-color: var(--note-accent);
  user-select: text;
  cursor: text;
  overflow-y: auto;
}
.notes-body::placeholder {
  color: var(--note-placeholder);
}
.notes-body::-webkit-scrollbar { width: 4px; }
.notes-body::-webkit-scrollbar-track { background: transparent; }
.notes-body::-webkit-scrollbar-thumb { background: var(--note-accent-border); border-radius: 4px; }

/* Footer bar */
.notes-footer {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  margin-top: 10px;
  border-top: 1px solid var(--note-accent-border);
  padding-top: 9px;
}

/* Circle buttons */
.notes-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--note-accent);
  background: var(--note-btn-bg);
  color: var(--note-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background .15s;
  flex: none;
}
.notes-circle-btn:hover { background: var(--note-btn-hover); }

/* Pagination */
.notes-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--note-text);
}
.notes-page-arrow {
  background: none;
  border: none;
  color: var(--note-arrow-color);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
  opacity: .9;
  transition: opacity .15s;
}
.notes-page-arrow:hover { opacity: 1; }
.notes-page-arrow:disabled { opacity: .25; cursor: default; }
.notes-page-label {
  min-width: 32px;
  text-align: center;
  letter-spacing: .04em;
}

/* ===== CALENDAR GADGET WIDGET ===== */
.cal-gadget {
  position: absolute;
  width: 300px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  z-index: 300;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
  --cal-accent: #2ecc71;
  --cal-accent-soft: rgba(46,204,113,.16);
  --cal-accent-border: rgba(46,204,113,.35);
  --cal-text: #f5f5f5;
  --cal-text-dim: rgba(245,245,245,.45);
  --cal-titlebar-text: #ffffff;
  --cal-cell-hover: rgba(255,255,255,.06);
}
body.theme-light .cal-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
  --cal-text: #1a1a1a;
  --cal-text-dim: rgba(26,26,26,.45);
  --cal-titlebar-text: #1a1a1a;
  --cal-cell-hover: rgba(0,0,0,.05);
}

.cal-panel {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 14px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-nav-btn {
  background: none;
  border: none;
  color: var(--cal-text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.cal-nav-btn:hover { background: var(--cal-accent-soft); color: var(--cal-accent); }
.cal-nav-btn svg { width: 16px; height: 16px; }
.cal-month-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--cal-text);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-daylabel {
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--cal-text-dim);
  padding-bottom: 6px;
  text-transform: uppercase;
}
.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--cal-text);
  cursor: default;
  transition: background .15s;
  gap: 1px;
}
.cal-day.cal-day-empty { visibility: hidden; }
.cal-day:not(.cal-day-empty):hover { background: var(--cal-cell-hover); }
.cal-day.cal-today {
  background: var(--cal-accent-soft);
  color: var(--cal-accent);
  font-weight: 700;
}
.cal-day-bell {
  display: flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
}
.cal-day-bell svg {
  width: 9px;
  height: 9px;
  color: var(--cal-accent);
  flex: none;
}
.cal-day-bell-count {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--cal-accent);
  line-height: 1;
}

.cal-add-btn {
  margin-top: 12px;
  width: 100%;
  padding: 9px 0;
  border-radius: 9px;
  border: 1.5px solid var(--cal-accent);
  background: var(--cal-accent-soft);
  color: var(--cal-accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .15s;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.cal-add-btn:hover { background: rgba(46,204,113,.28); }

/* Reminder modal */
.cal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.cal-modal {
  width: 300px;
  border-radius: 14px;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
body.theme-light .cal-modal {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
}
.cal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(128,128,128,0.15);
  background: rgba(128,128,128,0.07);
}
.cal-modal-title {
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}
.cal-modal-title svg { width: 16px; height: 16px; color: #2ecc71; }
.cal-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: .6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
}
.cal-modal-close:hover { opacity: 1; background: rgba(128,128,128,0.18); }
.cal-modal-close svg { width: 14px; height: 14px; }
.cal-modal-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
}
.cal-modal-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: inherit;
  opacity: .55;
  margin-bottom: 6px;
}
.cal-modal-input {
  width: 100%;
  background: rgba(128,128,128,0.10);
  border: 1px solid rgba(128,128,128,0.25);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12.5px;
  color: inherit;
  font-family: 'Segoe UI', system-ui, sans-serif;
  outline: none;
  margin-bottom: 14px;
  box-sizing: border-box;
}
.cal-modal-input:focus { border-color: #2ecc71; }
.cal-modal-input::placeholder { color: rgba(128,128,128,0.7); }
.cal-modal-submit {
  width: 100%;
  padding: 10px 0;
  border-radius: 9px;
  border: none;
  background: #2ecc71;
  color: #0d1f12;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: opacity .15s;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.cal-modal-submit:hover { opacity: .88; }

/* Reminder notification popup */
.cal-notify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}
.cal-notify {
  width: 300px;
  border-radius: 14px;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(46,204,113,.4);
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
body.theme-light .cal-notify {
  background: #f7f7f7;
  color: #1a1a1a;
}
.cal-notify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(46,204,113,.12);
  border-bottom: 1px solid rgba(46,204,113,.25);
}
.cal-notify-title {
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #2ecc71;
}
.cal-notify-title svg { width: 16px; height: 16px; }
.cal-notify-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: .6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
}
.cal-notify-close:hover { opacity: 1; background: rgba(128,128,128,0.18); }
.cal-notify-close svg { width: 14px; height: 14px; }
.cal-notify-body {
  padding: 16px;
}
.cal-notify-date {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: inherit;
  opacity: .55;
  margin-bottom: 6px;
}
.cal-notify-text {
  font-size: 13px;
  line-height: 1.5;
}

/* ===== STOPWATCH GADGET WIDGET ===== */
.sw-gadget {
  position: absolute;
  width: 240px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  z-index: 300;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
  --sw-accent: #ff8c00;
  --sw-accent-soft: rgba(255,140,0,.16);
  --sw-accent-border: rgba(255,140,0,.35);
  --sw-text: #f5f5f5;
  --sw-text-dim: rgba(245,245,245,.45);
  --sw-titlebar-text: #ffffff;
}
body.theme-light .sw-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
  --sw-text: #1a1a1a;
  --sw-text-dim: rgba(26,26,26,.45);
  --sw-titlebar-text: #1a1a1a;
}

.sw-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px 18px;
}
.sw-display {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--sw-text);
  margin-bottom: 18px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.sw-display .sw-ms {
  font-size: 17px;
  color: var(--sw-text-dim);
  font-weight: 600;
}
.sw-btn-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.sw-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 9px;
  border: 1.5px solid var(--sw-accent);
  background: var(--sw-accent-soft);
  color: var(--sw-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .15s;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.sw-btn:hover { background: rgba(255,140,0,.28); }
.sw-btn.sw-btn-start {
  background: var(--sw-accent);
  color: #2b1500;
}
.sw-btn.sw-btn-start:hover { opacity: .88; background: var(--sw-accent); }
.sw-btn.sw-btn-start.sw-running {
  background: var(--sw-accent-soft);
  color: var(--sw-accent);
}

/* ===== CALCULATOR GADGET WIDGET ===== */
.calc-gadget {
  position: absolute;
  width: 240px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  z-index: 300;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
  --calc-accent: #ff6f61;
  --calc-accent-soft: rgba(255,111,97,.16);
  --calc-accent-border: rgba(255,111,97,.35);
  --calc-text: #f5f5f5;
  --calc-text-dim: rgba(245,245,245,.45);
  --calc-titlebar-text: #ffffff;
  --calc-key-bg: rgba(255,255,255,.06);
  --calc-key-hover: rgba(255,255,255,.12);
}
body.theme-light .calc-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
  --calc-text: #1a1a1a;
  --calc-text-dim: rgba(26,26,26,.45);
  --calc-titlebar-text: #1a1a1a;
  --calc-key-bg: rgba(0,0,0,.05);
  --calc-key-hover: rgba(0,0,0,.10);
}

.calc-panel {
  display: flex;
  flex-direction: column;
  padding: 14px;
}
.calc-display {
  background: rgba(128,128,128,0.10);
  border: 1px solid rgba(128,128,128,0.18);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: right;
  margin-bottom: 10px;
  overflow: hidden;
}
.calc-display-prev {
  font-size: 11px;
  color: var(--calc-text-dim);
  min-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calc-display-current {
  font-size: 24px;
  font-weight: 700;
  color: var(--calc-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.calc-key {
  padding: 12px 0;
  border-radius: 9px;
  border: none;
  background: var(--calc-key-bg);
  color: var(--calc-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.calc-key:hover { background: var(--calc-key-hover); }
.calc-key.calc-op {
  background: var(--calc-accent-soft);
  color: var(--calc-accent);
  font-weight: 700;
}
.calc-key.calc-op:hover { background: rgba(255,111,97,.28); }
.calc-key.calc-equals {
  background: var(--calc-accent);
  color: #3a0e09;
  font-weight: 700;
}
.calc-key.calc-equals:hover { opacity: .88; }
.calc-key.calc-clear {
  color: var(--calc-accent);
  font-weight: 700;
}
.calc-key.calc-zero { grid-column: span 2; }

/* ===== TASKS GADGET WIDGET ===== */
.tasks-gadget {
  position: absolute;
  width: 441px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  z-index: 300;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
  --tasks-accent: #6a2ce9;
  --tasks-accent-soft: rgba(106,44,233,.16);
  --tasks-titlebar-text: #ffffff;
  --tasks-border: rgba(255,255,255,.12);
  --tasks-muted: rgba(245,245,245,.58);
  --tasks-input-bg: rgba(128,128,128,.12);
}
.tasks-gadget:active {
  cursor: grabbing;
}
body.theme-light .tasks-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
  --tasks-titlebar-text: #1a1a1a;
  --tasks-border: rgba(0,0,0,.12);
  --tasks-muted: rgba(26,26,26,.58);
  --tasks-input-bg: rgba(0,0,0,.05);
}
.tasks-setup-panel,
.tasks-main-panel,
.tasks-create-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}
.tasks-main-panel,
.tasks-create-panel {
  height: calc(100% - 36px);
  min-height: 0;
}
.tasks-input,
.tasks-select {
  width: 100%;
  background: var(--tasks-input-bg);
  border: 1px solid var(--tasks-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  color: inherit;
}
.tasks-input:focus,
.tasks-select:focus {
  border-color: var(--tasks-accent);
}
.tasks-input::placeholder {
  color: var(--tasks-muted);
}
.tasks-size-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tasks-date-row {
  display: flex;
  gap: 8px;
}
.tasks-size-row .tasks-input,
.tasks-date-row .tasks-field {
  flex: 1;
  min-width: 0;
}
.tasks-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tasks-field label {
  font-size: 10.5px;
  color: var(--tasks-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tasks-submit-btn,
.tasks-new-btn {
  background: #6a2ce9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .08s;
}
.tasks-submit-btn:hover,
.tasks-new-btn:hover { opacity: .88; }
.tasks-submit-btn:active,
.tasks-new-btn:active { transform: scale(.98); }
.tasks-table-head,
.tasks-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.4fr) minmax(82px, .9fr) minmax(86px, .8fr) 58px 30px;
  gap: 8px;
  align-items: center;
}
.tasks-table-head {
  color: var(--tasks-muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0 3px;
}
.tasks-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 2px;
}
.tasks-list::-webkit-scrollbar { width: 4px; }
.tasks-list::-webkit-scrollbar-track { background: transparent; }
.tasks-list::-webkit-scrollbar-thumb { background: rgba(106,44,233,.45); border-radius: 4px; }
.tasks-row {
  padding: 8px;
  border: 1px solid var(--tasks-border);
  border-radius: 9px;
  background: rgba(128,128,128,.07);
}
.tasks-desc {
  font-size: 12.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.tasks-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tasks-muted);
  font-size: 12px;
  text-align: center;
  border: 1px dashed var(--tasks-border);
  border-radius: 9px;
  padding: 18px;
}
.tasks-progress {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(128,128,128,.18);
}
.tasks-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #6a2ce9;
}
.tasks-progress-label {
  display: block;
  margin-top: 4px;
  color: var(--tasks-muted);
  font-size: 10.5px;
}
.tasks-row .tasks-select {
  padding: 6px 7px;
  font-size: 11.5px;
}
.tasks-status-select.status-todo,
.tasks-create-status.status-todo {
  background-color: #e53935 !important;
  color: #ffffff !important;
}
.tasks-status-select.status-in-progress,
.tasks-create-status.status-in-progress {
  background-color: #4a4a4a !important;
  color: #ffffff !important;
}
.tasks-status-select.status-waiting,
.tasks-create-status.status-waiting {
  background-color: #fb8c00 !important;
  color: #ffffff !important;
}
.tasks-status-select.status-done,
.tasks-create-status.status-done {
  background-color: #43a047 !important;
  color: #ffffff !important;
}

.tasks-status-select option,
.tasks-create-status option {
  background-color: #212121;
  color: #ffffff;
}
.tasks-status-select option[value="To Do"],
.tasks-create-status option[value="To Do"] {
  background-color: #e53935;
  color: #ffffff;
}
.tasks-status-select option[value="In Progress"],
.tasks-create-status option[value="In Progress"] {
  background-color: #4a4a4a;
  color: #ffffff;
}
.tasks-status-select option[value="Waiting"],
.tasks-create-status option[value="Waiting"] {
  background-color: #fb8c00;
  color: #ffffff;
}
.tasks-status-select option[value="Done"],
.tasks-create-status option[value="Done"] {
  background-color: #43a047;
  color: #ffffff;
}
.tasks-move {
  display: flex;
  gap: 4px;
}
.tasks-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--tasks-border);
  background: var(--tasks-accent-soft);
  color: var(--tasks-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  flex: none;
}
.tasks-icon-btn:hover { background: rgba(106,44,233,.28); }
.tasks-icon-btn:disabled { opacity: .28; cursor: default; }
.tasks-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(106,44,233,.35);
  padding-top: 9px;
}
.tasks-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  color: inherit;
}
.tasks-page-arrow {
  background: none;
  border: none;
  color: var(--tasks-accent);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
}
.tasks-page-arrow:disabled { opacity: .25; cursor: default; }
.tasks-page-label {
  min-width: 34px;
  text-align: center;
}
.tasks-form-actions {
  display: flex;
  gap: 8px;
}
.tasks-form-actions .tasks-submit-btn {
  flex: 1;
}
.tasks-back-btn {
  background: transparent;
  color: inherit;
  border: 1px solid var(--tasks-border);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-family: inherit;
}

/* ===== YOUTUBE GADGET ===== */
.yt-gadget {
  position: absolute;
  width: 439px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 300;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;

  /* Dark mode by default — matches navbar #212121 */
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
}
body.theme-light .yt-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.1);
}
.yt-gadget:active { cursor: grabbing; }

/* Form panel (shown before video is added) */
.yt-form-panel {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yt-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.yt-form-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}
.yt-form-title svg {
  width: 20px; height: 20px;
  color: #ff0000;
  flex: none;
}
.yt-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
  flex: none;
}
.yt-close-btn:hover { opacity: 1; background: rgba(128,128,128,0.15); }
.yt-close-btn svg { width: 16px; height: 16px; }

.yt-input {
  width: 100%;
  background: rgba(128,128,128,0.12);
  border: 1px solid rgba(128,128,128,0.2);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  color: inherit;
  transition: border-color .15s;
}
.yt-input:focus { border-color: #6a2be9; }
.yt-input::placeholder { opacity: 0.45; }

body.theme-light .yt-input {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}

.yt-size-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.yt-size-row .yt-input { flex: 1; }

.yt-submit-btn {
  background: #6a2be9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .08s;
  width: 100%;
}
.yt-submit-btn:hover { opacity: 0.88; }
.yt-submit-btn:active { transform: scale(0.98); }

/* Video panel (shown after video added) */
.yt-video-panel {
  position: relative;
  display: none;
}
.yt-video-panel.active { display: block; }
.yt-video-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}
.yt-video-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .15s;
}
.yt-video-close:hover { background: rgba(0,0,0,0.88); }
.yt-video-close svg { width: 14px; height: 14px; }

/* ===== MEDIA PLAYER GADGET ===== */
.media-gadget {
  position: absolute;
  width: 453px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 300;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Dark mode by default — matches navbar #212121 */
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);

  --media-accent: #ff3b30;
  --media-titlebar-text: #ffffff;
  --media-panel: #161622;
  --media-player-bg: #000000;
  --media-sidebar-bg: #161622;
  --media-sidebar-border: #242435;
  --media-item-hover: rgba(255,255,255,0.06);
  --media-track-dim: #8e8e93;
}
body.theme-light .media-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.1);

  --media-accent: #e0312a;
  --media-titlebar-text: #1a1a1a;
  --media-panel: #ececec;
  --media-player-bg: #1c1c1c;
  --media-sidebar-bg: #ececec;
  --media-sidebar-border: #dcdcdc;
  --media-item-hover: rgba(0,0,0,0.05);
  --media-track-dim: #6b6b6f;
}

/* --- Setup / form panel (shown before player is configured) --- */
.media-form-panel {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.media-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.media-form-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}
.media-form-title svg {
  width: 20px; height: 20px;
  color: var(--media-accent);
  flex: none;
}
.media-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
  flex: none;
}
.media-close-btn:hover { opacity: 1; background: rgba(128,128,128,0.15); }
.media-close-btn svg { width: 16px; height: 16px; }

.media-input {
  width: 100%;
  background: rgba(128,128,128,0.12);
  border: 1px solid rgba(128,128,128,0.2);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  color: inherit;
  box-sizing: border-box;
  transition: border-color .15s;
}
.media-input:focus { border-color: var(--media-accent); }
.media-input::placeholder { opacity: 0.45; }
body.theme-light .media-input {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}

.media-size-row { display: flex; flex-direction: column; gap: 8px; }
.media-size-row .media-input { flex: 1; }

.media-form-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .5;
  margin: 4px 0 -2px;
}

/* Upload dropzone */
.media-upload-zone {
  border: 2px dashed rgba(128,128,128,0.35);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  background: rgba(128,128,128,0.06);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.media-upload-zone:hover,
.media-upload-zone.dragover {
  border-color: var(--media-accent);
  background: rgba(255,59,48,0.06);
}
.media-upload-zone input { display: none; }
.media-upload-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}
.media-upload-sub {
  margin: 0;
  font-size: 11px;
  opacity: .55;
  line-height: 1.4;
}

/* --- Player workspace (shown after files uploaded) --- */
.media-workspace {
  display: none;
  width: 100%;
  background: var(--media-player-bg);
  overflow: hidden;
}
.media-workspace.active { display: flex; }

.media-body {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.media-theater {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: var(--media-player-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-theater video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-audio-fallback {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle, #242435 0%, #0d0d11 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
body.theme-light .media-audio-fallback {
  background: radial-gradient(circle, #3a3a3a 0%, #181818 100%);
}
.media-audio-disc {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(45deg, #1f1f2e, #3a3a4c);
  border: 3px solid var(--media-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.media-audio-title {
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  max-width: 80%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls overlay */
.media-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9) 30%);
  padding: 16px 12px 10px;
  opacity: 0;
  transition: opacity .25s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}
.media-theater:hover .media-controls,
.media-theater.show-controls .media-controls { opacity: 1; }

.media-timeline {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
  outline: none;
  cursor: pointer;
}
.media-timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--media-accent);
  cursor: pointer;
}
.media-timeline::-moz-range-thumb {
  width: 12px; height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--media-accent);
  cursor: pointer;
}

.media-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.media-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.media-ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.media-ctrl-btn:hover { background: rgba(255,255,255,0.12); color: var(--media-accent); }
.media-ctrl-btn.active-state { color: var(--media-accent); }

.media-time-display {
  font-size: 11px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  color: #ccc;
}
.media-volume-group { display: flex; align-items: center; gap: 4px; }
.media-volume-slider { width: 56px; accent-color: var(--media-accent); }
.media-speed-select {
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 6px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  font-size: 11px;
}

/* Sidebar */
.media-sidebar {
  width: 190px;
  flex: none;
  background: var(--media-sidebar-bg);
  border-left: 1px solid var(--media-sidebar-border);
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.media-sidebar.media-sidebar-hidden { display: none; }
.media-sidebar-header {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--media-sidebar-border);
}
.media-sidebar-header h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--media-track-dim);
}
.media-sidebar-actions { display: flex; gap: 2px; }
.media-sidebar-actions button {
  background: none;
  border: none;
  color: inherit;
  opacity: .65;
  cursor: pointer;
  padding: 3px 5px;
  font-size: 11px;
  border-radius: 5px;
  transition: opacity .15s, background .15s;
}
.media-sidebar-actions button:hover { opacity: 1; background: var(--media-item-hover); }
.media-sidebar-actions button.active-state { opacity: 1; color: var(--media-accent); }

.media-playlist-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.media-playlist-item {
  padding: 7px 9px;
  background: rgba(128,128,128,0.05);
  border-radius: 7px;
  cursor: pointer;
  font-size: 11.5px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 3px solid transparent;
}
.media-playlist-item:hover { background: var(--media-item-hover); }
.media-playlist-item.active {
  background: rgba(255,59,48,0.10);
  border-left-color: var(--media-accent);
  color: var(--media-accent);
  font-weight: 600;
}

.media-restore-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(22,22,34,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  z-index: 12;
  display: none;
  padding: 6px 10px;
  font-size: 11px;
  color: #fff;
  cursor: pointer;
}
body.theme-light .media-restore-trigger {
  background: rgba(60,60,60,0.85);
}
.media-restore-trigger.visible { display: block; }

/* ===== NEWS GADGET ===== */
.news-gadget {
  position: absolute;
  width: 900px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 300;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;

  /* Dark mode by default — matches navbar #212121 */
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
  --news-accent: #6a2be9;
  --news-titlebar-text: #ffffff;
}
body.theme-light .news-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.1);
  --news-accent: #6a2be9;
  --news-titlebar-text: #1a1a1a;
}

/* Embed panel */
.news-embed-panel {
  position: relative;
  display: none;
}
.news-embed-panel.active { display: block; }
.news-embed-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== GOOGLE SEARCH GADGET ===== */
.gsearch-gadget {
  position: absolute;
  width: 420px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 300;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Dark mode by default — matches navbar #212121 */
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
}
body.theme-light .gsearch-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.1);
}

.gsearch-panel {
  padding: 18px 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The pill-shaped search capsule — dark styling by default */
.gsearch-container {
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  background: #2c2c2e;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 0 16px;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.35);
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.gsearch-container:hover {
  box-shadow: 0 1px 10px 0 rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.18);
}

/* Light mode capsule — original clean white pill */
body.theme-light .gsearch-container {
  background: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 1px 6px 0 rgba(32, 33, 36, 0.12);
}
body.theme-light .gsearch-container:hover {
  box-shadow: 0 1px 8px 0 rgba(32, 33, 36, 0.20);
}

.gsearch-icon {
  width: 18px;
  height: 18px;
  margin-right: 14px;
  flex-shrink: 0;
}

.gsearch-input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 14.5px;
  color: #e8eaed;
  background: transparent;
  font-family: inherit;
  min-width: 0;
}
.gsearch-input::placeholder {
  color: #9aa0a6;
  opacity: 1;
}

body.theme-light .gsearch-input { color: #202124; }
body.theme-light .gsearch-input::placeholder { color: #757b82; }

.gsearch-button {
  background: none;
  border: none;
  padding: 0;
  margin-left: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gsearch-button svg {
  width: 19px;
  height: 19px;
  fill: #9aa0a6;
  transition: fill 0.2s ease;
}
.gsearch-button:hover svg { fill: #8ab4f8; }

body.theme-light .gsearch-button svg { fill: #757b82; }
body.theme-light .gsearch-button:hover svg { fill: #4285F4; }

/* ===== GAME GADGET ===== */
.game-gadget {
  position: absolute;
  width: 750px;
  height: 750px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 300;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
}
body.theme-light .game-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
}
.game-panel {
  position: relative;
  height: calc(750px - 36px);
  background: #030508;
  overflow: hidden;
}
.game-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #060913 0%, #030508 100%);
}
.game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #060913 0%, #030508 100%);
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  transition: opacity .4s ease;
}
.game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.game-overlay h1 {
  font-size: 2.2rem;
  font-weight: 200;
  letter-spacing: 8px;
  margin-bottom: 15px;
  color: #a5f3fc;
  text-shadow: 0 0 20px rgba(165,243,252,.3);
}
.game-overlay p {
  font-size: .95rem;
  color: #94a3b8;
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 35px;
  font-weight: 300;
}
.game-btn {
  background: transparent;
  border: 1px solid rgba(165,243,252,.4);
  border-radius: 4px;
  color: #a5f3fc;
  padding: 12px 40px;
  font-size: .9rem;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.game-btn:hover {
  background: rgba(165,243,252,.1);
  border-color: #a5f3fc;
  box-shadow: 0 0 15px rgba(165,243,252,.2);
}
.game-score {
  position: absolute;
  top: 25px;
  left: 25px;
  font-size: .85rem;
  letter-spacing: 4px;
  color: rgba(165,243,252,.6);
  pointer-events: none;
}
.game-score span {
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
  margin-left: 5px;
}

/* ===== FACEBOOK GADGET ===== */
.fb-gadget {
  position: absolute;
  width: 465px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 300;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
}
body.theme-light .fb-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
}
.fb-gadget:active { cursor: grabbing; }

.fb-form-panel {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fb-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.fb-form-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}
.fb-form-title svg { width: 20px; height: 20px; flex: none; }
.fb-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
  flex: none;
}
.fb-close-btn:hover { opacity: 1; background: rgba(128,128,128,0.15); }
.fb-close-btn svg { width: 16px; height: 16px; }

.fb-input {
  width: 100%;
  background: rgba(128,128,128,0.12);
  border: 1px solid rgba(128,128,128,0.2);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  color: inherit;
  transition: border-color .15s;
}
.fb-input:focus { border-color: #6a2be9; }
.fb-input::placeholder { opacity: 0.45; }
body.theme-light .fb-input {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}

.fb-size-row { display: flex; flex-direction: column; gap: 8px; }
.fb-size-row .fb-input { flex: 1; }

.fb-submit-btn {
  background: #6a2be9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .08s;
  width: 100%;
}
.fb-submit-btn:hover { opacity: 0.88; }
.fb-submit-btn:active { transform: scale(0.98); }

.fb-embed-panel { position: relative; display: none; }
.fb-embed-panel.active { display: block; }
.fb-embed-panel iframe { display: block; border: none; }

.fb-embed-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .15s;
}
.fb-embed-close:hover { background: rgba(0,0,0,0.88); }
.fb-embed-close svg { width: 14px; height: 14px; }

/* ===== WEATHER GADGET ===== */
.weather-gadget {
  position: absolute;
  width: 340px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 300;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
}
body.theme-light .weather-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
}
.weather-gadget:active { cursor: grabbing; }

.weather-form-panel {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.weather-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.weather-form-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}
.weather-form-title svg { width: 20px; height: 20px; color: #29b6f6; flex: none; }
.weather-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
  flex: none;
}
.weather-close-btn:hover { opacity: 1; background: rgba(128,128,128,0.15); }
.weather-close-btn svg { width: 16px; height: 16px; }

.weather-input, .weather-select {
  width: 100%;
  background: rgba(128,128,128,0.12);
  border: 1px solid rgba(128,128,128,0.2);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  color: inherit;
  transition: border-color .15s;
}
.weather-input:focus, .weather-select:focus { border-color: #6a2be9; }
.weather-input::placeholder { color: rgba(160,160,160,0.8); opacity: 1; }
body.theme-light .weather-input::placeholder { color: rgba(90,90,90,0.65); }
body.theme-light .weather-input, body.theme-light .weather-select {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}
.weather-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 30px;
  cursor: pointer;
}
.weather-select option { background: #212121; color: #f5f5f5; }
body.theme-light .weather-select option { background: #f7f7f7; color: #1a1a1a; }

.weather-gps-help {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.4;
}
.weather-gps-help a {
  color: #29b6f6;
  text-decoration: underline;
}
body.theme-light .weather-gps-help a {
  color: #0288d1;
}

.weather-field-label {
  padding-bottom: 14px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: 0.5;
  margin-bottom: -4px;
}

.weather-submit-btn {
  background: #6a2be9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .08s;
  width: 100%;
}
.weather-submit-btn:hover { opacity: 0.88; }
.weather-submit-btn:active { transform: scale(0.98); }

.weather-embed-panel {
  position: relative;
  display: none;
  background: #fff;
}
.weather-embed-panel.active { display: block; }
.weather-embed-panel > div[data-meteomatics-weather-widget] {
  width: 100% !important;
}

/* ===== EXCHANGE RATES GADGET ===== */
.fx-gadget {
  position: absolute;
  width: 454px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 300;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
}
body.theme-light .fx-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
}
.fx-gadget:active { cursor: grabbing; }

.fx-form-panel {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fx-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.fx-form-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}
.fx-form-title svg { width: 20px; height: 20px; color: #2e7d32; flex: none; }
.fx-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
  flex: none;
}
.fx-close-btn:hover { opacity: 1; background: rgba(128,128,128,0.15); }
.fx-close-btn svg { width: 16px; height: 16px; }

.fx-input, .fx-select {
  width: 100%;
  background: rgba(128,128,128,0.12);
  border: 1px solid rgba(128,128,128,0.2);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  color: inherit;
  transition: border-color .15s;
}
.fx-input:focus, .fx-select:focus { border-color: #6a2be9; }
.fx-input::placeholder { color: rgba(160,160,160,0.8); opacity: 1; }
body.theme-light .fx-input::placeholder { color: rgba(90,90,90,0.65); }
body.theme-light .fx-input, body.theme-light .fx-select {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}
.fx-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 30px;
  cursor: pointer;
}
.fx-select option { background: #212121; color: #f5f5f5; }
body.theme-light .fx-select option { background: #f7f7f7; color: #1a1a1a; }

.fx-size-row { display: flex; flex-direction: column; gap: 8px; }
.fx-size-row .fx-input { flex: 1; }

.fx-field-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: 0.5;
  margin-bottom: -4px;
}

.fx-submit-btn {
  background: #6a2be9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .08s;
  width: 100%;
}
.fx-submit-btn:hover { opacity: 0.88; }
.fx-submit-btn:active { transform: scale(0.98); }

.fx-embed-panel { position: relative; display: none; }
.fx-embed-panel.active { display: block; }
.fx-embed-panel iframe { display: block; border: none; }

/* ===== PINTEREST GADGET ===== */
.pin-gadget {
  position: absolute;
  width: 416px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 300;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
}
body.theme-light .pin-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
}
.pin-gadget:active { cursor: grabbing; }

.pin-form-panel {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pin-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.pin-form-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}
.pin-form-title svg { width: 20px; height: 20px; flex: none; }
.pin-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
  flex: none;
}
.pin-close-btn:hover { opacity: 1; background: rgba(128,128,128,0.15); }
.pin-close-btn svg { width: 16px; height: 16px; }

.pin-input {
  width: 100%;
  background: rgba(128,128,128,0.12);
  border: 1px solid rgba(128,128,128,0.2);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  color: inherit;
  transition: border-color .15s;
}
.pin-input:focus { border-color: #e60023; }
.pin-input::placeholder { opacity: 0.45; }
body.theme-light .pin-input {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}

.pin-size-row { display: flex; flex-direction: column; gap: 8px; }
.pin-size-row .pin-input { flex: 1; }

.pin-submit-btn {
  background: #e60023;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .08s;
  width: 100%;
}
.pin-submit-btn:hover { opacity: 0.88; }
.pin-submit-btn:active { transform: scale(0.98); }

.pin-embed-panel { position: relative; display: none; }
.pin-embed-panel.active { display: block; }
.pin-embed-panel iframe { display: block; border: none; }

/* ===== TWITCH GADGET ===== */
.twitch-gadget {
  position: absolute;
  width: 462px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 300;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
}
body.theme-light .twitch-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
}
.twitch-gadget:active { cursor: grabbing; }

.twitch-form-panel {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.twitch-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.twitch-form-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}
.twitch-form-title svg {
  width: 20px; height: 20px;
  color: #9147ff;
  flex: none;
}
.twitch-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
  flex: none;
}
.twitch-close-btn:hover { opacity: 1; background: rgba(128,128,128,0.15); }
.twitch-close-btn svg { width: 16px; height: 16px; }

.twitch-input {
  width: 100%;
  background: rgba(128,128,128,0.12);
  border: 1px solid rgba(128,128,128,0.2);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  color: inherit;
  transition: border-color .15s;
}
.twitch-input:focus { border-color: #6a2be9; }
.twitch-input::placeholder { opacity: 0.45; }
body.theme-light .twitch-input {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}

.twitch-size-row { display: flex; flex-direction: column; gap: 8px; }
.twitch-size-row .twitch-input { flex: 1; }

.twitch-checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.twitch-checkbox-row input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: #6a2be9;
  cursor: pointer;
  flex: none;
}

.twitch-submit-btn {
  background: #6a2be9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .08s;
  width: 100%;
}
.twitch-submit-btn:hover { opacity: 0.88; }
.twitch-submit-btn:active { transform: scale(0.98); }

.twitch-embed-panel { position: relative; display: none; }
.twitch-embed-panel.active { display: block; }
.twitch-embed-panel iframe { display: block; border: none; }

.twitch-embed-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .15s;
}
.twitch-embed-close:hover { background: rgba(0,0,0,0.88); }
.twitch-embed-close svg { width: 14px; height: 14px; }

/* ===== MONITOR WEBSITES GADGET ===== */
.monitor-gadget {
  position: absolute;
  width: 380px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 300;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
}
body.theme-light .monitor-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
}

.monitor-form-panel {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.monitor-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.monitor-form-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
}
.monitor-form-title svg { width: 18px; height: 18px; flex: none; }
.monitor-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 6px;
  transition: opacity .15s, background .15s;
  flex: none;
}
.monitor-close-btn:hover { opacity: 1; background: rgba(128,128,128,0.15); }
.monitor-close-btn svg { width: 16px; height: 16px; }

/* Mode tabs */
.monitor-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.monitor-tab {
  background: rgba(128,128,128,0.10);
  border: 1px solid rgba(128,128,128,0.18);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: background .15s, opacity .15s, border-color .15s;
  font-family: inherit;
  text-align: left;
}
.monitor-tab:hover { opacity: 1; background: rgba(128,128,128,0.18); }
.monitor-tab.active {
  background: #6a2be9;
  border-color: #6a2be9;
  color: #fff;
  opacity: 1;
}
body.theme-light .monitor-tab.active { background: #1a1a1a; border-color: #1a1a1a; }

.monitor-input {
  width: 100%;
  background: rgba(128,128,128,0.12);
  border: 1px solid rgba(128,128,128,0.2);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  color: inherit;
  transition: border-color .15s;
  box-sizing: border-box;
}
.monitor-input:focus { border-color: #6a2be9; }
.monitor-input::placeholder { opacity: 0.45; }
body.theme-light .monitor-input {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}

.monitor-url-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.monitor-url-entry {
  display: flex;
  align-items: center;
  gap: 6px;
}
.monitor-url-entry .monitor-input { flex: 1; }
.monitor-url-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.4;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: opacity .15s;
  flex: none;
}
.monitor-url-remove:hover { opacity: 1; }
.monitor-url-remove svg { width: 14px; height: 14px; }

.monitor-add-url-btn {
  background: rgba(128,128,128,0.12);
  border: 1px dashed rgba(128,128,128,0.3);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  opacity: 0.7;
  transition: opacity .15s, background .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.monitor-add-url-btn:hover { opacity: 1; background: rgba(128,128,128,0.18); }
.monitor-add-url-btn svg { width: 14px; height: 14px; flex: none; }

.monitor-size-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.monitor-size-row .monitor-input { flex: 1; }

.monitor-submit-btn {
  background: #212121;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .08s;
  width: 100%;
}
body.theme-light .monitor-submit-btn {
  background: #1a1a1a;
  border-color: rgba(0,0,0,0.15);
}
.monitor-submit-btn:hover { opacity: 0.85; }
.monitor-submit-btn:active { transform: scale(0.98); }

/* Active monitor view (uptime table) */
.monitor-active-panel {
  display: flex;
  flex-direction: column;
}
.monitor-active-titlebar {
  cursor: grab;
}
.monitor-active-titlebar:active { cursor: grabbing; }

.monitor-table-wrap {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.monitor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.monitor-table th {
  text-align: left;
  padding: 5px 8px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: 0.45;
  font-weight: 700;
  border-bottom: 1px solid rgba(128,128,128,0.15);
}
.monitor-table td {
  padding: 8px 8px;
  border-bottom: 1px solid rgba(128,128,128,0.08);
  vertical-align: middle;
}
.monitor-table tr:last-child td { border-bottom: none; }
.monitor-table .col-order { width: 28px; opacity: 0.45; font-size: 11px; }
.monitor-table .col-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.monitor-table .col-status { width: 90px; text-align: right; }

.monitor-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.monitor-status-badge.online {
  background: rgba(46,204,113,0.18);
  color: #2ecc71;
  border: 1px solid rgba(46,204,113,0.3);
}
.monitor-status-badge.offline {
  background: rgba(231,76,60,0.18);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.3);
}
.monitor-status-badge.checking {
  background: rgba(241,196,15,0.15);
  color: #f1c40f;
  border: 1px solid rgba(241,196,15,0.25);
}
.monitor-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.monitor-status-badge.online .monitor-status-dot { background: #2ecc71; }
.monitor-status-badge.offline .monitor-status-dot { background: #e74c3c; }
.monitor-status-badge.checking .monitor-status-dot { background: #f1c40f; }

/* Preview mode windows */
.monitor-preview-window {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  overflow: hidden;
  background: #212121;
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 300;
  user-select: none;
  touch-action: none;
  display: flex;
  flex-direction: column;
}
body.theme-light .monitor-preview-window {
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,0.1);
}
.monitor-preview-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 12px;
  height: 36px;
  min-height: 36px;
  cursor: grab;
  border-bottom: 1px solid rgba(128,128,128,0.15);
  background: rgba(30,30,30,0.85);
  flex: none;
}
.monitor-preview-titlebar:active { cursor: grabbing; }
.monitor-preview-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  color: #fff;
}
.monitor-preview-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex: none;
  padding: 0;
}
.monitor-preview-close:hover { background: rgba(0,0,0,0.9); }
.monitor-preview-close svg { width: 13px; height: 13px; }
.monitor-preview-iframe-wrap {
  overflow: hidden;
  position: relative;
}
.monitor-preview-iframe-wrap iframe {
  border: none;
  transform-origin: 0 0;
}
/* ── Change Icon Modal ─────────────────────────────────── */
.ci-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 3000;
}
.ci-modal {
  width: 320px;
  border-radius: 14px;
  background: var(--dd-bg);
  color: var(--dd-text);
  border: 1px solid var(--dd-border);
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
}
.ci-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--dd-border);
  background: rgba(128,128,128,0.07);
}
.ci-title {
  font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; gap: 7px;
}
.ci-close {
  background: none; border: none; cursor: pointer; color: inherit;
  opacity: .6; display: flex; align-items: center; justify-content: center;
  padding: 3px; border-radius: 6px; transition: opacity .15s, background .15s;
}
.ci-close:hover { opacity: 1; background: rgba(128,128,128,0.18); }
.ci-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ci-preview-row {
  display: flex; align-items: center; gap: 12px;
}
.ci-preview-img {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(128,128,128,.12);
  object-fit: contain; padding: 4px;
  border: 1px solid var(--dd-border);
  flex-shrink: 0;
}
.ci-preview-label { font-size: 12px; opacity: .65; line-height: 1.5; }
.ci-section-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; opacity: .5; margin-bottom: 5px;
}
.ci-upload-btn {
  width: 100%; padding: 8px 10px; border-radius: 8px; cursor: pointer;
  background: var(--dd-input-bg); color: var(--dd-text);
  border: 1px dashed var(--dd-border);
  font-size: 12.5px; font-family: inherit; text-align: center;
  transition: border-color .15s, background .15s;
}
.ci-upload-btn:hover { border-color: #6a2ce9; background: rgba(106,44,233,.07); }
.ci-url-row { display: flex; gap: 6px; }
.ci-url-input {
  flex: 1; background: var(--dd-input-bg); color: var(--dd-text);
  border: 1px solid var(--dd-border); border-radius: 8px;
  padding: 7px 10px; font-size: 12.5px; outline: none; font-family: inherit;
}
.ci-url-input:focus { border-color: #6a2ce9; }
.ci-apply-btn {
  background: #6a2ce9; color: #fff; border: none; border-radius: 8px;
  padding: 7px 13px; font-size: 12.5px; cursor: pointer;
  font-weight: 500; font-family: inherit; white-space: nowrap;
}
body.theme-light .ci-apply-btn { background: #1a1a1a; }
.ci-apply-btn:hover { opacity: .85; }
.ci-reset-btn {
  background: none; border: 1px solid var(--dd-border); border-radius: 8px;
  color: var(--dd-text); padding: 7px 10px; font-size: 12px;
  cursor: pointer; font-family: inherit; opacity: .7;
}
.ci-reset-btn:hover { opacity: 1; }
.ci-footer { display: flex; gap: 6px; padding: 0 16px 16px; }
/* ── Help Guide Modal ──────────────────────────────────────── */
.hg-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 3100;
  padding: 20px;
}
.hg-modal {
  width: 100%; max-width: 680px;
  max-height: 88vh;
  border-radius: 14px;
  background: var(--dd-bg);
  color: var(--dd-text);
  border: 1px solid var(--dd-border);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  display: flex; flex-direction: column;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  overflow: hidden;
}
.hg-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--dd-border);
  background: rgba(128,128,128,0.07);
  flex-shrink: 0;
}
.hg-title {
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  display: flex; align-items: center; gap: 8px;
}
.hg-close {
  background: none; border: none; cursor: pointer; color: inherit;
  opacity: .6; display: flex; align-items: center; justify-content: center;
  padding: 4px; border-radius: 6px; transition: opacity .15s, background .15s;
  flex-shrink: 0;
}
.hg-close:hover { opacity: 1; background: rgba(128,128,128,.18); }
.hg-body {
  overflow-y: auto; padding: 20px 22px 24px;
  line-height: 1.65;
}
.hg-body::-webkit-scrollbar { width: 5px; }
.hg-body::-webkit-scrollbar-track { background: transparent; }
.hg-body::-webkit-scrollbar-thumb { background: rgba(128,128,128,.3); border-radius: 4px; }
.hg-intro {
  margin-bottom: 18px; opacity: .8; font-size: 12.5px;
}
.hg-social {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 10px 0 18px;
}
.hg-social a {
  color: #6a2ce9; text-decoration: none; font-size: 12px;
  padding: 3px 9px; border-radius: 20px;
  border: 1px solid rgba(106,44,233,.35);
  transition: background .15s;
}
body.theme-light .hg-social a { color: #1a1a1a; border-color: rgba(0,0,0,.2); }
.hg-social a:hover { background: rgba(106,44,233,.12); }
.hg-section {
  margin-top: 22px; margin-bottom: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; opacity: .45;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--dd-border);
}
.hg-h2 {
  font-size: 13.5px; font-weight: 700; margin: 18px 0 6px;
  display: flex; align-items: center; gap: 7px;
}
.hg-h2-num {
  background: #6a2ce9; color: #fff; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; padding: 1px 6px; flex-shrink: 0;
}
body.theme-light .hg-h2-num { background: #1a1a1a; }
.hg-h3 {
  font-size: 12.5px; font-weight: 600; margin: 12px 0 3px;
  opacity: .85;
}
.hg-p { margin: 0 0 5px; opacity: .75; font-size: 12.5px; }
.hg-items { margin: 4px 0 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.hg-items li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12.5px; opacity: .75;
}
.hg-items li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #6a2ce9; flex-shrink: 0; margin-top: 6px;
}
body.theme-light .hg-items li::before { background: #1a1a1a; }
.hg-items li strong { opacity: 1; color: var(--dd-text); font-weight: 600; }
.hg-link {
  color: #6a2ce9; text-decoration: none; word-break: break-all;
}
body.theme-light .hg-link { color: #1a1a1a; }
.hg-link:hover { text-decoration: underline; }

/* ── Newly Added Icons Inbox Gadget ── */
.inbox-gadget {
  position: absolute;
  width: 320px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  z-index: 300;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #212121;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.08);
}
body.theme-light .inbox-gadget {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.10);
}
.inbox-gadget-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  min-height: 80px;
  max-height: 300px;
  overflow-y: auto;
}
.inbox-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  padding: 4px;
  width: calc(var(--icon-size) + 12px);
  position: relative;
}
.inbox-icon:active {
  cursor: grabbing;
}
.inbox-icon .icon-img {
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  object-fit: contain;
  padding: 6px;
}
body.theme-light .inbox-icon .icon-img {
  background: rgba(0, 0, 0, .05);
}
.inbox-icon .icon-label {
  font-size: 11px;
  text-align: center;
  max-width: 100%;
  overflow-wrap: break-word;
  color: inherit;
}
.inbox-icon .icon-delete {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 11px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.inbox-icon:hover .icon-delete {
  display: flex;
}
