/* The bookmark homepage is a single centered document, not a hub dashboard. */
.bookmark-page {
  background: #fff;
  color: #23272f;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.bookmark-page #main-content { flex: 1; width: 100%; }
.bookmark-page .site-header { position: static; border-bottom: 0; box-shadow: none; }
.bookmark-page .header-inner { min-height: 60px; }
.bookmark-page .logo { display: inline-flex; align-items: center; font-size: 20px; }
.bookmark-page .logo::before {
  content: "";
  width: 25px;
  height: 25px;
  margin-right: 8px;
  background: url('/favicon.svg') center / contain no-repeat;
}
.bookmark-board {
  width: min(880px, calc(100% - 32px));
  margin: 24px auto 16px;
  text-align: center;
  box-sizing: border-box;
}
.bookmark-brand h1 { margin: 0; font-size: 48px; line-height: 1.2; color: #214aaf; letter-spacing: 0; }
.bookmark-brand p { margin: 8px 0 16px; font-size: 15px; color: #606771; }
.bookmark-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(600px, 100%);
  min-height: 52px;
  margin: 0 auto;
  border: 1px solid #c8cfd9;
  border-radius: 28px;
  padding: 2px 12px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px #17253d0a;
}
.bookmark-search:focus-within { border-color: #214aaf; outline: 2px solid #c5d4f5; outline-offset: 2px; }
.bookmark-search-icon { width: 28px; font-size: 30px; color: #657084; line-height: 1; }
.bookmark-search input {
  min-width: 0;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: #23272f;
  outline: none;
  box-shadow: none;
  padding: 8px 0;
}
.bookmark-search input::-webkit-search-cancel-button { display: none; }
.bookmark-clear { border: 0; background: transparent; color: #46546c; min-width: 44px; min-height: 44px; font-size: 24px; cursor: pointer; }
.bookmark-category-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 4px;
  margin: 8px auto 10px;
}
.bookmark-scroll {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dce3ed;
  border-radius: 50%;
  background: #fff;
  color: #214aaf;
  font: inherit;
  font-size: 26px;
  cursor: pointer;
}
.bookmark-scroll:hover:not(:disabled) { background: #f5f7fb; border-color: #214aaf; }
.bookmark-scroll:disabled { color: #b2b9c4; border-color: transparent; cursor: default; }
.bookmark-interests {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 600px;
  margin: 0 auto 12px;
}
.bookmark-interest {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 2px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #39465a;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}
.bookmark-interest img { width: 56px; height: 56px; aspect-ratio: 1; border-radius: 8px; object-fit: contain; }
.bookmark-interest:hover { background: #f6f8fc; border-color: #dce3ed; }
.bookmark-interest[aria-pressed="true"] { border-color: #214aaf; color: #214aaf; font-weight: 700; }
.bookmark-interest[aria-pressed="true"] span { text-decoration: underline; text-underline-offset: 4px; }
.bookmark-collection-context { margin: -4px 6px 12px; text-align: left; }
.bookmark-collection-context p { margin: 0; color: #596270; font-size: 13px; line-height: 1.6; }
.bookmark-collection-context button { border: 0; padding: 8px 0; min-height: 44px; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.bookmark-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  scroll-padding-inline: 8px;
  scrollbar-width: thin;
  padding: 4px;
  box-sizing: border-box;
  margin: 0;
}
.bookmark-filters button:first-child { margin-left: auto; }
.bookmark-filters button:last-child { margin-right: auto; }
.bookmark-filters button {
  flex: 0 0 auto;
  scroll-margin-inline: 8px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 9px;
  background: transparent;
  color: #5a6472;
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.bookmark-filters button[aria-pressed="true"] { color: #214aaf; border-bottom-color: #214aaf; font-weight: 750; }
.bookmark-filters button:hover { color: #214aaf; background: #f5f7fb; }
.bookmark-subfilters { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 8px; margin: -8px 0 16px; }
.bookmark-subfilters button { font: inherit; font-size: 12px; min-height: 44px; padding: 6px; border: 0; background: transparent; color: #596270; cursor: pointer; }
.bookmark-subfilters button[aria-pressed="true"] { color: #214aaf; text-decoration: underline; text-underline-offset: 5px; font-weight: 700; }
.bookmark-subfilters button:hover { color: #214aaf; background: #f5f7fb; }
.bookmark-note { max-width: 600px; margin: 12px auto; font-size: 12px; color: #596270; line-height: 1.6; }
.bookmark-conditions { max-width: 600px; margin: 16px auto; text-align: left; font-size: 12px; line-height: 1.6; color: #596270; }
.bookmark-conditions summary { cursor: pointer; padding: 12px 0; min-height: 44px; box-sizing: border-box; text-decoration: underline; text-underline-offset: 3px; }
.bookmark-conditions summary:focus-visible { outline: 3px solid #214aaf; outline-offset: 2px; }
.bookmark-conditions ul { padding-left: 20px; margin: 8px 0; }
.bookmark-conditions li + li { margin-top: 8px; }
.bookmark-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 6px 12px; }
.bookmark-list-head h2 { margin: 0; font-size: 13px; color: #596270; }
.bookmark-list-head p { margin: 0; font-size: 11px; color: #667180; }
.bookmark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 0; }
.bookmark-grid li { min-width: 0; margin: 0; }
.bookmark-fallback { display: grid; gap: 12px; list-style: none; padding: 0; margin: 16px 0; text-align: left; }
.bookmark-fallback li { min-width: 0; margin: 0; border-bottom: 1px solid #eef0f4; padding-bottom: 8px; }
.bookmark-fallback a { display: flex; align-items: center; min-height: 44px; color: #214aaf; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.bookmark-fallback a:hover { color: #173579; }
.bookmark-fallback a:focus-visible { outline: 3px solid #214aaf; outline-offset: 2px; }
.bookmark-fallback li > span { display: block; overflow-wrap: anywhere; }
.bookmark-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 96px;
  box-sizing: border-box;
  padding: 6px 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  color: #252d3a;
}
.bookmark-link:hover { background: #f6f8fc; border-color: #dce3ed; }
.bookmark-link:focus-visible,
.bookmark-board button:focus-visible { outline: 3px solid #214aaf; outline-offset: 2px; }
.bookmark-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: #edf1f9;
  color: #294987;
  font-size: 18px;
  font-weight: 750;
  margin-bottom: 4px;
}
[data-bookmark-category-id="shopping"] .bookmark-mark { background: #eaf5ef; color: #226846; }
[data-bookmark-category-id="community"] .bookmark-mark { background: #fcf0ee; color: #a04342; }
[data-bookmark-category-id="work"] .bookmark-mark { background: #f0edf9; color: #65508b; }
[data-bookmark-category-id="hotdeal"] .bookmark-mark { background: #fff1df; color: #825018; }
[data-bookmark-category-id="cashback"] .bookmark-mark { background: #e6f4f2; color: #23635b; }
[data-bookmark-category-id="gaming"] .bookmark-mark { background: #edf4ea; color: #3a6633; }
[data-bookmark-category-id="movies"] .bookmark-mark,
[data-bookmark-category-id="streaming"] .bookmark-mark { background: #fcf0ee; color: #a04342; }
[data-bookmark-category-id="music"] .bookmark-mark { background: #f0edf9; color: #65508b; }
[data-bookmark-category-id="reading"] .bookmark-mark { background: #e6f4f2; color: #23635b; }
.bookmark-name { font-size: 12px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.bookmark-external { margin-left: 3px; color: #737c89; font-size: 10px; }
.bookmark-purpose, .bookmark-fallback li > span { font-size: 11px; line-height: 1.4; color: #68717d; }
.bookmark-condition { font-size: 11px; line-height: 1.5; color: #596270; word-break: keep-all; overflow-wrap: anywhere; }
.bookmark-more { display: inline-block; min-height: 44px; margin: 12px 0 0; border: 0; padding: 10px 12px; background: transparent; cursor: pointer; font: inherit; font-size: 13px; }
.bookmark-empty { padding: 32px 12px; color: #596270; }
.bookmark-empty button { border: 0; background: transparent; min-height: 44px; cursor: pointer; font: inherit; }
.bookmark-empty .text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; }
.bookmark-empty a:focus-visible { outline: 3px solid #214aaf; outline-offset: 2px; }
.bookmark-utility { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
.bookmark-utility a { display: inline-flex; align-items: center; min-height: 44px; color: #596270; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.bookmark-page .site-footer { margin-top: 0; background: #fafbfc; padding: 14px 0; border-top: 1px solid #eef0f4; }
.bookmark-page .footer-inner { display: flex; justify-content: center; }
.bookmark-page .footer-inner > div { display: none; }
.bookmark-page .site-footer nav { justify-content: center; gap: 4px 18px; }
.bookmark-page .site-footer nav a { font-size: 12px; min-height: 36px; display: inline-flex; align-items: center; }
.bookmark-page .copyright { font-size: 11px; margin: 4px auto 0; text-align: center; }
.bookmark-board [hidden] { display: none !important; }
/* Reserve the controls' space before enhancement so links do not jump on load. */
.bookmark-search[hidden] { display: flex !important; visibility: hidden; }
.bookmark-category-nav[hidden], .bookmark-scroll[hidden] { display: grid !important; visibility: hidden; }
.bookmark-interests[hidden] { display: grid !important; visibility: hidden; }
.bookmark-more[hidden] { display: inline-block !important; visibility: hidden; }
@media (min-width: 700px) {
  .bookmark-board { margin-top: 24px; margin-bottom: 20px; }
  .bookmark-brand h1 { font-size: 60px; }
  .bookmark-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .bookmark-fallback { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .bookmark-link { min-height: 108px; padding: 8px 6px; }
  .bookmark-name { font-size: 14px; }
  .bookmark-purpose, .bookmark-fallback li > span { font-size: 12px; }
  .bookmark-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .bookmark-category-nav { margin-bottom: 12px; }
  .bookmark-filters button { font-size: 14px; }
  .bookmark-interest { font-size: 13px; }
  .bookmark-interest img { width: 64px; height: 64px; }
}
