:root {
    --resource-ink: #172033;
    --resource-muted: #657084;
    --resource-line: #dfe4ec;
    --resource-paper: #ffffff;
    --resource-page: #f6f7fb;
    --resource-violet: #6558d9;
    --resource-violet-dark: #4d42bc;
    --resource-mint: #dff7ed;
    --resource-mint-ink: #167052;
    --resource-shadow: 0 18px 48px rgba(27, 35, 58, 0.09);
}

.resource-library-page {
    min-height: calc(100vh - var(--main-nav-height, 88px));
    padding: 0 1rem 4rem;
    color: var(--resource-ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(101, 88, 217, 0.1), transparent 28rem),
        radial-gradient(circle at 100% 12%, rgba(53, 196, 151, 0.1), transparent 24rem),
        var(--resource-page);
}

.resource-library-shell,
.resource-form-shell {
    padding-top: 1.25rem;
}

.resource-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
    align-items: center;
    gap: 2rem;
    min-height: 19rem;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(101, 88, 217, 0.16);
    border-radius: 2rem;
    background: linear-gradient(135deg, #fbfaff 0%, #f3f1ff 52%, #edf9f5 100%);
    box-shadow: var(--resource-shadow);
}

.resource-hero::before {
    position: absolute;
    z-index: -1;
    right: -6rem;
    bottom: -8rem;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(101, 88, 217, 0.15);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.28), 0 0 0 6rem rgba(101, 88, 217, 0.04);
    content: "";
}

.resource-hero-copy {
    max-width: 42rem;
}

.resource-eyebrow,
.resource-list-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.8rem;
    color: var(--resource-violet-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.resource-hero h1,
.resource-form-header h1 {
    margin: 0;
    color: var(--resource-ink);
    font-size: clamp(2.2rem, 5vw, 4.25rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: -0.055em;
    word-break: keep-all;
}

.resource-hero-summary {
    max-width: 36rem;
    margin: 1.1rem 0 1.6rem;
    color: #505d74;
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 700;
    line-height: 1.7;
    word-break: keep-all;
}

.resource-primary-action,
.resource-secondary-action,
.resource-filter-submit,
.resource-delete-trigger,
.resource-delete-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    border: 0;
    border-radius: 0.85rem;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.resource-primary-action {
    padding: 0.8rem 1.2rem;
    color: #fff;
    background: var(--resource-violet);
    box-shadow: 0 10px 24px rgba(101, 88, 217, 0.25);
}

.resource-primary-action:hover {
    color: #fff;
    background: var(--resource-violet-dark);
    box-shadow: 0 13px 30px rgba(101, 88, 217, 0.3);
    transform: translateY(-1px);
}

.resource-primary-action:focus-visible,
.resource-secondary-action:focus-visible,
.resource-view-tab:focus-visible,
.resource-filter-submit:focus-visible,
.resource-filter-reset:focus-visible,
.resource-open-action:focus-visible,
.resource-edit-action:focus-visible,
.resource-delete-trigger:focus-visible,
.resource-delete-confirm:focus-visible,
.resource-back-link:focus-visible {
    outline: 3px solid rgba(101, 88, 217, 0.32);
    outline-offset: 3px;
}

.resource-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 13rem;
}

.resource-detect-preview {
    width: min(20rem, 100%);
    padding: 1.15rem;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 38px rgba(38, 46, 72, 0.14);
    transform: rotate(-1.5deg);
}

.resource-detect-label {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--resource-violet-dark);
    font-size: 0.72rem;
    font-weight: 900;
}

.resource-detect-url {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.9rem;
    border: 1px solid #dfe4ec;
    border-radius: 0.85rem;
    color: #788397;
    background: #f8f9fc;
    font-size: 0.82rem;
    font-weight: 800;
}

.resource-detect-url i {
    color: var(--resource-violet);
}

.resource-detect-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.resource-detect-result > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #69758a;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: right;
}

.resource-detect-result > span:last-child i {
    color: #21a474;
}

.resource-view-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.35rem 0 0;
    padding: 0.35rem;
    border: 1px solid var(--resource-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 24px rgba(28, 37, 57, 0.04);
}

.resource-view-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    color: #697489;
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
}

.resource-view-tab > span {
    min-width: 1.55rem;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    color: #667085;
    background: #eef0f4;
    font-size: 0.72rem;
    text-align: center;
}

.resource-view-tab:hover {
    color: var(--resource-ink);
    background: #f5f5f8;
}

.resource-view-tab.is-active {
    color: #fff;
    background: #232b3c;
    box-shadow: 0 8px 18px rgba(23, 32, 51, 0.16);
}

.resource-view-tab.is-active > span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.resource-library-content {
    margin-top: 1rem;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid var(--resource-line);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 42px rgba(27, 35, 58, 0.06);
}

.resource-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.resource-list-kicker {
    margin-bottom: 0.3rem;
    color: #778197;
    letter-spacing: 0.04em;
}

.resource-list-heading h2 {
    margin: 0;
    color: var(--resource-ink);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 950;
    letter-spacing: -0.035em;
}

.resource-list-heading h2 span {
    color: #8b94a5;
    font-size: 0.85rem;
    letter-spacing: 0;
}

.resource-filter-bar {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(9rem, 0.38fr) minmax(8rem, 0.32fr) auto auto;
    align-items: end;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: #f6f7fa;
}

.resource-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.resource-search-field > i {
    position: absolute;
    left: 0.9rem;
    color: #8b95a7;
    pointer-events: none;
}

.resource-search-field input,
.resource-filter-field select,
.resource-form-control {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #cfd5df;
    border-radius: 0.75rem;
    color: var(--resource-ink);
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
}

.resource-search-field input {
    padding: 0.72rem 0.8rem 0.72rem 2.55rem;
}

.resource-filter-field {
    display: grid;
    gap: 0.3rem;
}

.resource-filter-field > span {
    padding-left: 0.15rem;
    color: #687388;
    font-size: 0.72rem;
    font-weight: 900;
}

.resource-filter-field select {
    padding: 0.65rem 2.2rem 0.65rem 0.8rem;
}

.resource-search-field input:focus,
.resource-filter-field select:focus,
.resource-form-control:focus {
    border-color: var(--resource-violet);
    outline: 3px solid rgba(101, 88, 217, 0.13);
}

.resource-filter-submit {
    padding: 0.7rem 1rem;
    color: #fff;
    background: #30394b;
}

.resource-filter-submit:hover {
    background: #1d2534;
}

.resource-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.6rem 0.4rem;
    color: #6f798b;
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
}

.resource-filter-reset:hover {
    color: var(--resource-violet-dark);
}

.resource-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.resource-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 22rem;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid var(--resource-line);
    border-radius: 1.15rem;
    background: var(--resource-paper);
    box-shadow: 0 8px 22px rgba(25, 34, 55, 0.055);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.resource-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 0.24rem;
    background: #7b8495;
    content: "";
}

.resource-card--claude::before {
    background: #c66a41;
}

.resource-card--gemini::before {
    background: linear-gradient(90deg, #3f7dea, #975ee8);
}

.resource-card--chatgpt_sites::before {
    background: #171717;
}

.resource-card--notebooklm::before {
    background: #2674db;
}

.resource-card:hover {
    border-color: #cad0dc;
    box-shadow: 0 16px 34px rgba(25, 34, 55, 0.1);
    transform: translateY(-2px);
}

.resource-card-topline,
.resource-card-meta,
.resource-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.resource-platform-badge,
.resource-visibility-badge,
.resource-purpose {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 900;
    white-space: nowrap;
}

.resource-platform-badge {
    max-width: 72%;
    padding: 0.38rem 0.6rem;
    overflow: hidden;
    color: #566176;
    background: #f0f2f6;
    text-overflow: ellipsis;
}

.resource-card--claude .resource-platform-badge {
    color: #9a4e2d;
    background: #fff0e8;
}

.resource-card--gemini .resource-platform-badge {
    color: #5542a9;
    background: #efedff;
}

.resource-card--chatgpt_sites .resource-platform-badge,
.resource-detect-result .resource-platform-badge {
    color: #fff;
    background: #20242c;
}

.resource-card--notebooklm .resource-platform-badge {
    color: #1f5fac;
    background: #eaf3ff;
}

.resource-platform-symbol {
    font-weight: 950;
}

.resource-visibility-badge {
    padding: 0.35rem 0.52rem;
    color: #6e7788;
    background: #f4f5f7;
}

.resource-visibility-badge--shared {
    color: var(--resource-mint-ink);
    background: var(--resource-mint);
}

.resource-card-body {
    flex: 1 1 auto;
    padding: 1.2rem 0 0.9rem;
}

.resource-purpose {
    padding: 0.3rem 0.55rem;
    color: #4f46a8;
    background: #f0efff;
}

.resource-card h3 {
    margin: 0.7rem 0 0.55rem;
    overflow-wrap: anywhere;
    color: var(--resource-ink);
    font-size: 1.18rem;
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.resource-card-body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #626e82;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.65;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.resource-card-body .resource-card-note-empty {
    color: #9aa2b0;
}

.resource-link-host {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    color: #798396;
    background: #f7f8fa;
    font-size: 0.73rem;
    font-weight: 800;
}

.resource-link-host span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-card-meta {
    min-height: 2rem;
    color: #8c95a5;
    font-size: 0.7rem;
    font-weight: 800;
}

.resource-card-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-card-actions {
    margin-top: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eceef2;
}

.resource-open-action,
.resource-edit-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.7rem;
    border-radius: 0.72rem;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.resource-open-action {
    flex: 1 1 auto;
    padding: 0.65rem 0.8rem;
    color: #fff;
    background: #283247;
}

.resource-open-action:hover {
    color: #fff;
    background: #141b29;
}

.resource-edit-action {
    flex: 0 0 auto;
    padding: 0.6rem 0.75rem;
    color: #687388;
    background: #f0f2f6;
}

.resource-edit-action:hover {
    color: var(--resource-violet-dark);
    background: #ebe9ff;
}

.resource-empty-state {
    display: flex;
    min-height: 18rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    border: 1px dashed #cdd3dd;
    border-radius: 1.15rem;
    text-align: center;
    background: #fafbfc;
}

.resource-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 4.2rem;
    margin-bottom: 1rem;
    border-radius: 1.35rem;
    color: var(--resource-violet);
    background: #eceaff;
    font-size: 1.6rem;
}

.resource-empty-state h3 {
    margin: 0;
    color: var(--resource-ink);
    font-size: 1.1rem;
    font-weight: 950;
}

.resource-empty-state p {
    margin: 0.45rem 0 0;
    color: #7a8497;
    font-size: 0.86rem;
    font-weight: 700;
}

.resource-empty-state a {
    margin-top: 0.8rem;
    color: var(--resource-violet-dark);
    font-size: 0.85rem;
    font-weight: 900;
}

.resource-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.resource-pagination a,
.resource-pagination span {
    display: inline-flex;
    min-width: 2.5rem;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--resource-line);
    border-radius: 0.7rem;
    color: #5f6a7e;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.resource-pagination span {
    padding: 0 0.8rem;
    border-color: transparent;
    background: transparent;
}

/* Form */
.resource-library-page--form {
    padding-bottom: 5rem;
}

.resource-form-shell {
    max-width: 58rem;
}

.resource-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    margin-bottom: 0.8rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.75rem;
    color: #687388;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
}

.resource-back-link:hover {
    color: var(--resource-violet-dark);
    background: rgba(255, 255, 255, 0.72);
}

.resource-form-header {
    margin-bottom: 1.2rem;
    padding: clamp(1.5rem, 4vw, 2.4rem);
    border: 1px solid rgba(101, 88, 217, 0.16);
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #fbfaff, #f1f8f5);
    box-shadow: 0 14px 36px rgba(27, 35, 58, 0.07);
}

.resource-form-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.resource-form-header > p:last-child {
    margin: 0.75rem 0 0;
    color: #647086;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
    word-break: keep-all;
}

.resource-entry-form {
    display: grid;
    gap: 1rem;
}

.resource-form-section {
    margin: 0;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--resource-line);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(27, 35, 58, 0.05);
}

.resource-form-section legend,
.resource-form-section > h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    color: var(--resource-ink);
    font-size: 1rem;
    font-weight: 950;
}

.resource-form-section legend {
    width: auto;
    padding: 0;
}

.resource-form-section legend > span,
.resource-form-section > h2 > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.6rem;
    color: #fff;
    background: var(--resource-violet);
    font-size: 0.78rem;
}

.resource-visibility-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 5.5rem;
    padding: 0.85rem;
    border: 1px solid #d8dde6;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.resource-visibility-choice:hover {
    border-color: #aaa4eb;
    background: #fbfaff;
}

.resource-visibility-choice:has(input:focus-visible) {
    outline: 3px solid rgba(101, 88, 217, 0.18);
    outline-offset: 2px;
}

.resource-visibility-choice:has(input:checked) {
    border-color: var(--resource-violet);
    background: #f7f6ff;
    box-shadow: 0 0 0 2px rgba(101, 88, 217, 0.11);
}

.resource-visibility-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.resource-visibility-choice strong,
.resource-visibility-choice small {
    display: block;
    word-break: keep-all;
}

.resource-visibility-choice strong {
    color: #2d374c;
    font-size: 0.84rem;
    font-weight: 950;
}

.resource-visibility-choice small {
    margin-top: 0.2rem;
    color: #7d8798;
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1.4;
}

.resource-choice-check {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    color: var(--resource-violet);
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 150ms ease, transform 150ms ease;
}

.resource-visibility-choice:has(input:checked) .resource-choice-check {
    opacity: 1;
    transform: scale(1);
}

.resource-form-fields {
    display: grid;
    gap: 1rem;
}

.resource-form-field {
    display: grid;
    gap: 0.42rem;
}

.resource-form-field > label {
    color: #374155;
    font-size: 0.82rem;
    font-weight: 950;
}

.resource-form-field > label span {
    margin-left: 0.3rem;
    color: #929aa9;
    font-size: 0.7rem;
    font-weight: 800;
}

.resource-form-control {
    min-height: 3.05rem;
    padding: 0.78rem 0.9rem;
    font-size: 0.94rem;
}

textarea.resource-form-control {
    min-height: 7rem;
    resize: vertical;
    line-height: 1.6;
}

.resource-field-help,
.resource-field-error {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.5;
}

.resource-field-help {
    color: #7d8798;
}

.resource-field-error {
    color: #b42335;
}

.resource-form-field.has-error .resource-form-control,
.resource-form-section.has-error {
    border-color: #e79aa5;
}

.resource-form-error-summary {
    padding: 0.85rem 1rem;
    border: 1px solid #fecaca;
    border-radius: 0.8rem;
    color: #a72a35;
    background: #fff1f2;
    font-size: 0.82rem;
    font-weight: 850;
}

.resource-form-error-summary p {
    margin: 0;
}

.resource-visibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.resource-visibility-choice {
    min-height: 5rem;
}

.resource-visibility-choice-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.78rem;
    color: var(--resource-violet-dark);
    background: #ebeaff;
}

.resource-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    padding-top: 0.25rem;
}

.resource-form-actions .resource-primary-action,
.resource-form-actions .resource-secondary-action {
    min-width: 9rem;
}

.resource-secondary-action {
    padding: 0.75rem 1rem;
    border: 1px solid #d7dce5;
    color: #5f697b;
    background: #fff;
}

.resource-secondary-action:hover {
    color: #30394b;
    background: #f5f6f8;
}

.resource-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 1.15rem;
    border: 1px solid #fed7dc;
    border-radius: 1rem;
    background: #fff8f8;
}

.resource-danger-zone h2,
.resource-danger-zone p {
    margin: 0;
}

.resource-danger-zone h2 {
    color: #7f1d2d;
    font-size: 0.9rem;
    font-weight: 950;
}

.resource-danger-zone p {
    margin-top: 0.2rem;
    color: #9d5a64;
    font-size: 0.74rem;
    font-weight: 750;
}

.resource-delete-trigger,
.resource-delete-confirm {
    padding: 0.65rem 1rem;
    color: #fff;
    background: #b42335;
}

.resource-delete-trigger:hover,
.resource-delete-confirm:hover {
    background: #8f1728;
}

.resource-delete-dialog {
    width: min(28rem, calc(100vw - 2rem));
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 1.25rem;
    color: var(--resource-ink);
    background: transparent;
    box-shadow: 0 22px 60px rgba(10, 16, 28, 0.26);
}

.resource-delete-dialog::backdrop {
    background: rgba(18, 24, 38, 0.5);
    backdrop-filter: blur(3px);
}

.resource-delete-dialog-panel {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #fff;
    text-align: center;
}

.resource-delete-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1.1rem;
    color: #b42335;
    background: #ffe9ec;
    font-size: 1.35rem;
}

.resource-delete-dialog h2 {
    margin: 1rem 0 0;
    color: var(--resource-ink);
    font-size: 1.2rem;
    font-weight: 950;
}

.resource-delete-dialog p {
    margin: 0.55rem 0 0;
    color: #6d7789;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.resource-delete-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.resource-delete-dialog-actions > *,
.resource-delete-dialog-actions button {
    width: 100%;
}

@media (max-width: 1050px) {
    .resource-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-filter-bar {
        grid-template-columns: minmax(12rem, 1fr) minmax(8.5rem, 0.45fr) minmax(8rem, 0.4fr) auto;
    }

    .resource-filter-reset {
        grid-column: 1 / -1;
        justify-content: flex-start;
        min-height: 1.5rem;
        padding: 0.1rem;
    }
}

@media (max-width: 780px) {
    .resource-library-page {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .resource-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 1.55rem;
        border-radius: 1.35rem;
    }

    .resource-hero-copy {
        text-align: left;
    }

    .resource-hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.4rem);
    }

    .resource-hero-visual {
        min-height: auto;
    }

    .resource-detect-preview {
        width: 100%;
        transform: none;
    }

    .resource-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-search-field {
        grid-column: 1 / -1;
    }

    .resource-filter-submit {
        grid-column: 1 / -1;
    }

    .resource-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .resource-card {
        min-height: 20rem;
    }

}

@media (max-width: 540px) {
    .resource-library-page {
        padding-bottom: 2.5rem;
    }

    .resource-library-shell,
    .resource-form-shell {
        padding-top: 0.5rem;
    }

    .resource-hero {
        min-height: auto;
    }

    .resource-view-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-view-tab:only-child {
        grid-column: 1 / -1;
    }

    .resource-library-content {
        padding: 1rem;
        border-radius: 1.15rem;
    }

    .resource-filter-bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .resource-search-field,
    .resource-filter-submit,
    .resource-filter-reset {
        grid-column: auto;
    }

    .resource-visibility-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .resource-visibility-choice {
        min-height: 4.8rem;
    }

    .resource-form-actions {
        flex-direction: column;
    }

    .resource-form-actions .resource-primary-action,
    .resource-form-actions .resource-secondary-action {
        width: 100%;
    }

    .resource-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .resource-delete-trigger {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .resource-primary-action,
    .resource-secondary-action,
    .resource-card,
    .resource-visibility-choice,
    .resource-choice-check {
        transition: none;
    }
}
