.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
a.btn-primary,
.btn-primary { background: linear-gradient(180deg, #f0c48a, var(--copper) 40%, var(--copper-deep)); color: var(--ink); }
a.btn-primary:hover,
.btn-primary:hover { color: var(--ink); filter: brightness(1.05); }
a.btn-ghost,
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
a.btn-ghost:hover,
.btn-ghost:hover { color: var(--text); border-color: var(--copper); }
a.btn-danger,
.btn-danger { border-color: rgba(224, 122, 106, 0.5); color: var(--danger); background: transparent; }
a.btn-danger:hover,
.btn-danger:hover { color: var(--danger); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 0.85rem; }
.knife-grid, .collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.knife-card, .collection-card, .stack-card, .auth-card, .empty {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%), var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.knife-card::before, .collection-card::before, .stack-card::before {
    content: "";
    position: absolute;
    left: 14px; right: 14px; top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
}
.knife-card-link, .collection-card { display: block; color: inherit; text-decoration: none; overflow: hidden; }
.knife-card-body, .collection-card div, .stack-card, .empty, .auth-card { padding: 14px; }
.knife-card h3, .collection-card h2 { font-size: 1.2rem; }
.knife-card p, .collection-card p { color: var(--muted); margin: 0; }
.knife-photo {
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at 50% 40%, rgba(224, 161, 90, 0.16), transparent 55%),
        #10141a;
    overflow: hidden;
}
.knife-photo img { width: 100%; height: 100%; object-fit: cover; }
.knife-photo-lg { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.photo-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: url("../brand/icon-192.png") center / 64% no-repeat, #10141a;
}
.heart-form { position: absolute; top: 8px; right: 8px; }
.heart {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(12, 14, 18, 0.72);
    color: var(--muted);
    cursor: pointer;
}
.heart.is-on { color: var(--copper); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
}
.chip.is-on { border-color: var(--copper); color: var(--copper); }
.flash { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.flash-ok { border-color: rgba(143, 191, 152, 0.5); color: var(--ok); }
.flash-error, .field-error { color: var(--danger); }
.flash-error { border-color: rgba(224, 122, 106, 0.45); }
.empty { text-align: left; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pager a { color: var(--muted); text-decoration: none; min-width: 36px; min-height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; }
.pager a.is-active,
.pager a.is-active:hover { color: var(--ink); background: var(--copper); border-color: var(--copper); }
.count { color: var(--copper); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.inline-actions, .report-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.story { white-space: pre-wrap; }
.private-note { border-left: 2px solid var(--copper); padding-left: 12px; }
.comment { border-top: 1px solid var(--line); padding: 12px 0; }
.comment header { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.gallery { display: grid; gap: 10px; }
button.gallery-stage { display: block; padding: 0; cursor: zoom-in; color: inherit; font: inherit; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: #10141a;
    cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.is-active { border-color: var(--copper); }
.lightbox { border: 1px solid var(--line); background: #0c0e12; color: var(--text); border-radius: 16px; max-width: min(960px, 100%); }
.lightbox img { max-width: 100%; max-height: 75vh; margin: 0 auto 12px; }
.report-box { margin-top: 10px; color: var(--muted); }
.hero-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.hero-search input { flex: 1 1 220px; }
.photo-manage, .photo-pending { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.photo-pending:empty { display: none; }
.photo-card, .photo-pending figure { margin: 0; flex: 0 0 148px; display: grid; gap: 8px; align-content: start; }
.photo-card img, .photo-pending img { width: 148px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-card figcaption { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
