@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/lib/inter-latin-wght-normal.woff2) format("woff2");
}
:root {
  --ink: #17303d;
  --muted: #70818c;
  --line: #e4eaee;
  --accent: #0891b2;
  --surface: #fff;
  --wash: #f5f8fa;
}
[v-cloak] {
  display: none;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #67d5e6;
  outline-offset: 3px;
}
input:focus,
select:focus {
  outline: 2px solid #67d5e6;
  outline-offset: 1px;
}
.workspace {
  display: flex;
  min-height: 100vh;
  background: var(--wash);
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 34px 22px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.7px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 25px;
}
.brand-number {
  color: var(--accent);
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #8d9ca6;
  margin: 49px 12px 14px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 9px;
  border: 0;
  background: none;
  text-align: left;
  color: #647885;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.nav-item i {
  width: 17px;
  text-align: center;
  font-size: 15px;
}
.nav-item:hover {
  background: #f5f8fa;
  color: var(--ink);
}
.nav-item.active {
  background: #e9f7fa;
  color: #087e98;
}
.nav-count {
  margin-left: auto;
  background: #d8eff4;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
}
.workspace-note {
  background: #f6f9fa;
  padding: 16px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.workspace-note small {
  display: block;
  color: var(--muted);
  padding-left: 13px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #12a6a5;
  border-radius: 100%;
  margin-right: 7px;
}
.main-content {
  width: calc(100% - 238px);
  max-width: 1800px;
  margin-left: 238px;
  padding: 44px 44px 20px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #90a0aa;
  margin-bottom: 12px;
}
.page-header h1 {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1px;
  margin: 0 0 8px;
  line-height: 1.2;
}
.page-header p,
.panel-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.header-actions {
  display: flex;
  gap: 10px;
}
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  transition: background 0.15s;
}
.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 3px #0891b215;
}
.button.primary:hover {
  background: #087e98;
}
.button.secondary {
  background: #fff;
  border-color: #dce5e9;
  color: #526975;
}
.button.secondary:hover {
  background: #f1f7f9;
}
.button.destructive {
  background: #c43d49;
  color: white;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  margin-bottom: 24px;
}
.metric {
  padding: 22px 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #617784;
  font-weight: 600;
  margin-bottom: 10px;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  background: #eef8fa;
  color: var(--accent);
  border-radius: 9px;
}
.metric strong {
  display: block;
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 11px;
}
.metric small {
  font-size: 11px;
  color: #8c9ca6;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 23px 25px;
}
.panel h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 5px;
}
.range-control select,
.list-controls select,
.pagination select {
  border: 1px solid #dce5e9;
  background: #fff;
  color: #526975;
  border-radius: 7px;
  padding: 8px 28px 8px 11px;
  font-size: 12px;
}
.traffic-panel {
  margin-bottom: 24px;
}
.chart-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 25px 14px;
  color: #8b9aa5;
  font-size: 11px;
}
.chart-caption > span:first-child {
  color: #587180;
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.traffic-plot {
  padding: 0 23px 15px;
}
.traffic-plot svg {
  width: 100%;
  height: auto;
  display: block;
  min-height: 170px;
}
.traffic-plot details {
  margin: 8px 6px 0;
  color: var(--muted);
  font-size: 11px;
}
.traffic-plot summary {
  cursor: pointer;
  width: fit-content;
}
.data-scroll {
  max-height: 230px;
  overflow: auto;
  margin-top: 12px;
}
.zero-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 0 20px 20px;
}
.insight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.text-button {
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  background: none;
  border: 0;
  padding: 4px;
}
.rank-list {
  padding: 0 25px 12px;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #eef2f4;
  padding: 17px 0;
}
.rank-number {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f3f7f9;
  color: #8a9ca6;
  font-size: 11px;
}
.rank-content {
  flex: 1;
  min-width: 0;
}
.rank-content a {
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
}
.rank-content a:hover {
  color: var(--accent);
}
.rank-content small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #94a1a9;
  font-size: 11px;
  margin-top: 5px;
}
.rank-row > strong {
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}
.rank-row > strong small {
  display: block;
  color: #9aa8af;
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
}
.audience-section {
  padding: 0 25px 15px;
}
.audience-section h3 {
  font-size: 11px;
  color: #8c9ca5;
  margin: 0 0 12px;
  font-weight: 650;
}
.audience-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}
.audience-row > span {
  width: 72px;
  flex-shrink: 0;
  color: #607784;
}
.bar-track {
  height: 5px;
  background: #eef5f7;
  border-radius: 5px;
  flex: 1;
  overflow: hidden;
}
.bar-track span {
  display: block;
  height: 100%;
  background: #39aec3;
  border-radius: 5px;
}
.audience-row strong {
  font-size: 11px;
  font-weight: 650;
  min-width: 32px;
  text-align: right;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9aabb4;
  margin-top: 32px;
  padding: 6px 0;
}
.workspace-footer > span:first-child {
  font-weight: 700;
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dce5e9;
  border-radius: 8px;
  padding: 0 12px;
  max-width: 440px;
  flex: 1;
  color: #93a5af;
}
.search-input input {
  width: 100%;
  border: 0;
  background: none;
  font-size: 12px;
  padding: 11px 0;
  color: var(--ink);
}
.search-input:focus-within {
  outline: 2px solid #67d5e6;
}
.search-input input:focus {
  outline: none;
}
.list-controls {
  display: flex;
  gap: 10px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  background: #f9fbfc;
  font-size: 10px;
  font-weight: 700;
  color: #8d9fa9;
  letter-spacing: 0.4px;
  padding: 13px 25px;
}
td {
  padding: 18px 25px;
  font-size: 12px;
  border-top: 1px solid #edf1f3;
}
.links-table {
  min-width: 740px;
}
.short-link {
  font-weight: 650;
  color: #087f99;
  text-decoration: none;
}
.short-link:hover {
  text-decoration: underline;
}
.destination {
  margin-top: 6px;
  color: #8496a0;
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.numeric {
  font-weight: 650;
}
.date-cell {
  color: #8b9ca6;
  white-space: nowrap;
}
.row-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}
.icon-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: none;
  color: #8a9da8;
  border-radius: 6px;
  font-size: 12px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #eef7fa;
  color: var(--accent);
}
.icon-button.danger:hover {
  background: #fff1f2;
  color: #c43d49;
}
.type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
  background: #edf7f9;
  color: #278b9e;
  white-space: nowrap;
}
.type-badge.bio {
  background: #f1effb;
  color: #8770b8;
}
.type-badge.expired {
  background: #fff0f2;
  color: #be4653;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #80939f;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pagination label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination select {
  padding: 5px 23px 5px 8px;
}
.pagination .button {
  padding: 7px 11px;
  font-size: 11px;
}
.empty-state {
  padding: 54px 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 0;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 380px;
  line-height: 1.7;
}
.empty-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 28px;
  background: #edf8fa;
  border-radius: 14px;
  width: 52px;
  height: 52px;
  margin-bottom: 5px;
}
.compact-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 20px;
  font-size: 12px;
}
.loading-block {
  height: 220px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--muted);
  background: linear-gradient(100deg, #fff, #f7fafb, #fff);
}
.error-banner {
  padding: 13px 16px;
  margin: 0 0 20px;
  background: #fff1f2;
  color: #b8414e;
  border: 1px solid #f7d8dc;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.error-banner button {
  text-decoration: underline;
  margin-left: 10px;
}
.error-banner button:hover {
  color: #872d3a;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 36px;
  align-items: start;
}
.editor-panel .panel-heading {
  border-bottom: 1px solid var(--line);
}
.editor-body {
  padding: 25px;
}
.field {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #526d7c;
  margin-bottom: 21px;
}
.field input:not([type="color"]),
.field select {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dbe5ea;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  min-width: 0;
}
.field input[type="file"] {
  font-size: 11px;
}
.field small {
  display: block;
  color: #97a5ad;
  font-weight: 400;
  font-size: 11px;
  margin-top: 7px;
  line-height: 1.6;
}
.optional {
  color: #a1adb4;
  font-weight: 400;
  font-size: 11px;
  margin-left: 5px;
}
.type-picker {
  display: flex;
  gap: 12px;
  margin: 0 0 24px;
  border: 0;
  padding: 0;
}
.type-picker legend {
  font-size: 12px;
  font-weight: 600;
  color: #526d7c;
  margin-bottom: 10px;
}
.type-picker label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid #dce5e9;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.type-picker label.selected {
  border-color: #77cddc;
  background: #f0fafc;
}
.type-picker input {
  width: 13px;
  accent-color: var(--accent);
}
.type-picker i {
  color: var(--accent);
  font-size: 14px;
}
.type-picker small {
  display: block;
  font-size: 10px;
  color: #8398a4;
  font-weight: 400;
  margin-top: 4px;
}
.prefixed-input {
  display: flex;
  border: 1px solid #dbe5ea;
  border-radius: 7px;
  align-items: center;
  margin-top: 8px;
  overflow: hidden;
}
.prefixed-input > span {
  padding: 11px 0 11px 12px;
  color: #8a9da8;
  font-size: 12px;
  font-weight: 400;
}
.field .prefixed-input input {
  border: 0;
  margin: 0;
  padding-left: 3px;
  flex: 1;
}
.prefixed-input:focus-within {
  outline: 2px solid #67d5e6;
}
.prefixed-input input:focus {
  outline: none;
}
.form-divider {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 10px;
  color: #9aabb5;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.color-fields {
  display: flex;
  gap: 30px;
}
.field input[type="color"] {
  display: block;
  width: 80px;
  height: 38px;
  margin-top: 8px;
  padding: 4px;
  border: 1px solid #dbe5ea;
  background: white;
  border-radius: 7px;
  cursor: pointer;
}
.items-heading,
.item-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 12px;
}
.items-heading h3 {
  font-weight: 650;
}
.bio-item-editor {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfe;
  margin-bottom: 15px;
}
.bio-item-editor .field {
  margin-bottom: 14px;
}
.editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.preview-column {
  position: sticky;
  top: 35px;
  text-align: center;
  padding: 12px 0;
}
.redirect-preview {
  background: linear-gradient(145deg, #e6f6f9, #f8fbfc);
  border: 1px solid #dcebee;
  border-radius: 18px;
  min-height: 390px;
  padding: 45px 30px;
  margin: 20px auto;
  max-width: 340px;
}
.preview-link-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 10px #0e749015;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 27px;
}
.redirect-preview h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 27px;
}
.preview-address {
  font-size: 13px;
  color: #738e9c;
  background: white;
  border: 1px solid #dcebee;
  border-radius: 8px;
  padding: 14px 10px;
  overflow-wrap: anywhere;
}
.preview-address strong {
  color: var(--accent);
  font-weight: 650;
}
.preview-arrow {
  font-size: 22px;
  color: #89b9c4;
  padding: 16px;
}
.redirect-preview p {
  font-size: 12px;
  color: #8aa0ab;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.preview-note {
  font-size: 11px;
  color: #91a2ac;
}
.phone-preview {
  width: 270px;
  margin: 20px auto;
  border: 8px solid #233b47;
  border-radius: 37px;
  box-shadow: 0 14px 35px #1c394912;
  overflow: hidden;
  background: #fff;
  padding-top: 15px;
}
.phone-content {
  min-height: 435px;
  padding: 25px 18px 20px;
  border-radius: 20px;
  overflow-wrap: anywhere;
}
.phone-content img,
.profile-placeholder {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
}
.profile-placeholder {
  display: grid;
  place-items: center;
  font-size: 25px;
  background: #e7f6f9;
  color: var(--accent);
}
.phone-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 25px;
}
.preview-bio-button {
  padding: 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  margin: 10px 0;
}
.phone-content > small {
  display: block;
  font-size: 8px;
  margin-top: 40px;
  opacity: 0.5;
}
.key-list {
  padding: 0 25px 25px;
}
.key-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  margin-bottom: 14px;
}
.key-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.key-heading h3 {
  flex: 1;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.key-secret {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7fafb;
  padding: 9px 12px;
  border-radius: 6px;
  min-width: 0;
}
.key-secret code {
  flex: 1;
  font-size: 11px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
.key-card p {
  margin: 13px 0 0;
}
.app-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #17303d;
  color: #fff;
  padding: 13px 18px;
  border-radius: 9px;
  box-shadow: 0 6px 22px #0002;
  font: 13px system-ui;
  display: flex;
  gap: 20px;
  align-items: center;
  z-index: 100;
  max-width: calc(100vw - 35px);
}
.app-toast button {
  font-size: 18px;
  line-height: 1;
}
.toast-error {
  background: #a53744;
}
.app-dialog {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 13px;
  width: 440px;
  max-width: calc(100vw - 32px);
  color: var(--ink);
  font: 13px system-ui;
  box-shadow: 0 20px 100px #17303d30;
}
.app-dialog::backdrop {
  background: #102b3b70;
  backdrop-filter: blur(3px);
}
.app-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.app-dialog h2 {
  font-size: 19px;
  font-weight: 700;
}
.app-dialog p {
  color: var(--muted);
  line-height: 1.8;
}
.app-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}
.dialog-target {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
  margin-top: 12px;
}
.danger-text {
  color: #b8414e !important;
}
.spinning {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animation-delay-2000 {
  animation-delay: 2s;
}
.animation-delay-4000 {
  animation-delay: 4s;
}
@media (min-width: 1600px) {
  .main-content {
    padding-left: 65px;
    padding-right: 65px;
  }
  .traffic-plot svg {
    max-height: 330px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 30px 15px;
  }
  .main-content {
    margin-left: 205px;
    width: calc(100% - 205px);
    padding: 30px 24px;
  }
  .metric {
    padding: 20px;
  }
  .editor-grid {
    gap: 22px;
  }
  .type-picker label {
    gap: 8px;
  }
  .type-picker i {
    display: none;
  }
  .page-header h1 {
    font-size: 27px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 76px;
    padding: 24px 12px;
  }
  .brand {
    justify-content: center;
  }
  .brand > span:last-child,
  .workspace-label,
  .workspace-note,
  .nav-count {
    display: none;
  }
  .nav-item {
    font-size: 0;
    justify-content: center;
    gap: 0;
    padding: 16px 12px;
    margin-top: 12px;
  }
  .nav-item i {
    font-size: 18px;
  }
  .sidebar nav {
    margin-top: 24px;
  }
  .main-content {
    margin-left: 76px;
    width: calc(100% - 76px);
    padding: 28px 22px;
  }
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .preview-column {
    position: static;
  }
  .list-toolbar {
    flex-wrap: wrap;
  }
  .search-input {
    flex-basis: 100%;
    max-width: none;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .metric-grid {
    gap: 12px;
  }
  .metric {
    padding: 16px;
  }
  .metric small {
    font-size: 10px;
  }
  .metric strong {
    font-size: 29px;
  }
}
@media (max-width: 600px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 22px;
  }
  .sidebar nav {
    display: flex;
    margin: 0;
    gap: 2px;
  }
  .nav-item {
    margin: 0;
    width: 37px;
    padding: 10px 8px;
  }
  .nav-item i {
    font-size: 15px;
  }
  .sidebar-bottom {
    margin: 0;
  }
  .sidebar-bottom .nav-item {
    width: 32px;
  }
  .main-content {
    width: 100%;
    margin: 0;
    padding: 25px 16px 15px;
  }
  .page-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
  }
  .page-header h1 {
    font-size: 27px;
  }
  .page-header p {
    font-size: 12px;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .metric-grid {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
    gap: 10px;
  }
  .metric {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .metric-top {
    margin: 0;
    font-size: 12px;
  }
  .metric-icon {
    display: none;
  }
  .metric strong {
    font-size: 26px;
    grid-row: 1/3;
    grid-column: 2;
    margin: 0;
  }
  .metric small {
    margin-top: 5px;
  }
  .panel-heading {
    padding: 18px;
    gap: 12px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-heading p {
    font-size: 11px;
  }
  .range-control select {
    padding: 7px 20px 7px 9px;
    font-size: 10px;
  }
  .chart-caption {
    padding: 0 18px 12px;
    font-size: 9px;
  }
  .traffic-plot {
    padding: 0 8px 12px;
  }
  .traffic-plot svg {
    min-height: 120px;
  }
  .traffic-panel {
    margin-bottom: 18px;
  }
  .insight-grid {
    gap: 18px;
  }
  .rank-list,
  .audience-section {
    padding-left: 18px;
    padding-right: 18px;
  }
  .list-toolbar {
    padding: 18px;
  }
  .list-controls {
    width: 100%;
  }
  .list-controls label {
    flex: 1;
  }
  .list-controls select {
    width: 100%;
  }
  .pagination {
    padding: 16px;
  }
  .pagination > div {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
  }
  .pagination label {
    font-size: 10px;
  }
  .pagination .button {
    padding: 7px 8px;
  }
  .pagination span {
    font-size: 10px;
  }
  .editor-body {
    padding: 18px;
  }
  .type-picker label {
    padding: 12px 8px;
    font-size: 11px;
  }
  .type-picker small {
    font-size: 9px;
  }
  .workspace-footer {
    font-size: 9px;
    gap: 10px;
  }
  .key-list {
    padding: 0 16px 16px;
  }
  .key-secret {
    gap: 6px;
    padding: 8px;
  }
  .app-toast {
    bottom: 16px;
    font-size: 12px;
  }
  .app-dialog {
    padding: 22px;
  }
  .key-card {
    padding: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

th {
  position: relative;
}
.main-content {
  min-width: 0;
}
.language-picker select {
  border: 1px solid #dce5e9;
  border-radius: 7px;
  padding: 10px 23px 10px 10px;
  font-size: 11px;
  color: #526975;
  background: white;
}
.login-language {
  position: absolute;
  z-index: 30;
  top: 22px;
  left: 24px;
}
.header-actions {
  flex-wrap: wrap;
}
.field textarea {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dbe5ea;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  resize: vertical;
  line-height: 1.7;
}
.field textarea:focus {
  outline: 2px solid #67d5e6;
}
.palette-catalog {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: 24px;
}
.catalog-heading h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.catalog-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.palette-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 17px 0;
}
.palette-filters button {
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: #718791;
  font-size: 10px;
  font-weight: 600;
  background: #f5f8fa;
}
.palette-filters button.active {
  color: #087e98;
  border-color: #b9e1e9;
  background: #edf8fa;
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.palette-option {
  border: 1.5px solid #e4eaee;
  border-radius: 10px;
  padding: 4px;
  background: white;
  text-align: left;
  min-width: 0;
}
.palette-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #0891b210;
}
.palette-thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 13px 10px 12px;
  border-radius: 6px;
  background: var(--palette-bg);
  color: var(--palette-text);
}
.palette-avatar {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--palette-text) 10%, transparent);
  font-size: 13px;
  margin-bottom: 5px;
}
.palette-mini-title {
  font-size: 8px;
  font-weight: 700;
  margin-bottom: 8px;
}
.palette-mini-button {
  height: 10px;
  width: 85%;
  border-radius: 4px;
  background: var(--palette-button);
  margin: 3px 0;
}
.palette-thumbnail.pill .palette-mini-button {
  border-radius: 50px;
}
.palette-thumbnail.outline .palette-mini-button {
  background: transparent;
  border: 1px solid var(--palette-button);
}
.palette-name {
  display: flex;
  justify-content: space-between;
  padding: 8px 5px 5px;
  color: #627a87;
  font-size: 10px;
  font-weight: 650;
}
.palette-name > span {
  color: var(--accent);
}
.palette-catalog > small {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: #97a7af;
  margin: 10px 0;
}
.editor-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 23px;
}
.editor-details summary {
  font-size: 11px;
  font-weight: 600;
  color: #708894;
  cursor: pointer;
}
.editor-details .color-fields {
  padding-top: 17px;
}
.editor-details .field {
  margin-bottom: 4px;
}
.bio-item-editor .editor-details {
  margin-bottom: 0;
  background: white;
}
.preview-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 20px 0 18px;
}
.preview-mode button {
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 10px;
  color: #8197a2;
  background: transparent;
}
.preview-mode button.active {
  background: white;
  border-color: #dde6eb;
  color: var(--accent);
}
.preview-mode i {
  margin-right: 5px;
}
.bio-preview-frame {
  margin: 0 auto 20px;
  box-shadow: 0 12px 40px #1c394912;
  overflow: auto;
  max-height: 720px;
  border: 1px solid #dce5e9;
  border-radius: 15px;
  scrollbar-width: thin;
}
.bio-preview-frame.mobile {
  width: 300px;
  max-width: 100%;
  border: 7px solid #233b47;
  border-radius: 33px;
}
.bio-preview-frame.desktop {
  width: 100%;
  max-width: 520px;
}
.bio-preview-frame .bio-page {
  min-height: 500px;
}
.bio-preview-frame .bio-shell {
  padding: 28px 18px 20px;
}
.bio-preview-frame .bio-title {
  color: inherit;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.3;
}
.bio-preview-frame .bio-link {
  font-size: 12px;
  min-height: 52px;
  padding: 12px 14px;
}
.bio-preview-frame .bio-avatar {
  width: 80px;
  height: 80px;
}
.bio-preview-frame .bio-description {
  font-size: 12px;
}
.bio-preview-frame.desktop .bio-shell {
  padding: 40px 24px 24px;
}
.bio-preview-frame .bio-profile {
  margin-bottom: 25px;
}
@media (max-width: 600px) {
  .palette-grid {
    gap: 8px;
  }
  .palette-thumbnail {
    padding-left: 5px;
    padding-right: 5px;
  }
  .palette-filters button {
    font-size: 9px;
    padding: 6px;
  }
  .header-actions {
    justify-content: space-between;
  }
  .language-picker select {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .login-language {
    top: 15px;
    left: 16px;
  }
}
.editor-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 7px;
  margin: 0 0 24px;
}
.editor-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 10px 16px 13px;
  color: #879ca7;
  font-size: 12px;
  font-weight: 650;
}
.editor-tabs button.active {
  border-color: var(--accent);
  color: var(--accent);
}
.tab-count {
  font-size: 9px;
  margin-left: 6px;
  background: #edf5f7;
  border-radius: 4px;
  padding: 2px 5px;
}
.palette-catalog {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.palette-catalog summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.palette-catalog summary::before {
  content: "›";
  font-size: 20px;
  color: var(--accent);
  transform: rotate(0);
}
.palette-catalog[open] summary::before {
  transform: rotate(90deg);
}
.palette-catalog summary > span:first-of-type {
  flex: 1;
}
.palette-catalog summary strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
}
.palette-catalog summary small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.6;
}
.catalog-count {
  color: var(--accent);
  background: #eaf7fa;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 10px;
}
.global-color-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.global-color-controls .field > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.global-color-controls input[type="color"] {
  height: 42px;
  width: 55px;
  margin-top: 10px;
}
.global-color-controls code {
  color: #90a2ac;
  font-size: 10px;
  padding-top: 8px;
}
.contrast-note {
  font-size: 10px;
  color: #869ca7;
  line-height: 1.7;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auto-text-color {
  font-size: 11px;
  color: #708894;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auto-text-color code {
  border-radius: 6px;
  padding: 6px 24px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.auto-text-color small {
  color: #98a8b1;
  font-size: 9px;
}
.metadata-import {
  margin: 0 0 22px;
  border: 1px dashed #c7dce4;
  border-radius: 9px;
  padding: 13px;
  background: #fafdfd;
}
.metadata-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #087e98;
  border: 0;
  background: none;
  font-weight: 600;
  padding: 4px 0;
}
.metadata-hint {
  display: block;
  font-size: 10px;
  color: #94a7b0;
  margin-top: 6px;
  line-height: 1.7;
}
.metadata-import .field {
  margin-bottom: 8px;
}
.metadata-import .error-banner {
  margin: 12px 0 0;
}
.metadata-result {
  padding-top: 15px;
  margin-top: 10px;
  border-top: 1px solid #dcebef;
}
.metadata-result-heading h4 {
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 5px;
}
.metadata-result-heading small {
  font-size: 9px;
  color: #8ca4b0;
  overflow-wrap: anywhere;
}
.metadata-field {
  margin-top: 14px;
  padding: 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.metadata-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.metadata-field input {
  accent-color: var(--accent);
}
.metadata-field p {
  font-size: 11px;
  color: #738b98;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.metadata-asset {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.metadata-asset img {
  max-height: 65px;
  max-width: 95px;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
}
.metadata-asset span {
  font-size: 9px;
  color: #8fa4af;
  overflow-wrap: anywhere;
}
.metadata-result footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.metadata-result .button {
  font-size: 10px;
  padding: 8px 10px;
}
.imported-favicon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  font-size: 10px;
  color: #869aa5;
}
.imported-favicon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.list-favicon {
  display: inline-block;
  width: 15px;
  height: 15px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 7px;
}
@media (max-width: 600px) {
  .editor-tabs {
    gap: 4px;
  }
  .editor-tabs button {
    padding-left: 12px;
    padding-right: 12px;
  }
  .global-color-controls {
    gap: 12px;
  }
  .global-color-controls code {
    font-size: 9px;
  }
  .metadata-asset {
    align-items: flex-start;
  }
  .metadata-asset img {
    max-width: 65px;
  }
}
