@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');
:root {
  --bg:#f7f8fa;
  --surface:#fff;
  --ink:#25282b;
  --muted:#7b8088;
  --line:#e9ebee;
  --accent:#e76543;
  --accent-light:#fdf0eb;
  --sidebar:236px;
  font-family:'DM Sans','Noto Sans JP',sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select,textarea {
  font:inherit;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

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

button {
  color:inherit;
}

button:disabled {
  cursor:default;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #e7654380;
  outline-offset:3px;
}

button {
  border:0;
}

button,select {
  touch-action:manipulation;
}

.icon {
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}

.icon-definitions {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

[hidden] {
  display:none!important;
}

.skip-link {
  position:fixed;
  top:-60px;
  left:20px;
  z-index:50;
  padding:12px;
  background:var(--ink);
  color:#fff;
  border-radius:8px;
}

.skip-link:focus {
  top:10px;
}

.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar);
  background:#fff;
  border-right:1px solid var(--line);
  padding:33px 21px 24px;
  display:flex;
  flex-direction:column;
  z-index:10;
}

.brand {
  display:flex;
  align-items:center;
  gap:11px;
  width:fit-content;
  padding-left:9px;
  font-size:31px;
  font-weight:700;
  letter-spacing:-1.7px;
}

.brand-dot {
  color:var(--accent);
}

.brand-mark {
  width:35px;
  height:36px;
  border-radius:11px;
  background:var(--accent);
  color:white;
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  font-size:27px;
  letter-spacing:-1px;
  padding-right:1px;
  line-height:1;
  font-weight:700;
  box-shadow:0 3px 7px #e7654322;
}

.brand-mark span {
  position:absolute;
  right:7px;
  top:9px;
  width:5px;
  height:5px;
  border-top:2px solid white;
  border-right:2px solid white;
}

.workspace-label {
  display:flex;
  align-items:center;
  gap:10px;
  margin:35px 0 30px;
  padding:12px 9px;
  border:1px solid var(--line);
  border-radius:9px;
  font-size:11px;
  font-weight:600;
}

.workspace-avatar {
  display:grid;
  place-items:center;
  background:#f0ece5;
  border:1px solid #e7e1d9;
  width:30px;
  height:30px;
  border-radius:7px;
  color:#7b715f;
  font-size:12px;
}

.workspace-label small {
  display:block;
  font-size:9px;
  font-weight:400;
  color:#858991;
  margin-top:4px;
}

.workspace-indicator {
  width:5px;
  height:5px;
  background:#81a08a;
  border-radius:50%;
  margin-left:auto;
}

.nav-caption {
  font-size:9px;
  font-weight:600;
  letter-spacing:1.6px;
  color:#9a9fa6;
  padding:0 13px;
  margin:0 0 12px;
}

.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:12px 13px;
  background:transparent;
  border-radius:7px;
  text-align:left;
  color:#737982;
  font-size:11px;
  margin:3px 0;
  transition:background .15s,color .15s;
}

.nav-item:hover {
  background:#f6f7f8;
}

.nav-item .icon {
  width:16px;
  height:16px;
}

.nav-item.active {
  color:#cc5435;
  background:var(--accent-light);
  font-weight:600;
}

.nav-count {
  margin-left:auto;
  color:#9a9fa7;
  font-size:10px;
  font-weight:500;
}

.active .nav-count {
  color:#cc5435;
}

.category-caption {
  display:flex;
  justify-content:space-between;
  margin-top:33px;
  margin-bottom:13px;
}

.category-caption span {
  font-size:9px;
  letter-spacing:0;
}

.category-dot {
  height:7px;
  width:7px;
  border-radius:50%;
  margin:0 4px;
  flex-shrink:0;
}

.sidebar-bottom {
  margin-top:auto;
  padding:30px 13px 0;
}

.little-spark {
  font-size:33px;
  color:#e38964;
  line-height:1;
}

.sidebar-bottom p {
  font-size:12px;
  line-height:1.9;
  color:#646a71;
  margin:12px 0 7px;
}

.sidebar-bottom>small {
  font-size:8px;
  color:#9b9fa6;
}

.local-badge {
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:24px;
  padding-top:18px;
  color:#8b9197;
  font-size:9px;
}

.local-badge>span:first-child {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#80a38c;
}

.main-shell {
  margin-left:var(--sidebar);
}

.topbar {
  height:80px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 43px;
  border-bottom:1px solid var(--line);
  background:#ffffff80;
}

.breadcrumb {
  display:flex;
  gap:17px;
  align-items:center;
  color:#9398a0;
  font-size:11px;
}

.breadcrumb span {
  color:#ccd0d5;
}

.breadcrumb strong {
  font-weight:500;
  color:#626870;
}

.topbar-right {
  display:flex;
  align-items:center;
  gap:22px;
}

.personal-label {
  font-size:10px;
  color:#8b9198;
  display:flex;
  align-items:center;
  gap:7px;
}

.personal-label>span:first-child {
  width:5px;
  height:5px;
  background:#84a28f;
  border-radius:50%;
}

.profile-avatar {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  background:#ece6dd;
  color:#8d7c65;
  border:3px solid white;
  border-radius:50%;
  font-size:10px;
  box-shadow:0 0 0 1px #e8e8e8;
}

main {
  max-width:1480px;
  margin:0 auto;
  padding:32px 43px 0;
}

.hero {
  min-height:310px;
  background:#f2eee6;
  border:1px solid #ebe7df;
  border-radius:13px;
  position:relative;
  display:flex;
  overflow:hidden;
  padding:32px 36px;
}

.hero-copy {
  position:relative;
  z-index:2;
  flex:1;
}

.eyebrow {
  font-size:8px;
  letter-spacing:1.65px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 15px;
  color:#8e8070;
}

.eyebrow>span {
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent);
}

h1 {
  font-size:34px;
  letter-spacing:1.4px;
  line-height:1.55;
  font-weight:700;
  margin:0 0 13px;
}

h1>span {
  color:var(--accent);
}

.hero-description {
  font-size:11px;
  line-height:2;
  color:#8b8378;
  margin:0 0 19px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  border-radius:6px;
  padding:10px 15px;
  font-size:10px;
  font-weight:500;
  transition:background .15s,transform .15s;
  white-space:nowrap;
}

.button:active {
  transform:translateY(1px);
}

.button .icon {
  width:14px;
  height:14px;
}

.button-dark {
  color:#fff;
  background:#303331;
  box-shadow:0 2px 3px #00000008;
}

.button-dark:hover {
  background:#494e47;
}

.hero-note {
  font-size:8px;
  margin-left:12px;
  color:#a2988c;
}

.hero-art {
  width:360px;
  position:relative;
  flex-shrink:0;
  align-self:stretch;
}

.orbit {
  position:absolute;
  left:50%;
  top:50%;
  border:1px solid #c8bda64d;
  border-radius:50%;
  transform:translate(-50%,-50%);
  width:275px;
  height:275px;
}

.orbit-two {
  width:205px;
  height:205px;
}

.orbit-three {
  width:340px;
  height:340px;
}

.art-star {
  position:absolute;
  left:50%;
  top:47%;
  transform:translate(-50%,-50%) rotate(11deg);
  font-family:Arial,sans-serif;
  font-size:218px;
  line-height:1;
  color:#e9754d;
  text-shadow:3px 5px #d5623520;
}

.art-tag {
  position:absolute;
  z-index:2;
  border:1px solid #ded8cb;
  background:#f9f7f2;
  box-shadow:0 5px 14px #7e65420a;
  border-radius:5px;
  font-size:9px;
  letter-spacing:.1px;
  padding:11px 12px;
  display:flex;
  align-items:center;
  gap:8px;
  transform:rotate(-7deg);
}

.tag-top {
  top:6px;
  left:12px;
}

.tag-dot {
  width:6px;
  height:6px;
  background:#88a58d;
  border-radius:50%;
}

.floating-card {
  position:absolute;
  background:#fbfaf7;
  border:1px solid #fff;
  border-radius:14px;
  box-shadow:0 8px 22px #7e654212;
  display:grid;
  place-items:center;
}

.card-one {
  width:69px;
  height:76px;
  right:0;
  top:35px;
  transform:rotate(13deg);
  font-size:45px;
  font-weight:400;
  color:#9caa94;
}

.card-two {
  width:70px;
  height:71px;
  left:15px;
  bottom:21px;
  transform:rotate(-12deg);
  font-size:41px;
  color:#b2a5c5;
}

.art-small-star {
  position:absolute;
  right:17px;
  bottom:33px;
  font-size:39px;
  color:#9b8d70;
}

.art-index {
  position:absolute;
  bottom:-9px;
  left:94px;
  font-size:6px;
  letter-spacing:1.8px;
  color:#a79b88;
}

.library {
  padding-top:35px;
  scroll-margin-top:20px;
  outline:none;
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
}

.section-eyebrow {
  display:block;
  font-size:8px;
  letter-spacing:1.8px;
  font-weight:600;
  color:#9b9fa6;
  margin:0 0 7px;
}

h2 {
  font-size:20px;
  font-weight:600;
  letter-spacing:.2px;
  margin:0;
}

h2>span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:8px;
  font-size:10px;
  vertical-align:middle;
  background:#eaecef;
  color:#858a92;
  border-radius:5px;
  min-width:25px;
  height:22px;
  font-weight:500;
}

.button-add {
  background:#fff;
  border:1px solid #e2e5e8;
  color:#555c64;
  box-shadow:0 2px 2px #00000002;
}

.button-add:hover {
  border-color:#c6cbd0;
  background:#fcfcfd;
}

.toolbar {
  display:flex;
  gap:18px;
  justify-content:space-between;
  align-items:center;
}

.search-box {
  height:40px;
  display:flex;
  align-items:center;
  gap:10px;
  background:white;
  border:1px solid #e5e7eb;
  border-radius:7px;
  flex:1;
  max-width:530px;
  padding:0 13px;
}

.search-box>.icon {
  width:16px;
  height:16px;
  color:#9a9fa7;
}

.search-box input {
  min-width:0;
  width:100%;
  outline:none;
  border:none;
  background:transparent;
  font-size:10px;
  height:100%;
  color:#555c64;
}

.search-box input::placeholder {
  color:#a3a7ae;
}

.search-box:focus-within {
  border-color:#e3a38e;
  box-shadow:0 0 0 3px #e765430c;
}

.search-box input:focus-visible {
  outline:0;
}

kbd {
  border:1px solid #eceef0;
  border-radius:4px;
  min-width:18px;
  text-align:center;
  padding:1px 4px;
  font:10px 'DM Sans',sans-serif;
  color:#a3a7ae;
}

.toolbar-actions {
  display:flex;
  align-items:center;
  gap:15px;
}

.sort-label select {
  background:transparent;
  color:#777e86;
  border:0;
  font-size:10px;
  cursor:pointer;
  max-width:140px;
  padding:10px 15px 10px 0;
}

.view-switch {
  display:flex;
  gap:2px;
  padding:3px;
  background:#edeff2;
  border-radius:6px;
}

.icon-button {
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  min-height:29px;
  border-radius:4px;
  color:#a0a5ac;
}

.icon-button .icon {
  width:15px;
  height:15px;
}

.icon-button:hover {
  color:#585e67;
  background:#f3f4f6;
}

.view-switch .selected {
  background:white;
  color:#626973;
  box-shadow:0 1px 4px #0000000a;
}

.filter-row {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  padding:18px 0 23px;
}

.filter-chip {
  font-size:10px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:7px 12px;
  border:1px solid #e5e7eb;
  border-radius:5px;
  background:transparent;
  color:#8a9098;
  white-space:nowrap;
  transition:all .15s;
}

.filter-chip:hover {
  background:white;
  color:#555c64;
}

.filter-chip.active {
  background:#303431;
  color:white;
  border-color:#303431;
}

.filter-chip .icon {
  width:12px;
  height:12px;
}

.filter-chip .chip-count {
  font-size:8px;
  opacity:.7;
  margin-left:2px;
}

.link-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.link-card {
  background:#fff;
  border:1px solid #e6e8ec;
  border-radius:10px;
  padding:19px 19px 13px;
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:215px;
  transition:box-shadow .2s,border-color .2s,transform .2s;
}

.link-card:hover {
  border-color:#d2d5da;
  box-shadow:0 5px 18px #1b273508;
  transform:translateY(-2px);
}

.card-top {
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:15px;
}

.site-logo {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:10px;
  flex-shrink:0;
  font-family:Arial,sans-serif;
  font-size:22px;
  font-weight:700;
  border:1px solid #00000005;
  letter-spacing:-1px;
}

.site-identity {
  min-width:0;
  flex:1;
}

.site-identity h3 {
  font-size:13px;
  margin:0 0 4px;
  font-weight:600;
  line-height:1.4;
  overflow-wrap:anywhere;
}

.site-identity p {
  font-size:9px;
  color:#a2a7ae;
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.external-arrow {
  color:#b1b7be;
  align-self:flex-start;
  margin-top:1px;
  flex-shrink:0;
}

.external-arrow .icon {
  width:14px;
  height:14px;
}

.card-description {
  font-size:10px;
  line-height:1.9;
  color:#878e97;
  margin:0 0 13px;
  min-height:38px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
}

.card-tags {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-top:auto;
  margin-bottom:14px;
  min-height:19px;
}

.tag {
  font-size:8px;
  padding:3px 6px;
  border-radius:3px;
  background:#f5f6f8;
  color:#9298a1;
  max-width:100%;
  overflow-wrap:anywhere;
}

.card-bottom {
  border-top:1px solid #f0f1f4;
  padding-top:9px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
}

.category-label {
  font-size:8px;
  display:flex;
  align-items:center;
  gap:5px;
  color:#9399a1;
}

.category-label .category-dot {
  width:5px;
  height:5px;
  margin:0;
}

.card-actions {
  display:flex;
  gap:4px;
}

.card-actions .icon-button {
  min-width:26px;
  min-height:24px;
}

.card-actions .icon {
  width:14px;
  height:14px;
}

.favorite-button.is-favorite {
  color:#d4a44e;
}

.favorite-button.is-favorite .icon {
  fill:#eac67855;
}

.card-link {
  display:block;
}

.card-link:hover h3 {
  color:var(--accent);
}

.collection-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-top:31px;
  padding:20px 0 25px;
  border-top:1px solid var(--line);
  color:#a4a9b0;
  font-size:8px;
}

.collection-footer>span {
  display:flex;
  gap:7px;
  align-items:center;
}

.collection-footer .icon {
  width:11px;
  height:11px;
}

.footer-dot {
  width:4px;
  height:4px;
  border-radius:50%;
  background:#a4b49c;
}

.empty-state {
  text-align:center;
  padding:60px 20px 65px;
  background:white;
  border:1px dashed #dfe2e6;
  border-radius:12px;
}

.empty-state>span {
  font-size:34px;
  color:#dcbca8;
}

.empty-state h3 {
  font-size:15px;
  font-weight:500;
  margin:15px 0 10px;
}

.empty-state p {
  font-size:11px;
  color:#9298a1;
  margin-bottom:20px;
}

.link-grid.list-view {
  grid-template-columns:1fr;
  gap:10px;
}

.list-view .link-card {
  display:grid;
  grid-template-columns:minmax(180px,1.1fr) minmax(100px,1fr) 145px;
  min-height:85px;
  align-items:center;
  column-gap:20px;
  padding:15px 18px;
}

.list-view .card-link {
  display:contents;
}

.list-view .card-top,.list-view .card-description {
  margin:0;
}

.list-view .card-top {
  grid-column:1;
}

.list-view .card-description {
  grid-column:2;
  grid-row:1;
  min-height:0;
}

.list-view .card-tags {
  display:none;
}

.list-view .card-bottom {
  grid-column:3;
  grid-row:1;
  border:0;
  padding:0;
}

.list-view .external-arrow {
  display:none;
}

dialog {
  width:min(500px,calc(100% - 32px));
  border:1px solid #e8e9ed;
  padding:27px;
  border-radius:14px;
  box-shadow:0 25px 80px #18202c30;
  max-height:calc(100dvh - 40px);
  overflow:auto;
  color:var(--ink);
}

dialog::backdrop {
  background:#27303d66;
  backdrop-filter:blur(3px);
}

.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.dialog-heading h2 {
  font-size:21px;
}

.dialog-intro {
  font-size:11px;
  color:#8b9199;
  margin:14px 0 22px;
}

form>label {
  display:block;
  font-size:11px;
  font-weight:500;
  margin:16px 0;
}

form input,form select,form textarea {
  display:block;
  width:100%;
  border:1px solid #e0e4e8;
  border-radius:6px;
  background:#fafbfc;
  color:#454c55;
  margin-top:7px;
  padding:10px 11px;
  font-size:12px;
  line-height:1.5;
}

form textarea {
  resize:vertical;
}

form input::placeholder,form textarea::placeholder {
  color:#a3a9b1;
}

.required {
  font-size:8px;
  color:#b37d69;
  margin-left:5px;
}

.field-hint {
  display:block;
  font-size:9px;
  color:#969da6;
  margin-top:5px;
  font-weight:400;
}

.dialog-footer {
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.dialog-footer>div {
  display:flex;
  gap:9px;
  margin-left:auto;
}

.button-cancel {
  background:#f1f3f5;
  color:#737b84;
}

.delete-button {
  padding:5px 0;
  font-size:9px;
  background:transparent;
  color:#be634e;
}

.form-error {
  font-size:11px;
  color:#c35b3d;
}

.form-error:empty {
  display:none;
}

.toast {
  position:fixed;
  bottom:26px;
  left:calc(50% + var(--sidebar)/2);
  transform:translateX(-50%);
  background:#303a34;
  color:white;
  box-shadow:0 5px 25px #1c2a2825;
  font-size:12px;
  padding:14px 22px;
  border-radius:8px;
  z-index:30;
  max-width:calc(100vw - 40px);
  width:max-content;
}

@media(min-width:1600px) {
  :root {
    --sidebar:256px;
  }
  main {
    padding-top:40px;
  }
  .hero {
    min-height:340px;
    padding:40px 44px;
  }
  .hero-art {
    width:420px;
  }
  .link-card {
    min-height:235px;
    padding:23px 23px 15px;
  }
  .card-description {
    font-size:12px;
    line-height:1.8;
    min-height:43px;
  }
  .site-identity h3 {
    font-size:15px;
  }
  .site-identity p {
    font-size:10px;
  }
  .tag {
    font-size:9px;
  }
  .nav-item {
    font-size:12px;
  }
  .hero h1 {
    font-size:38px;
  }
  .hero-description {
    font-size:12px;
  }
  .hero-note {
    font-size:9px;
  }
}

@media(max-width:1190px) {
  :root {
    --sidebar:210px;
  }
  .sidebar {
    padding-left:15px;
    padding-right:15px;
  }
  main {
    padding:26px 28px 0;
  }
  .topbar {
    padding:0 28px;
  }
  .hero {
    padding:29px;
  }
  .hero-art {
    width:270px;
  }
  .hero h1 {
    font-size:29px;
  }
  .hero-note {
    display:none;
  }
  .orbit-three {
    width:290px;
    height:290px;
  }
  .art-star {
    font-size:190px;
  }
  .card-one {
    right:-5px;
  }
  .tag-top {
    left:-5px;
  }
  .card-two {
    left:0;
  }
  .art-index {
    left:56px;
  }
  .link-grid {
    gap:13px;
  }
  .link-card {
    padding:16px 15px 11px;
  }
  .site-logo {
    width:35px;
    height:35px;
    font-size:20px;
  }
  .site-identity h3 {
    font-size:12px;
  }
  .card-top {
    gap:9px;
  }
  .list-view .link-card {
    grid-template-columns:minmax(150px,1fr) minmax(100px,1fr) 125px;
  }
}

@media(max-width:980px) {
  .hero-art {
    width:220px;
  }
  .hero h1 {
    font-size:27px;
  }
  .art-star {
    font-size:160px;
  }
  .orbit-one {
    width:230px;
    height:230px;
  }
  .orbit-two {
    width:170px;
    height:170px;
  }
  .orbit-three {
    width:290px;
    height:290px;
  }
  .card-one {
    width:53px;
    height:59px;
    font-size:36px;
    top:42px;
    right:-13px;
  }
  .card-two {
    width:55px;
    height:57px;
    font-size:32px;
    left:-4px;
    bottom:30px;
  }
  .art-tag {
    font-size:7px;
    padding:9px;
    left:-3px;
    top:14px;
  }
  .art-index {
    font-size:5px;
    left:23px;
    bottom:1px;
  }
  .link-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .toolbar {
    gap:12px;
  }
  .toolbar-actions {
    gap:7px;
  }
  .sort-label select {
    font-size:9px;
  }
  .list-view .link-card {
    grid-template-columns:minmax(140px,1fr) 140px;
  }
  .list-view .card-description {
    display:none;
  }
  .list-view .card-bottom {
    grid-column:2;
  }
  .hero {
    min-height:295px;
  }
}

@media(max-width:760px) {
  :root {
    --sidebar:0px;
  }
  .sidebar {
    position:relative;
    width:100%;
    padding:18px 22px 0;
    border:0;
    border-bottom:1px solid var(--line);
  }
  .brand {
    font-size:27px;
    gap:9px;
    padding:0;
  }
  .brand-mark {
    height:31px;
    width:31px;
    border-radius:9px;
    font-size:24px;
  }
  .brand-mark span {
    top:7px;
    right:6px;
  }
  .workspace-label,.sidebar-bottom,.nav-caption,#category-nav {
    display:none;
  }
  .sidebar nav {
    display:flex;
    gap:20px;
    margin-top:17px;
  }
  .nav-item {
    width:auto;
    margin:0;
    padding:12px 0;
    border-radius:0;
    border-bottom:2px solid transparent;
    font-size:11px;
    gap:8px;
  }
  .nav-item.active {
    background:transparent;
    border-bottom-color:var(--accent);
  }
  .nav-item:hover {
    background:transparent;
  }
  .nav-count {
    background:#f1f2f4;
    padding:2px 5px;
    border-radius:4px;
    font-size:9px;
    margin-left:3px;
  }
  .nav-item.active .nav-count {
    background:var(--accent-light);
  }
  .main-shell {
    margin:0;
  }
  .topbar {
    display:none;
  }
  main {
    padding:22px 22px 0;
  }
  .hero {
    padding:28px;
    min-height:285px;
  }
  .hero-art {
    width:230px;
  }
  .hero h1 {
    font-size:28px;
  }
  .eyebrow {
    font-size:7px;
    letter-spacing:1.1px;
  }
  .hero-description {
    font-size:10px;
  }
  .hero .button {
    font-size:9px;
  }
  .library {
    padding-top:27px;
  }
  .section-heading {
    margin-bottom:18px;
  }
  .section-heading h2 {
    font-size:18px;
  }
  .section-eyebrow {
    font-size:7px;
  }
  .link-card {
    padding:18px 17px 12px;
  }
  .site-identity h3 {
    font-size:13px;
  }
  .site-logo {
    width:39px;
    height:39px;
  }
  .card-description {
    font-size:11px;
    line-height:1.9;
    min-height:42px;
  }
  .tag {
    font-size:9px;
  }
  .category-label {
    font-size:9px;
  }
  .collection-footer {
    font-size:7px;
    margin-top:24px;
  }
  .toast {
    left:50%;
  }
}

@media(max-width:540px) {
  .sidebar {
    padding-left:18px;
    padding-right:18px;
  }
  main {
    padding:18px 16px 0;
  }
  .hero {
    padding:25px 23px;
    min-height:290px;
  }
  .hero h1 {
    font-size:27px;
    letter-spacing:1.2px;
    line-height:1.6;
  }
  .hero-art {
    position:absolute;
    right:-71px;
    top:29px;
    bottom:0;
    width:205px;
    opacity:.35;
    pointer-events:none;
  }
  .hero-copy {
    width:100%;
  }
  .hero-description {
    color:#7f776b;
    font-size:10px;
    position:relative;
    z-index:1;
  }
  .eyebrow {
    font-size:6px;
    letter-spacing:1px;
  }
  .art-star {
    font-size:143px;
    left:55%;
    top:52%;
  }
  .card-one,.art-tag,.card-two,.art-index {
    display:none;
  }
  .orbit {
    left:65%;
  }
  .hero .button {
    margin-top:3px;
  }
  .section-heading {
    gap:8px;
  }
  .section-heading h2 {
    font-size:17px;
  }
  .section-heading h2>span {
    font-size:9px;
    min-width:23px;
    height:21px;
    margin-left:5px;
  }
  .button-add {
    font-size:9px;
    padding:9px 10px;
    min-height:35px;
    gap:4px;
  }
  .section-heading .section-eyebrow {
    font-size:6px;
    letter-spacing:1.6px;
  }
  .toolbar {
    flex-wrap:wrap;
    gap:10px;
  }
  .search-box {
    max-width:none;
    flex-basis:100%;
    height:42px;
  }
  .search-box input {
    font-size:11px;
  }
  .toolbar-actions {
    justify-content:space-between;
    width:100%;
  }
  .sort-label select {
    font-size:10px;
    padding-top:7px;
    padding-bottom:7px;
  }
  .filter-row {
    padding-top:13px;
    padding-bottom:17px;
    gap:6px;
  }
  .filter-chip {
    font-size:10px;
    padding:7px 9px;
  }
  .link-grid {
    grid-template-columns:1fr;
    gap:12px;
  }
  .link-card {
    min-height:208px;
    padding:20px 20px 13px;
  }
  .site-identity h3 {
    font-size:15px;
  }
  .site-identity p {
    font-size:10px;
  }
  .site-logo {
    width:43px;
    height:43px;
    font-size:24px;
  }
  .card-description {
    font-size:12px;
    min-height:43px;
    margin-bottom:12px;
  }
  .card-top {
    margin-bottom:13px;
  }
  .card-tags {
    margin-bottom:13px;
  }
  .category-label {
    font-size:10px;
  }
  .card-actions .icon-button {
    min-width:32px;
    min-height:28px;
  }
  .card-actions .icon {
    width:16px;
    height:16px;
  }
  .collection-footer {
    display:block;
    font-size:8px;
    line-height:1.7;
  }
  .collection-footer>span+span {
    margin-top:7px;
  }
  .list-view .link-card {
    grid-template-columns:minmax(0,1fr) 54px;
    gap:10px;
    min-height:90px;
    padding:16px 13px;
  }
  .list-view .card-bottom {
    justify-content:flex-end;
  }
  .list-view .category-label {
    display:none;
  }
  .list-view .site-identity h3 {
    font-size:13px;
  }
  .list-view .site-logo {
    width:35px;
    height:35px;
    font-size:20px;
  }
  .list-view .card-actions {
    gap:0;
  }
  .list-view .card-actions .icon-button {
    min-width:26px;
  }
  .list-view .site-identity p {
    font-size:9px;
  }
  dialog {
    padding:22px;
  }
  .dialog-footer {
    flex-wrap:wrap;
  }
  .dialog-footer>div {
    gap:7px;
  }
}

/* Keep working text legible while secondary annotations stay quiet. */
.workspace-label small {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sidebar {
  overflow-y:auto;
}

.brand {
  flex-shrink:0;
}

.nav-item {
  font-size:12px;
}

.nav-count {
  font-size:11px;
}

.workspace-label {
  font-size:12px;
}

.workspace-label small {
  font-size:10px;
}

.workspace-label {
  padding-left:7px;
  padding-right:7px;
  gap:8px;
}

.workspace-avatar {
  flex-shrink:0;
}

.workspace-label>div {
  min-width:0;
}

.workspace-label small {
  line-height:1.6;
}

.breadcrumb {
  font-size:12px;
}

.hero-description {
  font-size:12px;
  color:#756f65;
}

.button {
  font-size:12px;
}

.hero-note {
  font-size:9px;
  color:#81796e;
}

.search-box input {
  font-size:12px;
}

.sort-label select {
  font-size:11px;
}

.filter-chip {
  font-size:11px;
}

.filter-chip .chip-count {
  font-size:9px;
}

.site-identity h3 {
  font-size:15px;
}

.site-identity p {
  font-size:11px;
  color:#858c95;
}

.card-description {
  font-size:12px;
  color:#707984;
  min-height:44px;
}

.tag {
  font-size:10px;
  color:#79828c;
}

.category-label {
  font-size:10px;
  color:#7b838d;
}

.card-actions .icon-button {
  min-width:30px;
  min-height:28px;
}

.card-actions .icon {
  width:15px;
  height:15px;
}

.link-card {
  min-height:230px;
}

.nav-item,.filter-chip {
  color:#727a84;
}

.filter-chip.active {
  color:#fff;
}

.nav-item.active {
  color:#c24d30;
}

form>label {
  font-size:12px;
}

form input,form select,form textarea {
  font-size:14px;
}

.dialog-intro {
  font-size:12px;
}

.field-hint {
  font-size:10px;
}

.delete-button {
  font-size:11px;
}

.form-error {
  font-size:12px;
}

@media(max-width:1190px) and (min-width:761px) {
  .workspace-label {
    font-size:11px;
    gap:6px;
  }
  .workspace-label small {
    font-size:9px;
  }
  .nav-item {
    font-size:11px;
    gap:8px;
  }
  .site-identity h3 {
    font-size:14px;
  }
  .hero-description {
    font-size:11px;
  }
}

@media(max-width:540px) {
  .nav-item {
    font-size:11px;
  }
  .hero .button,.button-add {
    font-size:11px;
  }
  .hero-description {
    font-size:11px;
  }
  .hero-note {
    display:none;
  }
  .filter-chip {
    font-size:11px;
  }
  .site-identity h3 {
    font-size:15px;
  }
  .card-description {
    font-size:12px;
  }
  .link-card {
    min-height:220px;
  }
  .list-view .link-card {
    min-height:90px;
  }
  .search-box input {
    font-size:14px;
  }
  .sort-label select {
    font-size:12px;
  }
  form input,form select,form textarea {
    font-size:16px;
  }
  .dialog-footer .button {
    font-size:11px;
  }
}

.brand-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.mobile-auth { display:none; }
.auth-button { background:transparent; border:1px solid #e0e3e7; border-radius:6px; padding:8px 11px; font-size:11px; color:#626b76; }
.auth-button:hover { background:#f2f4f6; }
.auth-button:disabled, .button:disabled, .icon-button:disabled { opacity:.55; cursor:wait; }
.curated-star { display:flex; color:#c49a4e; padding:5px; }
.curated-star .icon { width:14px; height:14px; fill:#eac67855; }
.load-status { padding:30px 20px; text-align:center; border:1px dashed #dfe2e6; border-radius:10px; font-size:12px; color:#78818c; }
@media(max-width:760px) { .mobile-auth { display:block; } .auth-button { font-size:10px; padding:7px 9px; } }
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
