/* ========== 设计变量（浅色 / 深色） ========== */
:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --text: #1d2130;
  --muted: #6b7280;
  --border: #e3e5ec;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef0ff;
  --on-primary: #ffffff;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --success: #059669;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .12);
  --topbar-bg: rgba(243, 244, 248, .82);
  --radius: 16px;
  --thumb: 200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1016;
    --surface: #171a23;
    --surface-2: #1d212c;
    --text: #e7e9ef;
    --muted: #979dab;
    --border: #2a2f3c;
    --primary: #818cf8;
    --primary-hover: #a5b4fc;
    --primary-soft: #262a48;
    --on-primary: #0e1016;
    --danger: #f87171;
    --danger-soft: #3a1d22;
    --success: #34d399;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .5);
    --topbar-bg: rgba(14, 16, 22, .82);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1016;
  --surface: #171a23;
  --surface-2: #1d212c;
  --text: #e7e9ef;
  --muted: #979dab;
  --border: #2a2f3c;
  --primary: #818cf8;
  --primary-hover: #a5b4fc;
  --primary-soft: #262a48;
  --on-primary: #0e1016;
  --danger: #f87171;
  --danger-soft: #3a1d22;
  --success: #34d399;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .5);
  --topbar-bg: rgba(14, 16, 22, .82);
  color-scheme: dark;
}

/* ========== 基础 ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.3; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > input { flex: 1; min-width: 0; }

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ========== 按钮与表单 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.sm .icon { width: 15px; height: 15px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); color: #fff; border-color: var(--danger); }
.btn-danger-ghost { color: var(--danger); }
.btn-danger-ghost:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.danger-text { color: var(--danger); }
.btn-block { width: 100%; height: 42px; font-size: 15px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); border-color: var(--border); color: var(--text); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.sm .icon { width: 15px; height: 15px; }
.icon-btn.danger:hover { color: var(--danger); }

input[type=text], input[type=password], input[type=search], input:not([type]), select, textarea {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 8px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type=file] { width: 100%; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span, .field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-error { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 13px; }

/* ========== 顶栏 ========== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--topbar-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap; min-width: 0; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; }
.brand-logo, .login-logo {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: url("favicon.svg") center / cover no-repeat;
}
.search {
  flex: 1; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search select {
  width: auto; height: 40px; border: 0; border-right: 1px solid var(--border); border-radius: 12px 0 0 12px;
  background: transparent; padding: 0 8px 0 12px; box-shadow: none !important; color: var(--muted);
}
.search input { height: 40px; border: 0; background: transparent; box-shadow: none !important; }
.actions { display: flex; align-items: center; gap: 6px; }

.group-nav {
  max-width: 1400px; margin: 0 auto; padding: 10px 24px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  border-top: 1px solid var(--border);
}
.group-nav:empty { display: none; }
.group-nav::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 14.5px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap;
  transition: color .15s, background .15s, border-color .15s;
}
.chip:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 1px; }

/* ========== 主体与分组 ========== */
.main { max-width: 1400px; margin: 0 auto; padding: 24px 24px 80px; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }
.group { margin-bottom: 36px; scroll-margin-top: 130px; }
.group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 30px; }
.group-head h2 { font-size: 18px; }
.count { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 0 8px; border-radius: 999px; }
.group-tools { display: flex; gap: 2px; margin-left: auto; }
.grip { display: inline-flex; color: var(--muted); cursor: grab; padding: 4px; margin-left: -6px; touch-action: none; }
.grip .icon { stroke-width: 3.5; }

/* ========== 卡片网格 ========== */
/* 列定义集中在变量里：--cols 列模板，--col-gap / --row-gap 卡片间距 */
body { --cols: repeat(auto-fill, var(--thumb)); --col-gap: 20px; --row-gap: 20px; }
body.size-large { --thumb: 200px; }
body.size-medium { --thumb: 128px; --col-gap: 16px; --row-gap: 16px; }
body.size-small { --thumb: 64px; --cols: repeat(auto-fill, 88px); --col-gap: 10px; --row-gap: 14px; }

.grid {
  display: grid;
  grid-template-columns: var(--cols);
  gap: var(--row-gap) var(--col-gap);
  min-height: 40px;
}
/* 整体居中：列固定宽度时一行放不满的余量原来全堆在右边，看起来偏左。
   改为 .main 按卡片列排版并居中，分组/标题/卡片用 subgrid 共享同一套列，
   这样余量左右平分，分组标题、"新建分组"也与卡片左右边缘对齐。
   不支持 subgrid 的旧浏览器自动退回原来的靠左排列。 */
@supports (grid-template-columns: subgrid) {
  .main { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); justify-content: center; align-content: start; }
  .main > *, .groups > *, .group > * { grid-column: 1 / -1; min-width: 0; }
  .groups, .group { display: grid; grid-template-columns: subgrid; }
  .grid { grid-template-columns: subgrid; }
}
.grid-empty { grid-column: 1 / -1; padding: 16px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; font-size: 13px; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  -webkit-user-drag: none; user-select: none;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.thumb {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.small-img img, .img-preview.small-img img { width: 44%; height: 44%; object-fit: contain; image-rendering: auto; }
.letter {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(var(--hue, 230) 70% 62%), hsl(calc(var(--hue, 230) + 40) 72% 48%));
  color: #fff; font-weight: 700; font-size: calc(var(--thumb) * .38);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.card-text { padding: 10px 12px 12px; min-width: 0; }
.card-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-desc { margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.size-medium .card-desc { display: none; }
body.size-medium .card-text { padding: 8px 10px 10px; font-size: 13px; }

/* 紧凑模式：像手机桌面图标 */
body.size-small .card { background: transparent; box-shadow: none; align-items: center; overflow: visible; }
body.size-small .card:hover { transform: translateY(-2px); box-shadow: none; }
body.size-small .thumb { width: var(--thumb); border-radius: 16px; box-shadow: var(--shadow-sm); }
body.size-small .card:hover .thumb { box-shadow: var(--shadow-md); }
body.size-small .card-text { padding: 6px 0 0; width: 100%; text-align: center; font-size: 12px; }
body.size-small .card-title { font-weight: 500; }
body.size-small .card-desc { display: none; }
body.size-small .thumb.small-img img { width: 56%; height: 56%; }

/* 编辑模式 */
body.editing .card { cursor: grab; outline: 1px dashed var(--border); outline-offset: 3px; }
body.editing .card:hover { transform: none; }
.card-tools {
  position: absolute; top: 6px; right: 6px; display: flex; gap: 4px;
  padding: 3px; border-radius: 10px;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
body.size-small .card-tools { top: -8px; right: -4px; transform: scale(.85); }
.add-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 1 / 1; width: 100%; height: auto;
  border: 2px dashed var(--border); border-radius: var(--radius);
  background: transparent; color: var(--muted); cursor: pointer; font-size: 13px;
}
body.size-small .add-tile { width: var(--thumb); justify-self: center; font-size: 0; gap: 0; border-radius: 16px; }
.add-tile:hover { border-color: var(--primary); color: var(--primary); }
.add-tile .icon { width: 28px; height: 28px; }
.add-group {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 18px; border: 2px dashed var(--border); border-radius: var(--radius);
  background: transparent; color: var(--muted); cursor: pointer; font-size: 15px;
}
.add-group:hover { border-color: var(--primary); color: var(--primary); }

.sortable-ghost { opacity: .35; }
.sortable-chosen { box-shadow: var(--shadow-md); }

/* 空状态 */
.empty { max-width: 460px; margin: 60px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty.small { margin: 20px auto 30px; gap: 2px; }
.empty .row { justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.empty-art { width: 88px; height: 88px; border-radius: 26px; background: url("favicon.svg") center / cover no-repeat; opacity: .9; margin-bottom: 6px; }

/* ========== 对话框 ========== */
.dialog {
  width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 18px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.dialog[open] { display: flex; flex-direction: column; animation: pop .16s ease-out; }
.dialog.wide { width: min(720px, calc(100vw - 24px)); }
.dialog::backdrop { background: rgba(10, 12, 20, .45); backdrop-filter: blur(2px); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.dialog-head h2 { font-size: 17px; }
.dialog-body { padding: 8px 20px 4px; overflow-y: auto; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; }
.push-left { margin-right: auto; }
.confirm-msg { margin: 4px 0 12px; line-height: 1.7; }

/* 卡片编辑 */
.link-form { display: grid; grid-template-columns: 1fr 220px; gap: 20px; }
.link-form-img { display: flex; flex-direction: column; gap: 8px; }
.img-preview {
  position: relative; width: 200px; height: 200px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.img-preview:hover, .img-preview.drop, .img-preview:focus-visible { border-color: var(--primary); outline: none; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview.loading::after {
  content: "处理中…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45); color: #fff;
}
.img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; text-align: center; padding: 12px; }
.img-placeholder .icon { width: 32px; height: 32px; stroke-width: 1.5; }
.img-actions { display: flex; flex-wrap: wrap; gap: 6px; width: 200px; }
.img-url-row { width: 200px; }
.img-url-row input { height: 30px; font-size: 13px; }

/* 设置 */
.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--surface-2); border-radius: 12px; }
.tab { flex: 1; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.panel { padding-bottom: 8px; }
.panel-section { padding: 14px 0; border-top: 1px solid var(--border); }
.panel-section:first-child { border-top: 0; padding-top: 0; }
.panel-section h3 { font-size: 15px; margin-bottom: 8px; }
.panel-section p { margin: 0 0 12px; }
.panel-foot { display: flex; justify-content: flex-end; }

/* 提示消息 */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  max-width: min(90vw, 480px); padding: 10px 16px; border-radius: 12px;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-md); font-size: 14px;
  animation: pop .18s ease-out; transition: opacity .4s, transform .4s;
}
.toast-error { background: var(--danger); color: #fff; }
.toast-success { background: var(--success); color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); }

/* ========== 登录页 ========== */
.login-page {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(99, 102, 241, .18), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(6, 182, 212, .16), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 380px; padding: 36px 32px 28px;
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-md);
}
.login-logo { width: 52px; height: 52px; border-radius: 15px; margin-bottom: 18px; background-image: url("favicon.svg"); }
.login-card h1 { font-size: 24px; margin-bottom: 4px; }
.login-card > p { margin: 0 0 24px; }

/* ========== 手机适配 ========== */
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .brand { flex: 1; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .actions .label { display: none; }
  .actions .btn { padding: 0 10px; }
  .group-nav { padding: 8px 14px; gap: 6px; }
  .chip { height: 32px; padding: 0 14px; font-size: 14px; }
  .main { padding: 16px 14px 60px; }
  .group { scroll-margin-top: 160px; margin-bottom: 28px; }

  body.size-large { --cols: repeat(2, minmax(0, 1fr)); --col-gap: 12px; --row-gap: 12px; }
  body.size-medium { --cols: repeat(3, minmax(0, 1fr)); --col-gap: 10px; --row-gap: 10px; }
  body.size-small { --cols: repeat(4, minmax(0, 1fr)); --col-gap: 6px; --row-gap: 12px; }
  body.size-large .letter { font-size: 18vw; }
  body.size-medium .letter { font-size: 11vw; }
  .card:hover { transform: none; }

  .link-form { grid-template-columns: 1fr; }
  .link-form-img { align-items: center; }
  .dialog-head { padding: 14px 16px 6px; }
  .dialog-body { padding: 6px 16px 4px; }
  .dialog-foot { padding: 10px 16px 14px; }
}

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

/* 拖动中跟随鼠标的卡片 */
.sortable-fallback { opacity: .9 !important; transform: rotate(2deg); box-shadow: var(--shadow-md); }
body.editing .card img { pointer-events: none; }

/* 编辑模式卡片右键菜单 */
.card-menu {
  position: fixed; z-index: 60; min-width: 168px; max-width: 300px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md);
}
.menu-sep { height: 1px; margin: 4px 2px; background: var(--border); }
.menu-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-sub { flex: none; max-width: 120px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-title { padding: 6px 10px 8px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--primary-soft); color: var(--primary); outline: none; }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover, .menu-item.danger:focus-visible { background: var(--danger-soft); color: var(--danger); }

/* 设置里的快捷键录制按钮 */
.hotkey-input { flex: 1; justify-content: center; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.hotkey-input.recording { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* 卡片左上角角标：失效、备用网址数量 */
.card-badges { position: absolute; top: 8px; left: 8px; z-index: 1; display: flex; gap: 4px; pointer-events: none; }
.badge {
  padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 18px;
  background: rgba(17, 24, 39, .55); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.badge-dead { background: rgba(220, 38, 38, .92); }
body.size-small .card-badges { top: -4px; left: 4px; }
body.size-small .badge { padding: 0 5px; font-size: 10px; line-height: 16px; }
.card.is-dead .thumb { filter: grayscale(.7); opacity: .75; }
.menu-item.is-dead .menu-text { text-decoration: line-through; text-decoration-color: var(--danger); }
.menu-item.is-dead .menu-sub { color: var(--danger); font-weight: 600; }

/* 编辑框：备用网址 */
.alt-list { display: flex; flex-direction: column; gap: 6px; }
.alt-list:empty { display: none; }
.alt-row { display: flex; gap: 6px; align-items: center; }
.alt-row .alt-name { flex: 0 0 120px; min-width: 0; }
.alt-row .alt-url { flex: 1; min-width: 0; }

/* 设置 → 网址检测 */
.progress { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { width: 0; height: 100%; background: var(--primary); transition: width .3s; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.check-main { flex: 1; min-width: 0; }
.check-title { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check-url { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check-actions { display: flex; gap: 6px; flex: none; }
.check-tag { padding: 0 6px; border-radius: 6px; font-size: 11px; line-height: 18px; color: #fff; background: var(--muted); }
.check-tag.dead { background: var(--danger); }
.check-tag.warn { background: #d97706; }
.check-allok { color: var(--success); font-weight: 600; }
.auto-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; }
@media (max-width: 760px) { .auto-grid { grid-template-columns: 1fr; } }
