:root {
    color-scheme: dark;
    --bg: #101214;
    --surface: #181b1e;
    --panel: #1c2023;
    --hover: #292e32;
    --ink: #f0f2f0;
    --muted: #a6adb2;
    --line: #343a3e;
    --primary: #edf0e9;
    --on-primary: #161a13;
    --tag-bg: #2a3034;
    --tag-ink: #c2c9ce;
    --soft-lime: #303a21;
    --error-bg: #3c2323;
    --error-ink: #ffb3a9;
    --accent: #d5f455;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--ink);
    font-size: 14px;
    font-synthesis: none;
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #fff;
    --surface: #f7f8fa;
    --panel: #fff;
    --hover: #eef0f2;
    --ink: #161719;
    --muted: #626971;
    --line: #dce0e5;
    --primary: #161719;
    --on-primary: #fff;
    --tag-bg: #f1f2f5;
    --tag-ink: #525863;
    --soft-lime: #eef3dd;
    --error-bg: #fff0ee;
    --error-ink: #ac3428;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
    margin: 0;
    background: var(--bg);
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    color: var(--ink);
    padding: 10px 14px;
    font-weight: 550;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition:
        background 0.15s,
        transform 0.15s;
}
button:hover {
    background: var(--hover);
}
button:disabled {
    cursor: wait;
    opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #9ab930;
    outline-offset: 3px;
}
input,
textarea,
select {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 11px 12px;
    background: var(--panel);
    color: var(--ink);
    width: 100%;
    min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #c3df56;
    outline-offset: 1px;
}
textarea {
    resize: vertical;
    line-height: 1.65;
    min-height: 180px;
}
a {
    color: inherit;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: 34px;
    letter-spacing: -1.3px;
    margin-bottom: 7px;
    font-weight: 700;
    line-height: 1.15;
}
h2 {
    font-size: 23px;
    letter-spacing: -0.6px;
}
h3 {
    font-size: 16px;
    letter-spacing: -0.2px;
}
.muted {
    color: var(--muted);
}
.small {
    font-size: 12px;
}
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}
.primary {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}
.primary:hover {
    background: var(--primary);
    filter: brightness(0.9);
}
.lime {
    background: var(--accent);
    border-color: var(--accent);
    color: #171b08;
}
.lime:hover {
    background: #c8e944;
}
.wide {
    width: 100%;
}
.icon-button {
    padding: 8px;
}
.brand {
    font-size: 32px;
    letter-spacing: -1.6px;
    font-weight: 850;
    text-decoration: none;
    display: block;
    line-height: 1.1;
}
.brand-logo {
    display: block;
    width: 145px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
:root[data-theme="light"] .brand-logo {
    filter: brightness(0);
}
.brand small {
    display: block;
    font-size: 14px;
    letter-spacing: 0;
    color: var(--muted);
    font-weight: 400;
    margin-top: 7px;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 220px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}
.sidebar .brand {
    padding-left: 12px;
}
nav {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
nav button {
    justify-content: flex-start;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    font-weight: 450;
    gap: 13px;
}
nav button.selected {
    background: var(--accent);
    color: #171b08;
    font-weight: 650;
}
nav button:hover {
    background: var(--soft-lime);
}
nav button.selected:hover { background: #c8e944; }
.sidebar-bottom {
    margin-top: auto;
}
.user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.user-row small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hover);
    display: grid;
    place-items: center;
    font-weight: 600;
}
.logout {
    margin: 13px 0 0 35px;
    background: none;
    border: 0;
    font-size: 11px;
    color: var(--muted);
    padding: 4px;
}
#main {
    margin-left: 220px;
    padding: 38px 38px 60px;
    max-width: 1800px;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}
.page-header p {
    margin: 0;
    font-size: 16px;
}
.page-header .primary {
    padding: 12px 19px;
}
.local-note {
    font-size: 11px;
    color: var(--muted);
    margin: -7px 0 20px;
}
.filters {
    display: flex;
    gap: 12px;
    align-items: center;
}
.search-wrap {
    position: relative;
    flex: 1;
    min-width: 150px;
}
.search-wrap input {
    padding-left: 39px;
    padding-right: 30px;
}
.search-wrap > span {
    position: absolute;
    left: 12px;
    top: 12px;
    color: var(--muted);
}
kbd {
    position: absolute;
    right: 13px;
    top: 12px;
    font-size: 12px;
    color: #8b9097;
}
.filters select {
    width: 195px;
}
.segmented {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 3px;
    gap: 2px;
}
.segmented button {
    border: 0;
    padding: 8px 12px;
    font-size: 12px;
    background: transparent;
}
.segmented .selected {
    background: var(--hover);
    color: var(--ink);
}
.results-line {
    margin: 22px 0 16px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 5px;
    background: var(--panel);
    overflow: hidden;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.card:hover {
    border-color: #c4cdad;
    box-shadow: 0 5px 20px #18210b09;
}
.card-visual {
    flex-shrink: 0;
    position: relative;
    aspect-ratio: 1.28;
    background: var(--surface);
    border-radius: 5px;
    overflow: hidden;
}
.card-open {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    display: block;
    background: transparent;
    text-align: left;
}
.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.card-visual .favorite {
    position: absolute;
    right: 10px;
    top: 10px;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 8px #0001;
}
.favorite.on {
    color: #57720e;
    background: var(--accent);
}
.favorite.on .icon {
    fill: currentColor;
}
.empty-cover {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #969c89;
}
.empty-cover .icon {
    width: 40px;
    height: 40px;
    stroke-width: 1;
}
.card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 13px 10px 10px;
}
.card-title {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    letter-spacing: -0.3px;
    font-size: 16px;
    font-weight: 650;
    margin-bottom: 8px;
}
.card-title:hover {
    text-decoration: underline;
    background: transparent;
}
.card-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    margin-bottom: 13px;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 25px;
}
.tag {
    font-size: 10px;
    padding: 4px 7px;
    background: var(--tag-bg);
    color: var(--tag-ink);
    border-radius: 4px;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
}
.card-actions .copy {
    flex: 1;
    font-size: 12px;
}
.card-actions .icon {
    width: 16px;
    height: 16px;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 28px;
}
.empty {
    grid-column: 1/-1;
    padding: 85px 20px;
    text-align: center;
    background: var(--surface);
    border-radius: 10px;
}
.empty .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: #89927a;
}
.empty p {
    color: var(--muted);
    line-height: 1.7;
}
dialog {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0;
    max-height: 94dvh;
    width: min(590px, calc(100vw - 24px));
    color: var(--ink);
    box-shadow: 0 20px 80px #0002;
}
dialog::backdrop {
    background: #12181140;
    backdrop-filter: blur(2px);
}
dialog.drawer {
    margin: 0 0 0 auto;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    width: min(560px, 100vw);
    border-right: 0;
}
.dialog-header {
    padding: 22px 25px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}
.dialog-header h2 {
    margin: 0 0 8px;
}
.dialog-header p {
    margin: 0;
    font-size: 12px;
}
.dialog-body {
    padding: 24px;
}
.detail-cover {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 7px;
    background: var(--surface);
}
.tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    margin-top: 20px;
}
.tabs button {
    border: 0;
    background: none;
    border-radius: 0;
    flex: 1;
    font-size: 12px;
    padding: 14px 4px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
}
.tabs button.selected {
    color: var(--ink);
    border-color: var(--accent);
    font-weight: 650;
}
.tab-content {
    padding-top: 24px;
}
.prompt-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 18px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.8;
    max-height: 400px;
    overflow: auto;
}
.counter {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    margin: 8px 0 20px;
}
.action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0;
}
.action-row > .primary,
.action-row > .lime {
    flex: 1;
}
.detail-footer {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}
.section-heading h3 {
    margin: 0;
}
.section-heading button {
    font-size: 12px;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.media-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.media-card img,
.media-card video {
    width: 100%;
    aspect-ratio: 1.3;
    object-fit: contain;
    background: var(--surface);
}
.media-info {
    padding: 10px;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.media-info strong {
    display: block;
}
.media-info a {
    font-size: 11px;
}
.media-info p {
    margin: 5px 0;
}
.media-info details {
    margin-top: 9px;
}
.media-info pre,
.history pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
    max-height: 220px;
    overflow: auto;
}
.history {
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
}
.history summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}
.history button {
    font-size: 12px;
}
label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 17px;
}
label input,
label select,
label textarea {
    display: block;
    margin-top: 7px;
    font-weight: 400;
}
.form-row {
    display: flex;
    gap: 14px;
}
.form-row > * {
    flex: 1;
    min-width: 0;
}
.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 24px;
}
.hint {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.6;
}
.alias-suggestions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: -5px 0 15px;
}
.alias-suggestions button {
    font-size: 11px;
    padding: 5px 8px;
    background: var(--soft-lime);
}
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
}
.check-row input {
    width: 16px;
    margin: 0;
}
.dropzone {
    position: relative;
    background: var(--surface);
    border: 1px dashed #bcc4ae;
    padding: 28px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.initial-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.initial-result fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.dropzone input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.dropzone:hover,
.dropzone:focus-within {
    border-color: var(--accent);
    background: var(--soft-lime);
}
.dropzone.is-dragging {
    border-color: var(--accent);
    border-style: solid;
    background: var(--soft-lime);
    transform: scale(1.01);
}
.dropzone-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: var(--panel);
}
.dropzone-action {
    color: var(--muted);
    font-size: 12px;
}
.dropzone-file {
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    overflow-wrap: anywhere;
}
.dropzone.has-file {
    border-style: solid;
    border-color: var(--accent);
}
.error {
    background: var(--error-bg);
    color: var(--error-ink);
    padding: 12px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.5;
}
.notice {
    background: var(--soft-lime);
    padding: 12px;
    border-radius: 7px;
    line-height: 1.6;
}
.inline-error:empty {
    display: none;
}
.catalog-section {
    margin: 25px 0 40px;
}
.catalog-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.catalog-row input {
    max-width: 280px;
}
.catalog-row .order {
    width: 70px;
}
.catalog-row label {
    margin: 0;
}
.catalog-row strong {
    flex: 1;
}
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}
.admin-description {
    line-height: 1.7;
    max-width: 650px;
}
.user-email {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}
#toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: #222820;
    color: white;
    padding: 13px 22px;
    border-radius: 8px;
    box-shadow: 0 5px 30px #0002;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: 0.2s;
    max-width: calc(100vw - 30px);
    font-size: 13px;
}
#toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
#toast.error {
    background: #9b392e;
}
.access-page {
    background: var(--surface);
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 30px;
}
.access-card {
    width: min(450px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 42px;
    border-radius: 14px;
}
.access-card .brand {
    margin-bottom: 45px;
}
.access-card h1 {
    font-size: 30px;
    line-height: 1.2;
}
.access-card > p {
    line-height: 1.65;
    margin-bottom: 25px;
}
.access-card .text-link {
    display: block;
    text-align: center;
    font-size: 12px;
    margin-top: 22px;
}
.access-card footer {
    margin-top: 35px;
    text-align: center;
}
.inline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.inline-head label {
    margin: 0;
}
.inline-head button {
    font-size: 11px;
    padding: 6px 10px;
}
.demo-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #ffffffdc;
    color: #161719;
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 3px;
}
.alias-highlight {
    background: #e5f6a2;
    color: #171b08;
    border-radius: 3px;
    padding: 1px 2px;
}
.media-full {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
}
.loading {
    opacity: 0.55;
    pointer-events: none;
}
.theme-toggle { font-size: 12px; padding: 9px 12px; margin-bottom: 20px; }
.access-theme { position: absolute; top: 18px; right: 18px; }
.access-page { padding-top: 75px; }
.advanced-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.advanced-filters label { margin: 0; color: var(--muted); font-weight: 500; font-size: 11px; }
.advanced-filters select { font-size: 12px; }
.filter-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-top: 7px; }
.filter-status button { padding: 5px 9px; flex-shrink: 0; }
.results-line { margin-top: 12px; }
.demo-art, .detail-cover > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-art { overflow: hidden; }
.aspect-badge { position: absolute; bottom: 8px; right: 8px; background: #101214da; color: #fff; border: 1px solid #ffffff35; border-radius: 4px; padding: 3px 6px; font-size: 10px; pointer-events: none; }
.media-frame { background: var(--surface); }
.media-frame img, .media-frame video { display: block; }
.media-dimensions { padding: 7px 10px 0; font-size: 10px; }
.card-meta { flex-wrap: wrap; }
.model-toggle { justify-content: space-between; text-align: left; font-weight: 400; }
#model-picker { margin-bottom: 18px; }
#model-picker-label { margin-bottom: 7px; }
.model-options { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--surface); }
.model-status { margin: 10px 0; }
.model-options select { padding: 4px; }
.model-options option { padding: 8px; overflow-wrap: anywhere; }
.custom-model { margin-top: 12px; }
.search-toolbar { display: flex; align-items: flex-start; gap: 10px; }
.search-box { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.search-box:focus-within { outline: 2px solid #c3df56; outline-offset: 1px; }
.search-box .search-wrap { min-width: 0; }
.search-box input { border: 0; background: transparent; outline: none; }
.search-toolbar > button { min-height: 42px; flex-shrink: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 10px; }
.filter-chip { background: var(--soft-lime); font-size: 11px; padding: 5px 8px; font-weight: 400; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.filter-chip span { font-size: 16px; }
#filter-count { background: var(--accent); color: #171b08; border-radius: 20px; padding: 1px 6px; font-size: 11px; }
.filter-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 16px; margin-top: 12px; }
.filter-panel .advanced-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.filter-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.filter-panel .segmented button { flex: 1; }
@media (max-width: 620px) {
    .search-toolbar { flex-wrap: wrap; gap: 8px; }
    .search-box { flex-basis: 100%; }
    .filter-panel { padding: 12px; }
    .filter-panel .advanced-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
    .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 1150px) {
    #main {
        padding: 30px 24px;
    }
    .sidebar {
        width: 190px;
        padding: 32px 14px;
    }
    #main {
        margin-left: 190px;
    }
    .filters {
        flex-wrap: wrap;
    }
    .search-wrap {
        flex-basis: 100%;
    }
    .filters select {
        flex: 1;
    }
    .grid {
        gap: 14px;
    }
    .card-title {
        font-size: 14px;
    }
}
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .results-line > span:last-child {
        display: none;
    }
}
@media (max-width: 620px) {
    .advanced-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
    .filter-status { align-items: flex-start; }
    .sidebar-bottom .theme-toggle { margin: 0 0 4px; padding: 5px 8px; font-size: 11px; }
    .sidebar-bottom { display: flex; flex-direction: column; align-items: flex-end; }
    .sidebar {
        position: static;
        width: 100%;
        padding: 18px 16px 10px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        display: block;
    }
    .sidebar .brand {
        font-size: 25px;
        padding: 0;
    }
    .brand small {
        font-size: 11px;
    }
    .sidebar .brand-logo {
        width: 105px;
    }
    .sidebar nav {
        margin: 18px 0 0;
        flex-direction: row;
        gap: 5px;
        overflow-x: auto;
        padding-bottom: 3px;
    }
    .sidebar nav button {
        font-size: 11px;
        padding: 8px;
        gap: 5px;
        white-space: nowrap;
    }
    .sidebar nav .icon {
        width: 16px;
        height: 16px;
    }
    .sidebar-bottom {
        position: absolute;
        right: 15px;
        top: 20px;
    }
    .user-row {
        display: none;
    }
    .logout {
        margin: 0;
        padding: 5px;
    }
    #main {
        margin: 0;
        padding: 24px 16px;
    }
    h1 {
        font-size: 29px;
    }
    .page-header p {
        font-size: 13px;
    }
    .page-header .primary {
        font-size: 12px;
        padding: 11px;
    }
    .local-note {
        font-size: 10px;
        line-height: 1.5;
    }
    .filters {
        gap: 8px;
    }
    .filters select {
        width: 130px;
        font-size: 12px;
    }
    .segmented button {
        padding: 8px;
        font-size: 11px;
    }
    .grid {
        gap: 10px;
    }
    .card-info {
        padding: 10px 5px;
    }
    .card-meta {
        font-size: 10px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .card-title {
        font-size: 13px;
        line-height: 1.4;
    }
    .card-actions .copy {
        padding: 9px 5px;
        font-size: 10px;
        gap: 4px;
    }
    .card-actions > .icon-button {
        display: none;
    }
    .tags {
        gap: 3px;
    }
    .tag {
        font-size: 9px;
        padding: 3px 5px;
    }
    .card-visual {
        aspect-ratio: 1;
    }
    .card-visual .favorite {
        padding: 4px;
        right: 6px;
        top: 6px;
    }
    .favorite .icon {
        width: 16px;
        height: 16px;
    }
    .dialog-body {
        padding: 18px;
    }
    .dialog-header {
        padding: 18px;
    }
    .detail-cover {
        height: 215px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .access-card {
        padding: 28px;
    }
    .catalog-row {
        flex-wrap: wrap;
    }
    .catalog-row input {
        flex: 1;
    }
    .catalog-row button {
        font-size: 11px;
    }
    .media-grid {
        gap: 8px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.password-field {
        position: relative;
            display: block;
}
.password-field input {
        padding-right: 48px;
}
.password-toggle {
        position: absolute;
            top: 50%;
                right: 5px;
                    width: 38px;
                        height: 38px;
                            padding: 8px;
                                border: 0;
                                    background: transparent;
                                        color: var(--muted);
                                            transform: translateY(-50%);
}
.password-toggle:hover {
        background: var(--hover);
            color: var(--ink);
}
.password-toggle:focus-visible {
        outline: 2px solid #c3df56;
            outline-offset: -2px;
}
.password-toggle svg {
        width: 20px;
            height: 20px;
                fill: none;
                    stroke: currentColor;
                        stroke-width: 1.8;
                            stroke-linecap: round;
                                stroke-linejoin: round;
}
.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
        display: none;
}
.password-toggle[aria-pressed="true"] .eye-closed {
        display: block;
}

}
}
}
}
}
}
}
}
.password-field {position:relative;display:block}.password-field input{padding-right:48px}.password-toggle{position:absolute;top:50%;right:5px;width:38px;height:38px;padding:8px;border:0;background:transparent;color:var(--muted);transform:translateY(-50%)}.password-toggle:hover{background:var(--hover);color:var(--ink)}.password-toggle:focus-visible{outline:2px solid #c3df56;outline-offset:-2px}.password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.password-toggle .eye-closed,.password-toggle[aria-pressed="true"] .eye-open{display:none}.password-toggle[aria-pressed="true"] .eye-closed{display:block}
;