/* Canonical stylesheet. Do not add trailing patch files. Preserve conditional rule order. */

/* 01 Base and layout */
@charset "UTF-8";
:root {
  --brand:var(--theme-blue);
  --brand-dark:var(--theme-blue-dark);
  --ink:var(--theme-text);
  --muted:var(--theme-secondary);
  --line:var(--theme-soft);
  --sidebar:204px;
  --top:76px;
  --radius:16px
}

* {
  box-sizing:border-box;
}

html {
  scroll-padding-top:100px;
}

body {
  margin:0;
  background:var(--theme-white);
  color:var(--ink);
  font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}

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

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

button {
  cursor:pointer;
}

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

button:disabled {
  opacity:.45;
  cursor:default;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--theme-blue);
  outline-offset:3px;
}

button {
  border:0;
}

svg {
  width:23px;
  height:23px;
  flex-shrink:0;
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  font-size:28px;
  line-height:1.4;
  font-weight:650;
  letter-spacing:-.7px;
}

h2 {
  font-size:19px;
  font-weight:600;
}

h3 {
  font-size:15px;
  font-weight:550;
}

p {
  margin:12px 0;
}

img {
  max-width:100%;
}

[hidden] {
  display:none!important;
}

.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 {
  position:fixed;
  left:10px;
  top:-100px;
  z-index:100;
  background:white;
  padding:10px;
}

.skip:focus {
  top:10px;
}

.topbar {
  position:fixed;
  inset:0 0 auto;
  height:var(--top);
  display:flex;
  align-items:center;
  gap:24px;
  padding:0 30px;
  background:rgb(255 255 255 / 0.961);
  backdrop-filter:blur(16px);
  z-index:30;
}

.brand {
  width:150px;
  display:flex;
  gap:8px;
  flex-shrink:0;
}

.brand img {
  width:38px;
  height:38px;
  object-fit:contain;
}

.brand span {
  font-size:24px;
  font-weight:750;
  color:var(--theme-blue-dark);
  letter-spacing:-1px;
}

.global-search {
  display:flex;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:min(420px,40vw);
  height:40px;
  border-radius:24px;
  background:var(--theme-soft);
}

.global-search input {
  background:transparent;
  outline:none;
  flex:1;
  padding:0 18px;
  font-size:13px;
}

.global-search input::placeholder {
  color:var(--theme-muted);
}

.global-search button {
  background:transparent;
  width:46px;
  color:var(--theme-secondary);
  display:grid;
  place-items:center;
}

.global-search svg {
  width:19px;
  height:19px;
}

.account-entry {
  margin-left:auto;
  font-size:13px;
  color:var(--theme-secondary);
  background:var(--theme-soft);
  padding:7px 17px;
  border-radius:20px;
}

.sidebar {
  position:fixed;
  top:var(--top);
  bottom:0;
  left:0;
  width:var(--sidebar);
  padding:26px 22px;
  display:flex;
  flex-direction:column;
  background:white;
  z-index:15;
}

.sidebar nav {
  display:flex;
  flex-direction:column;
}

.sidebar nav a {
  display:flex;
  align-items:center;
  padding:13px 20px;
  color:var(--theme-secondary);
  transition:background .15s;
}

.sidebar nav a:hover {
  background:var(--theme-soft);
}

.sidebar nav a[aria-current] {
  background:var(--theme-soft);
  color:var(--theme-blue-dark);
  font-weight:600;
}

.side-about {
  margin:25px 20px;
  font-size:12px;
  color:var(--theme-secondary);
}

.side-brand {
  margin:auto 20px 0;
  color:var(--theme-muted);
  font-size:12px;
}

.side-brand img {
  width:42px;
  height:42px;
}

.side-brand p {
  margin:9px 0;
  line-height:1.8;
}

.side-brand small {
  font-size:10px;
  color:var(--theme-muted);
}

.mobile-nav {
  display:none;
}

main {
  margin:var(--top) 34px 0 calc(var(--sidebar) + 22px);
  padding:18px 0 46px;
  min-height:calc(100vh - 200px);
  max-width:1600px;
}

footer {
  margin:20px 34px 0 calc(var(--sidebar) + 22px);
  border-top:1px solid var(--line);
  padding:25px 0 32px;
  display:flex;
  gap:18px;
  font-size:10px;
  color:var(--theme-muted);
}

.sync-menu {
  position:absolute;
  top:calc(100% + 10px);
  background:var(--theme-white);
  border:1px solid var(--theme-soft);
  box-shadow:0 12px 40px rgb(16 62 89 / 0.071);
  border-radius:18px;
  padding:20px;
  z-index:20;
}

.grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px 20px;
}

.card {
  aspect-ratio:3/4;
  min-width:0;
  container-type:inline-size;
}

.card-art {
  position:relative;
  flex:0 0 75%;
  background:var(--theme-soft);
}

.art {
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
}

.real-cover {
  padding:0;
}

.real-cover>img {
  height:100%;
  width:100%;
  display:block;
}

.card-copy {
  flex:1;
  padding:clamp(3px,1.5cqw,8px) 2px 0;
}

.card-copy h3 {
  font-size:clamp(12px,5cqw,16px);
  line-height:1.25;
  height:2.5em;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.favorite-count {
  display:block;
  font-size:clamp(10px,3.5cqw,12px);
  line-height:1.3;
  margin-top:1px;
}

.favorite-count:before {
  content:none;
  margin-right:4px;
}

.card-bottom {
  position:absolute;
  right:0;
  top:0;
  z-index:4;
}

.save {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgb(255 255 255 / 0.941);
  color:var(--theme-secondary);
  box-shadow:0 1px 4px rgb(16 62 89 / 0.020);
  transition:transform .15s;
}

.save svg {
  width:21px;
  height:21px;
}

.save:hover {
  transform:scale(1.08);
}

.save[aria-pressed=true] {
  color:var(--theme-blue);
  background:var(--theme-line);
}

.save[aria-pressed=true] svg {
  fill:var(--theme-blue);
}

.system-badge {
  position:absolute;
  right:9px;
  bottom:9px;
  font-size:9px;
  color:var(--theme-text);
  background:rgb(255 255 255 / 0.851);
  padding:2px 6px;
  pointer-events:none;
}

.search-hint {
  position:absolute;
  top:10px;
  left:10px;
  background:rgb(255 255 255 / 0.922);
  color:var(--theme-blue);
  border-radius:5px;
  font-size:9px;
  padding:3px 6px;
}

.feed-end {
  text-align:center;
  color:var(--theme-muted);
  font-size:11px;
  margin:44px 0 10px;
}

.empty {
  padding:40px 20px;
  text-align:center;
  color:var(--theme-secondary);
  background:var(--theme-surface);
  border-radius:16px;
  line-height:2;
}

.page-head {
  margin:5px 0 30px;
}

.page-head>p {
  color:var(--theme-secondary);
  font-size:13px;
  margin-top:9px;
  max-width:680px;
}

.saved-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}

.collection-toolbar {
  justify-content:flex-end;
  margin:0 0 24px;
  font-size:11px;
  color:var(--theme-secondary);
}

.collection-toolbar select {
  margin-left:5px;
  color:var(--theme-text);
  font-size:12px;
  padding:4px;
}

.sync-wrap {
  position:relative;
}

.sync-toggle {
  background:var(--theme-soft);
  color:var(--theme-secondary);
  border:1px solid var(--theme-line);
  padding:6px 13px;
  border-radius:20px;
}

.sync-menu {
  right:0;
  width:300px;
  max-width:calc(100vw - 28px);
}

.sync-menu p {
  font-size:11px;
  color:var(--theme-secondary);
  margin:0 0 12px;
  line-height:1.7;
}

.sync-menu button {
  width:100%;
  display:block;
  text-align:left;
  background:var(--theme-soft);
  border-radius:10px;
  padding:13px;
  margin:8px 0;
}

.sync-menu strong {
  font-size:12px;
  color:var(--theme-text);
  font-weight:550;
}

.sync-menu span {
  display:block;
  font-size:10px;
  color:var(--theme-secondary);
  margin-top:5px;
}

.sync-menu small {
  display:block;
  font-size:10px;
  line-height:1.7;
  color:var(--theme-muted);
  margin-top:14px;
}

.sync-menu a {
  font-size:12px;
  color:var(--theme-blue-dark);
}

#saved-mode {
  font-size:11px;
  color:var(--theme-muted);
  margin:0 0 16px;
}

.collection-shortcut {
  display:flex;
  justify-content:space-between;
  padding:18px 22px;
  border:1px solid var(--line);
  border-radius:14px;
  color:var(--theme-secondary);
  font-size:13px;
  max-width:620px;
}

#note-dialog {
  border:0;
  padding:0;
  overflow:visible;
  width:min(1000px,calc(100vw - 110px));
  height:min(740px,calc(100dvh - 80px));
  max-width:none;
  max-height:none;
  box-shadow:0 20px 80px rgb(16 62 89 / 0.133);
}

#note-dialog::backdrop {
  background:rgb(16 62 89 / 0.467);
  backdrop-filter:blur(4px);
}

.note-layout {
  display:grid;
  grid-template-columns:54% 46%;
  height:100%;
  overflow:hidden;
  border-radius:22px;
}

.note-close {
  position:absolute;
  top:0;
  left:-49px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgb(255 255 255 / 0.922);
  color:var(--theme-secondary);
  font-size:25px;
  line-height:1;
  z-index:5;
}

.note-media {
  background:var(--theme-soft);
  min-width:0;
  overflow:hidden;
}

.gallery {
  display:flex;
  flex-direction:column;
  height:100%;
  width:100%;
  min-height:0;
}

.gallery-track {
  flex:1;
  min-height:0;
  display:flex;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
}

.gallery-track::-webkit-scrollbar {
  display:none;
}

.gallery-slide {
  flex:0 0 100%;
  min-width:0;
  width:100%;
  display:flex;
  flex-direction:column;
  margin:0;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}

.gallery-slide img {
  width:100%;
  flex:1;
  min-height:0;
  object-fit:contain;
  display:block;
}

.gallery-slide figcaption {
  text-align:center;
  font-size:10px;
  line-height:1.5;
  color:var(--theme-muted);
  padding:10px 16px;
  flex-shrink:0;
}

.gallery-controls {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:3px 12px 13px;
  flex-shrink:0;
}

.gallery-controls>button {
  width:27px;
  height:27px;
  border-radius:50%;
  background:rgb(255 255 255 / 0.737);
  color:var(--theme-secondary);
  font-size:21px;
}

.gallery-counter {
  font-size:10px;
  color:var(--theme-secondary);
  min-width:28px;
}

.gallery-dots {
  display:flex;
  gap:2px;
}

.gallery-dots button {
  width:17px;
  height:20px;
  padding:6px;
  border:0;
  background:transparent;
}

.gallery-dots button:after {
  content:'';
  display:block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--theme-muted);
}

.gallery-dots [aria-current=true]:after {
  background:var(--theme-blue);
}

.note-content {
  display:flex;
  flex-direction:column;
  min-height:0;
  min-width:0;
  padding:0 28px;
}

.note-save {
  min-width:86px;
  border-radius:24px;
  padding:12px 20px;
  font-size:13px;
}

.note-save[aria-pressed=true] {
  background:var(--theme-soft);
  color:var(--theme-blue-dark);
  border-color:var(--theme-blue);
}

.note-full {
  font-size:12px;
  color:var(--theme-secondary);
  text-underline-offset:4px;
}

.note-scroll {
  flex:1;
  overflow:auto;
  min-height:0;
  padding:26px 0 22px;
  scrollbar-width:thin;
  scrollbar-color:var(--theme-line) transparent;
}

.note-scroll h2 {
  font-size:22px;
  line-height:1.55;
  margin:13px 0 16px;
  letter-spacing:-.5px;
}

.note-scroll p {
  color:var(--theme-secondary);
  font-size:13px;
  line-height:1.95;
  margin:14px 0;
}

.note-scroll .eyebrow {
  font-size:10px;
  color:var(--theme-secondary);
  letter-spacing:.5px;
  margin:0;
}

.note-scroll .notice {
  border:0;
  background:none;
  padding:0;
  margin-top:28px;
  color:var(--theme-secondary);
  font-size:12px;
  line-height:1.9;
}

.note-scroll .notice:before {
  content:'使用前了解';
  display:block;
  color:var(--theme-secondary);
  font-size:12px;
  font-weight:550;
  margin-bottom:8px;
}

.note-scroll #note-check {
  font-size:10px;
  color:var(--theme-muted);
  line-height:1.8;
}

.note-actions {
  gap:10px;
  padding:18px 0;
  border-top:1px solid var(--theme-soft);
  flex-shrink:0;
}

.note-actions .button {
  flex:1;
  text-align:center;
}

.note-actions .secondary {
  font-size:11px;
  padding:10px 12px;
  white-space:nowrap;
}

.button,.secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 19px;
  border-radius:22px;
  border:1px solid transparent;
  font-size:13px;
  text-decoration:none;
  line-height:1.5;
  transition:background .15s;
}

.button {
  background:var(--theme-blue);
  color:var(--theme-white);
  font-weight:550;
}

.button:hover {
  background:var(--theme-blue);
}

.secondary {
  background:white;
  border-color:var(--theme-line);
  color:var(--theme-secondary);
}

.secondary:hover {
  background:var(--theme-surface);
}

.secondary[aria-pressed=true] {
  color:var(--theme-blue);
  border-color:var(--theme-blue);
  background:var(--theme-soft);
}

.actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin:17px 0;
}

.muted {
  color:var(--theme-secondary);
  font-size:12px;
}

.eyebrow {
  color:var(--theme-blue);
  font-size:11px;
  letter-spacing:1px;
}

.notice {
  padding:18px;
  background:var(--theme-soft);
  border-radius:12px;
  font-size:13px;
  color:var(--theme-secondary);
}

.prose {
  line-height:1.9;
}

.prose h2 {
  margin:30px 0 12px;
}

.prose p {
  color:var(--theme-secondary);
}

.breadcrumb {
  display:inline-block;
  color:var(--theme-secondary);
  font-size:12px;
  margin-bottom:25px;
}

.detail-head {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:start;
  margin-bottom:28px;
}

.detail-head p {
  color:var(--theme-secondary);
  max-width:740px;
}

.badges {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.badges span {
  padding:4px 10px;
  background:var(--theme-soft);
  border-radius:12px;
  font-size:11px;
  color:var(--theme-secondary);
}

.detail-notes {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
  margin:36px 0;
  color:var(--theme-secondary);
}

.detail-notes h2 {
  font-size:16px;
  color:var(--theme-text);
}

.detail-notes p {
  font-size:13px;
}

.example-panel {
  padding:25px 0;
  border-top:1px solid var(--line);
  margin-top:30px;
}

.example-panel h2 {
  margin-bottom:12px;
}

.resource-feature {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:center;
}

.resource-feature .art {
  aspect-ratio:1;
}

.resource-feature p {
  color:var(--theme-secondary);
}

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

.topic {
  display:block;
  border-radius:16px;
  background:var(--theme-soft);
  padding:25px;
}

.topic h3 {
  font-size:19px;
  margin:15px 0 12px;
}

.topic p {
  color:var(--theme-secondary);
  font-size:13px;
}

.topic>span:last-child {
  font-size:11px;
  color:var(--theme-secondary);
}

.steps {
  display:grid;
  gap:12px;
  margin:25px 0;
}

.steps>div {
  display:flex;
  gap:20px;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:16px 0;
}

.steps b {
  color:var(--theme-blue);
}

.section {
  margin-top:38px;
}

.section>h2 {
  margin-bottom:20px;
}

.section-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:20px 0;
}

.section-label span,.section-label a {
  font-size:12px;
  color:var(--theme-secondary);
}

.searchbox input {
  width:100%;
  max-width:600px;
  border:0;
  background:var(--theme-soft);
  padding:14px 18px;
  border-radius:24px;
  margin-top:12px;
}

.account-panel {
  max-width:620px;
  border:1px solid var(--theme-soft);
  border-radius:20px;
  padding:30px;
  margin-bottom:20px;
}

.account-panel h2 {
  font-size:20px;
  overflow-wrap:anywhere;
}

.account-panel p {
  font-size:14px;
  color:var(--theme-secondary);
  line-height:1.9;
}

.account-panel form {
  display:grid;
  gap:17px;
  max-width:400px;
  margin:24px 0;
}

.account-panel label {
  font-size:14px;
  color:var(--theme-secondary);
}

.account-panel input:not([type=checkbox]),.account-panel textarea {
  display:block;
  width:100%;
  font-size:16px;
  padding:11px 14px;
  border:1px solid var(--theme-line);
  background:var(--theme-surface);
  border-radius:10px;
  margin-top:7px;
}

.account-panel input::placeholder {
  color:var(--theme-muted);
  font-size:13px;
}

.account-panel details {
  border-top:1px solid var(--line);
  margin-top:25px;
  padding-top:12px;
}

.account-panel summary {
  cursor:pointer;
  font-size:12px;
  color:var(--theme-secondary);
  padding:8px 0;
}

.account-panel textarea {
  min-height:95px;
}

.account-panel [role=status] {
  color:var(--theme-blue);
}

.account-panel .actions button {
  font-size:12px;
}

.account-panel .actions [aria-pressed=true] {
  background:var(--theme-soft);
  color:var(--theme-blue-dark);
  border-color:var(--theme-blue);
}

.account-panel #delete-form {
  padding-top:20px;
  border-top:1px solid var(--line);
}

.workbench {
  border:1px solid var(--theme-line);
  border-radius:18px;
  padding:26px;
}

.upload {
  display:block;
  background:var(--theme-surface);
  border:1px dashed var(--theme-line);
  border-radius:13px;
  padding:25px;
  color:var(--theme-secondary);
  font-size:13px;
}

.upload input {
  display:block;
  margin-top:14px;
  max-width:100%;
  font-size:12px;
}

.tool-controls {
  display:flex;
  flex-wrap:wrap;
  align-items:end;
  margin:22px 0;
}

.tool-controls label {
  font-size:12px;
  color:var(--theme-secondary);
  display:grid;
  gap:7px;
}

.tool-controls input,.tool-controls select {
  border:1px solid var(--theme-line);
  padding:9px;
  background:var(--theme-white);
  width:150px;
}

.tool-texts {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.tool-texts label {
  display:block;
  font-size:12px;
  color:var(--theme-secondary);
}

.tool-texts textarea {
  display:block;
  width:100%;
  height:240px;
  resize:vertical;
  border:1px solid var(--theme-line);
  background:var(--theme-surface);
  border-radius:12px;
  padding:15px;
  margin-top:10px;
  font-size:14px;
  line-height:1.8;
}

.check-options {
  gap:18px;
  margin:18px 0;
  font-size:12px;
  color:var(--theme-secondary);
}

input[type=checkbox] {
  accent-color:var(--theme-blue);
}

.canvas-wrap {
  display:flex;
  justify-content:center;
  background:var(--theme-soft);
  border-radius:12px;
  overflow:hidden;
}

.canvas-wrap canvas {
  max-width:100%;
  max-height:520px;
  object-fit:contain;
}

#tool-status {
  font-size:12px;
  color:var(--theme-blue);
  overflow-wrap:anywhere;
}

#hash-output {
  overflow-wrap:anywhere;
  font:12px/1.8 monospace;
}

.swatches {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:16px 0;
}

.swatches button {
  padding:0;
  background:white;
  border-radius:8px;
  overflow:hidden;
  border:1px solid var(--theme-soft);
}

.swatches i {
  display:block;
  width:80px;
  height:55px;
}

.swatches span {
  font:11px monospace;
  padding:8px;
  display:block;
}

#pdf-list {
  padding-left:20px;
  overflow-wrap:anywhere;
}

#pdf-list li {
  margin:9px 0;
  font-size:12px;
  color:var(--theme-secondary);
}

#pdf-list button {
  margin-left:7px;
  padding:3px 10px;
}

#toast {
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:35px;
  background:rgb(16 62 89 / 0.925);
  color:white;
  font-size:12px;
  line-height:1.6;
  padding:12px 20px;
  max-width:85vw;
  z-index:100;
  display:none;
}

@media(min-width:1600px) {
  .grid {
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}

@media(max-width:1150px) {
  :root {
    --sidebar:175px;
  }

  .sidebar {
    padding:22px 14px;
  }

  .sidebar nav a {
    padding:12px 17px;
    font-size:16px;
  }

  .grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .topic-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  main {
    margin-right:24px;
    margin-left:calc(var(--sidebar) + 16px);
  }
}

@media(max-width:900px) {
  .sidebar {
    display:none;
  }

  .topbar {
    padding:0 20px;
  }

  .brand {
    width:auto;
  }

  .brand img {
    width:32px;
    height:32px;
  }

  .brand span {
    font-size:22px;
  }

  .global-search {
    max-width:none;
    width:auto;
    flex:1;
    max-width:480px;
    margin-left:auto;
    height:37px;
  }

  .account-entry {
    display:none;
  }

  main {
    margin:var(--top) 18px 0;
    padding-top:12px;
  }

  .mobile-nav {
    position:fixed;
    inset:auto 0 0;
    background:rgb(255 255 255 / 0.961);
    backdrop-filter:blur(15px);
    border-top:1px solid var(--theme-soft);
    display:flex;
    justify-content:space-around;
    padding:7px 12px calc(7px + env(safe-area-inset-bottom));
    z-index:35;
  }

  .mobile-nav a {
    display:flex;
    flex:1;
    flex-direction:column;
    align-items:center;
    gap:3px;
    color:var(--theme-muted);
    font-size:10px;
    padding:3px 10px;
  }

  .mobile-nav a svg {
    width:22px;
    height:22px;
  }

  .mobile-nav a[aria-current] {
    color:var(--theme-blue);
  }

  .mobile-nav a[aria-current] svg {
    stroke:var(--theme-blue);
    fill:var(--theme-soft);
  }

  footer {
    margin:20px 18px 0;
    padding:22px 0 calc(95px + env(safe-area-inset-bottom));
  }

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

  #toast {
    bottom:95px;
  }

  .note-layout {
    grid-template-columns:52% 48%;
  }

  .note-content {
    padding:0 20px;
  }

  .note-scroll h2 {
    font-size:20px;
  }
}

@media(max-width:600px) {
  .brand {
    gap:5px;
  }

  .brand img {
    width:29px;
    height:29px;
  }

  .brand span {
    font-size:21px;
  }

  .global-search input {
    font-size:11px;
    padding:0 13px;
  }

  .global-search button {
    width:34px;
  }

  .global-search svg {
    width:17px;
    height:17px;
  }

  .global-search {
    height:35px;
  }

  main {
    margin-left:10px;
    margin-right:10px;
    padding-top:8px;
  }

  .grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:12px;
    row-gap:21px;
  }

  .card-art {
    border-radius:12px;
  }

  .card-bottom {
    top:0;
    right:0;
  }

  .save {
    width:44px;
    height:44px;
  }

  .save svg {
    width:20px;
    height:20px;
  }

  .system-badge {
    font-size:8px;
    padding:2px 5px;
    right:7px;
    bottom:7px;
  }

  .feed-end {
    font-size:10px;
    margin-top:30px;
  }

  .page-head {
    margin:12px 4px 24px;
  }

  .page-head h1 {
    font-size:24px;
  }

  .page-head>p {
    font-size:13px;
    line-height:1.7;
    margin-top:7px;
  }

  .collection-toolbar {
    font-size:10px;
    gap:10px;
    margin-bottom:20px;
    padding:0 4px;
  }

  .collection-toolbar select {
    font-size:11px;
  }

  #saved-mode {
    padding:0 4px;
    margin:0 0 12px;
    font-size:10px;
  }

  .sync-toggle {
    font-size:11px;
    padding:5px 11px;
  }

  .sync-menu {
    padding:16px;
    width:285px;
  }

  .feed-caption {
    display:none;
  }

  .topic-grid {
    grid-template-columns:1fr;
    gap:14px;
  }

  .topic {
    padding:23px;
  }

  .topic h3 {
    font-size:18px;
  }

  .section-label {
    padding:0 4px;
  }

  footer {
    margin-left:14px;
    margin-right:14px;
    font-size:9px;
    gap:14px;
  }

  #note-dialog {
    position:fixed;
    inset:0;
    margin:0;
    width:100%;
    height:100dvh;
    border-radius:0;
    overflow-y:auto;
    overscroll-behavior:contain;
  }

  #note-dialog::backdrop {
    backdrop-filter:none;
  }

  .note-layout {
    display:block;
    height:auto;
    min-height:100%;
    border-radius:0;
    padding-bottom:90px;
  }

  .note-close {
    position:fixed;
    top:13px;
    right:13px;
    left:auto;
    width:30px;
    height:30px;
    font-size:23px;
    background:rgb(255 255 255 / 0.929);
  }

  .note-media {
    height:calc(100vw * 4 / 3 + 58px);
    width:100%;
  }

  .gallery-slide figcaption {
    font-size:9px;
    padding:7px 12px;
  }

  .gallery-controls {
    padding:2px 12px 10px;
    gap:10px;
  }

  .gallery-controls>button {
    width:24px;
    height:24px;
    font-size:18px;
  }

  .gallery-counter {
    font-size:9px;
  }

  .note-content {
    padding:0 22px;
  }

  .note-scroll {
    overflow:visible;
    padding:20px 0;
  }

  .note-scroll h2 {
    font-size:21px;
    line-height:1.55;
    margin:10px 0 17px;
  }

  .note-scroll p {
    font-size:13px;
    line-height:1.95;
  }

  .note-scroll .eyebrow {
    font-size:9px;
  }

  .note-actions {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    padding:12px 18px calc(12px + env(safe-area-inset-bottom));
    background:rgb(255 255 255 / 0.961);
    backdrop-filter:blur(15px);
    z-index:5;
    gap:10px;
  }

  .note-actions .button {
    font-size:13px;
    padding:10px 18px;
  }

  .note-actions .secondary {
    font-size:12px;
    padding:10px 12px;
  }

  .detail-head {
    margin:8px 4px 24px;
  }

  .detail-head h1 {
    font-size:23px;
  }

  .detail-head>.secondary {
    font-size:11px;
    padding:6px 11px;
  }

  .detail-head p {
    font-size:12px;
  }

  .workbench {
    padding:17px;
    border-radius:14px;
  }

  .tool-texts {
    grid-template-columns:1fr;
  }

  .tool-texts textarea {
    height:190px;
  }

  .tool-controls {
    gap:12px;
  }

  .tool-controls input,.tool-controls select {
    width:135px;
  }

  .detail-notes {
    grid-template-columns:1fr;
    gap:20px;
    padding:0 5px;
  }

  .resource-feature {
    grid-template-columns:1fr;
  }

  .example-panel {
    padding-left:5px;
    padding-right:5px;
  }

  .account-panel {
    padding:23px 20px;
    border-radius:17px;
  }

  .account-panel h2 {
    font-size:18px;
  }

  .account-panel form {
    max-width:none;
  }

  .collection-shortcut {
    font-size:12px;
    padding:17px 20px;
  }

  .prose {
    padding:0 5px;
  }

  .button,.secondary {
    font-size:12px;
  }

  .search-hint {
    font-size:8px;
    top:8px;
    left:8px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}

/* 02 Discovery */
.filter-shell {
  position:sticky;
  top:var(--top);
  z-index:41;
  background:var(--theme-white);
  margin-bottom:18px;
  padding:0;
  isolation:isolate;
}

.channel-bar {
  display:flex;
  align-items:stretch;
  min-height:52px;
  background:white;
  border-bottom:1px solid var(--theme-soft);
}

.filterbar {
  flex:1;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
}

.filterbar::-webkit-scrollbar {
  display:none;
}

.filter-row {
  display:flex;
  flex-wrap:nowrap;
  gap:12px;
  width:max-content;
  min-width:100%;
  align-items:stretch;
}

.filter-row button {
  position:relative;
  display:flex;
  align-items:center;
  gap:4px;
  flex-shrink:0;
  padding:13px 12px;
  border-radius:0;
  font-size:15px;
  line-height:24px;
  color:var(--theme-secondary);
  background:transparent;
  white-space:nowrap;
}

.filter-row button[aria-pressed=true] {
  background:transparent;
  color:var(--theme-text);
  font-weight:600;
}

.filter-row button[aria-pressed=true]:after {
  content:'';
  position:absolute;
  bottom:3px;
  left:calc(50% - 10px);
  width:20px;
  height:3px;
  border-radius:3px;
  background:var(--theme-blue);
}

#filter-toggle svg {
  width:16px;
  height:16px;
  color:var(--theme-secondary);
}

#filter-toggle[aria-expanded=true] {
  color:var(--theme-blue);
}

#filter-dot {
  right:7px;
  top:9px;
}

#channels-toggle {
  flex:0 0 46px;
  display:grid;
  place-items:center;
  background:white;
  box-shadow:-10px 0 14px var(--theme-white);
  color:var(--theme-text);
  position:relative;
}

#channels-toggle svg {
  width:22px;
  height:22px;
  transition:transform .2s;
}

#channels-toggle[aria-expanded=true] svg {
  transform:rotate(180deg);
}

.discovery-panel {
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:white;
  border-radius:0 0 18px 18px;
  box-shadow:0 14px 28px rgb(16 62 89 / 0.075);
  overflow:hidden;
  max-height:calc(100dvh - var(--top) - 120px);
  display:flex;
  flex-direction:column;
}

.discovery-panel[hidden] {
  display:none;
}

.panel-scroll {
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:24px;
  min-height:0;
}

.filter-group {
  border:0;
  padding:0;
  margin:0 0 24px;
}

.filter-group:last-child {
  margin-bottom:0;
}

.filter-group legend {
  font-size:14px;
  color:var(--theme-secondary);
  margin-bottom:12px;
  padding:0;
}

.filter-options,.channel-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.filter-options button,.channel-grid button {
  min-height:42px;
  padding:9px 5px;
  border-radius:8px;
  background:var(--theme-soft);
  color:var(--theme-text);
  font-size:14px;
  line-height:20px;
  overflow-wrap:anywhere;
}

.filter-options button[aria-pressed=true],.channel-grid button[aria-pressed=true] {
  background:var(--theme-soft);
  color:var(--theme-blue-dark);
  font-weight:600;
}

.discovery-foot {
  display:flex;
  border-top:1px solid var(--theme-soft);
  flex-shrink:0;
  background:white;
  padding:10px 0;
}

.discovery-foot button {
  width:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  background:transparent;
  color:var(--theme-text);
  font-size:14px;
  min-height:36px;
}

.discovery-foot button+button {
  border-left:1px solid var(--theme-soft);
}

.discovery-foot svg {
  width:19px;
  height:19px;
  transform:rotate(180deg);
}

#filter-done {
  background:transparent;
  color:var(--theme-text);
}

.channel-heading {
  display:flex;
  align-items:baseline;
  gap:12px;
  padding:22px 24px 0;
}

.channel-heading strong {
  font-size:16px;
}

.channel-heading span {
  font-size:12px;
  color:var(--theme-muted);
}

.channel-section h2 {
  font-size:12px;
  font-weight:400;
  color:var(--theme-secondary);
  margin:0 0 12px;
}

.channel-section:only-child h2 {
  display:none;
}

.channel-section+.channel-section {
  margin-top:24px;
}

.channel-grid button {
  border:1px solid var(--theme-line);
  background:white;
}

#discovery-backdrop {
  position:fixed;
  inset:var(--discovery-backdrop-top,var(--top)) 0 0;
  background:rgb(16 62 89 / 0.333);
  z-index:40;
  animation:discovery-fade .15s ease-out;
}

body.discovery-open {
  overflow:hidden;
}

.filter-shell button:focus-visible {
  outline:2px solid var(--theme-blue);
  outline-offset:-3px;
}

.filter-options button:hover,.channel-grid button:hover {
  background:var(--theme-soft);
}

@keyframes discovery-fade {
  from {
  opacity:0}
to {
  opacity:1}
}

@media(min-width:901px) {
  .filter-shell {
    padding-top:5px;
    padding-bottom:5px;
  }

  .channel-bar {
    justify-content:flex-start;
    align-items:center;
    border-bottom:0;
    min-height:48px;
    gap:14px;
  }

  .filterbar {
    flex:0 1 auto;
  }

  .filter-row {
    gap:8px;
  }

  .filter-row button {
    position:relative;
    padding:10px 14px;
    font-size:14px;
  }

  .filter-row button[aria-pressed=true] {
    color:var(--theme-blue-dark);
  }

  .filter-row button[aria-pressed=true]:after {
    bottom:1px;
  }

  #channels-toggle {
    margin-left:0;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:6px;
    padding:7px 11px;
    border-radius:9px;
    background:var(--theme-soft);
    box-shadow:none;
    color:var(--theme-secondary);
    min-height:34px;
  }

  #channels-toggle:before {
    content:'全部分类';
    font-size:12px;
  }

  #channels-toggle svg {
    width:16px;
    height:16px;
  }

  #channels-toggle:hover,#channels-toggle[aria-expanded=true] {
    background:var(--theme-soft);
    color:var(--theme-blue-dark);
  }

  .discovery-panel {
    top:calc(100% + 7px);
    right:auto;
    left:0;
    width:460px;
    max-width:100%;
    max-height:calc(100dvh - var(--top) - 100px);
    border:1px solid var(--theme-soft);
    border-radius:16px;
    box-shadow:0 12px 38px rgb(16 62 89 / 0.094),0 2px 7px rgb(16 62 89 / 0.024);
  }

  .panel-scroll {
    padding:20px;
  }

  .filter-group {
    margin-bottom:20px;
  }

  .filter-group legend {
    font-size:12px;
    margin-bottom:10px;
  }

  .filter-options,.channel-grid {
    gap:8px;
  }

  .filter-options button,.channel-grid button {
    font-size:12px;
    min-height:36px;
    padding:7px 4px;
    border-radius:7px;
  }

  .channel-heading {
    padding:20px 20px 0;
    gap:10px;
  }

  .channel-heading strong {
    font-size:14px;
  }

  .channel-heading span {
    font-size:11px;
  }

  .discovery-foot {
    padding:8px 0;
  }

  .discovery-foot button {
    font-size:12px;
    min-height:30px;
  }

  #discovery-backdrop {
    display:none;
  }

  body.discovery-open {
    overflow:visible;
  }
}

@media(max-width:600px) {
  .filter-shell {
    margin:0 -10px 14px;
  }

  .channel-bar {
    padding-left:8px;
    min-height:48px;
  }

  .filter-row {
    gap:3px;
  }

  .filter-row button {
    position:relative;
    font-size:14px;
    padding:11px 10px;
  }

  #channels-toggle {
    flex-basis:44px;
  }

  .discovery-panel {
    border-radius:0 0 14px 14px;
    max-height:calc(100dvh - var(--top) - 110px);
  }

  .panel-scroll {
    padding:22px 16px;
  }

  .filter-options,.channel-grid {
    gap:9px 8px;
  }

  .filter-options button,.channel-grid button {
    font-size:13px;
    min-height:42px;
    padding:9px 3px;
  }

  .filter-group {
    margin-bottom:23px;
  }

  .filter-group legend {
    font-size:13px;
  }

  .channel-heading {
    padding:20px 16px 0;
  }

  .channel-heading strong {
    font-size:16px;
  }

  .channel-heading span {
    font-size:11px;
  }

  .discovery-foot {
    padding-bottom:calc(10px + env(safe-area-inset-bottom));
  }
}

@media(prefers-reduced-motion:reduce) {
  #discovery-backdrop {
    animation:none;
  }

  #channels-toggle svg {
    transition:none;
  }
}

.active-filters {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:-2px 0 20px;
  font-size:12px;
  color:var(--theme-secondary);
}

.active-filters[hidden] {
  display:none;
}

#filter-chips {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  min-width:0;
}

#filter-chips button {
  display:inline-flex;
  gap:9px;
  align-items:center;
  background:var(--theme-soft);
  color:var(--theme-blue-dark);
  border-radius:7px;
  padding:6px 10px;
  font-size:12px;
  max-width:100%;
  overflow-wrap:anywhere;
  text-align:left;
}

#filter-chips button span {
  font-size:16px;
  color:var(--theme-blue);
}

#clear-selection {
  background:none;
  color:var(--theme-secondary);
  padding:6px 0;
  font-size:12px;
  text-decoration:underline;
  text-underline-offset:3px;
}

#result-total {
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.empty strong,.empty>span {
  display:block;
}

.empty strong {
  font-size:17px;
  color:var(--theme-text);
  font-weight:550;
}

.empty>span {
  font-size:13px;
  margin:6px 0 20px;
}

.empty .secondary {
  background:white;
  border:1px solid var(--theme-line);
}

.favorite-count {
  color:var(--theme-secondary);
}

.card-copy a:focus-visible {
  outline:2px solid var(--theme-blue);
  outline-offset:3px;
  border-radius:3px;
}

.save:focus-visible {
  outline:2px solid var(--theme-blue);
  outline-offset:3px;
}

@media(min-width:901px) {
  .system-badge {
    font-size:10px;
  }

  .grid {
    row-gap:22px;
  }

  .card-art {
    transition:box-shadow .18s;
  }

  .card:hover .card-art {
    box-shadow:0 4px 18px rgb(16 62 89 / 0.071);
  }

  .card-copy h3 a:hover {
    color:var(--theme-blue-dark);
  }
}

@media(max-width:600px) {
  .active-filters {
    gap:8px;
    margin:0 3px 14px;
    font-size:11px;
  }

  #filter-chips {
    gap:6px;
  }

  #filter-chips button {
    font-size:11px;
    padding:5px 8px;
  }

  #clear-selection {
    font-size:11px;
  }

  .empty {
    padding:32px 16px;
  }

  .empty strong {
    font-size:15px;
  }

  .empty>span {
    font-size:12px;
  }
}

#filter-dot {
  position:absolute;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--brand);
}

@media(max-width:600px) {
}

@media(max-width:900px) {
  main:has(> .feed) {
    padding-top:0;
  }
}

/* 03 Tool forms */
.tool-intro {
  font-size:15px;
  color:var(--theme-text);
  margin:0 0 20px;
}

.tool-label {
  display:grid;
  gap:8px;
}

.tool-label textarea {
  width:100%;
  resize:vertical;
  border:1px solid var(--theme-line);
  border-radius:10px;
  padding:12px;
}

.file-results {
  display:grid;
  gap:8px;
  margin:16px 0;
}

.file-result {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  background:var(--theme-surface);
  border-radius:10px;
}

.file-result>span {
  flex:1;
  min-width:0;
  overflow-wrap:anywhere;
}

.file-result button {
  flex-shrink:0;
}

.data-preview {
  overflow:auto;
  max-height:480px;
  margin:20px 0;
  border:1px solid var(--theme-line);
  border-radius:10px;
}

.data-preview:empty {
  display:none;
}

.data-preview table {
  border-collapse:collapse;
  min-width:100%;
  font-size:12px;
}

.data-preview td {
  padding:9px 12px;
  border-bottom:1px solid var(--theme-soft);
  border-right:1px solid var(--theme-soft);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  min-width:90px;
  max-width:320px;
}

.data-preview tr:first-child {
  background:var(--theme-soft);
  font-weight:600;
}

.redact-stage {
  background:repeating-conic-gradient(var(--theme-soft) 0% 25%,var(--theme-white) 0% 50%) 50%/20px 20px;
  border-radius:10px;
  overflow:auto;
  margin:18px 0;
}

.redact-stage canvas {
  display:block;
  max-width:100%;
  height:auto;
  touch-action:none;
  cursor:crosshair;
  margin:auto;
}

.qr-output {
  display:block;
  max-width:min(100%,360px);
  height:auto;
  margin:22px auto;
  image-rendering:pixelated;
  border:1px solid var(--theme-soft);
}

.reorder-list {
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}

.reorder-list li {
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px;
  background:var(--theme-surface);
  border-radius:10px;
}

.reorder-list li span {
  flex:1;
  min-width:0;
  overflow-wrap:anywhere;
}

.reorder-list button {
  font-size:12px;
  padding:6px 9px;
}

.workbench details {
  margin:16px 0;
}

.workbench summary {
  cursor:pointer;
  color:var(--theme-secondary);
  font-size:13px;
}

.check-options {
  display:flex;
  flex-wrap:wrap;
  gap:12px 20px;
  margin:15px 0;
}

.check-options label {
  display:flex;
  align-items:center;
  gap:6px;
}

.tool-controls input[type=color] {
  padding:2px;
  width:70px;
  height:36px;
}

@media(max-width:600px) {
  .tool-intro {
    font-size:13px;
  }

  .reorder-list li {
    flex-wrap:wrap;
  }

  .reorder-list li span {
    flex-basis:100%;
  }

  .file-result {
    font-size:12px;
  }

  .data-preview td {
    padding:8px;
  }

  .workbench .tool-controls label {
    max-width:100%;
  }

  .workbench .tool-controls input {
    max-width:100%;
  }
}

.bead-view {
  overflow:auto;
  max-height:70vh;
  border:1px solid #e4eaf0;
  border-radius:12px;
  background:#fff;
  overscroll-behavior:contain;
}

.bead-view canvas {
  display:block;
  width:100%;
  max-width:none;
  height:auto;
}

.bead-materials {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:18px 0;
}

.bead-materials span {
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  background:#f5f7f9;
  border-radius:8px;
  font-size:12px;
}

.bead-materials i {
  width:14px;
  height:14px;
  border:1px solid #9995;
  border-radius:3px;
}

#bead-result .actions {
  flex-wrap:wrap;
}

#daily-result {
  padding:18px;
  border-radius:12px;
  background:#f4f8fa;
  line-height:1.8;
}

[data-tool="beads"] .tool-intro {
  font-size:15px;
  margin:0 0 20px;
}

[data-tool="beads"] .upload {
  padding:20px;
  margin-bottom:20px;
}

[data-tool="beads"] .tool-controls {
  gap:14px;
  margin:18px 0;
}

[data-tool="beads"] #bead-summary {
  padding:14px 16px;
  background:#eef8ff;
  border-radius:12px;
  line-height:1.8;
  font-size:14px;
}

[data-tool="beads"] #bead-result {
  border-top:1px solid #e6edf2;
  margin-top:24px;
  padding-top:8px;
}

[data-tool="beads"] .actions {
  gap:10px;
}

[data-tool="beads"] details {
  margin-top:20px;
  font-size:13px;
  line-height:1.8;
}

.bead-range {
  margin-left:6px;
  color:#73808c;
  font-size:12px;
  font-weight:400;
  white-space:nowrap;
}

/* 04 Brand tokens and chrome */
:root {
  --brand-blue:#01A0FE;
  --brand-white:#FFFFFF;
  --brand-black:#171717;
  --brand-gold:#FFD43B;
  --brand-red:#FF2028;
  --action-blue:var(--brand-blue);
  --action-hover:var(--brand-blue);
  --surface-blue:#EAF7FF;
  --surface-page:#F7FBFE;
  --border-blue:#D6E7F2;
  --text-secondary:#5B6670;
  --danger-text:#B4232B;
  --surface-gold:#FFF7DA;
  --surface-red:#FFF0F1;
  --theme-blue:var(--brand-blue);
  --theme-blue-dark:var(--action-blue);
  --theme-danger:var(--danger-text);
  --theme-white:var(--brand-white);
  --theme-surface:var(--surface-page);
  --theme-soft:var(--surface-blue);
  --theme-line:var(--border-blue);
  --theme-muted:var(--text-secondary);
  --theme-secondary:var(--text-secondary);
  --theme-text:var(--brand-black);
  --theme-yellow:var(--brand-gold);
  --brand:var(--action-blue);
  --brand-dark:var(--action-hover);
  --ink:var(--brand-black);
  --muted:var(--text-secondary);
  --line:var(--border-blue);
}

body {
  background:var(--brand-white);
}

.topbar {
  isolation:isolate;
}

.brand {
  position:relative;
  width:120px;
  height:42px;
  overflow:hidden;
  display:block;
  flex:none;
  isolation:isolate;
  background:var(--brand-blue);
}

.brand .brand-wordmark {
  display:block;
  width:100%;
  height:100%;
  overflow:visible;
}

.global-search {
  background:var(--brand-white);
  box-shadow:0 2px 8px rgb(0 0 0 / .04);
}

.global-search:focus-within {
  border-color:var(--brand-white);
  box-shadow:0 0 0 3px rgb(255 255 255 / .4);
}

.global-search button {
  color:var(--action-blue);
}

.global-search input::placeholder {
  color:var(--text-secondary);
}

.account-entry {
  color:var(--brand-black);
  background:var(--brand-white);
  padding:9px 22px;
  min-height:40px;
  min-width:76px;
  text-align:center;
  font-weight:650;
  transition:box-shadow .18s,transform .18s;
}

.account-entry:hover {
  box-shadow:0 3px 12px rgb(0 0 0 / .12);
  transform:translateY(-1px);
}

.account-entry.is-signed-in {
  width:42px;
  height:42px;
  min-width:42px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  font-size:15px;
  border:2px solid var(--brand-white);
  background:var(--surface-blue);
  color:var(--brand-black);
}

@media(max-width:900px) {
  .account-entry.is-signed-in {
    display:none;
  }
}

.sidebar nav a,.mobile-nav a {
  color:var(--brand-black);
}

.sidebar nav a:hover {
  background:var(--surface-page);
}

.sidebar nav a[aria-current=page] {
  color:var(--brand-black);
  background:var(--surface-blue);
  box-shadow:none;
  font-weight:750;
}

.sidebar nav a[aria-current=page] svg {
  stroke:var(--action-blue);
}

.mobile-nav a {
  color:var(--brand-black);
  position:relative;
  font-weight:600;
  border-radius:16px;
  max-width:80px;
  padding:6px 14px;
  gap:3px;
}

.mobile-nav a[aria-current=page] {
  color:var(--brand-white);
  background:transparent;
  font-weight:750;
}

.mobile-nav a svg {
  stroke:var(--brand-black);
  fill:none;
}

.mobile-nav a[aria-current=page] svg {
  stroke:var(--brand-white);
  fill:none;
}

.mobile-nav {
  border-top:0;
  background:var(--brand-blue);
  backdrop-filter:none;
  padding:7px 12px calc(7px + env(safe-area-inset-bottom));
  box-shadow:0 -3px 14px rgb(0 0 0 / .04);
}

.side-brand {
  border-top:1px solid var(--border-blue);
  padding-top:16px;
  color:var(--text-secondary);
}

.brand-dot {
  display:block;
  width:18px;
  height:6px;
  background:var(--brand-gold);
  border-radius:4px;
}

.button {
  background:var(--action-blue);
  color:var(--brand-white);
}

.button:hover {
  background:var(--action-hover);
}

.secondary {
  border-color:var(--border-blue);
  color:var(--brand-black);
  background:var(--brand-white);
}

input[type=checkbox],input[type=radio] {
  accent-color:var(--action-blue);
}

::selection {
  background:var(--surface-blue);
  color:var(--brand-black);
}

.filter-row button[aria-pressed=true] {
  color:var(--action-blue);
}

.filter-row button[aria-pressed=true]:after {
  background:var(--brand-blue);
}

.filter-trigger,.channels-toggle {
  color:var(--brand-black);
  background:var(--brand-white);
}

.filter-options button,.channel-grid button {
  background:var(--surface-page);
  color:var(--text-secondary);
  border-color:var(--border-blue);
}

.filter-options button[aria-pressed=true],.channel-grid button[aria-pressed=true] {
  background:var(--surface-blue);
  color:var(--action-blue);
  border-color:var(--brand-blue);
}

.filter-options button:hover,.channel-grid button:hover {
  background:var(--surface-blue);
}

#filter-chips button {
  background:var(--surface-blue);
  color:var(--action-blue);
  border-color:var(--border-blue);
}

.save {
  color:var(--brand-red);
  background:transparent;
  border:0;
  box-shadow:none;
  border-radius:0;
}

.save:hover {
  color:var(--brand-red);
  background:transparent;
}

.save[aria-pressed=true] {
  color:var(--brand-red);
  background:transparent;
  border:0;
}

.secondary[data-save] {
  color:var(--danger-text);
  background:transparent;
  border:0;
  box-shadow:none;
}

.secondary[data-save][aria-pressed=true] {
  color:var(--danger-text);
  background:transparent;
}

.save svg {
  stroke:var(--brand-red);
  fill:none;
  filter:drop-shadow(0 1px 1px var(--brand-white));
}

.save[aria-pressed=true] svg {
  fill:var(--brand-red);
  stroke:var(--brand-red);
}

.note-media {
  background:var(--surface-page);
}

.note-actions {
  border-top-color:var(--border-blue);
}

.note-full,.note-scroll .eyebrow {
  color:var(--action-blue);
}

.note-scroll p,.prose p {
  color:var(--text-secondary);
}

.note-scroll .notice {
  padding:14px;
  border:1px solid var(--border-blue);
  border-radius:12px;
  background:var(--surface-blue);
  color:var(--text-secondary);
}

.gallery-dots button:after {
  background:var(--border-blue);
}

.gallery-dots [aria-current=true]:after {
  background:var(--brand-blue);
}

.gallery-controls>button {
  color:var(--action-blue);
  background:var(--brand-white);
}

.gallery-slide figcaption,.gallery-counter,.favorite-count {
  color:var(--text-secondary);
}

.system-badge {
  background:var(--brand-white);
  color:var(--brand-black);
}

.card-copy h3 a:hover {
  color:var(--action-blue);
}

.workbench,.account-panel {
  border-color:var(--border-blue);
  background:var(--brand-white);
}

.upload {
  background:var(--surface-blue);
  border-color:var(--brand-blue);
}

.account-panel input,.tool-controls input,.tool-controls select,.tool-label textarea {
  border-color:var(--border-blue);
  background:var(--brand-white);
}

.account-panel .notice {
  background:var(--surface-gold);
  color:var(--brand-black);
  border-color:var(--brand-gold);
}

.sync-toggle,.sync-menu,.collection-toolbar select {
  background:var(--brand-white);
  color:var(--brand-black);
  border-color:var(--border-blue);
}

#toast {
  background:var(--brand-black);
  color:var(--brand-white);
}

footer,.feed-end {
  color:var(--text-secondary);
}

.mint,.blue,.lavender {
  --tone:var(--action-blue);
  --light:var(--brand-blue);
  background:var(--surface-blue);
}

.pink,.peach {
  --tone:var(--danger-text);
  --light:var(--brand-red);
  background:var(--surface-red);
}

.sand {
  --tone:var(--brand-black);
  --light:var(--brand-gold);
  background:var(--surface-gold);
}

.slate {
  --tone:var(--brand-white);
  --light:var(--brand-blue);
  background:var(--action-blue);
}

.art-image .art-scene i:after {
  border-bottom-color:var(--brand-blue);
}

.art-palette .art-scene i {
  background:var(--brand-blue);
}

.art-palette .art-scene i:nth-child(2) {
  background:var(--brand-red);
}

.art-palette .art-scene i:nth-child(3) {
  background:var(--brand-gold);
}

@media(max-width:900px) {
  .brand {
    width:100px;
    height:35px;
  }

  .global-search {
    max-width:520px;
  }
}

@media(max-width:600px) {
  .brand {
    width:91px;
    height:32px;
  }

  .topbar {
    padding:0 14px;
    gap:14px;
  }

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

  .mobile-nav a {
    max-width:76px;
  }
}

.sidebar {
  padding:28px 20px 20px;
  overflow-y:auto;
}

.sidebar nav {
  gap:10px;
}

.sidebar nav a {
  min-height:52px;
  padding:12px 20px;
  gap:16px;
  border-radius:28px;
  font-size:17px;
  font-weight:550;
}

.sidebar nav svg {
  width:23px;
  height:23px;
  stroke-width:1.8;
}

.sidebar-bottom {
  margin-top:auto;
  padding:32px 4px 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.sidebar-bottom a {
  display:flex;
  align-items:center;
  gap:14px;
  border-radius:24px;
  padding:11px 14px;
  color:var(--brand-black);
  font-size:14px;
}

.sidebar-bottom a:hover {
  background:var(--surface-page);
}

.sidebar-bottom small {
  font-size:10px;
  color:var(--text-secondary);
  padding:12px 14px 0;
  white-space:nowrap;
}

@media(max-width:1150px) and (min-width:901px) {
  .sidebar {
    padding-left:12px;
    padding-right:12px;
  }

  .sidebar nav a {
    padding-left:16px;
  }

  .sidebar-bottom a {
    padding-left:12px;
    font-size:13px;
  }

  .sidebar-bottom small {
    font-size:9px;
    padding-left:12px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .account-entry {
    transition:none;
  }

  .account-entry:hover {
    transform:none;
  }
}

/* 05 Saved items */
.saved-header {
  margin:8px 0 8px;
  padding:0 2px;
}

.saved-heading {
  gap:12px;
  min-height:40px;
}

.saved-heading h1 {
  font-size:26px;
  line-height:1.4;
  letter-spacing:-.5px;
}

#saved-total {
  font-size:14px;
  font-weight:500;
  color:var(--text-secondary);
  vertical-align:middle;
  margin-left:5px;
}

.saved-header #saved-mode {
  margin:5px 0 0;
  padding:0;
  font-size:12px;
  line-height:1.6;
}

.collection-toolbar {
  justify-content:flex-start;
  gap:18px;
  margin:0 0 10px;
  padding:0 2px 6px;
  border-bottom:1px solid var(--border-blue);
  font-size:12px;
  min-height:42px;
}

.collection-toolbar label {
  display:flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
}

.collection-toolbar select {
  font-size:13px;
  margin:0;
  padding:8px 20px 8px 6px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--brand-black);
  cursor:pointer;
  min-height:40px;
}

.sync-toggle {
  min-height:40px;
  padding:6px 12px;
  font-size:12px;
  background:transparent;
  color:var(--action-blue);
  border:0;
}

.sync-toggle:hover {
  background:var(--surface-blue);
}

.sync-menu p,.sync-menu strong,.sync-menu a {
  font-size:13px;
}

.sync-menu span,.sync-menu small {
  font-size:12px;
}

#saved-empty {
  padding:32px 20px;
  margin:8px 0 24px;
}

#saved-empty strong {
  display:block;
  font-size:18px;
  font-weight:650;
  color:var(--brand-black);
}

#saved-empty p {
  font-size:13px;
  line-height:1.8;
  max-width:360px;
  margin:8px auto 20px;
}

#saved-empty .button {
  display:inline-flex;
  min-height:42px;
  align-items:center;
  padding:10px 22px;
}

@media(max-width:600px) {
  .saved-header {
    margin:8px 2px 6px;
  }

  .saved-heading h1 {
    font-size:23px;
  }

  .saved-heading {
    min-height:38px;
  }

  .collection-toolbar {
    gap:14px;
    margin-bottom:14px;
    padding-bottom:7px;
  }

  .collection-toolbar select {
    padding-right:12px;
  }

  .saved-header #saved-mode {
    font-size:12px;
  }

  .sync-toggle {
    padding:6px 8px;
  }
}

/* 06 Profile and account */
.me-center,.history-center {
  max-width:900px;
  margin:8px 0 24px;
}

.identity-card {
  padding:16px 0 22px;
  border-bottom:1px solid var(--border-blue);
}

.identity-card h1,.history-center h1 {
  font-size:26px;
}

.identity-card>p,.local-note {
  font-size:13px;
  color:var(--text-secondary);
  line-height:1.7;
}

#account-access {
  margin-top:16px;
}

#account-access>summary {
  cursor:pointer;
  color:var(--action-blue);
  font-size:14px;
  min-height:44px;
  padding:12px 16px;
  border-radius:12px;
  background:var(--surface-blue);
  width:fit-content;
  max-width:100%;
  overflow-wrap:anywhere;
}

#account-access .account-panel {
  margin:14px 0 0;
}

.recent-section {
  margin:24px 0;
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.section-heading h2 {
  font-size:19px;
}

.section-heading>a,.text-action {
  font-size:13px;
  color:var(--action-blue);
  background:none;
  padding:10px 0;
  min-height:44px;
}

.local-note {
  margin:2px 0 12px;
}

.recent-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 18px;
}

.recent-row {
  display:flex;
  align-items:center;
  min-width:0;
  border-bottom:1px solid var(--border-blue);
  padding:10px 0;
  gap:4px;
}

.recent-link {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1;
  padding:2px 0;
}

.recent-link img {
  width:58px;
  height:58px;
  object-fit:cover;
  border-radius:10px;
  flex:none;
  background:var(--surface-blue);
}

.recent-link>span {
  min-width:0;
}

.recent-link strong {
  display:block;
  font-size:14px;
  line-height:1.6;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.recent-link small {
  display:block;
  font-size:12px;
  color:var(--text-secondary);
  margin-top:4px;
}

.recent-remove {
  background:none;
  color:var(--text-secondary);
  font-size:22px;
  width:44px;
  height:44px;
  flex:none;
  border-radius:8px;
}

.recent-remove:hover {
  background:var(--surface-red);
  color:var(--danger-text);
}

.recent-empty {
  grid-column:1/-1;
  background:var(--surface-page);
  font-size:14px;
  line-height:1.8;
  padding:22px;
  border-radius:12px;
  color:var(--text-secondary);
}

.history-setting {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--border-blue);
  margin-bottom:8px;
}

.history-setting input {
  width:20px;
  height:20px;
  accent-color:var(--action-blue);
}

.me-utilities {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:28px;
}

.me-utilities a {
  padding:16px;
  background:var(--surface-page);
  border-radius:12px;
  font-size:14px;
}

.me-utilities span {
  display:block;
  margin-top:6px;
  font-size:12px;
  color:var(--text-secondary);
}

.global-search .search-history {
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  background:var(--brand-white);
  border:1px solid var(--border-blue);
  border-radius:16px;
  padding:12px;
  box-shadow:0 12px 28px rgb(0 0 0 / .1);
  z-index:45;
  max-height:60vh;
  overflow:auto;
  color:var(--brand-black);
}

.search-history-head,.search-history-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.search-history-head strong {
  font-size:13px;
}

.global-search .search-history button {
  position:static;
  height:auto;
  min-height:40px;
  width:auto;
  transform:none;
  background:none;
  font-size:13px;
  padding:8px;
  color:var(--text-secondary);
  flex:none;
}

.global-search .search-history-row button:first-child {
  flex:1;
  min-width:0;
  text-align:left;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--brand-black);
}

.global-search .search-history-row button:last-child {
  width:40px;
  font-size:18px;
}

.search-history-row:hover {
  background:var(--surface-blue);
  border-radius:8px;
}

.tool-utility-actions {
  display:flex;
  align-items:center;
  gap:22px;
  margin:20px 0;
  font-size:13px;
  color:var(--action-blue);
}

.note-share {
  min-width:52px;
}

.mobile-nav a {
  max-width:110px;
}

@media(max-width:900px) {
  .global-search .search-history {
    left:12px;
    right:12px;
    top:calc(var(--top) - 3px);
  }
}

@media(max-width:600px) {
  .me-center,.history-center {
    margin:4px 4px 20px;
  }

  .identity-card {
    padding:10px 0 16px;
  }

  .identity-card h1,.history-center h1 {
    font-size:24px;
  }

  .recent-list {
    grid-template-columns:1fr;
  }

  .recent-section {
    margin:20px 0;
  }

  .me-utilities {
    gap:10px;
    margin-top:22px;
  }

  .me-utilities a {
    padding:14px 12px;
  }

  .recent-link img {
    width:54px;
    height:54px;
  }

  .note-actions .secondary {
    padding-left:8px;
    padding-right:8px;
  }
}

.topbar:has(.search-history:not([hidden])) {
  z-index:60;
}

.note-actions .note-save,.actions .note-save {
  border:1px solid var(--brand-red);
  border-radius:999px;
  color:var(--brand-red);
  background:transparent;
  padding:9px 16px;
  min-height:40px;
}

.note-actions .note-save[aria-pressed=true],.actions .note-save[aria-pressed=true] {
  background:#fff1f2;
  color:var(--brand-red);
}

.tool-page-head {
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin:12px 0 24px;
}

.tool-page-head h1 {
  font-size:clamp(20px,3vw,28px);
  margin:0;
}

.tool-page-head a {
  white-space:nowrap;
}

.intro-gallery {
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  gap:12px;
}

.intro-gallery figure {
  flex:0 0 100%;
  margin:0;
  scroll-snap-align:start;
}

.intro-gallery img {
  width:100%;
  max-height:520px;
  object-fit:contain;
}

.feed-more {
  display:block;
  margin:24px auto;
}

.feed-more[hidden] {
  display:none;
}

.saved-visibility {
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 0;
  font-size:14px;
}

.me-app,.personal-page {
  max-width:760px;
  margin:12px auto 32px;
}

.me-titlebar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}

.me-titlebar h1 {
  font-size:24px;
  margin:0;
}

.me-titlebar>a {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  color:var(--brand-black);
}

.me-titlebar svg,.menu-row>svg {
  width:23px;
  height:23px;
}

.profile-entry {
  display:flex;
  gap:16px;
  padding:12px 0 26px;
  color:var(--brand-black);
}

.profile-avatar {
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  background:var(--surface-blue);
  color:var(--action-blue);
  border-radius:22px;
  flex:none;
  font-size:23px;
  font-weight:650;
}

.profile-avatar svg {
  width:29px;
  height:29px;
}

.profile-copy {
  flex:1;
}

.profile-copy strong {
  display:block;
  font-size:21px;
}

.profile-copy small {
  display:block;
  margin-top:7px;
  color:var(--text-secondary);
}

.row-chevron {
  font-size:23px;
  color:var(--text-secondary);
  margin-left:auto;
  font-weight:400;
}

.me-app .recent-section {
  margin:0 0 20px;
  padding:0;
  border-block:1px solid #edf0f2;
}

.me-app .section-heading h2 {
  font-size:17px;
  margin:0;
}

.me-app .recent-list {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:12px;
}

.me-app .recent-row {
  border:0;
  padding:0;
  display:block;
}

.me-app .recent-link {
  display:block;
}

.me-app .recent-link img {
  width:100%;
  height:auto;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:14px;
}

.me-app .recent-link strong {
  font-size:12px;
  line-height:1.5;
  margin-top:8px;
  white-space:normal;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.me-app .recent-link small,.me-app .recent-remove {
  display:none;
}

.me-app .recent-empty {
  background:none;
  padding:12px 0 4px;
  margin:0;
}

.personal-menu {
  border:1px solid #edf0f2;
  border-radius:18px;
  overflow:hidden;
  margin-bottom:18px;
}

.menu-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  color:var(--brand-black);
  min-height:68px;
}

.menu-row+.menu-row {
  border-top:1px solid #f0f2f4;
}

.menu-row>span:not(.row-chevron) {
  min-width:0;
}

.menu-row strong {
  font-size:15px;
  font-weight:600;
}

.menu-row small {
  display:block;
  color:var(--text-secondary);
  margin-top:4px;
}

.menu-row:hover {
  background:var(--surface-page);
}

.personal-page-head {
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:16px;
}

.personal-page-head>a {
  width:40px;
  min-height:44px;
  font-size:32px;
  color:var(--brand-black);
  display:grid;
  place-items:center;
}

.personal-page-head h1 {
  margin:0;
}

.settings-caption {
  font-size:12px;
  color:var(--text-secondary);
  text-align:center;
  margin-top:20px;
}

.help-block h2,.feedback-form h2 {
  font-size:17px;
  margin:0 0 14px;
}

.help-block details {
  border-bottom:1px solid #edf0f2;
  padding:14px 0;
}

.help-block summary {
  cursor:pointer;
  min-height:26px;
}

.help-block p {
  font-size:13px;
  color:var(--text-secondary);
  line-height:1.8;
}

.feedback-form {
  margin-top:32px;
}

.feedback-form label {
  display:block;
  margin:16px 0;
}

.feedback-form select,.feedback-form textarea {
  display:block;
  margin-top:8px;
  width:100%;
  border:1px solid var(--border-blue);
  border-radius:12px;
  padding:12px;
  background:white;
  font:inherit;
  color:var(--brand-black);
}

.feedback-form textarea {
  resize:vertical;
}

.feedback-form>.muted,#feedback-status {
  font-size:12px;
  line-height:1.8;
}

.feedback-form>.button,.feedback-form>.secondary {
  margin:4px 8px 4px 0;
}

.feedback-address {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid #edf0f2;
  padding:12px 0;
  font-size:12px;
  gap:8px;
}

.feedback-address strong {
  display:block;
  font-size:14px;
}

.personal-page #account-access {
  margin-top:0;
}

@media(min-width:901px) {
  .me-app .recent-list {
    gap:20px;
  }

  .me-app .recent-link img {
    max-height:160px;
    object-fit:cover;
  }

  .me-app .recent-link strong {
    font-size:14px;
  }

  .me-app,.personal-page {
    margin-left:0;
  }
}

@media(max-width:600px) {
  .me-app,.personal-page {
    margin-top:8px;
  }

  .me-titlebar {
    margin-bottom:8px;
  }

  .profile-entry {
    padding-bottom:22px;
  }

  .personal-menu {
    border-radius:16px;
  }

  .menu-row {
    padding:16px;
  }

  .me-app .section-heading>a {
    font-size:12px;
  }
}

.coupon-wallet {
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 20px;
  margin:0 0 22px;
  border:1px solid #F1DFB4;
  border-radius:18px;
  background:linear-gradient(120deg,#FFFCF4,#FFF3D3);
  color:#704D12;
  text-decoration:none;
}

.coupon-icon {
  width:60px;
  height:44px;
  flex:none;
}

.coupon-wallet>span:nth-child(2) {
  flex:1;
}

.coupon-wallet strong {
  display:block;
  font-size:16px;
}

.coupon-wallet b {
  font-size:25px;
  margin-left:9px;
  font-variant-numeric:tabular-nums;
}

.coupon-wallet small {
  display:block;
  margin-top:5px;
  font-size:12px;
  color:#8A7145;
}

.phone-code-row {
  display:flex;
  gap:10px;
  align-items:center;
}

.phone-code-row input {
  min-width:0;
  flex:1;
}

.phone-code-row button {
  white-space:nowrap;
}

.phone-consent {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
}

.phone-consent input {
  min-height:0!important;
  width:auto;
}

.usage-cost {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:12px;
  white-space:nowrap;
  color:#725316;
}

.usage-cost small {
  font-size:10px;
  color:#68727B;
}

.guest-prompt {
  border:0;
  border-radius:20px;
  padding:24px;
  max-width:min(400px,calc(100vw - 32px));
  color:#202124;
}

.guest-prompt::backdrop {
  background:#0006;
}

.guest-prompt h2 {
  font-size:20px;
}

.guest-prompt p {
  line-height:1.7;
}

.note-actions {
  flex-wrap:wrap;
}

@media(max-width:600px) {
  .note-actions {
    gap:6px;
    padding:10px 12px;
    flex-wrap:nowrap;
  }

  .note-actions .button {
    white-space:nowrap;
    min-width:82px;
    padding:10px 12px;
  }

  .note-actions .usage-cost {
    flex-wrap:wrap;
    justify-content:center;
    gap:2px;
    width:76px;
    flex:0 0 76px;
  }

  .note-actions .usage-cost small {
    flex-basis:100%;
    text-align:center;
  }
}

.note-actions {
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  flex-wrap:nowrap;
}

.note-actions .secondary {
  padding:8px 12px;
  min-height:38px;
  flex:none;
}

.note-actions #note-action {
  margin-left:auto;
  white-space:nowrap;
  min-width:0;
  padding:12px 18px;
  flex:1;
  text-align:center;
}

.note-actions .usage-cost {
  display:inline-flex;
  flex:0 0 auto;
  width:auto;
  max-width:none;
  gap:3px;
  white-space:nowrap;
  font-size:11px;
  color:#806014;
}

.usage-cost .coupon-icon {
  width:23px;
  height:17px;
  flex:none;
}

.security-dialog {
  border:0;
  border-radius:20px;
  padding:26px;
  width:420px;
  max-width:calc(100vw - 28px);
  max-height:88dvh;
  overflow:auto;
  color:#202124;
}

.security-dialog::backdrop {
  background:#0006;
}

.security-dialog h2 {
  font-size:20px;
  margin:0 28px 8px 0;
}

.security-dialog p {
  font-size:13px;
  line-height:1.6;
  color:#67717b;
}

.security-dialog label {
  display:block;
  font-size:13px;
  margin:14px 0;
}

.security-dialog input:not([type=checkbox]) {
  display:block;
  width:100%;
  min-height:44px;
  border:1px solid #dce3e9;
  border-radius:10px;
  padding:10px;
  margin-top:6px;
}

.security-close {
  position:absolute;
  right:14px;
  top:12px;
  background:transparent;
  font-size:25px;
}

.security-dialog .phone-code-row input {
  width:0;
  flex:1;
}

.security-dialog .button {
  width:100%;
}

.account-panel .menu-row {
  width:100%;
  justify-content:space-between;
  background:transparent;
  text-align:left;
}

.account-panel #logout {
  margin-top:20px;
}

.account-panel .personal-menu {
  margin:20px 0;
}

.phone-code-row button:disabled {
  opacity:.55;
}

@media(max-width:600px) {
  .note-actions {
    gap:5px;
    padding:10px 10px;
  }

  .note-actions .secondary {
    padding:8px 10px;
  }

  .note-actions #note-action {
    padding:11px 10px;
  }

  .note-actions .usage-cost {
    width:auto;
    flex:0 0 auto;
    flex-wrap:nowrap;
    font-size:10px;
  }

  .note-actions .usage-cost .coupon-icon {
    width:20px;
    height:15px;
  }
}

.profile-coupons {
  display:flex;
  gap:6px;
  align-items:center;
  margin-top:10px;
  color:#8a651c;
  font-size:13px;
}

.profile-coupons .coupon-icon {
  width:28px;
  height:20px;
}

.profile-coupons b {
  font-size:21px;
}

.me-app [data-inline-auth] {
  margin:0 0 24px;
}

.me-app [hidden] {
  display:none!important;
}

.profile-copy {
  min-width:0;
}

.profile-entry {
  align-items:center;
}

.auth-tabs button:focus-visible,.auth-links button:focus-visible {
  outline:2px solid var(--brand);
  outline-offset:2px;
}

/* 07 Shared interaction */
:root {
  --ui-line:#edf0f3;
  --ui-muted:#67717c;
  --ui-radius:16px;
  --ui-ease:cubic-bezier(.2,.7,.3,1);
}

body {
  color:var(--brand-black);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

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

a:focus-visible,button:focus-visible,summary:focus-visible {
  outline:2px solid var(--action-blue);
  outline-offset:4px;
}

button,.button,.secondary,.menu-row,.profile-entry {
  transition:background-color .16s var(--ui-ease),color .16s var(--ui-ease),box-shadow .16s var(--ui-ease);
}

button:disabled {
  cursor:not-allowed;
}

.button:active,.secondary:active {
  filter:brightness(.96);
}

.global-search input {
  border:0;
}

.global-search input:focus,.global-search input:focus-visible {
  outline:none;
  box-shadow:none;
}

.card {
  border-radius:16px;
  isolation:isolate;
}

.card-art {
  border-radius:16px;
}

.card-copy h3 {
  font-weight:600;
  letter-spacing:.01em;
}

.favorite-count {
  color:var(--ui-muted);
}

.save {
  touch-action:manipulation;
}

.save:active svg {
  transform:scale(.9);
}

.save svg {
  transition:transform .16s var(--ui-ease);
}

.save:focus-visible {
  outline-offset:-3px;
}

.system-badge {
  font-size:10px;
  line-height:1.45;
  padding:3px 6px;
  border-radius:5px;
  background:rgb(255 255 255 / .92);
}

.feed-end {
  padding:28px 0 36px;
  font-size:12px;
  color:var(--ui-muted);
}

.me-app .me-titlebar {
  margin-bottom:16px;
}

.me-titlebar h1,.history-center h1 {
  font-size:23px;
  letter-spacing:-.02em;
}

.profile-entry {
  padding:14px 0 28px;
}

.profile-copy strong {
  font-size:22px;
  letter-spacing:-.025em;
}

.profile-copy small {
  color:var(--ui-muted);
}

.profile-avatar {
  border-radius:23px;
  background:linear-gradient(145deg,#e9f8ff,#d6f0ff);
  box-shadow:inset 0 0 0 1px rgb(0 175 255 / .06);
}

.me-app .recent-section {
  padding:22px 0 24px;
  margin:0;
  border-top:1px solid var(--ui-line);
}

.me-app .section-heading h2 {
  font-size:16px;
  letter-spacing:.01em;
}

.me-app .section-heading>a {
  color:var(--ui-muted);
}

.me-app .recent-link img {
  border:1px solid rgb(23 23 23 / .04);
}

.personal-menu {
  border:0;
  border-radius:var(--ui-radius);
  background:#f7f9fb;
}

.menu-row {
  padding:18px 16px;
}

.menu-row+.menu-row {
  border-color:#e9edf1;
  margin:0 16px;
  padding-left:0;
  padding-right:0;
}

.menu-row>svg {
  width:21px;
  height:21px;
  color:#39434d;
}

.menu-row strong {
  font-size:14px;
  font-weight:550;
}

.menu-row small {
  color:var(--ui-muted);
  font-size:12px;
}

.row-chevron {
  font-size:20px;
  color:#8b949e;
}

.menu-row:active,.profile-entry:active {
  background:#eef5f9;
}

.recent-row {
  border-color:var(--ui-line);
}

.recent-remove {
  font-size:19px;
  color:#87919c;
}

.history-setting {
  border-color:var(--ui-line);
}

.personal-page #account-access>summary {
  background:none;
  padding:0 0 14px;
  color:var(--ui-muted);
  font-size:13px;
  min-height:0;
}

.account-panel {
  border:1px solid var(--ui-line);
  border-radius:var(--ui-radius);
  box-shadow:0 4px 20px rgb(20 60 90 / .025);
}

.feedback-form textarea:focus,.feedback-form select:focus,.account-panel input:focus {
  outline:2px solid var(--action-blue);
  outline-offset:2px;
}

.feedback-form textarea {
  min-height:150px;
}

.help-block summary {
  padding:4px 0;
  font-weight:500;
}

.settings-caption {
  color:var(--ui-muted);
}

.note-actions {
  border-top:1px solid var(--ui-line);
  box-shadow:0 -4px 18px rgb(20 60 90 / .035);
}

.note-scroll h2 {
  letter-spacing:-.02em;
}

#toast {
  border-radius:12px;
  box-shadow:0 5px 24px rgb(0 0 0 / .14);
  font-size:13px;
  max-width:calc(100vw - 40px);
}

@media(hover:hover) {
  .card-art:hover {
    filter:brightness(.985);
  }

  .menu-row:hover {
    background:#edf4f8;
  }

  .profile-entry:hover {
    background:#fafcfe;
    border-radius:16px;
  }
}

@media(max-width:900px) {
  .mobile-nav {
    box-shadow:0 -1px 0 rgb(0 0 0 / .035);
  }

  .mobile-nav a {
    min-height:48px;
  }

  .me-app,.personal-page {
    padding:0 2px;
  }

  .me-app .recent-list {
    gap:14px;
  }

  .me-app .recent-link strong {
    font-size:12px;
    line-height:1.65;
  }

  .personal-page-head {
    margin-bottom:20px;
  }

  .personal-page-head h1 {
    font-size:21px;
  }
}

@media(prefers-reduced-motion:reduce) {
  button,a,input,select,textarea,.save svg {
    transition:none!important;
  }
}

footer .filing-link {
  white-space:nowrap;
}

/* 08 Gallery and surfaces */
:root {
  --canvas:#fafbfc;
  --paper:#fff;
  --stroke:#e9edf0;
  --text:#222a32;
  --subtext:#69737d;
  --accent:#01a0fe;
  --radius-card:16px;
  --space-unit:4px;
  --motion-fast:150ms;
  --motion-panel:220ms;
  --preview-line:var(--stroke);
  --sidebar:180px;
}

body {
  background:var(--canvas);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}

.topbar {
  background:var(--brand-blue);
  border-bottom:0;
  box-shadow:none;
  backdrop-filter:none;
}

.brand {
  background:none;
  width:116px;
  height:44px;
  border-radius:0;
  display:flex;
  align-items:center;
  overflow:visible;
}

.brand .gallery-brand {
  width:44px;
  height:44px;
  border-radius:11px;
  object-fit:contain;
}

.brand .gallery-brand-name {
  font-size:17px;
  font-weight:700;
  letter-spacing:-.4px;
  color:var(--text);
  white-space:nowrap;
  margin-left:8px;
}

.global-search {
  background:#fff;
  border:1px solid transparent;
  box-shadow:none;
  height:42px;
  max-width:460px;
}

.global-search:focus-within {
  background:#fff;
  border-color:#a5dcfc;
  box-shadow:0 0 0 3px #01a0fe0a;
}

.global-search input:focus {
  outline:0;
  box-shadow:none;
}

.global-search button {
  color:#596b79;
}

.account-entry {
  background:#edf8ff;
  color:var(--brand-blue);
  box-shadow:none;
  font-weight:600;
}

.sidebar {
  background:var(--paper);
  border-right:1px solid var(--stroke);
  padding:24px 16px;
}

.sidebar nav a {
  border-radius:10px;
  font-size:14px;
  font-weight:500;
  margin-bottom:8px;
  color:#68737f;
  min-height:46px;
}

.sidebar nav a[aria-current] {
  background:#eaf7ff;
  color:var(--brand-blue);
  font-weight:650;
}

.sidebar-bottom {
  color:#85909b;
}

main {
  padding-top:24px;
}

.filter-shell,.channel-bar {
  background:var(--canvas);
  border:0;
}

.filter-shell {
  margin-bottom:20px;
}

.filter-row button {
  font-size:14px;
}

.feed-caption {
  display:none;
}

.grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:26px 18px;
  align-items:start;
}

.card {
  position:relative;
  display:flex;
  flex-direction:column;
  aspect-ratio:auto;
  min-height:0;
  border:0;
  border-radius:var(--radius-card);
  overflow:visible;
  background:transparent;
  box-shadow:none;
  transition:transform var(--motion-fast);
}

.card-cover {
  position:relative;
  border-radius:var(--radius-card);
  overflow:hidden;
  isolation:isolate;
  background:#eef4f7;
}

.card-art {
  display:block;
  width:100%;
  aspect-ratio:3/4;
  min-height:0;
  border-radius:var(--radius-card);
  overflow:hidden;
  background:#f2f6f8;
}

.real-cover,.real-cover>img {
  width:100%;
  height:100%;
}

.real-cover>img {
  object-fit:contain;
}

.real-label {
  display:none;
}

.card-copy {
  padding:11px 3px 0;
  min-height:0;
  flex:none;
}

.card-copy h3 {
  height:auto;
  min-height:0;
  font-size:15px;
  line-height:1.45;
  font-weight:650;
  letter-spacing:-.2px;
  margin:0;
}

.card-caption {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:12px;
  line-height:1.65;
  color:var(--subtext);
  margin:5px 0 0;
  min-height:0;
}

.card-cover>.card-meta {
  position:absolute;
  z-index:2;
  top:auto;
  bottom:6px;
  right:4px;
  left:auto;
  width:max-content;
  max-width:95%;
  height:40px;
  min-height:40px;
  display:flex;
  align-items:center;
  gap:3px;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
}

.card-meta .favorite-count {
  font-size:11px;
  line-height:1.3;
  color:#53616b;
  text-align:right;
  margin:0;
  white-space:nowrap;
}

.card-bottom {
  position:static;
  margin:0;
}

.card-meta .save {
  position:static;
  width:40px;
  height:40px;
  padding:10px;
  background:none;
  border:0;
  border-radius:10px;
  color:#d73345;
}

.card-meta .save svg {
  width:20px;
  height:20px;
}

.card-meta .save[aria-pressed=true] svg {
  fill:#d73345;
  stroke:#d73345;
}

.card-art .system-badge {
  top:10px;
  right:10px;
  bottom:auto;
  left:auto;
  font-size:10px;
  background:#ffffffd9;
  color:#53616b;
  padding:3px 6px;
  border-radius:5px;
}

.gallery-art {
  height:100%;
  display:flex;
  flex-direction:column;
  padding:18px 16px 48px;
  position:relative;
  overflow:hidden;
  background:var(--art-bg,#eef7fc);
}

.gallery-art .art-kicker {
  font-size:10px;
  font-weight:650;
  letter-spacing:1px;
  color:var(--art-ink,#42778d);
  text-transform:uppercase;
  flex:none;
}

.gallery-art .art-head {
  font-size:22px;
  font-weight:650;
  letter-spacing:-.5px;
  line-height:1.25;
  margin-top:10px;
  color:#243d4b;
  flex:none;
}

.gallery-art .art-demo {
  position:relative;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:14px 0 0;
}

.gallery-art .art-footnote {
  display:none;
}

.demo-photo {
  position:relative;
  width:65%;
  aspect-ratio:4/3;
  border:5px solid #fff;
  border-radius:9px;
  background:#bbecfa;
  overflow:hidden;
  box-shadow:0 7px 16px #23495912;
}

.demo-photo:before {
  content:"";
  position:absolute;
  width:30px;
  height:30px;
  right:12%;
  top:12%;
  background:#ffd854;
  border-radius:50%;
}

.demo-photo:after {
  content:"";
  position:absolute;
  inset:35% -5% -5%;
  background:#3295ac;
  clip-path:polygon(0 100%,38% 6%,66% 57%,82% 25%,100% 100%);
}

.demo-photo.small {
  width:36%;
  margin-left:-24px;
  margin-top:70px;
  border-width:4px;
  transform:rotate(6deg);
  background:#c8f0fc;
}

.art-demo .flow-arrow {
  font-size:22px;
  color:#008ac7;
  z-index:2;
}

.demo-page {
  width:35%;
  height:110px;
  background:white;
  border-radius:6px;
  border:1px solid #e1dfed;
  box-shadow:0 7px 15px #3b365711;
  display:flex;
  flex-direction:column;
  padding:10px 8px;
  gap:6px;
}

.demo-page:nth-child(2) {
  transform:translateY(-15px);
  z-index:1;
}

.demo-page b {
  font-size:11px;
  color:#8579ab;
}

.demo-page i {
  height:3px;
  background:#e8e8ef;
  width:100%;
}

.demo-page strong {
  font-size:24px;
  margin-top:auto;
  color:#716291;
  text-align:center;
}

.demo-page:last-child {
  transform:rotate(6deg);
}

.demo-text {
  display:flex;
  flex-direction:column;
  width:100%;
  gap:12px;
}

.demo-text>div {
  background:#fff;
  border:1px solid #f0e7e6;
  border-radius:8px;
  padding:13px 10px;
  box-shadow:0 4px 10px #422b2810;
  font-size:12px;
  line-height:1.7;
  color:#5e6b75;
}

.demo-text>div:first-child {
  color:#aa6876;
}

.demo-text em {
  font-style:normal;
  color:#d64960;
}

.demo-text span {
  color:#c47e83;
  text-align:center;
}

.mobile-nav {
  background:#fff!important;
  border-top:1px solid var(--stroke);
  box-shadow:none;
  padding-bottom:env(safe-area-inset-bottom);
}

.mobile-nav a,.mobile-nav a svg {
  color:#7a8590!important;
  background:transparent!important;
}

.mobile-nav a[aria-current],.mobile-nav a[aria-current] svg {
  color:var(--brand-blue)!important;
}

.mobile-nav a {
  font-size:11px;
  gap:4px;
  min-height:52px;
}

.mobile-nav svg {
  width:22px;
  height:22px;
  stroke:currentColor!important;
}

.me-app,.personal-page,.history-center {
  max-width:680px;
  margin-top:0;
}

.profile-entry {
  background:white;
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:20px;
  margin-bottom:24px;
}

.me-app .recent-list {
  background:white;
  border:1px solid var(--stroke);
  border-radius:14px;
}

.personal-menu {
  background:white;
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:0;
}

.recent-empty {
  font-size:13px;
  color:var(--subtext);
}

.menu-row {
  border-color:var(--stroke);
}

.workbench {
  max-width:1040px;
  border:1px solid var(--stroke);
  border-radius:20px;
  padding:24px;
  background:white;
  box-shadow:none;
}

.tool-page-head {
  max-width:1040px;
  align-items:center;
  margin-bottom:22px;
}

.tool-page-head h1 {
  font-size:26px;
  letter-spacing:-.5px;
}

.tool-intro {
  font-size:14px;
  line-height:1.8;
  color:var(--subtext);
  margin-bottom:22px;
}

.upload {
  border:1px dashed #afc8d7;
  background:#f5fafc;
  border-radius:14px;
  padding:28px 20px;
}

.upload input[type=file] {
  max-width:100%;
  font-size:12px;
}

.upload input::file-selector-button {
  background:#01a0fe;
  border:0;
  border-radius:8px;
  padding:12px 16px;
  color:white;
  margin-right:12px;
}

.tool-controls {
  gap:16px;
  margin-top:20px;
}

.tool-controls input,.tool-controls select {
  background:#f8fafb;
  border:1px solid var(--stroke);
  min-height:44px;
  border-radius:9px;
}

.button {
  border-radius:10px;
}

.tool-page-head .secondary {
  font-size:12px;
  background:white;
  border-color:var(--stroke);
}

#note-dialog {
  border-radius:22px;
  background:white;
}

.note-layout {
  background:white;
}

.note-content {
  background:white;
}

.note-media,.gallery {
  background:#f5f7f9;
}

.note-scroll {
  padding:32px;
}

.note-scroll h2 {
  font-size:24px;
  padding-right:30px;
  line-height:1.4;
}

.note-scroll p {
  font-size:14px;
  line-height:1.85;
  color:var(--subtext);
}

.note-scroll .notice {
  background:#f7f9fb;
  border:0;
  border-radius:10px;
  padding:16px;
}

.note-close {
  left:auto;
  right:12px;
  top:12px;
  width:36px;
  height:36px;
  background:#fff;
  color:#53616b;
  border:1px solid var(--stroke);
}

.note-actions {
  background:white;
  border-top:1px solid var(--stroke);
}

.note-full {
  font-size:13px;
}

.gallery-counter {
  font-size:11px;
}

.collection-toolbar {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:22px;
}

.collection-toolbar .sync-wrap {
  margin-left:auto;
}

.collection-toolbar label {
  font-size:13px;
}

.collection-toolbar select {
  background:white;
  border:1px solid var(--stroke);
  border-radius:8px;
  min-height:38px;
}

#filter-panel {
  border:1px solid var(--stroke);
  box-shadow:0 12px 32px #25394c10;
}

#filter-panel .panel-scroll {
  padding:22px;
  display:flex;
  flex-direction:column;
}

#filter-panel .filter-options {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

#filter-panel .filter-options button {
  min-height:42px;
  border-radius:8px;
  font-size:13px;
  background:#f5f7f9;
}

#filter-panel .filter-options button[aria-pressed=true] {
  color:var(--brand-blue);
  background:#eaf7ff;
  border-color:#a8dcfa;
}

footer {
  border:0;
  color:#85919a;
}

@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .card:hover {
    transform:translateY(-3px);
  }

  .card:hover .card-copy h3 {
    color:var(--brand-blue);
  }

  .save:hover {
    background:#ffffff70;
  }

  .button:active {
    transform:scale(.98);
  }
}

@media(min-width:901px) {
  main {
    max-width:1640px;
  }

  .note-layout {
    grid-template-columns:52% 48%;
  }

  .me-app .recent-list {
    gap:16px;
  }
}

@media(min-width:901px) and (max-width:1199px) {
  .grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .gallery-art .art-head {
    font-size:21px;
  }
}

@media(max-width:900px) {
  :root {
    --top:64px;
  }

  .topbar {
    padding:0 16px;
    gap:18px;
  }

  .brand {
    width:88px;
    height:36px;
    flex:0 0 88px;
  }

  .brand .gallery-brand {
    width:40px;
    height:40px;
  }

  .brand .gallery-brand-name {
    display:none;
  }

  .global-search {
    height:38px;
    background:#fff;
  }

  .grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px 10px;
  }

  .card-art,.card-cover {
    border-radius:13px;
  }

  .card-copy {
    padding:9px 2px 0;
  }

  .card-copy h3 {
    font-size:14px;
  }

  .card-caption {
    font-size:12px;
    line-height:1.5;
  }

  .filter-shell {
    margin-bottom:14px;
  }

  .gallery-art {
    padding:16px 12px 44px;
  }

  .gallery-art .art-head {
    font-size:22px;
  }

  .gallery-art .art-demo {
    min-height:86px;
  }

  .gallery-art .art-footnote {
    font-size:9px;
  }

  .demo-page {
    height:94px;
  }

  .gallery-art .art-kicker {
    font-size:9px;
  }

  .demo-text>div {
    font-size:11px;
    padding:10px 7px;
  }

  .me-app {
    padding-top:8px;
  }

  .workbench {
    padding:20px 16px;
  }

  .tool-page-head h1 {
    font-size:23px;
  }

  .note-scroll {
    padding:22px 20px;
  }

  .note-scroll h2 {
    font-size:23px;
  }

  .note-actions .usage-cost {
    font-size:10px;
  }

  #note-dialog,.note-layout {
    border-radius:0;
  }

  .collection-toolbar label {
    font-size:12px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

.gallery-art .art-demo {
  min-height:0;
}

.gallery-art .demo-text {
  gap:5px;
}

.gallery-art .demo-text>div {
  padding:7px 9px;
}

.gallery-art .demo-page {
  height:90px;
}

.gallery-art .demo-page:nth-child(2) {
  transform:translateY(-6px);
}

.gallery-art .demo-photo.small {
  margin-top:40px;
}

@media(max-width:900px) {
  .gallery-art .art-head {
    font-size:20px;
  }

  .gallery-art .art-demo {
    margin-top:12px;
  }

  .gallery-art .demo-page {
    height:80px;
  }

  .gallery-art .demo-text>div {
    font-size:10px;
    padding:5px 7px;
  }

  .gallery-art .demo-text {
    gap:3px;
  }
}

.prose {
  max-width:740px;
  font-size:15px;
  line-height:1.8;
}

.prose h1 {
  font-size:28px;
  line-height:1.4;
  margin:12px 0;
}

.prose h2 {
  font-size:19px;
  margin:28px 0 10px;
}

.prose p {
  margin:12px 0;
  line-height:1.8;
}

.prose .breadcrumb {
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:13px;
}

.intro-gallery {
  margin:18px 0;
  border-radius:12px;
}

.intro-gallery img {
  display:block;
}

.help-block h2,.feedback-form h2 {
  font-size:18px;
}

.help-block summary {
  font-size:14px;
  line-height:1.6;
  min-height:28px;
}

.feedback-form {
  margin-top:24px;
}

.feedback-form label {
  font-size:14px;
  margin:14px 0;
}

.feedback-form select,.feedback-form textarea {
  font-size:16px;
}

.feedback-address {
  flex-wrap:wrap;
}

.tool-controls label {
  font-size:13px;
  line-height:1.6;
}

.tool-controls input,.tool-controls select,.tool-label textarea,.tool-texts textarea {
  font-size:16px;
}

.tool-controls input,.tool-controls select {
  max-width:100%;
  width:100%;
}

.tool-controls label {
  min-width:0;
}

.check-options {
  gap:10px 16px;
}

.check-options label {
  font-size:13px;
  line-height:1.6;
}

.workbench .actions {
  gap:10px;
  flex-wrap:wrap;
}

.workbench .button,.workbench .secondary {
  min-height:44px;
}

.workbench #tool-status {
  font-size:13px;
  line-height:1.7;
  overflow-wrap:anywhere;
}

.section-heading h2 {
  line-height:1.4;
}

.personal-menu .menu-row {
  min-height:64px;
}

.me-app .recent-list:has(.recent-row:only-child) {
  grid-template-columns:1fr;
}

.me-app .recent-row:only-child .recent-link {
  display:flex;
  align-items:center;
  gap:12px;
}

.me-app .recent-row:only-child img {
  width:56px;
  height:56px;
  flex:none;
}

.me-app .recent-row:only-child strong {
  font-size:14px;
  margin:0;
}

.history-center .recent-empty {
  padding:20px 16px;
}

.security-dialog {
  padding:24px;
}

.security-dialog input:not([type=checkbox]) {
  font-size:16px;
}

.security-dialog .phone-consent {
  display:flex;
  align-items:center;
  gap:8px;
}

.sync-menu {
  max-width:calc(100vw - 32px);
}

@media(min-width:901px) {
  .personal-page,.me-app,.history-center {
    margin-left:auto;
    margin-right:auto;
  }

  .auth-panel {
    width:100%;
    max-width:480px;
  }

  .me-app .auth-panel {
    margin-left:0;
  }

  .prose {
    margin-left:auto;
    margin-right:auto;
  }

  .tool-controls {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,220px));
  }
}

@media(max-width:900px) {
  main {
    padding-top:16px;
  }

  .me-app,.personal-page,.history-center {
    margin-top:0;
    padding-top:0;
  }

  .personal-page-head {
    margin-bottom:14px;
  }

  .personal-page-head h1 {
    font-size:22px;
  }

  .tool-page-head {
    margin-top:0;
    margin-bottom:16px;
    gap:10px;
    flex-wrap:wrap;
  }

  .tool-page-head h1 {
    font-size:22px;
    line-height:1.4;
  }

  .tool-page-head .secondary {
    min-height:40px;
  }

  .prose {
    font-size:14px;
    padding:0 4px;
  }

  .prose h1 {
    font-size:24px;
    margin:8px 0;
  }

  .prose h2 {
    font-size:18px;
    margin-top:24px;
  }

  .intro-gallery {
    margin:14px 0;
  }

  .prose p {
    font-size:14px;
  }

  .tool-controls {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 12px;
  }

  .tool-controls label {
    width:auto;
    max-width:none;
  }

  .workbench {
    padding:18px 16px;
  }

  .upload {
    padding:20px 16px;
  }

  .note-scroll {
    padding:20px 18px;
  }

  .note-scroll p {
    font-size:14px;
    line-height:1.8;
  }

  .note-scroll h2 {
    font-size:22px;
  }

  .me-app .section-heading h2 {
    font-size:18px;
  }

  .section-heading {
    gap:10px;
  }

  .feedback-form textarea {
    min-height:128px;
  }

  .collection-toolbar {
    gap:8px;
    row-gap:10px;
  }

  .collection-toolbar .sync-toggle {
    min-height:44px;
  }

  .personal-menu .menu-row {
    padding:14px 16px;
  }

  .settings-caption {
    margin-top:18px;
  }
}

#filter-panel .filter-group {
  margin:0;
  padding:0;
  border:0;
  min-width:0;
}

#filter-panel legend {
  margin:0 0 10px;
  padding:0;
  font-size:13px;
  line-height:1.5;
}

#filter-panel .panel-scroll {
  gap:20px;
}

.global-search {
  min-width:0;
}

.global-search input {
  width:0;
  min-width:0;
}

.global-search button {
  flex-shrink:0;
}

@media(max-width:900px) {
  .global-search {
    position:static;
    left:auto;
    transform:none;
    flex:1 1 0;
    width:0;
    min-width:0;
  }

  .topbar {
    padding-left:14px;
    padding-right:14px;
  }
}

/* 09 Authentication */
.me-app .auth-panel,.personal-page .auth-panel {
  padding:12px 4px;
  margin:0 0 16px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  max-width:480px;
}

.auth-panel .auth-welcome {
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 20px;
}

.auth-panel .auth-welcome img {
  width:44px;
  height:44px;
  object-fit:contain;
  flex:none;
}

.auth-panel .auth-welcome h2 {
  font-size:21px;
  font-weight:650;
  line-height:1.4;
  letter-spacing:-.4px;
  margin:0;
  color:#20252a;
}

.auth-panel .auth-welcome p {
  font-size:13px;
  color:#69737d;
  line-height:1.5;
  margin:4px 0 0;
}

.auth-panel .auth-tabs {
  display:flex;
  gap:0;
  border-bottom:1px solid #edf0f3;
  margin:0 0 18px;
}

.auth-panel .auth-tabs button {
  position:relative;
  flex:1;
  background:none;
  border:0;
  padding:9px 0 12px;
  font:inherit;
  font-size:15px;
  color:#89909a;
  cursor:pointer;
}

.auth-panel .auth-tabs button.active {
  color:#01a0fe;
  font-weight:600;
}

.auth-panel .auth-tabs button.active:after {
  content:"";
  position:absolute;
  width:28px;
  height:3px;
  background:#01a0fe;
  border-radius:3px;
  bottom:-1px;
  left:calc(50% - 14px);
}

.auth-panel #email-form {
  display:grid;
  gap:12px;
  margin:0;
  max-width:none;
}

.auth-panel #email-form>label {
  display:block;
  margin:0;
  font-size:13px;
  font-weight:500;
  line-height:18px;
  color:#505962;
}

.auth-panel #email-form input:not([type=checkbox]) {
  display:block;
  box-sizing:border-box;
  width:100%;
  height:44px;
  min-height:44px;
  margin:6px 0 0;
  padding:10px 12px;
  background:#f7f9fb;
  border:1px solid #e8edf1;
  border-radius:10px;
  font:inherit;
  font-size:16px;
  color:#242a30;
  box-shadow:none;
  transition:border-color .15s,background .15s;
}

.auth-panel #email-form input::placeholder {
  font-size:13px;
  color:#7a8590;
}

.auth-panel #email-form input:focus {
  outline:0;
  border-color:#01a0fe;
  background:#fff;
  box-shadow:0 0 0 3px #01a0fe12;
}

.auth-panel .phone-code-row {
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:6px;
}

.auth-panel #email-form .phone-code-row input {
  margin:0;
  min-width:0;
  flex:1;
}

.auth-panel #email-send {
  border:0;
  border-radius:10px;
  background:#edf8ff;
  color:#01a0fe;
  height:44px;
  padding:0 12px;
  font-size:12px;
  min-width:96px;
}

.auth-panel #email-form .phone-consent {
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  font-size:11px;
  color:#737c86;
  font-weight:400;
  line-height:18px;
  margin:0;
}

.auth-panel .phone-consent input {
  appearance:auto;
  width:14px;
  height:14px;
  margin:0 2px 0 0;
  accent-color:#01a0fe;
  flex:none;
}

.auth-panel .phone-consent a {
  color:#566574;
}

.auth-panel .auth-note {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0;
  font-size:10px;
  line-height:20px;
  color:#9a9284;
}

.auth-panel .auth-gift {
  font-size:11px;
  color:#9a731c;
  background:#fff8e6;
  border-radius:5px;
  padding:1px 6px;
}

.auth-panel #account-status {
  margin:0;
  font-size:12px;
  line-height:1.5;
  color:#b84747;
}

.auth-panel #account-status:empty {
  display:none;
}

.auth-panel #email-form>.button {
  width:100%;
  height:44px;
  min-height:44px;
  padding:0 12px;
  margin:0;
  border-radius:11px;
  font-size:14px;
  font-weight:600;
  background:#01a0fe;
  color:#fff;
  box-shadow:0 4px 10px #01a0fe16;
}

.auth-panel .auth-links {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:14px 0 0;
  font-size:12px;
}

.auth-panel .auth-links button {
  background:none;
  border:0;
  padding:0;
  font:inherit;
  color:#7a8591;
  cursor:pointer;
}

.auth-panel .auth-links a {
  color:#01a0fe;
}

.auth-panel button:focus-visible,.auth-panel a:focus-visible {
  outline:2px solid #01a0fe;
  outline-offset:3px;
}

@media(max-width:600px) {
  .me-app .auth-panel {
    padding:8px 4px;
    margin-top:0;
  }

  .auth-panel .auth-welcome {
    margin-bottom:14px;
  }

  .auth-panel .auth-welcome h2 {
    font-size:20px;
  }

  .auth-panel .auth-tabs {
    margin-bottom:14px;
  }

  .auth-panel #email-form {
    gap:10px;
  }

  .auth-panel .auth-links {
    margin-top:12px;
  }
}

.avatar-options {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:20px 0;
}

.avatar-options button {
  padding:4px;
  border:1px solid #e5eaf0;
  border-radius:18px;
  background:#fff;
}

.avatar-options button:hover {
  border-color:var(--brand,#01a0fe);
}

.avatar-options img,#profile-avatar img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.guest-bonus {
  font-weight:600;
  color:#01a0fe;
  background:#eaf7ff;
  border:0;
  border-radius:12px;
  padding:12px 16px;
  width:100%;
  margin-top:12px;
}

.username-status {
  display:block;
  font-size:12px;
  line-height:1.5;
  margin-top:5px;
  color:#55616d;
}

.username-status:empty {
  display:none;
}

.username-status.is-error {
  color:#c43c43;
}

/* 10 Content layout */
:root {
  --ui-font:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
}

body,input,textarea,select,button {
  font-family:var(--ui-font);
}

.card-title-row {
  display:flex;
  align-items:flex-start;
  gap:4px;
  min-width:0;
}

.card-title-row h3 {
  flex:1;
  min-width:0;
  overflow:hidden;
  display:block;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.card-title-row .card-meta {
  position:static;
  flex:none;
  display:flex;
  align-items:center;
  gap:2px;
  height:24px;
  min-height:24px;
  width:auto;
  margin:0;
  padding:0;
  background:transparent;
}

.card-title-row .card-meta .save {
  width:24px;
  height:24px;
  padding:3px;
  border-radius:0;
}

.card-title-row .card-meta .save svg {
  width:18px;
  height:18px;
}

.card-title-row .favorite-count {
  font-size:11px;
  line-height:24px;
  white-space:nowrap;
}

.personal-menu .menu-row,.account-panel .personal-menu .menu-row {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  text-align:left;
  font-family:var(--ui-font);
}

.personal-menu .menu-row>svg {
  width:22px;
  height:22px;
  flex:0 0 22px;
}

.personal-menu .menu-row>span:not(.row-chevron) {
  min-width:0;
  flex:1;
}

.account-panel .personal-menu .menu-row>span {
  flex:none;
  margin-left:auto;
}

.personal-menu .menu-row .row-chevron {
  margin-left:auto;
  flex:none;
}

.password-field {
  position:relative;
  display:block;
  width:100%;
}

.password-field input::-ms-reveal,.password-field input::-ms-clear {
  display:none;
}

.auth-panel #email-form .password-field input,.security-dialog .password-field input {
  padding-right:44px;
}

.password-toggle {
  position:absolute;
  right:2px;
  top:2px;
  bottom:2px;
  width:40px;
  border:0;
  background:transparent;
  color:#87939d;
  display:grid;
  place-items:center;
  padding:10px;
}

.password-toggle svg {
  width:20px;
  height:20px;
}

.password-toggle[aria-pressed=true] {
  color:#01a0fe;
}

.export-confirm {
  border:0;
  border-radius:18px;
  width:320px;
  max-width:calc(100vw - 36px);
  padding:22px;
  color:#222a32;
  box-shadow:0 16px 50px #0002;
}

.export-confirm::backdrop {
  background:#17212b55;
}

.export-confirm h2 {
  font-size:18px;
  margin:0 0 12px;
}

.export-confirm p {
  display:flex;
  align-items:center;
  gap:4px;
  font-size:14px;
  margin:0 0 8px;
}

.export-confirm .coupon-icon {
  width:24px;
  height:18px;
}

.export-confirm small {
  font-size:12px;
  color:#69737d;
  line-height:1.6;
}

.export-confirm .actions {
  display:flex;
  gap:10px;
  margin-top:18px;
}

.export-confirm .actions button {
  flex:1;
  min-height:42px;
  padding:8px;
}

.card-copy .card-caption {
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  -webkit-line-clamp:unset;
}

.me-app .profile-entry {
  margin-bottom:10px;
}

.coupon-rewards {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  padding:14px 16px;
  border:1px solid #f1e5c6;
  background:#fffbef;
  border-radius:14px;
  margin:0 0 24px;
}

.coupon-rewards[hidden] {
  display:none;
}

.reward-copy {
  flex:1;
  min-width:0;
}

.reward-copy strong {
  display:block;
  font-size:14px;
  color:#665020;
}

.reward-copy small {
  display:block;
  color:#8b7850;
  margin-top:4px;
}

.reward-claim {
  flex:none;
  min-height:40px;
  padding:8px 14px;
  border:0;
  border-radius:10px;
  color:#5e4311;
  font-size:13px;
  font-weight:600;
}

.reward-claim:disabled {
  background:#f3eddf;
  color:#958669;
  cursor:default;
}

#reward-status {
  flex-basis:100%;
  margin:0;
  font-size:12px;
  color:#aa4343;
}

#reward-status:empty {
  display:none;
}

.personal-page .account-panel:not(.auth-panel) {
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
  margin-top:20px;
}

.account-identity {
  padding:0 16px 20px;
}

.account-identity h2 {
  font-size:20px;
  margin:0 0 6px;
}

.account-identity p {
  font-size:13px;
  color:#69737d;
  margin:0;
}

.account-panel .personal-menu {
  margin:0;
  background:#fff;
  border:1px solid #e7ecf0;
  border-radius:16px;
  overflow:hidden;
  padding:0 16px;
}

.account-panel .personal-menu .menu-row {
  padding:18px 0;
  margin:0;
  min-height:58px;
  width:100%;
  border-radius:0;
  font-size:14px;
  text-align:left;
}

.account-panel .personal-menu .menu-row:last-child {
  border-bottom:0;
}

.account-panel #logout {
  display:block;
  width:100%;
  margin:20px 0 0;
  min-height:46px;
  background:#fff;
  border-color:#e7ecf0;
  border-radius:14px;
}

.account-panel #account-status:empty {
  display:none;
}

#filter-panel .saved-visibility {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0 0;
  border-top:1px solid #edf0f3;
  margin-top:20px;
  font-size:14px;
}

#saved-filter {
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:44px;
  padding:0;
  border:0;
  background:transparent;
  border-radius:8px;
}

#saved-filter>span {
  display:block;
  position:relative;
  width:38px;
  height:22px;
  border-radius:20px;
  background:#c6ced5;
  transition:background .16s;
}

#saved-filter>span:after {
  content:'';
  position:absolute;
  left:3px;
  top:3px;
  width:16px;
  height:16px;
  background:#fff;
  border-radius:50%;
  box-shadow:0 1px 3px #0002;
  transition:transform .16s;
}

#saved-filter[aria-checked=true]>span {
  background:var(--brand-blue);
}

#saved-filter[aria-checked=true]>span:after {
  transform:translateX(16px);
}

.tool-support {
  max-width:860px;
  margin:28px auto 12px;
  border-top:1px solid #e7ecf0;
  padding-top:18px;
  color:#53616e;
  font-size:14px;
  line-height:1.75;
}

.tool-support h2 {
  font-size:17px;
  color:#202a33;
  margin:0 0 8px;
}

.tool-support p {
  margin:8px 0 16px;
}

.tool-support summary {
  cursor:pointer;
  padding:10px 0;
  font-weight:600;
}

.tool-related {
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin-top:16px;
}

.tool-related a {
  color:var(--brand-blue);
}

@media(prefers-reduced-motion:reduce) {
  #saved-filter>span,#saved-filter>span:after {
    transition:none;
  }
}

.reward-heading {
  display:flex;
  align-items:center;
  gap:6px;
}

.reward-info {
  position:relative;
  margin:0;
  border:0;
  padding:0;
}

.reward-info summary {
  display:flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  padding:0;
  cursor:pointer;
  list-style:none;
  color:#8b7850;
  font:600 11px/1 sans-serif;
}

.reward-info summary::-webkit-details-marker {
  display:none;
}

.reward-info summary::before {
  content:"";
  position:absolute;
  width:14px;
  height:14px;
  border:1px solid currentColor;
  border-radius:50%;
}

.reward-info summary:focus-visible {
  outline:2px solid var(--brand,#01a0fe);
  outline-offset:2px;
  border-radius:50%;
}

.reward-info p {
  position:absolute;
  z-index:5;
  left:-80px;
  top:28px;
  width:200px;
  margin:0;
  padding:10px 12px;
  background:#fff;
  border:1px solid #eee5d2;
  border-radius:10px;
  box-shadow:0 4px 16px #33260012;
  color:#665020;
  font-size:12px;
  line-height:1.5;
}

/* 11 Navigation and profile refinements */
.ui-icon {
  display:block;
  width:20px;
  height:20px;
  flex:none;
}

footer {
  font-size:11px;
  line-height:1.8;
  gap:6px 14px;
  flex-wrap:wrap;
}

footer a {
  display:inline-flex;
  align-items:center;
  min-height:28px;
}

.row-chevron {
  display:flex;
  align-items:center;
}

.row-chevron .ui-icon {
  width:16px;
  height:16px;
}

.note-close,.security-close,.recent-remove {
  display:grid;
  place-items:center;
}

.me-app,.history-center,.personal-page {
  max-width:680px;
  margin:8px auto 28px;
  color:#242b33;
}

.me-app .profile-entry {
  display:flex;
  align-items:center;
  gap:16px;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:16px 4px 22px;
  margin:0;
}

.profile-entry .profile-avatar {
  width:72px;
  height:72px;
  border-radius:50%;
  overflow:hidden;
  padding:0;
  border:3px solid #fff;
  background:#edf7fc;
  box-shadow:0 2px 8px #2135470a;
  cursor:pointer;
  flex:none;
}

.profile-avatar img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
}

.profile-entry .profile-copy {
  min-width:0;
  flex:1;
  color:inherit;
}

.profile-copy strong {
  font-size:23px;
  line-height:1.4;
  font-weight:650;
  letter-spacing:0;
  overflow-wrap:anywhere;
}

.profile-copy small {
  font-size:12px;
  line-height:1.6;
  margin-top:5px;
  color:#78838e;
}

.profile-settings {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  color:#65717c;
  flex:none;
  border-radius:12px;
}

.profile-settings svg {
  width:21px;
  height:21px;
}

.me-app .coupon-rewards {
  position:relative;
  margin:0 0 24px;
  padding:18px 20px;
  border:1px solid #f0e4c5;
  border-radius:18px;
  background:#fffaf0;
  gap:12px;
}

.balance-label {
  display:block;
  font-size:12px;
  color:#84704c;
  line-height:1.5;
}

.coupon-rewards .profile-coupons {
  display:flex;
  align-items:center;
  gap:7px;
  margin:4px 0 8px;
  color:#80591d;
}

.profile-coupons b {
  font-size:30px;
  line-height:1.2;
  font-weight:650;
  font-variant-numeric:tabular-nums;
}

.profile-coupons .coupon-icon {
  width:27px;
  height:21px;
}

.reward-heading {
  gap:4px;
}

.reward-copy .reward-heading strong {
  font-size:12px;
  font-weight:500;
  color:#88744d;
}

.reward-info summary {
  width:28px;
  height:28px;
}

.reward-info summary::before {
  display:none;
}

.reward-info .ui-icon {
  width:15px;
  height:15px;
}

.reward-copy small {
  font-size:12px;
  color:#88744d;
  margin:0;
  line-height:1.5;
}

.reward-claim {
  min-height:42px;
  border-radius:12px;
  padding:10px 18px;
  background:#ffd43b;
  color:#62491d;
  font-size:14px;
  box-shadow:none;
}

.me-app .recent-section {
  margin:0 0 22px;
  padding:0;
  border:0;
}

.section-heading {
  gap:12px;
  margin:0 0 10px;
}

.section-heading h2 {
  font-size:17px;
  font-weight:650;
  line-height:1.5;
  margin:0;
}

.section-heading>a {
  display:inline-flex;
  align-items:center;
  gap:2px;
  font-size:12px;
  min-height:36px;
  color:#7b8791;
  padding:0;
}

.section-heading>a .ui-icon {
  width:14px;
  height:14px;
}

.me-app .recent-list {
  margin:0;
  padding:12px;
  border:1px solid #e9edf1;
  border-radius:16px;
  background:#fff;
  gap:12px;
}

.me-app .recent-row:only-child .recent-link img {
  width:52px;
  height:52px;
  border-radius:12px;
}

.me-app .recent-link strong {
  font-size:13px;
  font-weight:550;
  line-height:1.6;
}

.personal-menu {
  background:#fff;
  border:1px solid #e9edf1;
  border-radius:16px;
  margin-bottom:16px;
  box-shadow:none;
}

.personal-menu .menu-row,.account-panel .personal-menu .menu-row {
  padding:16px;
  margin:0;
  min-height:64px;
  gap:12px;
  border-radius:0;
  width:100%;
  font-size:14px;
}

.personal-menu .menu-row+.menu-row {
  border-top:1px solid #edf0f3;
}

.personal-menu .menu-row strong {
  font-size:14px;
  font-weight:550;
  line-height:1.5;
}

.personal-menu .menu-row small {
  font-size:12px;
  color:#828b94;
  line-height:1.5;
  margin-top:3px;
}

.personal-menu .menu-row>svg {
  width:20px;
  height:20px;
  flex-basis:20px;
  color:#65717c;
}

.account-panel .personal-menu {
  padding:0;
}

.account-panel .menu-row span .ui-icon {
  width:16px;
  height:16px;
  color:#8a959e;
}

.personal-page-head {
  margin:0 0 18px;
  gap:6px;
}

.personal-page-head>a {
  width:36px;
  min-height:40px;
}

.personal-page-head h1 {
  font-size:22px;
  line-height:1.4;
  font-weight:650;
}

.history-back {
  display:inline-flex;
  align-items:center;
  gap:3px;
  min-height:40px;
  color:#79848e;
  font-size:13px;
  margin-bottom:8px;
}

.history-back .ui-icon {
  width:17px;
  height:17px;
}

.history-center .section-heading {
  margin-bottom:8px;
}

.history-center h1 {
  font-size:23px;
  font-weight:650;
  line-height:1.4;
  margin:0;
}

.history-center .local-note {
  font-size:12px;
  line-height:1.7;
  color:#818b95;
  margin:0 0 16px;
}

.history-setting {
  min-height:56px;
  padding:10px 14px;
  background:#fff;
  border:1px solid #e9edf1;
  border-radius:12px;
  margin:0 0 16px;
  font-size:14px;
}

.history-setting .ui-switch {
  appearance:none;
  position:relative;
  flex:none;
  width:40px;
  height:24px;
  border:0;
  border-radius:20px;
  background:#cbd2d8;
  margin:0;
  cursor:pointer;
  transition:background .15s;
}

.ui-switch:before {
  content:'';
  position:absolute;
  width:18px;
  height:18px;
  top:3px;
  left:3px;
  background:#fff;
  border-radius:50%;
  box-shadow:0 1px 3px #0002;
  transition:transform .15s;
}

.history-setting .ui-switch:checked {
  background:var(--brand-blue,#01a0fe);
}

.ui-switch:checked:before {
  transform:translateX(16px);
}

.history-center .recent-list {
  display:block;
}

.history-center .recent-row {
  padding:12px 0;
  border-color:#edf0f3;
}

.history-center .recent-link strong {
  font-size:14px;
  font-weight:550;
}

.history-center .recent-link small {
  font-size:12px;
  color:#89929b;
}

.recent-remove {
  width:40px;
  height:40px;
}

.recent-remove .ui-icon {
  width:17px;
  height:17px;
}

.profile-avatar:focus-visible,.profile-settings:focus-visible,.ui-switch:focus-visible {
  outline:2px solid var(--brand-blue);
  outline-offset:3px;
}

.avatar-dialog {
  width:360px;
  padding:24px;
}

.avatar-dialog h2 {
  font-size:19px;
  line-height:1.5;
  font-weight:600;
}

.avatar-dialog .security-close {
  width:36px;
  height:36px;
  right:12px;
  top:16px;
  padding:9px;
}

.avatar-options {
  gap:12px;
  margin:22px 0 8px;
}

.avatar-options button {
  aspect-ratio:1;
  border-radius:50%;
  padding:3px;
  border:2px solid transparent;
  background:#f3f6f8;
  overflow:hidden;
}

.avatar-options button[aria-pressed=true] {
  border-color:var(--brand-blue);
  background:#e8f6ff;
}

.avatar-options img {
  border-radius:50%;
  object-fit:cover;
}

.avatar-dialog p:empty {
  display:none;
}

.export-confirm p {
  line-height:1.7;
  color:#74808b;
}

@media(hover:hover) {
  .profile-settings:hover,.recent-remove:hover {
    background:#edf2f6;
  }

  .profile-avatar:hover {
    box-shadow:0 0 0 2px var(--brand-blue);
  }
}

@media(max-width:600px) {
  .me-app,.history-center,.personal-page {
    margin:4px 4px 24px;
  }

  .me-app .profile-entry {
    padding:12px 2px 20px;
  }

  .profile-copy strong {
    font-size:22px;
  }

  .me-app .coupon-rewards {
    padding:16px;
    margin-bottom:22px;
  }

  .profile-entry .profile-avatar {
    width:66px;
    height:66px;
  }

  .reward-claim {
    padding:10px 14px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .ui-switch,.ui-switch:before {
    transition:none;
  }
}

:root {
  --canvas:#fff;
  --surface-page:#fafafa;
}

body,main {
  background:#fff;
}

.identity-wallet {
  flex:none;
  text-align:right;
}

.identity-wallet .profile-coupons {
  justify-content:flex-end;
  margin:2px 0 0;
}

.identity-wallet .profile-coupons b {
  font-size:23px;
}

.me-app .coupon-rewards {
  padding:9px 14px;
  margin-bottom:20px;
}

.coupon-rewards .reward-heading {
  height:23px;
}

.results-title {
  font-size:21px;
  line-height:1.4;
  margin:12px 0;
}

.notice-entry {
  display:grid;
  place-items:center;
  color:white;
  width:40px;
  height:40px;
  flex:none;
  border-radius:50%;
}

.notice-entry svg {
  width:22px;
  height:22px;
}

.notice-empty {
  padding:48px 12px;
  text-align:center;
  color:#707780;
}

.notice-empty p {
  font-size:13px;
}

.mobile-nav a[aria-current=page] .nav-shell {
  fill:var(--brand-blue);
  stroke:var(--brand-blue);
}

.mobile-nav a[aria-current=page] .nav-cut {
  stroke:white;
}

.collection-toolbar {
  border:0;
  gap:8px;
}

.collection-toolbar label select {
  appearance:none;
  padding:8px 24px 8px 13px;
  border:0;
  border-radius:20px;
  background:#f3f3f3;
  color:#30353b;
  min-height:36px;
  font:inherit;
  font-size:13px;
}

.collection-toolbar label {
  position:relative;
}

.collection-toolbar label:after {
  content:'';
  pointer-events:none;
  position:absolute;
  right:10px;
  top:45%;
  width:5px;
  height:5px;
  border:solid #71767b;
  border-width:0 1.5px 1.5px 0;
  transform:rotate(45deg);
}

.collection-toolbar .sync-toggle {
  color:#525960;
  font-size:13px;
}

.collection-toolbar~.empty {
  background:#fafafa;
}

@media(min-width:901px) {
  .topbar .notice-entry {
    margin-left:auto;
  }

  .topbar .account-entry {
    margin-left:4px;
  }
}

@media(max-width:900px) {
  .topbar:has(.notice-entry) {
    display:flex;
    align-items:center;
    gap:8px;
  }

  .topbar .notice-entry {
    width:36px;
  }

  body:has(#saved-grid)>footer {
    display:none;
  }
}

main:has(.section-label .results-title),main:has(.library-head) {
  padding-top:12px;
}

.section-label:has(.results-title) {
  padding:0 3px;
  margin:0 0 12px;
  min-height:30px;
}

.section-label .results-title {
  margin:0;
}

.home-footer {
  justify-content:center;
  align-items:center;
  padding:6px 0;
  margin-top:12px;
  gap:12px;
}

.library-head,.library-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.library-head h1 {
  font-size:22px;
  margin:0;
  line-height:1.4;
}

.library-head .sync-wrap {
  margin-left:auto;
}

.library-controls {
  position:relative;
  border-bottom:1px solid #ededed;
  margin:10px 0 6px;
}

.library-controls fieldset {
  border:0;
  margin:0;
  padding:0;
}

.library-sort {
  display:flex;
  gap:20px;
}

.library-controls label {
  position:relative;
  cursor:pointer;
}

.library-controls input {
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
}

.library-controls label span {
  display:block;
  padding:10px 0;
  color:#65717b;
  font-size:14px;
}

.library-sort input:checked+span {
  color:#191e23;
  box-shadow:inset 0 -2px var(--brand-blue);
  font-weight:600;
}

.library-controls input:focus-visible+span {
  outline:2px solid var(--brand-blue);
}

.library-filter summary {
  cursor:pointer;
  list-style:none;
  font-size:13px;
  padding:10px 0;
}

.library-filter summary:before {
  content:'☰';
  margin-right:5px;
}

.library-filter fieldset {
  position:absolute;
  right:0;
  top:100%;
  width:160px;
  background:white;
  border:1px solid #eee;
  border-radius:10px;
  padding:12px;
  z-index:5;
  box-shadow:0 8px 22px #0001;
}

.library-filter legend {
  position:absolute;
  clip-path:inset(50%);
}

.library-filter input:checked+span {
  color:var(--brand-blue);
  font-weight:600;
}

#saved-empty {
  background:transparent;
  border:0;
  padding:40px 12px;
}

.library-mark {
  width:52px;
  height:52px;
  margin-bottom:10px;
}

#saved-grid {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));
  gap:0 20px;
}

#saved-grid .card {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid #eee;
  border-radius:0;
}

#saved-grid .card[hidden] {
  display:none;
}

#saved-grid .card-cover {
  width:60px;
  flex:none;
}

#saved-grid .card-art {
  aspect-ratio:1;
  height:60px;
  border-radius:9px;
}

#saved-grid .card-copy {
  min-width:0;
  flex:1;
}

.notice-entry {
  position:relative;
}

.notice-entry svg {
  width:26px;
  height:26px;
}

.notice-entry.has-unread:after,.notice-story.unread strong:before {
  content:'';
  background:#ea4549;
  border-radius:50%;
  width:7px;
  height:7px;
}

.notice-entry.has-unread:after {
  position:absolute;
  top:5px;
  right:4px;
  outline:2px solid var(--brand-blue);
}

#read-all {
  border:0;
  background:transparent;
  color:var(--brand-blue);
  font-size:13px;
  min-height:40px;
}

#read-all:disabled {
  color:#88929b;
}

.notice-story {
  display:block;
  padding:20px 0;
  border-bottom:1px solid #eee;
  color:inherit;
}

.notice-story strong {
  display:flex;
  align-items:center;
  gap:8px;
}

.notice-story p {
  font-size:14px;
  color:#646e78;
  line-height:1.7;
}

.notice-story span {
  color:var(--brand-blue);
  font-size:13px;
}

@media(max-width:900px) {
  body:has(>.home-footer) {
    padding-bottom:calc(70px + env(safe-area-inset-bottom));
  }
}

[data-notice-link].has-unread svg {
  overflow:visible;
}

[data-notice-link].has-unread {
  position:relative;
}

[data-notice-link].has-unread:after {
  content:"";
  position:absolute;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#ea4549;
  pointer-events:none;
}

.sidebar [data-notice-link].has-unread:after {
  top:calc(50% - 12px);
  left:32px;
}

.mobile-nav [data-notice-link].has-unread:after {
  top:calc(50% - 20px);
  left:calc(50% + 8px);
}

.mobile-nav {
  grid-template-columns:repeat(4,minmax(0,1fr));
}

@media(max-width:900px) {
  .topbar {
    display:flex;
    align-items:center;
    gap:12px;
  }

  .topbar .brand {
    flex:none;
  }

  .topbar .global-search {
    flex:1;
    min-width:0;
    margin:0;
    max-width:none;
  }
}

@media(min-width:901px) {
  .topbar .global-search {
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    width:min(460px,45vw);
    margin:0;
  }
}

.sidebar-legal {
  margin:12px 8px 0;
  padding:12px 0 0;
  border-top:1px solid #e7e7e7;
}

.sidebar-bottom .sidebar-legal a {
  display:block;
  width:fit-content;
  max-width:100%;
  margin:0;
  padding:2px 0;
  border-radius:0;
  font:400 12px/1.65 var(--ui-font);
  color:#62666b;
  overflow-wrap:anywhere;
}

.sidebar-bottom .sidebar-legal a:hover {
  text-decoration:underline;
}

.home-footer .filing-link {
  flex-basis:100%;
  justify-content:center;
  text-align:center;
}

.tool-support {
  margin-inline:0;
}

.related-caption {
  margin-bottom:4px!important;
}

.tool-directory {
  max-width:960px;
}

.tool-directory section {
  margin-block:18px;
}

.tool-directory h2 {
  font-size:16px;
}

.tool-directory a {
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:10px 0;
  border-bottom:1px solid #eee;
}

.tool-directory a span {
  color:#646d76;
  font-size:13px;
}

.menu-row[data-notice-link].has-unread strong:after {
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#e84949;
  vertical-align:top;
  margin-left:4px;
}

.finder-layout {
  max-width:1240px;
  margin:0 auto;
  padding:6px 8px 32px;
}

.finder-head,.finder-results section>header {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
}

.finder-head {
  padding:0 0 18px;
  border-bottom:1px solid var(--stroke);
}

.finder-head h1 {
  margin:0;
  font-size:27px;
  letter-spacing:-.04em;
}

.finder-head>span,.finder-results header>span {
  font-size:12px;
  color:var(--text-secondary);
}

.finder-body {
  display:grid;
  grid-template-columns:156px minmax(0,1fr);
  gap:32px;
  padding-top:20px;
}

.finder-body nav {
  display:grid;
  align-content:start;
  gap:3px;
}

.finder-body nav a {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0 12px;
  color:var(--text-secondary);
  border-radius:8px;
  font-size:14px;
}

.finder-body nav svg {
  width:19px;
  height:19px;
  flex:none;
}

.finder-body nav [aria-current] {
  background:var(--surface-blue);
  color:var(--brand-blue);
  font-weight:600;
}

.finder-results h2 {
  font-size:21px;
  line-height:1.5;
  margin:4px 0 12px;
}

.finder-links {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
  column-gap:24px;
}

.finder-links a {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  padding:13px 0;
  border-bottom:1px solid var(--stroke);
  color:var(--brand-black);
}

.finder-links a:hover strong,.finder-links a:focus-visible strong {
  color:var(--brand-blue);
}

.finder-links strong {
  font-size:15px;
  font-weight:600;
}

.finder-links span {
  font-size:13px;
  line-height:1.55;
  color:#636e77;
}

.finder-results section[hidden] {
  display:none;
}

@media(max-width:650px) {
  .finder-layout {
    padding:2px 0 20px;
  }

  .finder-head {
    padding:0 8px 12px;
  }

  .finder-head h1 {
    font-size:22px;
  }

  .finder-body {
    grid-template-columns:90px minmax(0,1fr);
    gap:14px;
    padding-top:12px;
  }

  .finder-body nav {
    border-right:1px solid var(--stroke);
    padding-right:6px;
  }

  .finder-body nav a {
    padding:0 5px;
    gap:5px;
    font-size:12px;
    min-height:44px;
  }

  .finder-body nav svg {
    width:15px;
    height:15px;
  }

  .finder-results h2 {
    font-size:17px;
    margin:8px 0 10px;
  }

  .finder-links strong {
    font-size:14px;
  }

  .finder-links span {
    font-size:12px;
  }

  .finder-results {
    padding-right:4px;
  }
}

.finder-layout {
  margin-inline:0;
  padding-inline:0;
}

.sidebar a[href="/categories/"][aria-current=page] rect,.mobile-nav a[href="/categories/"][aria-current=page] rect {
  fill:var(--brand-blue);
  stroke:var(--brand-blue);
}

.sidebar-bottom .sidebar-legal a,.home-footer .filing-link {
  white-space:nowrap;
  text-decoration:none;
}

.sidebar-bottom .sidebar-legal a:is(:hover,:focus-visible,:active),.home-footer .filing-link:is(:hover,:focus-visible,:active) {
  color:var(--brand-blue);
  text-decoration:none;
}

.finder-links a {
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.finder-copy {
  min-width:0;
  display:grid;
  gap:4px;
}

.finder-links .finder-thumb {
  display:block;
  position:relative;
  overflow:hidden;
  border-radius:7px;
  width:62px;
  aspect-ratio:1.24;
  flex:none;
  background:var(--surface-page);
}

.finder-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 48%;
  transform:scale(1.25);
}

@media(max-width:360px) {
  .finder-links .finder-thumb {
    width:44px;
  }
}

.finder-links a:last-child {
  border-bottom:0;
}
