:root {
  --topbar: rgba(0, 58, 70, 0.58);
  --topbar-strong: rgba(0, 41, 50, 0.58);
  --widget: rgba(255, 255, 255, 0.94);
  --widget-line: rgba(16, 35, 42, 0.08);
  --text: #1f2b2d;
  --muted: #6e7a7e;
  --soft: #f2f5f5;
  --accent: #22b9a8;
  --accent-dark: #0b7f78;
  --shadow: 0 8px 24px rgba(8, 36, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body[data-page-theme="clear"] {
  background:
    linear-gradient(rgba(235, 252, 250, 0.38), rgba(255, 255, 255, 0.2)),
    url("../../assets/clear-vault-startme-beach.png") center center / cover fixed,
    #edf9f7;
}

body[data-page-theme="dusk"] {
  background:
    linear-gradient(rgba(30, 24, 42, 0.36), rgba(65, 35, 38, 0.24)),
    url("../../assets/clear-vault-startme-beach.png") center center / cover fixed,
    #5d5966;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(0, 35, 44, 0.08), rgba(255, 255, 255, 0.02)),
    url("../../assets/clear-vault-startme-beach.png") center center / cover fixed,
    #e5f6f4;
  font-family:
    Inter, "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.startbar {
  height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  color: #fff;
  background: var(--topbar);
  backdrop-filter: blur(8px);
}

.page-controls,
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hamburger,
.portfolio-return,
.page-pill,
.top-actions button,
.mini-search {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 36, 45, 0.44);
  font-size: 13px;
  font-weight: 700;
}

.hamburger {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}

.portfolio-return {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  white-space: nowrap;
}

.page-pill {
  padding: 0 14px;
}

.page-pill.active {
  color: #0d4f58;
  background: rgba(255, 255, 255, 0.92);
}

.start-logo {
  display: block;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.brand-logo-unused {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.brand-logo-unused span {
  width: 15px;
  height: 15px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 4px;
  display: inline-block;
}

.top-actions {
  justify-content: flex-end;
}

.top-actions button {
  padding: 0 13px;
}

.top-actions .round {
  width: 32px;
  padding: 0;
  border-radius: 999px;
  font-size: 18px;
}

.top-actions .upgrade {
  color: #fff;
  background: #20c375;
}

.top-actions .sync-status {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
}

.sync-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7e1e3;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.sync-status.synced i { background: #35d07f; }
.sync-status.pending i { background: #f4bf36; }
.sync-status.syncing i { background: #72c7f2; animation: sync-pulse 900ms ease-in-out infinite alternate; }
.sync-status.offline i { background: #ff7b68; }
.sync-status.conflict i { background: #ff3e53; }

@keyframes sync-pulse {
  to { opacity: 0.35; }
}

.top-actions .alert {
  width: 30px;
  background:
    radial-gradient(circle at 72% 28%, #e83d48 0 5px, transparent 6px),
    rgba(0, 36, 45, 0.44);
}

.top-actions .avatar {
  width: 34px;
  height: 34px;
  padding: 0;
  background: #8363d4;
}

.mini-search {
  width: 124px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
}

.mini-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.mini-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.global-search-results {
  position: fixed;
  z-index: 45;
  top: 48px;
  right: 154px;
  width: min(440px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 78px));
  overflow: auto;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 70px rgba(0, 28, 35, 0.3);
  padding: 8px;
}

.global-search-results a,
.global-search-results button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #263438;
  padding: 8px 10px;
  text-align: left;
}

.global-search-results a:hover,
.global-search-results button:hover {
  background: #eef6f5;
}

.global-search-results span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.global-search-results strong,
.global-search-results small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-results strong { font-size: 14px; }
.global-search-results small { color: #798589; font-size: 12px; }
.global-search-results em { color: #0d8679; font-size: 11px; font-style: normal; font-weight: 800; }
.global-search-results p { margin: 0; padding: 22px; color: #7c878a; text-align: center; }

.toast-region {
  position: fixed;
  z-index: 90;
  top: 66px;
  left: 50%;
  width: min(380px, calc(100vw - 28px));
  display: grid;
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.app-toast {
  opacity: 0;
  transform: translateY(-8px);
  border: 1px solid rgba(16, 35, 42, 0.1);
  border-left: 4px solid #3e8f84;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(0, 28, 35, 0.2);
  color: #29383c;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.45;
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-toast.visible { opacity: 1; transform: translateY(0); }
.app-toast.success { border-left-color: #24a96b; }
.app-toast.warning { border-left-color: #d89927; }
.app-toast.error { border-left-color: #d85959; }

.startpage {
  min-height: calc(100vh - 54px);
  padding: 70px 32px 52px;
}

.hero-search {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-search label {
  width: min(380px, calc(100vw - 48px));
  height: 46px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(3, 38, 48, 0.12);
}

.hero-search span {
  color: #526065;
  text-align: center;
  font-size: 15px;
}

.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #455357;
  background: transparent;
  font-size: 14px;
}

.widget-masonry {
  width: min(1960px, calc(100vw - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--page-columns, 4), minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.widget-masonry[data-density="compact"] {
  gap: 12px;
}

.widget-masonry[data-density="compact"] .widget-column {
  gap: 9px;
}

.widget.search-highlight {
  animation: search-highlight 1.6s ease;
}

@keyframes search-highlight {
  0%, 100% { box-shadow: var(--shadow); }
  25%, 70% { box-shadow: 0 0 0 3px rgba(34, 185, 168, 0.72), 0 18px 38px rgba(3, 38, 48, 0.2); }
}

.widget-column {
  display: grid;
  gap: 14px;
  align-items: start;
  align-content: start;
  min-height: max(560px, calc(100vh - 190px));
  padding: 2px 0 80px;
  border-radius: 6px;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.widget-column.drag-over {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.add-tool-zone {
  width: 100%;
  min-height: 78px;
  display: grid;
  place-items: center;
  margin: 0;
}

.column-add-tool {
  align-self: stretch;
  padding-top: 2px;
}

.add-tool-strip {
  width: 100%;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: rgba(22, 18, 16, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;
  font-size: 18px;
  font-weight: 760;
}

.widget-column:hover .column-add-tool .add-tool-strip,
.add-tool-zone:hover .add-tool-strip,
.add-tool-strip:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.add-tool-strip:hover {
  background: rgba(22, 18, 16, 0.58);
}

.add-tool-strip i {
  width: 22px;
  height: 22px;
  border: 4px solid rgba(255, 255, 255, 0.38);
  border-top-color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
}

.middle-column,
.right-column {
  display: grid;
  gap: 12px;
}

.widget {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: var(--widget);
  box-shadow: var(--shadow);
  transition:
    box-shadow 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}

.widget:hover,
.widget:focus-within {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 16px 34px rgba(3, 38, 48, 0.18);
}

.widget.widget-collapsed { min-height: 0; }
.widget.widget-collapsed .widget-head { min-height: 48px; padding-bottom: 12px; }
.widget.widget-size-compact .widget-head { min-height: 38px; padding: 10px 12px 6px; }
.widget.widget-size-compact h2 { font-size: 15px; }
.widget.widget-size-compact .icon-grid,
.widget.widget-size-compact .bookmark-list,
.widget.widget-size-compact .task-list { padding-inline: 12px; }
.widget.widget-size-compact .note-body { min-height: 96px; margin-inline: 12px; width: calc(100% - 24px); }
.widget.widget-size-compact .headline { grid-template-columns: 82px 1fr; padding: 8px 12px 6px; }
.widget.widget-size-compact .headline .thumb { min-height: 74px; }
.widget.widget-size-compact .news-list { gap: 5px; font-size: 13px; }

.widget:hover {
  transform: translateY(-1px);
}

.widget[draggable="true"] {
  cursor: grab;
}

.widget[draggable="true"]:active {
  cursor: grabbing;
}

.widget a,
.widget button,
.widget input,
.widget textarea,
.widget select,
.widget label {
  cursor: auto;
}

.widget a,
.widget button {
  cursor: pointer;
}

.widget.dragging {
  opacity: 0.46;
  transform: scale(0.985);
  box-shadow: 0 12px 36px rgba(2, 27, 34, 0.24);
}

.widget-drop-marker {
  min-height: 52px;
  border: 2px dashed rgba(255, 255, 255, 0.86);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(10, 67, 75, 0.1);
}

.bookmark-drop-marker {
  min-height: 54px;
  border: 2px dashed rgba(36, 180, 104, 0.62);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}

.icon-grid .bookmark-drop-marker {
  width: 100%;
  min-width: 58px;
}

.bookmark-list .bookmark-drop-marker {
  min-height: 42px;
}

.ready-to-drag {
  outline: 2px solid rgba(36, 180, 104, 0.55);
  outline-offset: 4px;
}

.bookmark-dragging {
  opacity: 0.42;
  transform: scale(0.96);
}

.bookmark-drag-over {
  border-radius: 6px;
}

.empty-widget.bookmark-drag-over {
  gap: 12px;
  outline: 2px dashed rgba(36, 180, 104, 0.5);
  outline-offset: -10px;
}

.empty-widget .bookmark-drop-marker {
  width: min(180px, 80%);
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 14px 16px 8px;
}

.widget h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 760;
}

.widget-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 160ms ease;
}

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

.tool-button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: rgba(16, 35, 42, 0.06);
  color: #576368;
  font-size: 15px;
}

.tool-button:hover {
  background: rgba(16, 35, 42, 0.12);
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  padding: 0 16px 10px;
  border-bottom: 1px solid var(--widget-line);
  color: #4f5b5e;
  font-size: 12px;
}

.source-row button,
.city button {
  width: 25px;
  height: 25px;
  min-height: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #758185;
  padding: 0;
  font-size: 17px;
}

.weather-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.source-row button:hover,
.city button:hover { background: rgba(16, 35, 42, 0.08); color: #263438; }
.source-row button { margin-left: auto; }

.headline {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  padding: 10px 14px 8px;
}

.headline .thumb {
  min-height: 95px;
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(27, 80, 91, 0.16), rgba(244, 244, 240, 0.2)),
    url("../../assets/clear-vault-startme-beach.png") center / cover;
}

.headline strong {
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.45;
}

.headline a,
.news-list a { color: inherit; text-decoration: none; }
.headline a:hover strong,
.news-list a:hover { color: #087f72; }

.headline p {
  margin: 6px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #677175;
  font-size: 12px;
  line-height: 1.55;
}

.news-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 16px 12px;
  list-style: none;
  color: #334044;
  font-size: 14px;
  line-height: 1.55;
}

.news-list li { min-width: 0; display: grid; gap: 1px; }
.news-list li > a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-list small { color: #879195; font-size: 11px; }

.news-widget .source-row {
  max-height: 38px;
  overflow: hidden;
}

.news-widget .widget-data-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 0 12px;
}

.pager span { color: #7c878a; font-size: 12px; font-weight: 700; }
.pager button:disabled { cursor: default; opacity: 0.3; }

.pager button {
  border: 0;
  background: transparent;
  color: #b4bbbe;
  font-size: 18px;
}

.icon-grid {
  display: grid;
  gap: 14px 24px;
  padding: 12px 24px 20px;
}

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

.tech-grid,
.shop-grid,
.travel-grid {
  grid-template-columns: repeat(5, 1fr);
}

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

.icon-grid a {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  position: relative;
  border-radius: 7px;
  padding: 8px 6px 7px;
  outline: 0;
  transition:
    background 130ms ease,
    box-shadow 130ms ease,
    transform 130ms ease;
}

.icon-grid a:hover,
.icon-grid a:focus-visible,
.icon-grid a.bookmark-active,
.bookmark-list a:hover,
.bookmark-list a:focus-visible,
.bookmark-list a.bookmark-active {
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(16, 35, 42, 0.08),
    0 8px 18px rgba(8, 38, 46, 0.12);
}

.icon-grid a:hover,
.icon-grid a:focus-visible,
.icon-grid a.bookmark-active {
  transform: translateY(-1px);
}

.icon-grid a:active,
.bookmark-list a:active {
  transform: scale(0.985);
}

.icon-grid a:hover .logo,
.icon-grid a:focus-visible .logo,
.icon-grid a.bookmark-active .logo,
.bookmark-list a:hover .logo,
.bookmark-list a:focus-visible .logo,
.bookmark-list a.bookmark-active .logo {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.82),
    0 8px 16px rgba(8, 38, 46, 0.16);
}

.icon-grid a:hover em,
.icon-grid a:focus-visible em,
.icon-grid a.bookmark-active em,
.bookmark-list a:hover em,
.bookmark-list a:focus-visible em,
.bookmark-list a.bookmark-active em {
  color: #17262b;
  font-weight: 760;
}

.empty-widget {
  min-height: 126px;
  display: grid;
  place-items: center;
  padding: 26px;
}

.add-bookmark-button,
.add-task-button {
  min-height: 40px;
  border: 1px solid rgba(16, 35, 42, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: #3d4a4e;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
}

.note-body {
  width: calc(100% - 32px);
  min-height: 142px;
  margin: 0 16px 16px;
  border: 1px solid rgba(16, 35, 42, 0.08);
  border-radius: 5px;
  resize: vertical;
  padding: 12px;
  background: rgba(250, 252, 252, 0.78);
  color: #344145;
  outline: 0;
  font-size: 14px;
  line-height: 1.6;
}

.widget.note-color-yellow { background: rgba(255, 246, 178, 0.96); }
.widget.note-color-green { background: rgba(218, 244, 225, 0.96); }
.widget.note-color-blue { background: rgba(219, 239, 250, 0.96); }

.note-inline-toolbar {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 4px;
}

.note-mini-colors,
.note-color-picker,
.note-mode-switch {
  display: flex;
  align-items: center;
  gap: 7px;
}

.note-mini-colors button,
.note-color-picker button {
  width: 18px;
  height: 18px;
  min-height: 0;
  border: 2px solid rgba(16, 35, 42, 0.14);
  border-radius: 50%;
  background: #fff;
  padding: 0;
}

.note-mini-colors button[data-note-inline-color="yellow"],
.note-color-picker button[data-note-color="yellow"] { background: #fff0a2; }
.note-mini-colors button[data-note-inline-color="green"],
.note-color-picker button[data-note-color="green"] { background: #ccefd6; }
.note-mini-colors button[data-note-inline-color="blue"],
.note-color-picker button[data-note-color="blue"] { background: #cfe9f7; }
.note-mini-colors button.active,
.note-color-picker button.active { border-color: #178f7c; box-shadow: 0 0 0 2px rgba(23, 143, 124, 0.15); }

.note-expand {
  width: 28px;
  height: 28px;
  min-height: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #5f6d71;
  font-size: 18px;
}

.note-expand:hover { background: rgba(16, 35, 42, 0.08); }

.task-progress {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 16px 12px;
  color: #657276;
  font-size: 12px;
  font-weight: 800;
}

.task-progress i {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e7ecea;
}

.task-progress b { display: block; height: 100%; border-radius: inherit; background: #24b468; transition: width 180ms ease; }

.task-list {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
}

.empty-note {
  margin: 0;
  color: #899397;
  font-size: 14px;
}

.task-row {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  padding: 3px 5px;
  color: #3e4a4f;
  font-size: 14px;
}

.task-row:hover,
.task-row:focus-within { background: rgba(16, 35, 42, 0.055); }
.task-row.task-dragging { opacity: 0.42; }
.task-list.task-drag-over { border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(36, 180, 104, 0.32); }

.task-row label { min-width: 0; display: flex; align-items: center; gap: 8px; }
.task-row label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.task-drag-handle {
  color: #9ba5a8;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.task-drag-handle:active { cursor: grabbing; }

.task-actions { display: flex; opacity: 0; transition: opacity 120ms ease; }
.task-row:hover .task-actions,
.task-row:focus-within .task-actions { opacity: 1; }
.task-actions button { width: 27px; height: 27px; min-height: 0; border: 0; border-radius: 5px; background: transparent; color: #657276; padding: 0; }
.task-actions button:hover { background: rgba(16, 35, 42, 0.09); color: #243338; }

.task-row input {
  accent-color: #24b468;
}

.task-row.done span {
  color: #8d989b;
  text-decoration: line-through;
}

.task-compose {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.task-compose input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(16, 35, 42, 0.12);
  border-radius: 5px;
  padding: 8px 10px;
}

.task-compose button {
  border: 0;
  border-radius: 5px;
  background: #24b468;
  color: #fff;
  padding: 0 12px;
  font-weight: 700;
}

.line-widget {
  min-height: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.line-widget .widget-head {
  min-height: 18px;
  padding: 0;
}

.line-widget .widget-tools {
  position: absolute;
  right: 8px;
  top: -4px;
}

.icon-grid em {
  width: 100%;
  overflow: visible;
  color: #354246;
  font-size: 12px;
  font-style: normal;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  min-height: 30px;
}

.bookmark-list {
  display: grid;
  gap: 8px;
  padding: 10px 18px 18px;
}

.bookmark-list a {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border-radius: 5px;
  padding: 4px 6px;
  outline: 0;
  transition:
    background 130ms ease,
    box-shadow 130ms ease,
    transform 130ms ease;
}

.bookmark-list em {
  color: #354246;
  font-size: 14px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.icon-size-small .logo {
  width: 28px;
  height: 28px;
}

.icon-size-large .logo {
  width: 40px;
  height: 40px;
}

.icon-size-large.icon-grid em {
  font-size: 13px;
}

.logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 860;
  transition:
    box-shadow 130ms ease,
    transform 130ms ease;
}

.logo.h { background: #278b70; }
.logo.custom { background: #2a756d; }
.logo.cnn { background: #cf172b; font-size: 11px; }
.logo.peacock { background: #fff; color: #e55b34; font-size: 20px; }
.logo.fox { background: #1f5b9e; font-size: 10px; }
.logo.wsj { background: #f2f3f2; color: #1d2426; font-size: 10px; }
.logo.nyt { background: #111; font-family: Georgia, serif; }
.logo.politico { background: #df2538; font-size: 20px; }
.logo.cbs { background: #222; font-size: 20px; }
.logo.drudge { background: #111; }
.logo.wp { background: #222; font-family: Georgia, serif; font-size: 11px; }
.logo.techcrunch { background: #1db866; }
.logo.cnet { background: #b8ff3b; color: #4b5d2d; }
.logo.thn { background: #2b36a5; }
.logo.mash { background: #6064c8; }
.logo.zd { background: #b8ff2c; color: #1f2f20; }
.logo.amazon { background: #fff; color: #111; font-size: 26px; }
.logo.ebay { background: #fff; color: #1b66cc; font-size: 22px; }
.logo.ali { background: #ff6b2b; font-size: 10px; }
.logo.qvc { background: #fff; color: #1d5f87; border: 2px solid #f39998; }
.logo.walmart { background: #fff; color: #f4b11b; font-size: 22px; }
.logo.chatgpt { background: #24b468; font-size: 20px; }
.logo.google { background: #fff; color: #4285f4; font-size: 24px; }
.logo.yahoo { background: #7c2ab8; }
.logo.gmail { background: #fff; color: #ea4335; font-size: 24px; }
.logo.youtube { background: #fff; color: #f00; font-size: 24px; }
.logo.facebook { background: #1d68d8; font-size: 24px; }
.logo.linkedin { background: #2877b7; font-size: 16px; }
.logo.reddit { background: #ff4b19; font-size: 22px; }
.logo.booking { background: #0e55b7; font-size: 17px; }
.logo.expedia { background: #17286c; color: #ffd21b; font-size: 20px; }
.logo.hilton { background: #1b4c91; }
.logo.hotels { background: #f03534; }
.logo.sky { background: #248bde; font-size: 20px; }

.weather-widget {
  min-height: 184px;
}

.city {
  margin: 0;
  display: flex;
  align-items: center;
  padding: 0 16px 10px;
  color: #344145;
  font-size: 13px;
}

.weather-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 0 14px 18px;
}

.weather-row.weather-days-2 { grid-template-columns: repeat(2, 1fr); }
.weather-row.weather-days-3 { grid-template-columns: repeat(3, 1fr); }

.weather-expanded-list {
  display: grid;
  gap: 0;
  margin: 0 14px 12px;
  border-top: 1px solid var(--widget-line);
}

.weather-detail-day {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(64px, 1fr) 28px auto auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--widget-line);
  color: #354347;
  font-size: 12px;
}

.weather-detail-day span { font-size: 18px; text-align: center; }
.weather-detail-day em { color: #263438; font-style: normal; font-weight: 800; }
.weather-detail-day small { min-width: 48px; color: #7d878a; text-align: right; }

.widget-data-status {
  margin: 0;
  padding: 0 16px 6px;
  color: #7d898c;
  font-size: 10px;
  line-height: 1.3;
}

.widget-data-status.error { color: #bc5757; }
.widget-data-status a { color: inherit; text-decoration: none; }
.widget-data-status a:hover { text-decoration: underline; }

.backup-status-content {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.backup-metric {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(16, 35, 42, 0.08);
  border-radius: 6px;
  background: #f7f9f8;
  padding: 10px 12px;
}

.backup-metric strong { color: #263438; font-size: 15px; }
.backup-metric span { color: #748084; font-size: 13px; }

.weather-row div {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.weather-row span {
  height: 30px;
  font-size: 22px;
}

.weather-row strong {
  font-size: 12px;
  line-height: 1.25;
}

.weather-row small {
  color: #7d878a;
  font-size: 11px;
  line-height: 1.25;
}

.translate-float {
  position: fixed;
  right: 14px;
  bottom: 86px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #fff;
  background: #f06b9a;
  box-shadow: 0 4px 14px rgba(27, 24, 34, 0.18);
  font-size: 10px;
  font-weight: 900;
}

.start-footer {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 24, 25, 0.5);
}

.widget-menu,
.bookmark-menu {
  position: fixed;
  z-index: 60;
  width: 360px;
  max-width: calc(100vw - 28px);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 72px rgba(0, 22, 28, 0.34);
  padding: 16px 0;
}

.bookmark-menu {
  width: 300px;
}

.widget-menu button,
.bookmark-menu button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #2f3a3e;
  padding: 0 24px;
  text-align: left;
  font-size: 16px;
}

.bookmark-menu button {
  justify-content: flex-start;
  min-height: 44px;
}

.widget-menu button:hover,
.bookmark-menu button:hover {
  background: rgba(16, 35, 42, 0.06);
}

.widget-menu button:disabled,
.bookmark-menu button:disabled {
  cursor: default;
  color: #a8b0b3;
}

.widget-menu button:disabled:hover,
.bookmark-menu button:disabled:hover {
  background: transparent;
}

.widget-menu .danger,
.bookmark-menu .danger {
  color: #ff2d31;
}

.widget-menu .menu-separator,
.bookmark-menu .menu-separator {
  height: 1px;
  margin: 8px 24px;
  background: rgba(16, 35, 42, 0.08);
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #23b768;
  font-size: 10px;
  font-weight: 800;
}

.app-dialog {
  width: min(360px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 22px 80px rgba(0, 29, 38, 0.28);
}

.app-dialog::backdrop {
  background: rgba(0, 28, 35, 0.35);
}

.app-dialog form,
.app-dialog .dialog-shell {
  position: relative;
  padding: 24px;
  background: #fff;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #8a9498;
  font-size: 20px;
}

.app-dialog h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.dialog-lead {
  margin: 0 0 16px;
  color: #727e82;
  font-size: 13px;
  line-height: 1.55;
}

.page-dialog {
  width: min(430px, calc(100% - 32px));
}

.page-list,
.history-list,
.trash-list {
  display: grid;
  gap: 8px;
  max-height: min(430px, 56vh);
  overflow: auto;
  margin-top: 16px;
}

.page-list-item {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(16, 35, 42, 0.08);
  border-radius: 7px;
  background: #f6f8f8;
  color: #2d393d;
  padding: 0 14px;
  text-align: left;
}

.page-list-item:hover,
.page-list-item.active {
  border-color: rgba(34, 185, 168, 0.36);
  background: #eaf8f6;
}

.page-list-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.page-list-item small {
  flex: 0 0 auto;
  color: #7b878a;
}

.page-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
  padding: 0 !important;
}

.page-create input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(16, 35, 42, 0.13);
  border-radius: 6px;
  padding: 0 12px;
  outline: 0;
}

.page-create input:focus {
  border-color: rgba(34, 185, 168, 0.58);
  box-shadow: 0 0 0 3px rgba(34, 185, 168, 0.1);
}

.page-actions {
  margin-top: 16px;
}

.recovery-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(16, 35, 42, 0.08);
  border-radius: 7px;
  background: #f8faf9;
  padding: 9px 10px 9px 13px;
}

.recovery-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.recovery-row strong,
.recovery-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recovery-row strong { font-size: 14px; }
.recovery-row small { color: #7b878a; font-size: 12px; }
.recovery-row button { min-height: 34px; border: 0; border-radius: 5px; padding: 0 10px; }

.current-badge {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 5px;
  color: #0d7769;
  background: #e2f7f2;
  font-size: 12px;
  font-weight: 800;
}

.conflict-actions {
  margin-top: 20px;
  justify-content: flex-end;
}

.app-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.picker-dialog {
  width: min(520px, calc(100% - 32px));
}

.picker-dialog form {
  padding: 24px 28px 26px;
}

.picker-dialog h2 {
  margin-bottom: 26px;
  font-size: 22px;
}

.picker-list {
  display: grid;
  gap: 0;
}

.picker-list button {
  min-height: 72px;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 20px;
  border: 0;
  background: transparent;
  color: #263337;
  text-align: left;
}

.picker-list button:hover {
  background: rgba(16, 35, 42, 0.04);
}

.picker-list strong {
  font-size: 21px;
  font-weight: 700;
}

.picker-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f2f2;
  color: #2f3a3e;
  font-size: 24px;
  font-weight: 700;
}

.picker-list .disabled {
  color: #98a2a5;
}

.picker-list .disabled .picker-icon {
  color: #98a2a5;
}

.picker-list .browse-all {
  min-height: 74px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 35, 42, 0.08);
}

.form-dialog {
  width: min(440px, calc(100% - 32px));
}

.wide-dialog {
  width: min(560px, calc(100% - 32px));
}

.form-dialog label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #536064;
  font-size: 13px;
  font-weight: 700;
}

.form-dialog input,
.form-dialog select,
.form-dialog textarea {
  min-height: 42px;
  border: 1px solid rgba(16, 35, 42, 0.12);
  border-radius: 6px;
  padding: 0 11px;
  background: #fff;
  outline: 0;
}

.form-dialog textarea {
  min-height: 82px;
  resize: vertical;
  padding: 10px 11px;
  color: #2f3d41;
  font: 14px/1.55 system-ui, sans-serif;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.dialog-spacer {
  flex: 1;
}

.dialog-actions button {
  min-height: 38px;
  border: 1px solid rgba(16, 35, 42, 0.12);
  border-radius: 6px;
  background: #fff;
  padding: 0 14px;
  font-weight: 700;
}

.dialog-actions .primary-action {
  border-color: transparent;
  color: #fff;
  background: #24b468;
}

.dialog-actions .danger-action {
  border-color: transparent;
  color: #fff;
  background: #ff3b42;
}

.dialog-actions .danger-link-action {
  border-color: transparent;
  color: #ff2d31;
  background: transparent;
  padding-inline: 0 10px;
}

.dialog-actions .danger-link-action:hover {
  background: rgba(255, 45, 49, 0.06);
}

.bookmark-manager-list {
  display: grid;
  gap: 8px;
  max-height: min(430px, 56vh);
  overflow: auto;
  margin-top: 16px;
  padding-right: 2px;
}

.bookmark-manager-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 10px;
  border: 1px solid rgba(16, 35, 42, 0.09);
  border-radius: 7px;
  background: #f8faf9;
  padding: 8px 10px;
}

.bookmark-manager-row:has(input:checked) {
  border-color: rgba(36, 180, 104, 0.42);
  background: #eefaf4;
}

.bookmark-manager-row input {
  grid-row: 1 / span 2;
  width: 16px;
  height: 16px;
  min-height: 0;
}

.bookmark-manager-row .logo {
  grid-row: 1 / span 2;
}

.bookmark-manager-row strong,
.bookmark-manager-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bookmark-manager-row strong {
  color: #263337;
  font-size: 14px;
  line-height: 1.25;
}

.bookmark-manager-row small {
  color: #7a8588;
  font-size: 12px;
}

.setting-group {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.setting-group > span {
  color: #6b7579;
  font-size: 13px;
  font-weight: 800;
}

.setting-group label {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  background: #f0f1f1;
  padding: 0 14px;
  color: #4b5559;
  font-size: 16px;
  font-weight: 800;
}

.setting-group label:has(input:checked) {
  background: #dedfdf;
}

.note-dialog {
  width: min(780px, calc(100% - 32px));
}

.note-dialog form { padding: 24px; }
.note-dialog[data-color="yellow"] form { background: #fff8cd; }
.note-dialog[data-color="green"] form { background: #e9f8ed; }
.note-dialog[data-color="blue"] form { background: #eaf5fb; }

.note-dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 12px;
}

.note-mode-switch { padding: 3px; border-radius: 6px; background: rgba(16, 35, 42, 0.07); }
.note-mode-switch button { min-height: 32px; border: 0; border-radius: 5px; background: transparent; color: #657276; padding: 0 14px; font-weight: 800; }
.note-mode-switch button.active { background: #fff; color: #263438; box-shadow: 0 1px 4px rgba(16, 35, 42, 0.12); }
.note-color-picker button { width: 24px; height: 24px; }

#noteEditor,
.markdown-preview {
  width: 100%;
  min-height: min(52vh, 440px);
  border: 1px solid rgba(16, 35, 42, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: #2e3c40;
  padding: 16px;
  font: 15px/1.7 system-ui, sans-serif;
}

#noteEditor { resize: vertical; outline: 0; }
.markdown-preview { overflow: auto; }
.markdown-preview > :first-child { margin-top: 0; }
.markdown-preview > :last-child { margin-bottom: 0; }
.markdown-preview pre { overflow: auto; border-radius: 5px; background: #273438; color: #f5f7f7; padding: 12px; }
.markdown-preview code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.markdown-preview a { color: #087f72; }
.note-save-state { align-self: center; color: #6d797c; font-size: 12px; }

@media (max-width: 1480px) {
  .widget-masonry {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
}

@media (max-width: 760px) {
  .startbar {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 58px;
    padding: 10px;
  }

  .start-logo {
    display: none;
  }

  .top-actions {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .top-actions::-webkit-scrollbar {
    display: none;
  }

  .top-actions .alert,
  .top-actions .avatar,
  #editCurrentPage {
    display: none;
  }

  .page-controls {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portfolio-return,
  .hamburger,
  .page-pill {
    flex: 0 0 auto;
  }

  .mini-search {
    min-width: 116px;
  }

  .global-search-results {
    top: 112px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100vh - 132px);
  }

  .toast-region { top: 116px; }

  .widget-menu,
  .bookmark-menu {
    top: auto !important;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px !important;
    width: auto;
    max-width: none;
    max-height: min(72vh, 620px);
    overflow-y: auto;
    border-radius: 8px;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  }

  .widget-menu button,
  .bookmark-menu button {
    min-height: 50px;
    padding-inline: 20px;
    font-size: 16px;
  }

  .widget-menu button:active,
  .bookmark-menu button:active,
  .tool-button:active,
  .icon-grid a:active,
  .bookmark-list a:active { background: rgba(16, 35, 42, 0.12); transform: scale(0.985); }

  .menu-backdrop { backdrop-filter: blur(2px); }
  .widget-tools { opacity: 1; }

  .startpage {
    padding: 34px 14px 42px;
  }

  .widget-masonry {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .widget-column:not(.has-widgets) {
    display: none;
  }

  .compact-grid,
  .tech-grid,
  .shop-grid,
  .popular-grid,
  .travel-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .news-widget {
    order: 1;
  }

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

  .recovery-row .danger-link-action {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .note-dialog form { padding: 20px 16px; }
  .note-dialog-toolbar { align-items: flex-start; flex-direction: column; }
  #noteEditor,
  .markdown-preview { min-height: 54vh; }
  .task-actions { opacity: 1; }

  .page-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .page-actions .dialog-spacer { display: none; }
}
