/* Wide category cards, with six larger website tiles in a 3 by 2 grid. */
#workspace { --site-row-height: clamp(50px, calc((100dvh - 418px) / 6), 88px); }
#workspace .nav-inner { max-width: 1480px; min-height: 52px; padding: 8px 24px; }
#workspace .brand img { width: 30px; height: 30px; }
#workspace .brand > span:first-of-type { font-size: 21px; }
#workspace .shell { max-width: 1480px; padding: 0 24px 12px; }
#workspace .workspace-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}
#workspace .workspace-heading { display: flex; align-items: center; gap: 20px; min-width: 0; }
#workspace .workspace-intro h1 { font-size: 24px; line-height: 1.25; letter-spacing: -.5px; white-space: nowrap; }
#workspace .collection-stats { margin: 0; gap: 12px; }
#workspace .collection-stats > div { min-width: 0; flex-direction: row; align-items: baseline; gap: 5px; }
#workspace .collection-stats strong { font-size: 20px; }
#workspace .collection-stats span:not(.stats-divider) { font-size: 12px; white-space: nowrap; }
#workspace .stats-divider { height: 18px; }
#workspace .toolbar { gap: 12px; padding: 0; border: 0; }
#workspace .search-field { width: 340px; height: 42px; }
#workspace .search-field input { min-height: 0; font-size: 14px; }
#workspace .toolbar > .primary { height: 42px; min-height: 42px; padding: 0 16px; font-size: 13px; white-space: nowrap; }
#workspace .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
#workspace .module { display: flex; flex-direction: column; padding: 12px 14px 10px; border-radius: 20px; }
#workspace .module-head { height: 40px; flex: 0 0 40px; min-height: 0; padding-bottom: 8px; align-items: center; }
#workspace .module-heading { flex: 1; min-width: 0; gap: 9px; }
#workspace .module-heading > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
#workspace .module-symbol { width: 32px; height: 32px; border-radius: 11px; }
#workspace .module h3 { margin: 0; font-size: 17px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#workspace .count { font-size: 11px; line-height: 1.4; white-space: nowrap; }
#workspace .module-actions { margin: 0 0 0 110px; }
#workspace .module-actions .icon-button { width: 28px; height: 30px; min-height: 30px; padding: 5px; }
#workspace .links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: var(--site-row-height);
  align-content: start;
  gap: 8px;
  flex: 0 0 auto;
  height: calc(2 * var(--site-row-height) + 17px);
  min-height: 0;
  padding-top: 8px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
#workspace .link,
#workspace .link:last-child {
  height: var(--site-row-height);
  min-height: 0;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
#workspace .link:hover { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.22); }
#workspace .link-main { width: 100%; height: 100%; padding: 0; gap: 9px; }
#workspace .favicon { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
#workspace .link-copy { gap: 3px; }
#workspace .link-title { font-size: 16px; font-weight: 500; line-height: 1.25; }
#workspace .link-domain { font-size: 11px; line-height: 1.2; }
#workspace .link-open-arrow { display: none; }
#workspace .link-actions {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  padding: 2px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: #1b2a40;
  pointer-events: none;
}
#workspace .link:hover .link-actions,
#workspace .link:focus-within .link-actions { pointer-events: auto; }
#workspace .link-actions .icon-button { width: 27px; height: 30px; min-height: 30px; padding: 5px; }
#workspace .add-link {
  position: absolute;
  top: 12px;
  right: 82px;
  width: auto;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 10px;
}
#workspace .workspace-footer { display: none; }
#workspace .empty { grid-column: 1 / -1; align-self: center; padding: 8px; }

@media (min-width: 1000px) and (max-width: 1199px) {
  #workspace .workspace-heading { gap: 12px; }
  #workspace .collection-stats { gap: 8px; }
  #workspace .collection-stats span:not(.stats-divider) { font-size: 11px; }
  #workspace .search-field { width: 285px; }
  #workspace .favicon { width: 26px; height: 26px; font-size: 13px; }
  #workspace .link-main { gap: 6px; }
  #workspace .link { padding-right: 6px; padding-left: 6px; }
  #workspace .link-title { font-size: 15px; }
}

@media (max-width: 999px) {
  #workspace { --site-row-height: 64px; }
  #workspace .workspace-intro { flex-wrap: wrap; gap: 12px; }
  #workspace .workspace-heading { width: 100%; justify-content: space-between; }
  #workspace .toolbar { width: 100%; }
  #workspace .search-field { flex: 1; width: auto; }
  #workspace .module-grid { grid-template-columns: minmax(0, 1fr); }
  #workspace .link-actions { opacity: 0; }
  #workspace .link:hover .link-actions,
  #workspace .link:focus-within .link-actions { opacity: 1; }
}
@media (max-width: 540px) {
  #workspace .nav-inner { padding-right: 16px; padding-left: 16px; }
  #workspace .shell { padding-right: 12px; padding-left: 12px; }
  #workspace .workspace-intro { padding-top: 14px; padding-bottom: 14px; }
  #workspace .workspace-intro h1 { font-size: 22px; }
  #workspace .workspace-heading { gap: 10px; }
  #workspace .collection-stats { gap: 8px; }
  #workspace .collection-stats strong { font-size: 18px; }
  #workspace .collection-stats span:not(.stats-divider) { font-size: 10px; }
  #workspace .toolbar { gap: 8px; }
  #workspace .search-field { padding-right: 10px; padding-left: 10px; }
  #workspace .search-field input { font-size: 12px; }
  #workspace .toolbar > .primary { min-width: 100px; padding-right: 10px; padding-left: 10px; }
  #workspace .module { padding-right: 12px; padding-left: 12px; }
  #workspace .module-heading > div { gap: 5px; }
  #workspace .module h3 { font-size: 16px; }
  #workspace .count { font-size: 10px; }
  #workspace .module-actions { margin-left: 94px; }
  #workspace .module-actions .icon-button { width: 25px; }
  #workspace .add-link { right: 70px; padding-right: 7px; padding-left: 7px; font-size: 11px; }
  #workspace .links { grid-template-columns: repeat(2, minmax(0, 1fr)); height: calc(3 * var(--site-row-height) + 25px); }
  #workspace .favicon { width: 28px; height: 28px; font-size: 13px; }
  #workspace .link-main { gap: 7px; }
  #workspace .link-title { font-size: 14px; }
  #workspace .link-domain { font-size: 10px; }
}
@media (hover: none) and (max-width: 999px) {
  #workspace { --site-row-height: 76px; }
  #workspace .link-main { align-items: flex-start; padding-top: 8px; }
  #workspace .link-actions { top: auto; bottom: 3px; right: 3px; transform: none; padding: 0; opacity: 1; pointer-events: auto; }
  #workspace .link-actions .icon-button { width: 27px; height: 24px; min-height: 24px; padding: 4px; }
}
