.saved-page {
    width: min(980px, calc(100% - 24px));
    margin: 24px auto 56px;
    text-align: left;
}

.saved-hero {
    margin-bottom: 20px;
    text-align: center;
}

.saved-eyebrow {
    margin-bottom: 5px;
    color: #6243d7;
    font-size: var(--type-small);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.saved-hero h1 {
    margin: 0 0 8px;
    font-size: var(--type-h1);
}

.saved-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: #62596c;
    line-height: 1.55;
}

.saved-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 620px;
    margin: 0 auto 18px;
    padding: 6px;
    background: #f2f1f8;
    border: 1px solid #e2e0eb;
    border-radius: 14px;
}

.saved-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    color: #555b66;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.saved-tab.is-active {
    color: #34286c;
    background: #fff;
    box-shadow: 0 1px 5px rgba(42, 35, 70, .10);
}

.saved-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    padding: 0 7px;
    color: #fff;
    background: #6243d7;
    border-radius: 999px;
    font-size: var(--type-small);
    line-height: 1;
}

.saved-panel {
    padding: 20px;
    background: #fff;
    border: 1px solid #e4e3e9;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(39, 34, 58, .055);
}

.saved-panel[hidden] {
    display: none !important;
}

.saved-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.saved-panel-head h2 {
    margin: 0 0 4px;
    font-size: var(--type-h2);
}

.saved-panel-head p {
    margin: 0;
    color: #62596c;
    font-size: var(--type-body);
    line-height: 1.45;
}

.saved-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.saved-filter-button,
.saved-button {
    min-height: 38px;
    padding: 7px 12px;
    color: #4d5260;
    background: #fff;
    border: 1px solid #d9d7e1;
    border-radius: 9px;
    font: inherit;
    font-size: var(--type-control);
    font-weight: 700;
    cursor: pointer;
}

.saved-filter-button:hover,
.saved-button:hover {
    border-color: #bdb5ea;
}

.saved-filter-button.is-active {
    color: #fff;
    background: #6243d7;
    border-color: #6243d7;
}

.saved-button-danger {
    color: #a13646;
}

.saved-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.saved-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 15px;
    background: #fafafd;
    border: 1px solid #e4e3e9;
    border-radius: 13px;
}

.saved-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.saved-card-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 7px;
    padding: 3px 8px;
    color: #6453a5;
    background: #efecff;
    border-radius: 999px;
    font-size: var(--type-small);
    font-weight: 700;
}

.saved-card h3 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: var(--type-h3);
}

.saved-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    color: #62596c;
    font-size: var(--type-small);
}

.saved-card-meta span {
    overflow-wrap: anywhere;
}

.saved-reminder-due {
    margin-top: 9px;
    padding: 7px 9px;
    color: #7a4c08;
    background: #fff6df;
    border: 1px solid #f1d59a;
    border-radius: 8px;
    font-size: var(--type-body);
    font-weight: 700;
}

.saved-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 14px;
}

.saved-card-actions a,
.saved-card-actions button,
.saved-empty-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    padding: 7px 11px;
    border-radius: 8px;
    font: inherit;
    font-size: var(--type-control);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.saved-card-actions a,
.saved-empty-actions a {
    color: #fff;
    background: #6243d7;
    border: 1px solid #6243d7;
}

.saved-card-actions button {
    color: #a13646;
    background: #fff;
    border: 1px solid #ded9df;
}

.saved-empty {
    padding: 34px 16px;
    text-align: center;
    background: #fafafd;
    border: 1px dashed #d8d5e2;
    border-radius: 13px;
}

.saved-empty > span {
    display: block;
    margin-bottom: 7px;
    font-size: 2rem;
}

.saved-empty h3 {
    margin: 0 0 6px;
    font-size: var(--type-h3);
}

.saved-empty p {
    max-width: 560px;
    margin: 0 auto;
    color: #62596c;
    font-size: var(--type-body);
    line-height: 1.5;
}

.saved-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.saved-notification-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f8f7fc;
    border: 1px solid #e2e0eb;
    border-radius: 11px;
}

.saved-notification-box strong,
.saved-notification-box span {
    display: block;
}

.saved-notification-box span {
    margin-top: 2px;
    color: #62596c;
    font-size: var(--type-body);
}

.saved-privacy {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    color: #5d6270;
    background: #f8f7fc;
    border: 1px solid #e1deeb;
    border-radius: 12px;
}

.saved-privacy > span {
    font-size: var(--type-small);
}

.saved-privacy strong {
    color: #454a55;
}

.saved-privacy p {
    margin: 3px 0 0;
    font-size: var(--type-small);
    line-height: 1.5;
}

.saved-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    max-width: min(360px, calc(100% - 32px));
    padding: 12px 14px;
    color: #fff;
    background: #383342;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    font-size: var(--type-body);
}

@media (max-width: 720px) {
    .saved-grid {
        grid-template-columns: 1fr;
    }

    .saved-panel-head,
    .saved-notification-box {
        align-items: stretch;
        flex-direction: column;
    }

    .saved-panel-head .saved-button,
    .saved-notification-box .saved-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .saved-page {
        width: min(100% - 16px, 980px);
        margin-top: 14px;
    }

    .saved-panel {
        padding: 14px;
    }

    .saved-tabs {
        grid-template-columns: 1fr;
    }
}
