/* Pastelinkers — quiet, practical space for a personal library. */
:root {
  --canvas: #f7f7f4;
  --surface: #ffffff;
  --sidebar: #f0f1ed;
  --ink: #262a35;
  --muted: #626978;
  --subtle: #737985;
  --line: #e5e7e3;
  --accent: #5957cf;
  --accent-dark: #4542b8;
  --accent-soft: #eae9f8;
  --danger: #aa4545;
  --success: #337560;
  --radius: 12px;
  --sidebar-width: 232px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
a { color: inherit; text-decoration: none; }
img, svg { vertical-align: middle; }
p, h1, h2, h3, h4 { margin-top: 0; }
p { margin-bottom: 0; }
form { margin: 0; }
h1, h2, h3, h4 { line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
::selection { background: #dddaf9; }
:focus-visible { outline: 3px solid #9490e9; outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.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; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 20px; background: var(--ink); color: #fff; border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 650; line-height: 1.5; white-space: nowrap; transition: background .16s, border-color .16s, box-shadow .16s; }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 2px 3px #4039a110; }
.button-primary:hover { background: var(--accent-dark); box-shadow: 0 3px 8px #4039a11a; }
.button-secondary { background: #fff; border-color: #dfe1e4; color: #4b505d; }
.button-secondary:hover { border-color: #c4c6d2; background: #fafafa; }
.button-ghost { color: #646872; background: transparent; }
.button-ghost:hover { background: #eceeea; }
.button-full { width: 100%; }
.button-outlined { border: 1px solid var(--line) !important; background: #fff !important; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #64686f; transition: color .15s, background .15s; }
.icon-button:hover { background: #eeedf6; color: var(--accent); }
.icon-button.small { width: 32px; height: 32px; }
.icon-button.small .icon { width: 17px; height: 17px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; background: transparent; border: 0; color: var(--accent); font-size: 13px; font-weight: 650; }
.text-button .icon { width: 15px; height: 15px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.danger-text { color: var(--danger); }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* The application shell */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 30px 18px 16px; background: var(--sidebar); border-right: 1px solid #e3e5df; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0 8px; color: #2f3341; font-size: 19px; font-weight: 730; letter-spacing: -.55px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 36px; flex: 0 0 auto; color: #fff; background: var(--accent); border-radius: 9px 9px 12px 9px; box-shadow: 0 3px 7px #5146b719; }
.brand-mark .icon { width: 20px; height: 20px; stroke-width: 1.9; }
.brand-caption { display: block; margin-top: 1px; color: #676a6e; font-size: 11px; font-weight: 450; letter-spacing: -.1px; }
.workspace-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin: 42px 10px 12px; color: #666a6f; font-size: 11px; font-weight: 650; }
.private-badge { display: inline-flex; align-items: center; gap: 4px; color: #666970; font-size: 11px; font-weight: 450; white-space: nowrap; }
.private-badge .icon { width: 11px; height: 11px; }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 10px 12px; border-radius: 7px; color: #646971; font-size: 13px; transition: background .15s, color .15s; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-item:hover { background: #e7e8e4; color: #383d4a; }
.nav-item.is-active { background: #e3e3f1; color: #514ebd; font-weight: 650; }
.nav-count { margin-left: auto; color: #676a72; font-size: 12px; font-variant-numeric: tabular-nums; }
.is-active .nav-count { color: #6561a9; }
.nav-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 29px 3px 8px 12px; color: #66696f; font-size: 12px; font-weight: 650; }
.collection-nav { overflow-y: auto; min-height: 0; }
.collection-nav .nav-item { min-height: 38px; padding-top: 8px; padding-bottom: 8px; }
.collection-dot { width: 7px; height: 7px; flex: 0 0 auto; margin: 0 5px; background: #a4a0ce; border-radius: 2px; }
.collection-nav .nav-item:nth-child(3n+2) .collection-dot { background: #a4b9a8; }
.collection-nav .nav-item:nth-child(3n+3) .collection-dot { background: #cfb88e; }
.nav-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-secondary { color: #66696e; font-size: 12px; }
.nav-secondary .icon { width: 16px; height: 16px; }
.nav-empty { padding: 5px 12px 12px; color: #676a6f; font-size: 12px; line-height: 1.9; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.account-row { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 18px 5px 0; border-top: 1px solid #dedfdc; }
.avatar { display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; color: #6c658f; background: #dfdce9; font-size: 14px; font-weight: 700; }
.account-name { min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 650; }
.account-name small { display: block; color: #696a6f; font-size: 11px; font-weight: 450; }
.account-row form { margin-left: auto; }
.account-row .icon-button { width: 28px; }
.account-row .icon { width: 16px; height: 16px; }
.app-main { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; padding: 0 40px; border-bottom: 1px solid var(--line); background: #fbfbf9; }
.global-search { display: flex; align-items: center; width: min(430px, 100%); gap: 11px; color: #646872; }
.global-search .icon { width: 18px; height: 18px; }
.global-search input { width: 100%; min-width: 0; padding: 10px 0; background: transparent; border: 0; border-radius: 2px; color: var(--ink); font-size: 13px; }
.global-search input::placeholder { color: #64686d; }
.global-search input:focus { outline: none; }
.global-search:focus-within { box-shadow: 0 2px 0 #b8b4e5; }
.global-search kbd { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 auto; border: 1px solid #e3e5e7; border-radius: 4px; color: #66696f; font: 11px inherit; }
.search-submit:focus { position: static; width: auto; height: auto; padding: 5px 8px; clip: auto; overflow: visible; background: #fff; }
.add-link-button { min-height: 37px; padding: 8px 14px; font-size: 12px; }
.mobile-brand, .mobile-nav { display: none; }
.main-content:focus { outline: none; }
.messages { padding: 18px 40px 0; }
.notice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid #dfe2ef; border-radius: 8px; color: #61687f; background: #f0f2f9; font-size: 13px; }
.notice + .notice { margin-top: 8px; }
.notice > .icon { width: 17px; height: 17px; }
.notice > .icon-button { margin-left: auto; }
.notice-success { background: #edf5ef; color: #477256; border-color: #d7e9dc; }
.notice-error { background: #fff1ed; color: #9a554b; border-color: #f2d5cb; }

/* Library and rows */
.library-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1600px; margin: auto; }
.library-layout.has-detail { grid-template-columns: minmax(0, 1fr) 340px; }
.library-column { min-width: 0; padding: 40px 40px 28px; }
.page-heading { margin-bottom: 30px; }
.eyebrow { margin-bottom: 9px; color: #65696f; font-size: 11px; font-weight: 650; letter-spacing: 1.6px; }
.page-heading h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 9px; font-size: 27px; font-weight: 720; letter-spacing: -1.05px; }
.heading-count { color: #696a6f; font-size: 16px; font-weight: 450; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.page-heading p { color: #65696f; font-size: 13px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.page-heading p strong { color: #67647d; font-weight: 650; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; border-bottom: 1px solid #e0e3df; }
.filter-tabs { display: flex; align-items: center; gap: 23px; }
.filter-tabs a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 1px 13px; color: #676a6f; font-size: 12px; white-space: nowrap; }
.filter-tabs a[aria-current] { color: #4f4bbc; font-weight: 700; }
.filter-tabs a[aria-current]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); content: ''; }
.filter-tabs a:hover { color: var(--accent); }
.filter-tabs .mobile-trash-tab { display: none; }
.sort-label { display: flex; align-items: center; gap: 5px; color: #66686c; font-size: 11px; white-space: nowrap; }
.sort-label .icon { width: 13px; height: 13px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 4px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 6px 4px 9px; border: 1px solid #e0deef; border-radius: 5px; color: #696582; background: #f0eef7; font-size: 11px; overflow-wrap: anywhere; }
.filter-chip > .icon { width: 12px; height: 12px; }
.filter-chip a { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; border-radius: 4px; }
.filter-chip a:hover { background: #e2dff1; }
.filter-chip a .icon { width: 13px; height: 13px; }
.link-list { width: 100%; }
.link-row { position: relative; display: flex; align-items: flex-start; gap: 15px; padding: 20px 10px 20px 0; border-bottom: 1px solid #e7e9e4; border-radius: 3px; transition: background .15s; }
.link-row:hover { background: #f0f1ee; }
.link-row.is-selected { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 22px; background: #eeedf7; border-color: #e1dff1; border-radius: 7px; }
.domain-tile { display: flex; align-items: center; justify-content: center; width: 36px; height: 38px; flex: 0 0 auto; margin-top: 2px; border: 1px solid #e2e2e7; border-radius: 9px; color: #6b657f; background: #eceaf0; font-size: 15px; font-weight: 650; font-family: Georgia, serif; }
.link-row:nth-child(4n+2) .domain-tile { color: #576f63; background: #e7ece7; border-color: #dce4dc; }
.link-row:nth-child(4n+3) .domain-tile { color: #79684a; background: #f0eae1; border-color: #e9e1d5; }
.link-row:nth-child(4n) .domain-tile { color: #526e7b; background: #e7edef; border-color: #dce5e9; }
.link-row-content { min-width: 0; flex: 1; }
.link-title-line { display: flex; align-items: baseline; gap: 7px; }
.link-title-line h2 { min-width: 0; margin: 0; font-size: 15px; font-weight: 650; line-height: 1.55; letter-spacing: -.28px; }
.link-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; word-break: keep-all; }
.link-title:hover { color: var(--accent); }
.unread-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #8f89d7; }
.is-read .link-title-line h2 { color: #65686f; }
.link-excerpt { display: -webkit-box; margin-top: 6px; overflow: hidden; color: #64686e; font-size: 12px; line-height: 1.65; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.link-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; color: #66696f; font-size: 11px; }
.link-domain { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-separator { color: #66696e; }
.collection-pill { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 6px; border-radius: 4px; color: #6b6878; background: #eeeef1; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.collection-pill .icon { width: 11px; height: 11px; }
.link-meta .collection-pill { margin-left: 2px; }
.row-tags { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: 3px; }
.text-tag { color: #696770; font-size: 11px; }
.text-tag:hover { color: var(--accent); }
.status-pill { color: #696675; font-size: 11px; }
.status-warning { color: #806439; }
.row-actions { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; margin-top: -3px; }
.row-actions .icon-button { width: 29px; height: 34px; }
.row-actions .icon { width: 15px; height: 15px; }
.row-actions .external-button { color: #67696f; }
.favorite-button.is-favorite { color: #7a6538; }
.favorite-button.is-favorite .icon { fill: #f0e2bc; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 25px; color: var(--muted); font-size: 12px; }
.pagination .button { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.list-footnote { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 29px; color: #67696e; font-size: 11px; }
.list-footnote .icon { width: 11px; height: 11px; }

/* Detail panel: one source of truth for panel and full-page views. */
.detail-panel { min-width: 0; min-height: calc(100vh - 82px); padding: 0 25px 24px; background: #fdfdfc; border-left: 1px solid var(--line); }
.panel-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 62px; margin: 0 -2px 8px; color: #66696e; font-size: 11px; }
.panel-toolbar .icon-button { width: 29px; height: 29px; }
.panel-toolbar .icon { width: 17px; height: 17px; }
.detail-content { min-width: 0; }
.detail-domain { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: #65686d; font-size: 11px; overflow-wrap: anywhere; }
.small-tile { width: 27px; height: 29px; border-radius: 7px; font-size: 13px; }
.detail-favorite { margin-left: auto; color: #79663a; }
.detail-favorite .icon { width: 17px; height: 17px; fill: #f0e2bc; }
.detail-title { margin-bottom: 10px; color: #3d414d; font-size: 19px; font-weight: 700; line-height: 1.6; letter-spacing: -.5px; }
.detail-url { display: -webkit-box; overflow: hidden; color: #67696f; font-size: 11px; line-height: 1.8; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.detail-url:hover { color: var(--accent); }
.detail-primary-actions { display: flex; align-items: center; gap: 7px; margin-top: 20px; margin-bottom: 27px; }
.detail-primary-actions .button-primary { flex: 1; min-height: 37px; padding: 8px 10px; font-size: 12px; }
.detail-primary-actions .icon-button { width: 37px; height: 37px; }
.detail-primary-actions .icon-button .icon { width: 16px; height: 16px; }
.detail-section { padding: 22px 0; border-top: 1px solid #ebece7; }
.detail-section h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: #656871; font-size: 11px; font-weight: 600; }
.detail-section h3 .icon { width: 12px; height: 12px; }
.personal-note { padding: 14px 15px; border: 1px solid #eeeadc; border-radius: 6px; color: #726950; background: #f8f5eb; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.detail-section .muted { color: #66696f; font-size: 12px; line-height: 1.8; }
.description-text { color: #656972; font-size: 12px; line-height: 1.95; overflow-wrap: anywhere; }
.source-note { display: block; margin-top: 8px; color: #68696f; font-size: 11px; }
.detail-facts { margin: 0; font-size: 11px; }
.detail-facts > div { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 13px; }
.detail-facts dt { width: 62px; flex: 0 0 auto; color: #66686d; }
.detail-facts dd { margin: 0; color: #656972; overflow-wrap: anywhere; }
.read-status { display: inline-flex; align-items: center; gap: 4px; color: #5a6e60; }
.read-status .icon { width: 12px; height: 12px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.tag { padding: 3px 7px; border: 1px solid #e5e2ec; border-radius: 4px; color: #6b6678; font-size: 11px; }
.tag:hover { border-color: #b9b3da; color: var(--accent); }
.detail-actions { padding-top: 19px; border-top: 1px solid #e8eae4; }
.detail-actions .button { min-height: 37px; color: #646873; font-size: 11px; }
.detail-actions .button-primary { color: #fff; }
.detail-secondary-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.detail-secondary-actions .text-button { font-size: 11px; color: #666a72; }
.detail-secondary-actions .danger-text { color: #7e6262; }
.detail-secondary-actions .icon { width: 13px; height: 13px; }
.full-detail-link { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 25px; color: #6b6778; font-size: 11px; }
.full-detail-link .icon { width: 12px; height: 12px; }
.standalone-detail { max-width: 820px; margin: 0 auto; padding: 34px 40px 70px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 24px; color: #66696f; font-size: 12px; }
.back-link:hover { color: var(--accent); }
.back-link .icon { width: 15px; height: 15px; }
.detail-document { padding: 32px 38px; border: 1px solid var(--line); border-radius: 12px; background: #fdfdfb; }
.detail-document .detail-title { font-size: 27px; }
.detail-document .detail-domain, .detail-document .detail-url { font-size: 13px; }
.detail-document .detail-primary-actions .button-primary { flex: 0 1 auto; min-width: 180px; }
.detail-document .detail-section h3 { font-size: 13px; }
.detail-document .personal-note, .detail-document .description-text { font-size: 14px; }
.detail-document .detail-facts { font-size: 13px; }
.detail-document .detail-facts dt { width: 85px; }
.detail-document .detail-actions { max-width: 450px; }
.detail-document .detail-actions .button, .detail-document .detail-secondary-actions .text-button { font-size: 13px; }
.inline-notice { display: flex; align-items: flex-start; gap: 9px; margin: 15px 0; padding: 12px; border: 1px solid #e4e5ec; border-radius: 7px; background: #f2f2f8; color: #66677b; font-size: 11px; line-height: 1.8; }
.inline-notice > .icon { width: 15px; height: 15px; margin-top: 2px; }
.inline-notice strong { display: block; margin-bottom: 3px; font-weight: 650; }
.inline-notice .text-button { font-size: 11px; }
.warning-notice { color: #786540; background: #fbf7eb; border-color: #ede5cf; }

/* Empty states */
.empty-state { display: flex; align-items: center; flex-direction: column; min-height: 430px; padding: 78px 20px 45px; text-align: center; }
.empty-art { position: relative; width: 103px; height: 88px; margin-bottom: 29px; }
.empty-sheet { position: absolute; inset: 2px 7px 0 26px; display: flex; align-items: center; justify-content: center; border: 1px solid #dedeea; border-radius: 9px; color: #696595; background: #fbfafe; box-shadow: 0 6px 15px #52506109; transform: rotate(7deg); }
.empty-sheet .icon { width: 29px; height: 29px; stroke-width: 1.3; }
.empty-sheet-back { inset: 8px 22px 0 6px; transform: rotate(-11deg); background: #eeecf6; }
.empty-state h2 { margin-bottom: 10px; font-size: 18px; font-weight: 650; letter-spacing: -.55px; }
.empty-state > p { margin-bottom: 25px; color: #666a70; font-size: 13px; line-height: 1.9; }
.empty-state .button { font-size: 12px; }
.empty-secondary-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 17px; color: #696672; font-size: 11px; }
.empty-secondary-link .icon { width: 13px; height: 13px; }
.empty-secondary-link:hover { color: var(--accent); }
.empty-icon { display: flex; align-items: center; justify-content: center; width: 65px; height: 65px; margin-bottom: 23px; border: 1px solid #e2e0ed; border-radius: 16px; color: #6c6784; background: #eeecf5; }
.empty-icon .icon { width: 29px; height: 29px; stroke-width: 1.4; }
.compact-empty { min-height: 370px; }

/* Forms, collections and settings */
.standard-page { max-width: 1280px; margin: auto; padding: 40px 40px 65px; }
.form-page { max-width: 880px; margin: auto; padding: 30px 40px 65px; }
.form-page .back-link { margin-bottom: 28px; }
.form-page .page-heading { margin-bottom: 27px; }
.form-page .page-heading h1 { font-size: 25px; }
.editor-form { padding: 28px 30px 0; }
.form-field { min-width: 0; margin-bottom: 22px; }
.form-field label { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; color: #636976; font-size: 13px; font-weight: 600; }
.required-mark { color: #6a658b; font-size: 11px; }
.field-optional { margin-left: 3px; color: #67696f; font-size: 11px; font-weight: 400; }
input[type=text], input[type=url], input[type=email], input[type=password], textarea, select { width: 100%; min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid #e0e3e5; border-radius: 7px; color: #555c6b; background: #fdfdfc; font-size: 13px; line-height: 1.6; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 98px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #66686c; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #a7a0df; box-shadow: 0 0 0 3px #eeecfa; }
.global-search input:focus { box-shadow: none; }
.has-error input, .has-error textarea, .has-error select { border-color: #d19b95; background: #fffdfc; }
.field-hint { margin-top: 7px; color: #66686e; font-size: 11px; line-height: 1.8; }
.field-hint ul { padding-left: 16px; margin: 3px 0; }
.field-error { margin-top: 6px; color: #9a5854; font-size: 12px; }
.form-error-summary { padding: 12px 15px; margin-bottom: 22px; border: 1px solid #efd6ce; border-radius: 7px; background: #fff6f2; color: #955b4c; font-size: 13px; }
.form-error-summary ul { padding-left: 16px; margin: 0; }
.form-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.checkbox-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: #66696f; font-size: 12px; }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px -30px 0; padding: 20px 30px; border-top: 1px solid var(--line); background: #fdfdfb; border-radius: 0 0 12px 12px; }
.privacy-hint { display: flex; align-items: center; gap: 5px; color: #66686c; font-size: 11px; }
.privacy-hint .icon { width: 12px; height: 12px; }
.form-footer-actions { display: flex; align-items: center; gap: 6px; }
.form-footer-actions .button { font-size: 12px; }
.form-bottom-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: #66686d; font-size: 11px; }
.form-bottom-note .icon { width: 13px; height: 13px; }
.collections-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 34px; }
.mobile-create-collection { display: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 1px 0 18px; }
.section-heading h2 { display: flex; align-items: baseline; gap: 8px; margin: 0; color: #646872; font-size: 13px; font-weight: 600; }
.section-heading .heading-count { font-size: 13px; }
.collections-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.collection-card { padding: 19px 20px 12px; border: 1px solid #e3e5e0; border-radius: 10px; background: #fdfdfb; }
.collection-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.folder-art { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #6b628b; background: #ede9f5; border-radius: 10px; }
.folder-art .icon { width: 21px; height: 21px; }
.collection-card:nth-child(3n+2) .folder-art { color: #576f5e; background: #e9f0e9; }
.collection-card:nth-child(3n+3) .folder-art { color: #776648; background: #f3eddf; }
.collection-card h3 { margin-bottom: 7px; color: #656a77; font-size: 15px; font-weight: 650; letter-spacing: -.3px; }
.collection-card h3 a:hover { color: var(--accent); }
.collection-card > p { min-height: 40px; color: #66696f; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.collection-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 10px; border-top: 1px solid #eeeee9; color: #66686e; font-size: 11px; }
.collection-create { padding: 25px 23px; }
.section-icon { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; flex: 0 0 auto; border-radius: 9px; background: #eeecf7; color: #69638c; }
.section-icon .icon { width: 17px; height: 17px; }
.collection-create > .section-icon { margin-bottom: 17px; }
.collection-create h2 { margin-bottom: 8px; font-size: 16px; font-weight: 650; }
.collection-create > p { margin-bottom: 25px; color: #66696f; font-size: 12px; line-height: 1.8; }
.collection-create .form-field { margin-bottom: 18px; }
.collection-create .button { font-size: 12px; }
.create-privacy { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 14px; font-size: 11px; }
.create-privacy .icon { width: 11px; height: 11px; }
.settings-page { max-width: 1040px; }
.settings-section { margin-bottom: 22px; padding: 26px 30px; scroll-margin-top: 20px; }
.settings-section-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 25px; }
.settings-section-header h2 { margin: 0 0 5px; color: #636978; font-size: 15px; font-weight: 650; }
.settings-section-header p { color: #66696f; font-size: 12px; line-height: 1.8; }
.settings-account { display: flex; align-items: center; gap: 12px; padding: 0 0 23px; }
.settings-account > div { min-width: 0; overflow-wrap: anywhere; }
.large-avatar { width: 41px; height: 41px; font-size: 16px; }
.settings-account strong { display: block; color: #656975; font-size: 14px; font-weight: 600; }
.settings-account span:not(.avatar) { color: #686a70; font-size: 12px; }
.settings-account form { flex: 0 0 auto; margin-left: auto; }
.settings-account .button { min-height: 35px; font-size: 11px; }
.settings-trash-link { display: flex; align-items: center; gap: 7px; padding-top: 17px; border-top: 1px solid #ecede8; color: #66696f; font-size: 11px; }
.settings-trash-link:hover { color: var(--accent); }
.settings-trash-link .icon { width: 14px; height: 14px; }
.settings-trash-link .icon:last-child { margin-left: auto; }
.google-connection { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.google-connection-details { min-width: 0; }
.google-connection-details strong { display: block; margin-bottom: 5px; color: #656975; font-size: 13px; font-weight: 600; }
.google-connection-details span { color: #686a70; font-size: 12px; overflow-wrap: anywhere; }
.google-connection form { flex: 0 0 auto; }
.google-connection .button { min-height: 44px; font-size: 12px; }
.google-connection-description, .google-connection-note { color: #66696f; font-size: 12px; line-height: 1.8; }
.google-connection-note { margin-top: 15px; }
.transfer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.transfer-block + .transfer-block { padding-left: 28px; border-left: 1px solid #ebede7; }
.transfer-block h3 { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #656972; }
.transfer-block > p { margin-bottom: 20px; color: #686a6f; font-size: 12px; line-height: 1.9; }
.transfer-block input[type=file] { max-width: 100%; font-size: 11px; color: #686a6f; }
.transfer-block input[type=file]::file-selector-button { padding: 7px 8px; margin-right: 10px; color: #6b6879; background: #f1eff8; border: 1px solid #e6e2f0; border-radius: 5px; cursor: pointer; }
.transfer-block .button { min-height: 37px; font-size: 11px; }
.export-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.token-create-form { display: flex; align-items: flex-end; gap: 12px; }
.token-create-form .form-field { flex: 1; margin-bottom: 0; }
.token-create-form .button { min-height: 43px; font-size: 12px; }
.token-list { margin-top: 23px; }
.token-row { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-top: 1px solid #eceee8; }
.token-row-icon { color: #69696f; }
.token-row-icon .icon { width: 18px; height: 18px; }
.token-row > div { min-width: 0; }
.token-row strong { display: inline-block; margin-right: 8px; color: #666972; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.token-row code { color: #696775; font-size: 11px; }
.token-row p { margin-top: 3px; color: #67696f; font-size: 11px; }
.token-row form { flex: 0 0 auto; margin-left: auto; }
.token-row .text-button { font-size: 11px; }
.token-empty { padding-top: 17px; border-top: 1px solid #eceee8; color: #66696e; font-size: 12px; }
.token-secret-box { padding: 16px 18px; margin-bottom: 23px; border: 1px solid #dfdfef; border-radius: 8px; background: #f3f1fb; color: #6a667c; }
.token-secret-box strong { display: block; margin-bottom: 5px; color: #6c6489; font-size: 13px; font-weight: 600; }
.token-secret-box > p { font-size: 11px; }
.token-secret-value { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.token-secret-value code { min-width: 0; color: #6d6587; font-size: 12px; overflow-wrap: anywhere; }
.token-secret-value .icon-button { margin-left: auto; }
.copy-feedback { position: fixed; bottom: 25px; left: calc(50% + var(--sidebar-width)/2); z-index: 80; max-width: calc(100% - 32px); padding: 12px 20px; transform: translateX(-50%); border-radius: 9px; color: #fff; background: #444657; box-shadow: 0 6px 24px #26263320; font-size: 13px; }

/* Sign in / sign up */
.auth-layout { display: grid; grid-template-columns: minmax(420px,1fr) minmax(440px,1fr); min-height: 100vh; }
.auth-intro { display: flex; flex-direction: column; padding: 43px 56px 32px; color: #eae8ff; background: #343358; }
.auth-brand { padding: 0; color: #efedff; font-size: 20px; }
.auth-brand .brand-mark { color: #f0ecff; background: #65619b; box-shadow: none; }
.auth-intro-copy { max-width: 435px; width: 100%; margin: auto; padding: 65px 0 45px; }
.auth-intro .eyebrow { margin-bottom: 25px; color: #928aaf; font-size: 9px; letter-spacing: 2px; }
.auth-intro-copy h1 { margin-bottom: 22px; color: #f0effb; font-size: clamp(35px,3.45vw,52px); font-weight: 550; line-height: 1.47; letter-spacing: -1.8px; }
.auth-intro-copy h1 span { color: #a39bcc; }
.auth-intro-copy > p { color: #9f9ab8; font-size: 12px; line-height: 1.95; }
.auth-preview { margin-top: 38px; padding: 0 20px; border: 1px solid #655f814d; border-radius: 12px; background: #413e62; transform: rotate(-2deg); box-shadow: 0 13px 25px #18112f17; }
.preview-top { display: flex; align-items: center; gap: 7px; height: 45px; border-bottom: 1px solid #69608342; color: #9b92b0; font-size: 8px; }
.preview-dot { width: 5px; height: 5px; border-radius: 50%; background: #a99ccd; }
.preview-count { margin-left: auto; color: #746e8e; font-size: 7px; }
.preview-link { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid #69608336; }
.preview-link:last-child { border-bottom: 0; }
.preview-site { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 29px; border-radius: 7px; color: #b7a6ce; background: #665776; font-size: 13px; font-family: Georgia,serif; }
.preview-site.green { color: #a1c0b3; background: #526168; }
.preview-site.amber { color: #c3b18c; background: #665e63; }
.preview-link strong { display: block; color: #c2b9d3; font-size: 9px; font-weight: 500; }
.preview-link small { display: block; margin-top: 5px; color: #7f7893; font-size: 7px; }
.preview-link small span { margin: 0 4px; }
.preview-link > .icon { width: 13px; height: 13px; margin-left: auto; color: #9b8cad; }
.auth-intro-footer { display: flex; align-items: center; gap: 7px; color: #787391; font-size: 9px; }
.auth-intro-footer .icon { width: 12px; height: 12px; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 56px 46px; background: #fafaf7; }
.auth-form-wrap { width: 100%; max-width: 348px; }
.auth-welcome { display: block; margin-bottom: 13px; color: #6c677b; font-size: 11px; font-weight: 650; letter-spacing: 1.7px; }
.auth-form-wrap h2 { margin-bottom: 10px; color: #404351; font-size: 27px; font-weight: 650; letter-spacing: -.9px; }
.auth-description { margin-bottom: 37px; color: #66696f; font-size: 13px; }
.button-google { min-height: 44px; background: #fff; border-color: #b8bcc3; color: #3c4043; font-size: 14px; font-weight: 600; }
.button-google:hover { border-color: #828791; background: #f6f7f8; }
.auth-google-hint { margin-top: 10px; color: #66696f; font-size: 11px; line-height: 1.8; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 13px; margin: 24px 0; color: #686a70; font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #dfe1df; }
.auth-form .form-field { margin-bottom: 20px; }
.auth-form input { min-height: 45px; background: #fff; }
.auth-form .button { margin-top: 5px; min-height: 44px; font-size: 13px; }
.auth-switch { padding: 25px 0; margin-top: 6px; border-bottom: 1px solid #e8e9e3; color: #66696f; font-size: 12px; text-align: center; }
.auth-switch a { margin-left: 6px; color: #696388; font-weight: 550; }
.auth-switch a:hover { color: var(--accent); text-decoration: underline; }
.auth-bottom-note { display: flex; align-items: center; justify-content: center; gap: 5px; padding-top: 22px; color: #696a6f; font-size: 11px; }
.auth-bottom-note .icon { width: 11px; height: 11px; }
.auth-mobile-logo { display: none; }
.auth-form-wrap .messages { padding: 0 0 20px; }

/* All form factors use the same routes, components and actions. */
@media (min-width: 1550px) {
  :root { --sidebar-width: 250px; }
  .library-column { padding: 44px 52px 30px; }
  .library-layout.has-detail { grid-template-columns: minmax(0,1fr) 375px; }
  .detail-panel { padding-right: 32px; padding-left: 32px; }
  .link-row { padding-top: 25px; padding-bottom: 25px; }
}
@media (max-width: 1200px) and (min-width: 901px) {
  :root { --sidebar-width: 210px; }
  .sidebar { padding-right: 13px; padding-left: 13px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 30px; height: 33px; }
  .workspace-label { margin-left: 9px; margin-right: 9px; font-size: 11px; }
  .private-badge { font-size: 11px; }
  .topbar { padding-right: 28px; padding-left: 28px; }
  .library-column { padding: 34px 27px 26px; }
  .library-layout.has-detail { grid-template-columns: minmax(0,1fr) 296px; }
  .detail-panel { padding-right: 20px; padding-left: 20px; }
  .has-detail .library-column { padding-right: 21px; padding-left: 23px; }
  .has-detail .page-heading h1 { font-size: 23px; }
  .has-detail .page-heading p { font-size: 12px; }
  .has-detail .link-row { gap: 10px; }
  .has-detail .domain-tile { width: 28px; height: 31px; font-size: 13px; border-radius: 7px; }
  .has-detail .link-title-line h2 { font-size: 13px; }
  .has-detail .row-actions { flex-direction: column; gap: 0; }
  .has-detail .row-actions .icon-button { height: 28px; }
  .has-detail .sort-label { display: none; }
  .has-detail .link-domain { max-width: 120px; }
  .collections-layout { grid-template-columns: minmax(0,1fr) 275px; gap: 23px; }
  .collections-grid { grid-template-columns: 1fr; }
  .collection-create { padding: 22px 18px; }
}
@media (max-width: 900px) {
  :root { --sidebar-width: 0px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .sidebar { display: none; }
  .app-main { margin-left: 0; }
  .topbar { gap: 15px; min-height: 74px; padding: 0 25px; }
  .mobile-brand { display: block; }
  .mobile-brand .brand-mark { width: 30px; height: 33px; }
  .global-search { flex: 1; }
  .global-search kbd { display: none; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: flex; align-items: center; justify-content: space-around; gap: 4px; min-height: 66px; padding: 5px 12px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e3e5e0; background: #fafbf8f5; backdrop-filter: blur(16px); }
  .mobile-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-height: 50px; min-width: 62px; padding: 4px 13px; color: #66696f; font-size: 11px; border-radius: 7px; }
  .mobile-nav a .icon { width: 20px; height: 20px; }
  .mobile-nav a[aria-current] { color: var(--accent); }
  .mobile-nav a[aria-current] .icon { fill: #e7e3f3; }
  .library-column { padding: 34px 32px 24px; }
  .library-layout.has-detail { display: block; }
  .has-detail > .library-column { display: none; }
  .detail-panel { max-width: 700px; min-height: calc(100vh - 145px); padding: 0 30px 35px; margin: auto; border: 0; background: transparent; }
  .panel-toolbar { min-height: 61px; margin-bottom: 12px; font-size: 13px; }
  .panel-toolbar .icon-button { width: 44px; height: 44px; }
  .detail-panel .detail-title { font-size: 25px; }
  .detail-panel .detail-domain, .detail-panel .detail-url { font-size: 13px; }
  .detail-panel .detail-primary-actions .button-primary { flex: 1; min-height: 44px; font-size: 13px; }
  .detail-panel .detail-primary-actions .icon-button { width: 44px; height: 44px; }
  .detail-panel .detail-section h3 { font-size: 13px; }
  .detail-panel .personal-note, .detail-panel .description-text { font-size: 14px; }
  .detail-panel .detail-facts { font-size: 13px; }
  .detail-panel .detail-facts dt { width: 85px; }
  .detail-panel .detail-actions .button { min-height: 44px; font-size: 13px; }
  .detail-panel .detail-secondary-actions .text-button { min-height: 44px; font-size: 12px; }
  .detail-panel .full-detail-link { min-height: 44px; font-size: 12px; }
  .filter-tabs .mobile-trash-tab { display: inline-flex; }
  .filter-tabs { gap: 24px; }
  .messages { padding: 16px 25px 0; }
  .copy-feedback { bottom: calc(85px + env(safe-area-inset-bottom, 0px)); left: 50%; font-size: 12px; }
  .standard-page { padding: 34px 32px 40px; }
  .form-page { padding: 25px 32px 40px; }
  .collections-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 25px; }
  .collections-grid { grid-template-columns: 1fr; }
  .collection-card { padding: 16px 18px 10px; }
  .collection-card-top { margin-bottom: 13px; }
  .collection-card > p { min-height: auto; }
  .collection-card-bottom { margin-top: 17px; }
  .auth-body { padding-bottom: 0; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-intro { display: none; }
  .auth-form-side { min-height: 100vh; padding: 55px 30px; }
  .auth-form-wrap { max-width: 390px; }
  .auth-mobile-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 50px; color: #54596a; font-size: 20px; font-weight: 650; letter-spacing: -.7px; }
  .auth-form-wrap h2 { font-size: 28px; }
  .auth-form label, .auth-form input { font-size: 15px; }
  .auth-form .button { min-height: 46px; font-size: 15px; }
}
@media (max-width: 600px) {
  .topbar { gap: 12px; min-height: 70px; padding: 0 19px; }
  .topbar .brand-mark { width: 28px; height: 31px; border-radius: 8px; }
  .topbar .brand-mark .icon { width: 18px; height: 18px; }
  .global-search { gap: 7px; min-height: 42px; padding: 5px 10px; border: 1px solid #e3e5e8; border-radius: 8px; background: #f0f1f3; }
  .global-search > .icon { display: block; width: 15px; height: 15px; }
  .global-search input { padding: 2px 0; font-size: 16px; }
  .global-search input::placeholder { font-size: 12px; }
  .add-link-button { width: 44px; min-height: 44px; padding: 0; border-radius: 8px; }
  .add-link-button > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .add-link-button .icon { width: 20px; height: 20px; }
  .library-column { padding: 27px 21px 25px; }
  .page-heading { margin-bottom: 20px; }
  .eyebrow { margin-bottom: 8px; font-size: 10px; letter-spacing: 1.4px; }
  .page-heading h1 { gap: 8px; margin-bottom: 8px; font-size: 25px; }
  .heading-count { font-size: 15px; }
  .page-heading p { font-size: 12px; }
  .library-toolbar { margin-bottom: 1px; }
  .filter-tabs { gap: 22px; }
  .filter-tabs a { font-size: 11px; }
  .sort-label { display: none; }
  .link-row { gap: 12px; padding: 21px 0; }
  .link-row .domain-tile { width: 32px; height: 34px; font-size: 15px; border-radius: 8px; }
  .link-title-line h2 { font-size: 14px; line-height: 1.65; }
  .link-excerpt { margin-top: 5px; font-size: 11px; }
  .link-meta { gap: 6px; font-size: 10px; }
  .link-meta .collection-pill { font-size: 10px; }
  .link-domain { max-width: 125px; }
  .row-actions { flex-direction: column; gap: 2px; margin: -5px -5px 0 -4px; }
  .row-actions .icon-button { width: 40px; height: 44px; }
  .row-actions .icon { width: 16px; height: 16px; }
  .row-tags { margin-left: 0; }
  .text-tag { font-size: 10px; }
  .list-footnote { font-size: 10px; }
  .empty-state { min-height: 400px; padding: 60px 10px 30px; }
  .empty-state h2 { font-size: 18px; }
  .empty-state p { font-size: 12px; }
  .empty-state .button { min-height: 43px; font-size: 13px; }
  .empty-secondary-link { min-height: 44px; margin-top: 5px; }
  .messages { padding: 15px 20px 0; }
  .notice { padding: 10px 12px; font-size: 12px; }
  .detail-panel { padding: 0 24px 30px; }
  .detail-panel .detail-title { font-size: 23px; }
  .detail-section { padding: 23px 0; }
  .detail-section .muted, .detail-section .text-button { font-size: 13px; }
  .detail-primary-actions { margin-top: 20px; }
  .detail-panel .detail-url { font-size: 12px; }
  .detail-facts .collection-pill { font-size: 11px; }
  .tag { font-size: 11px; padding: 4px 8px; }
  .source-note { font-size: 11px; }
  .inline-notice { padding: 13px; font-size: 12px; }
  .standalone-detail { padding: 24px 20px 30px; }
  .detail-document { padding: 23px 19px; }
  .detail-document .detail-title { font-size: 22px; }
  .detail-document .detail-primary-actions .button-primary { flex: 1; min-width: 0; }
  .detail-document .detail-primary-actions .icon-button { width: 42px; height: 42px; }
  .detail-document .detail-primary-actions .button { min-height: 42px; }
  .detail-document .detail-actions .button { min-height: 44px; }
  .detail-document .detail-secondary-actions .text-button { min-height: 44px; font-size: 11px; }
  .standard-page { padding: 28px 21px 35px; }
  .standard-page .page-heading h1 { font-size: 25px; }
  .form-page { padding: 23px 20px 35px; }
  .form-page .page-heading h1 { font-size: 24px; }
  .form-page .back-link { margin-bottom: 24px; }
  .editor-form { padding: 22px 19px 0; }
  .form-field label { font-size: 13px; }
  input[type=text], input[type=url], input[type=email], input[type=password], textarea, select { min-height: 44px; font-size: 16px; }
  .form-two-columns { grid-template-columns: 1fr; gap: 0; }
  .form-footer { align-items: stretch; flex-direction: column; gap: 15px; margin-right: -19px; margin-left: -19px; padding: 18px 19px; }
  .privacy-hint { justify-content: center; order: 2; }
  .form-footer-actions { width: 100%; }
  .form-footer-actions .button-primary { flex: 1; }
  .form-footer-actions .button { min-height: 44px; font-size: 13px; }
  .form-bottom-note { align-items: flex-start; padding: 0 8px; font-size: 11px; line-height: 1.8; }
  .form-bottom-note .icon { margin-top: 2px; }
  .collections-layout { grid-template-columns: 1fr; gap: 25px; }
  .collection-create { padding: 21px; }
  .no-collections .collection-create { order: -1; }
  .mobile-create-collection { display: inline-flex; min-height: 40px; margin-top: 17px; font-size: 12px; }
  #create-collection-heading { scroll-margin-top: 22px; }
  .collection-create > .section-icon { display: none; }
  .collection-create > p { margin-bottom: 20px; }
  .collection-create .button { min-height: 44px; font-size: 13px; }
  .collections-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .collection-card { padding: 15px 14px 10px; }
  .collection-card-top { margin-bottom: 13px; }
  .collection-card h3 { font-size: 15px; }
  .collection-card > p { font-size: 11px; }
  .collection-card-bottom { font-size: 11px; }
  .folder-art { width: 33px; height: 33px; }
  .settings-section { padding: 23px 19px; }
  .settings-section-header { gap: 10px; }
  .settings-section-header h2 { font-size: 15px; }
  .settings-section-header p { font-size: 11px; }
  .google-connection { align-items: stretch; flex-direction: column; gap: 14px; }
  .google-connection .button { width: 100%; }
  .transfer-grid { grid-template-columns: 1fr; gap: 22px; }
  .transfer-block + .transfer-block { padding-top: 23px; padding-left: 0; border-top: 1px solid #ebede7; border-left: 0; }
  .transfer-block .button { min-height: 44px; font-size: 12px; }
  .token-create-form { align-items: stretch; flex-direction: column; gap: 10px; }
  .token-create-form .button { min-height: 44px; font-size: 13px; }
  .token-row { align-items: flex-start; gap: 9px; }
  .token-row-icon { padding-top: 3px; }
  .token-row strong { display: block; }
  .token-row form { padding-top: 1px; }
  .token-row .text-button { min-height: 44px; padding-top: 0; white-space: nowrap; }
  .auth-form-side { padding: 40px 27px; }
  .auth-mobile-logo { margin-bottom: 45px; font-size: 21px; }
  .auth-welcome { font-size: 10px; }
  .auth-form-wrap h2 { font-size: 27px; }
  .auth-form .form-field { margin-bottom: 21px; }
  .auth-form input { min-height: 48px; font-size: 16px; }
  .auth-form .button { min-height: 48px; }
  .auth-google .button { min-height: 48px; font-size: 15px; }
  .auth-switch { font-size: 12px; }
}
@media (max-width: 360px) {
  .topbar { padding-right: 15px; padding-left: 15px; gap: 10px; }
  .library-column, .standard-page { padding-right: 17px; padding-left: 17px; }
  .filter-tabs { gap: 18px; }
  .link-row { gap: 9px; }
  .link-row .domain-tile { width: 28px; height: 31px; }
  .link-title-line h2 { font-size: 13px; }
  .collections-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .topbar, .mobile-nav, .row-actions, .detail-actions, .back-link, .copy-link-button, .panel-toolbar, .messages { display: none !important; }
  body, .app-main { padding: 0; margin: 0; background: white; }
  .library-layout, .library-layout.has-detail { display: block; }
  .detail-panel, .detail-document { border: 0; min-height: 0; }
  .link-row { break-inside: avoid; }
}
