/* ── Atlas · modern personal launcher ── */

:root {
  --bg: #f4f5f7;
  --bg-elevated: #ffffff;
  --bg-muted: #eef0f4;
  --text: #0f1419;
  --text-secondary: #5c6570;
  --text-tertiary: #8b949e;
  --border: rgba(15, 20, 25, 0.08);
  --border-strong: rgba(15, 20, 25, 0.12);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-text: #1d4ed8;
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #b45309;
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow: 0 1px 3px rgba(15, 20, 25, 0.04), 0 8px 24px rgba(15, 20, 25, 0.06);
  --shadow-lg: 0 4px 6px rgba(15, 20, 25, 0.03), 0 16px 40px rgba(15, 20, 25, 0.08);
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 999px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SF Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --header-h: 64px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --bg-elevated: #14181f;
    --bg-muted: #1a1f28;
    --text: #f1f3f5;
    --text-secondary: #9aa3af;
    --text-tertiary: #6b7380;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --accent-text: #93c5fd;
    --success: #34d399;
    --success-bg: rgba(5, 150, 105, 0.15);
    --success-border: rgba(52, 211, 153, 0.3);
    --danger: #f87171;
    --danger-bg: rgba(220, 38, 38, 0.15);
    --danger-border: rgba(248, 113, 113, 0.3);
    --warn-bg: rgba(180, 83, 9, 0.15);
    --warn-border: rgba(251, 191, 36, 0.3);
    --warn-text: #fbbf24;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Shell ── */

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

/* ── Top bar ── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 -1.25rem;
  padding: 0 1.25rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  display: block;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent);
}

.brand-logo-lg {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.05rem;
}

.brand-title {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 34px;
  padding: 0 0.85rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}

a.btn-chip {
  color: var(--text-secondary);
}

.btn-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm);
}

/* ── Hero ── */

.hero {
  padding: 2.25rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.hero-main {
  min-width: 0;
}

.hero-greet {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-secondary);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.hero-meta {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.hero-clock {
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-secondary);
  line-height: 1;
  opacity: 0.7;
}

/* ── Category sections ── */

.sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section {
  animation: fade-up 0.45s var(--ease) both;
}

.section:nth-child(1) { animation-delay: 0.04s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.16s; }
.section:nth-child(4) { animation-delay: 0.22s; }
.section:nth-child(5) { animation-delay: 0.28s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  padding: 0 0.15rem;
}

.section-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  text-transform: none;
}

.section-count {
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
}

/* Link grid — horizontal cards */
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  min-height: 76px;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s, border-color 0.18s, background 0.18s;
  text-align: left;
}

.tile:hover {
  color: var(--text);
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}

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

.tile-icon {
  --tile-hue: 210;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  background: hsl(var(--tile-hue) 58% 46%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tile-favicon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: var(--bg-elevated);
  border-radius: inherit;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.15s;
}

.tile-icon.is-loaded .tile-favicon {
  opacity: 1;
}

.tile-icon.is-fallback .tile-favicon,
.tile-favicon.is-broken {
  display: none;
}

.tile-letter {
  position: relative;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

.tile-icon.is-loaded .tile-favicon:not(.is-broken) ~ .tile-letter {
  opacity: 0;
}

.tile-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.tile-label {
  display: block;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-description {
  display: block;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-tertiary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Empty */
.empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.empty p {
  margin: 0 0 0.5rem;
  color: var(--text-secondary);
}

.empty p:last-child {
  margin-bottom: 0;
}

.empty strong {
  color: var(--text);
  font-weight: 600;
}

.empty a {
  font-weight: 600;
}

/* ── Admin ── */

.admin-hero {
  padding: 1.75rem 0 1.25rem;
}

.admin-hero h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.admin-hero p {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.admin-tabs button {
  height: 40px;
  color: var(--text-secondary);
  background: transparent;
  box-shadow: none;
}

.admin-tabs button:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.admin-tabs button.is-active {
  color: var(--text);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.card-head h2 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.flash {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 550;
}

.flash::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.err {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 550;
}

.banner {
  margin: 0 0 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 550;
}

.hint {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  font-size: 0.875rem;
}

/* Forms */
.field {
  margin: 0 0 1rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--text-secondary);
}

.field-help {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.file-input {
  padding: 7px 0.75rem !important;
}

.grid-form {
  display: grid;
  gap: 0.85rem 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-form.cols-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-form.cols-3 {
    grid-template-columns: 1.2fr 1fr auto;
  }

  .grid-form.cols-4 {
    grid-template-columns: 1fr 1.4fr 0.8fr 0.55fr;
  }

  .grid-form .span-full {
    grid-column: 1 / -1;
  }
}

/* Unified control — same look as login password field */
.field input:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.field select,
.ui-input {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 0.85rem;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.field input::placeholder,
.ui-input::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}

.field input:hover:not(:disabled):not(:focus),
.field select:hover:not(:disabled):not(:focus),
.ui-input:hover:not(:disabled):not(:focus) {
  border-color: color-mix(in srgb, var(--text-tertiary) 55%, var(--border-strong));
}

.field input:focus,
.field select:focus,
.ui-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background-color: var(--bg-elevated);
}

.field input:disabled,
.field select:disabled,
.ui-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.field select,
select.ui-input {
  cursor: pointer;
  line-height: normal;
  padding-right: 2.25rem;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%238b949e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px;
}

.field select:focus,
select.ui-input:focus {
  background-color: var(--bg-elevated);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%238b949e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px;
}

/* Kill browser autofill yellow/blue so fields stay on-brand */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 99999s ease-out;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.form-foot.end {
  align-self: end;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 42px;
  padding: 0 1.1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 30%, transparent);
}

button:hover,
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

button:active,
.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  color: var(--text);
  background: var(--bg-muted);
  box-shadow: none;
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--text);
}

a.btn-secondary {
  color: var(--text);
  line-height: 42px;
}

.btn-ghost {
  height: 34px;
  padding: 0 0.7rem;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--accent-text);
  background: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.btn-danger {
  height: 34px;
  padding: 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--danger);
  background: transparent;
  box-shadow: none;
}

.btn-danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.inline-form {
  display: inline;
}

/* Data list */
.list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: background 0.12s;
}

.list li:last-child {
  border-bottom: none;
}

.list li:hover {
  background: var(--bg-muted);
}

.list-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
}

.list-title {
  font-weight: 550;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

a.list-title:hover {
  color: var(--accent-text);
}

.list-meta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 22px;
  padding: 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 550;
  color: var(--text-secondary);
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  vertical-align: middle;
}

.list-description,
.list-url {
  flex: 1 0 100%;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-url {
  font-family: var(--font-mono);
}

.list-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  align-self: center;
}

.move-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.2rem;
}

.move-actions form,
.list-actions form {
  display: inline-flex;
}

.btn-move {
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--text-secondary);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-move:hover:not(:disabled) {
  color: var(--accent-text);
  background: var(--accent-soft);
}

.btn-move:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.link-groups {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.link-group-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0 0.15rem;
}

.link-group-head h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 650;
}

.link-group-head span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.link-group .list {
  margin-top: 0.55rem;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent),
    var(--bg);
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.75rem 1.5rem;
  animation: fade-up 0.4s var(--ease) both;
}

.login-box h1 {
  margin: 0;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-box .login-desc {
  margin: 0.4rem 0 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.login-box button[type="submit"] {
  width: 100%;
  height: 44px;
  margin-top: 0.5rem;
}

.login-back {
  display: block;
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.login-back:hover {
  color: var(--accent-text);
}

/* Responsive */
@media (max-width: 900px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .admin-tabs {
    gap: 0.25rem;
  }

  .admin-tabs button {
    padding: 0 0.4rem;
    font-size: 0.8125rem;
  }

  .sortable-list li {
    flex-wrap: nowrap;
  }

  .btn-move {
    width: 29px;
  }

  .tiles {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .tile {
    min-height: 70px;
    padding: 0.75rem 0.85rem;
  }

  .tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .hero-clock {
    display: none;
  }

  .list-url {
    display: none;
  }

  .list-actions {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .tile:hover {
    transform: none;
  }
}
