.account-page {
    min-height: 100vh;


    display: grid;
    place-items: center;
    padding: 2rem;

}
.account-card {
    width: min(100%,470px);



    padding: clamp(1.4rem,5vw,2.8rem);
}
.account-card h1 {
    font-size: 1.8rem;
    margin: 1.3rem 0;
}
.account-brand {

    font-size: .82rem;
    font-weight: bold;
}

.account-card label {
    display: block;
    margin: 1rem 0 .3rem;
    font-weight: bold;
}
.account-card input,.account-card select {
    width: 100%;
    padding: .75rem;
    border: 1px solid #b5a887;
    border-radius: 4px;
    background: #fffdf7;
    color: #243b2d;
}
.account-card button,.admin-button {
    display: inline-block;
    margin-top: 1.2rem;
    padding: .7rem 1.2rem;
    background: #254635;
    color: #fff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}
.account-card button:hover,.admin-button:hover {
    background: #35634a;
    color: white;
}
.account-card .notice {
    padding: .8rem;
    background: #e2eddf;
    border-left: 3px solid #416b4b;
}
.account-card .error {
    padding: .8rem;
    background: #fae8e0;
    border-left: 3px solid #b14e32;
}
.account-back {
    margin-top: 1.5rem;
}
.account-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.account-links a,.account-links button {
    color: inherit;
    font-size: .85rem;
}
.account-links form {
    margin: 0;
}
.account-links button {
    background: none;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
}
.admin-card {
    width: min(100%,780px);
}
.admin-card form {
    margin: 1rem 0;
}
.admin-card input[type=file] {
    background: #fff;
}
.account-card small {
    display: block;
    color: #665d49;
    margin-top: .4rem;
}

.admin-layout { display: flex; align-items: flex-start; gap: 2rem; }
.admin-main { flex: 1; min-width: 0; }
.admin-sidebar { order: 2; width: 185px; flex-shrink: 0; display: grid; gap: .5rem; }
.admin-sidebar a { padding: .65rem; border: 1px solid #ccc; border-radius: .4rem; text-decoration: none; }
.admin-sidebar a[aria-current="page"] { font-weight: 700; background: #eef2f5; }
.admin-users { width: 100%; border-collapse: collapse; }
.admin-users th, .admin-users td { padding: .5rem; border-bottom: 1px solid #ddd; text-align: left; }
.admin-inline { display: inline-block; margin: .15rem; }
@media (max-width: 720px) { .admin-layout { flex-direction: column-reverse; } .admin-sidebar { width: 100%; } }

/* Administration workspace: scoped so authentication pages retain their compact layout. */
.admin-page {
    display: block;
    min-height: 100vh;
    padding: clamp(1rem, 2.5vw, 2.5rem) 0;
    background: #ede9dd;
}
.admin-page .account-card {
    width: 90%;
    max-width: none;
    min-height: calc(100vh - 5rem);
    margin: 0 auto;
    padding: clamp(1.25rem, 2.8vw, 3rem);
    border: 1px solid #d6cbb4;
    border-radius: 16px;
    background: #fcfaf4;
    box-shadow: 0 20px 60px rgba(28, 48, 37, .09);
}
.admin-page .account-brand { color: #47614d; text-decoration: none; }
.admin-page .account-card > h1 {
    margin: .6rem 0 .3rem;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -.035em;
}
.admin-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
    margin: 0 0 2rem;
    color: #637366;
}
.admin-intro span { font-size: .9rem; }
.admin-page .admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: start;
}
.admin-page .admin-main { min-width: 0; }
.admin-workspace {
    min-height: 440px;
    padding: clamp(1.25rem, 2.4vw, 2.5rem);
    border: 1px solid #e4dfd2;
    border-radius: 12px;
    background: #fffefa;
}
.admin-workspace > h2 {
    margin: 0 0 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9e5da;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}
.admin-page .admin-sidebar {
    order: 2;
    position: sticky;
    top: 1.5rem;
    width: auto;
    display: grid;
    gap: .4rem;
    padding: 1rem;
    border: 1px solid #e4dfd2;
    border-radius: 12px;
    background: #f5f2e9;
}
.admin-sidebar-heading {
    padding: .5rem .65rem .8rem;
    color: #677869;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.admin-sidebar-heading span {
    display: block;
    margin-top: .3rem;
    color: #253e30;
    font-size: 1.15rem;
    letter-spacing: normal;
}
.admin-page .admin-sidebar a {
    padding: .85rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #344b3c;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease;
}
.admin-page .admin-sidebar a:hover { background: #e8ebdf; }
.admin-page .admin-sidebar a[aria-current="page"] {
    background: #294c39;
    color: #fff;
    border-color: #294c39;
}
.admin-workspace form:not(.admin-inline) { max-width: 850px; margin: 0; }
.admin-workspace label { margin-top: 1.3rem; }
.admin-workspace input:not([type="hidden"]),
.admin-workspace select,
.admin-workspace textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: .85rem 1rem;
    border: 1px solid #c9cebf;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}
.admin-workspace textarea { min-height: 125px; resize: vertical; }
.admin-workspace input:focus-visible,
.admin-workspace select:focus-visible,
.admin-workspace textarea:focus-visible,
.admin-page a:focus-visible,
.admin-page button:focus-visible { outline: 3px solid #88aa91; outline-offset: 2px; }
.admin-workspace button { border-radius: 8px; font: inherit; font-weight: 600; }
.admin-workspace .admin-users { width: 100%; border-collapse: collapse; }
.admin-workspace .admin-users th {
    padding: 1rem .85rem;
    background: #f2f3ea;
    color: #3e5544;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.admin-workspace .admin-users td { padding: 1rem .85rem; vertical-align: middle; }
.admin-workspace .admin-users tr:hover td { background: #fafbf5; }
.admin-workspace .admin-inline { display: inline-block; margin: .15rem; }
.admin-workspace .admin-inline button { margin: .2rem 0; padding: .5rem .8rem; }
.admin-page .account-back { margin-top: 2rem; }
@media (max-width: 900px) {
    .admin-page .admin-layout { grid-template-columns: minmax(0, 1fr); }
    .admin-page .admin-sidebar {
        order: 0;
        position: static;
        grid-row: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-sidebar-heading { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .admin-page .account-card { width: 96%; padding: 1rem; min-height: 0; }
    .admin-page .admin-sidebar { grid-template-columns: minmax(0, 1fr); }
    .admin-workspace { padding: 1rem; overflow-x: auto; }
    .admin-workspace .admin-users { min-width: 520px; }
}

/* Classic sidebar: scoped to administration; authentication screens are unchanged. */
body.admin-page {  margin:0; padding:0; }
.admin-page > .account-card { display:contents; }
.admin-page > .account-card > .account-brand, .admin-page > .account-card > h1, .admin-page > .account-card > .account-back { display:none; }
.admin-page .classic-shell { display:grid; grid-template-columns:260px minmax(0,1fr); min-height:100vh; width:100%;  }
.admin-page .classic-sidebar {   display:flex; flex-direction:column; min-height:100vh; }
.admin-page .classic-brand { display:flex; align-items:center;  color:white; text-decoration:none;  border-bottom:1px solid #425061; }
.admin-page .classic-brand strong { display:block; font-size:19px; } .admin-page .classic-brand small {display:block;margin-top:5px;}
.admin-page .classic-stamp {font-size:34px;color:#e8bd7c;}
.admin-page .classic-nav { padding:16px 10px; display:grid; gap:3px; }
.admin-page .classic-nav-link { display:flex; align-items:center; gap:15px; padding:14px 16px;  text-decoration:none; border-radius:7px; border:0; background:transparent; font:inherit; font-size:15px; width:100%; box-sizing:border-box; text-align:left; cursor:pointer; }

.admin-page .classic-nav-link[aria-current="page"] {font-weight:700;}
.admin-page .admin-icon {flex:none;}
.admin-page .classic-sidebar-bottom {margin-top:12px;padding:12px 10px 20px;border-top:1px solid #425061;}
.admin-page .classic-logout {margin:0;border-top:1px solid #425061;padding-top:8px;}
.admin-page .classic-content {min-width:0;display:flex;flex-direction:column;}
.admin-page .classic-topbar {min-height:84px;display:flex;justify-content:flex-end;align-items:center;gap:30px;padding:12px 4%;box-sizing:border-box;}
.admin-page .classic-topbar > a {display:flex;gap:8px;align-items:center;text-decoration:none;font-weight:650;}
.admin-page .classic-profile {display:flex;gap:12px;align-items:center;border-left:1px solid #d7deea;padding-left:24px;}
.admin-page .classic-profile strong,.admin-page .classic-profile small {display:block;}
.admin-page .classic-profile small {color:#68788e;}
.admin-page .classic-avatar {width:40px;height:40px;display:grid;place-items:center;border-radius:50%;}
.admin-page .classic-main {padding:26px 4% 64px;flex:1;max-width:none;}
.admin-page .classic-crumb {color:#71819b;margin-bottom:28px;}
.admin-page .classic-title {display:flex;align-items:center;gap:16px;margin-bottom:28px;}
.admin-page .classic-title-icon {border-radius:12px;padding:14px;display:flex;}
.admin-page .classic-title h2 {font-size:32px;line-height:1.2;margin:0 0 4px;}
.admin-page .classic-title p {margin:0;color:#65748a;}
.admin-page .classic-workspace {padding:26px;}
.admin-page .classic-section-heading {display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;}
.admin-page .classic-section-heading h3 {margin:0;}
.admin-page .classic-primary,.admin-page .classic-edit {background:#1265df;color:white;border:0;border-radius:6px;padding:10px 15px;text-decoration:none;cursor:pointer;font:inherit;}
.admin-page .classic-search-label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.admin-page #collection-search {width:100%;box-sizing:border-box;margin:0 0 20px;}
.admin-page .classic-table-wrap {overflow-x:auto;}
.admin-page .classic-table {width:100%;border-collapse:collapse;min-width:650px;}
.admin-page .classic-table th,.admin-page .classic-table td {padding:14px 12px;border-bottom:1px solid #e3e9f2;text-align:left;}
.admin-page .classic-table th {background:#f5f8fc;color:#25374e;}
.admin-page .classic-table tr[hidden] {display:none;}
.admin-page .classic-actions {display:flex;align-items:center;gap:8px;}
.admin-page .classic-delete {margin:0;}
.admin-page .classic-delete button {background:#e53e43;color:white;border:0;border-radius:6px;padding:10px 15px;cursor:pointer;font:inherit;}
.admin-page .classic-delete button:disabled {opacity:.4;cursor:not-allowed;}
.admin-page .classic-count {padding:18px 0;color:#69788f;}
.admin-page .classic-edit-panel,.admin-page .classic-add-form {border-top:1px solid #dce5f1;margin-top:20px;padding-top:24px;}
.admin-page .classic-edit-panel[hidden] {display:none;}
.admin-page .classic-secondary {margin-left:8px;}
.admin-page .classic-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.admin-page .classic-stats a {border:1px solid #dce5f1;padding:20px;text-decoration:none;}
.admin-page .classic-stats strong,.admin-page .classic-stats span {display:block;}
.admin-page .classic-stats strong {font-size:30px;}
.admin-page .classic-footer {padding:24px 4%;border-top:1px solid #dce5f1;color:#68788e;display:flex;justify-content:space-between;}
@media(max-width:800px) {.admin-page .classic-shell {grid-template-columns:1fr;} .admin-page .classic-sidebar {min-height:0;} .admin-page .classic-nav {grid-template-columns:repeat(2,minmax(0,1fr));} .admin-page .classic-sidebar-bottom {margin-top:12px;} .admin-page .classic-main {padding:20px 4%;} .admin-page .classic-stats {grid-template-columns:1fr;} }
@media(max-width:480px) {.admin-page .classic-nav {grid-template-columns:1fr;} .admin-page .classic-topbar {gap:10px;justify-content:space-between;} .admin-page .classic-profile {padding-left:10px;} .admin-page .classic-workspace {padding:14px;} }

/* Wide admin workspace and unified form controls. */
@media (min-width: 801px) {
    .admin-page .classic-content {
        width: 100%;
        min-width: 0;
    }

    .admin-page .classic-main {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 26px 2.5% 64px;
    }

    .admin-page .classic-workspace {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
}

.admin-page .classic-workspace form:not(.admin-inline):not(.classic-delete),
.admin-page .classic-add-form,
.admin-page .classic-edit-panel {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.admin-page .classic-workspace input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-page .classic-workspace select,
.admin-page .classic-workspace textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #c7d4e5;
    border-radius: 9px;
    background: #fbfdff;
    color: #243249;
    font: inherit;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(25, 51, 83, .04);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.admin-page .classic-workspace textarea {
    min-height: 150px;
    resize: vertical;
}

.admin-page .classic-workspace input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.admin-page .classic-workspace select:hover,
.admin-page .classic-workspace textarea:hover {
    border-color: #91abd0;
}

.admin-page .classic-workspace input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.admin-page .classic-workspace select:focus,
.admin-page .classic-workspace textarea:focus {
    outline: 2px solid transparent;
    border-color: #1265df;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(18, 101, 223, .15);
}

.admin-page .classic-workspace input::placeholder,
.admin-page .classic-workspace textarea::placeholder {
    color: #8291a5;
    opacity: 1;
}

.admin-page .classic-workspace input[type="file"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px dashed #a8bedb;
    border-radius: 9px;
    background: #f6f9fe;
    color: #243249;
}

.admin-page .classic-workspace input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 9px 13px;
    border: 1px solid #c7d4e5;
    border-radius: 6px;
    background: #fff;
    color: #1265df;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 800px) {
    .admin-page .classic-main {
        width: 100%;
        box-sizing: border-box;
    }
    .admin-page .classic-workspace {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Product management table and actions. */
.admin-page .product-thumbnail { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; background: #f0f3f8; }
.admin-page .product-sort { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: 4px; }
.admin-page .product-sort:hover, .admin-page .product-sort:focus-visible { color: #2563eb; text-decoration: underline; }
.admin-page .product-visibility { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: .83rem; font-weight: 650; }
.admin-page .product-visibility.is-public { background: #e1f5ea; color: #17683d; }
.admin-page .product-visibility.is-private { background: #edf0f7; color: #42536c; }
.admin-page #add-product, .admin-page #edit-product { scroll-margin-top: 30px; }

/* Product form first, compact one-line headings, and in-row editing. */
.admin-page #add-product {
    margin: 0 0 30px;
    padding: 20px 24px 24px;
    border: 1px solid #dce5f1;
    border-radius: 12px;
    background: #f8fbff;
}
.admin-page #add-product h3 { margin-top: 0; }
.admin-page #product-search { display: block; margin: 8px 0 22px; max-width: 100%; }
.admin-page #product-table { min-width: 760px; }
.admin-page #product-table thead th { white-space: nowrap; font-size: .83rem; padding: 12px 8px; }
.admin-page #product-table .product-sort {
    display: inline-flex; align-items: center; gap: 4px;
    white-space: nowrap; font-size: inherit; padding: 3px 0;
}
.admin-page #product-table .product-sort .sort-arrow { flex: none; font-size: .8em; }


.admin-page #product-table .product-inline-edit-row .classic-edit-panel form {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px 18px;
}
.admin-page #product-table .product-inline-edit-row .classic-edit-panel form label { align-self: end; }
.admin-page #product-table .product-inline-edit-row .classic-edit-panel form textarea { grid-column: 1 / -1; }
@media (max-width: 650px) {
    .admin-page #product-table .product-inline-edit-row .classic-edit-panel form { display: block; }
    .admin-page #add-product { padding: 16px; }
}

/* Product forms remain hidden until explicitly opened. */
.admin-page #add-product[hidden],
.admin-page #edit-product[hidden] { display: none !important; }
.admin-page #toggle-add-product { cursor: pointer; }

/* Product catalogue: aligned text-link headings and image management. */
.admin-page #product-table th { text-align: left; vertical-align: middle; white-space: nowrap; }
.admin-page #product-table th .product-sort { display: inline; width: auto; white-space: nowrap; padding: 0; border: 0; border-radius: 0; background: none; color: #2563eb; font-size: .86rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.admin-page #product-table th .product-sort:hover { color: #1d4ed8; }
.admin-page .product-image-fieldset { border: 1px solid #d7e1ee; border-radius: 10px; padding: 14px; grid-column: 1 / -1; }
.admin-page .product-image-fieldset legend { font-weight: 700; padding: 0 7px; }
.admin-page .product-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 12px; }
.admin-page .product-image-card { border: 1px solid #d7e1ee; padding: 10px; border-radius: 10px; background: white; display: grid; gap: 8px; }
.admin-page .product-image-card img { width: 100%; height: 100px; object-fit: contain; }
.admin-page .product-image-card label { display: flex; gap: 7px; align-items: center; margin: 0; }
.admin-page .product-extra-images { margin-top: 18px; border-top: 1px solid #d7e1ee; padding-top: 18px; }


/* Product form actions and reliable hidden-state transitions. */
.admin-page #add-product[hidden] { display: none !important; }
.admin-page #add-product { transition: opacity 180ms ease; opacity: 1; }
.admin-page #add-product.is-closing { opacity: 0; pointer-events: none; }
.admin-page .product-edit-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 24px; padding-top: 18px; border-top: 1px solid #d7e1ee; }
.admin-page .product-edit-actions button { width: auto; min-width: 120px; }

/* Collections: keep creation above the lazy-loaded list. */
.admin-page .collection-add-top { margin: 0 0 24px; padding: 20px; border: 1px solid #dce5f1; border-radius: 10px; background: #f8fbff; }
.admin-page .collection-add-top[hidden] { display: none; }
.admin-page .collection-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.admin-page .collection-form-actions .classic-secondary { margin-left: 0; }
.admin-page #collection-load-trigger { height: 1px; }

/* Collections: sortable text-link headings and inline row editor. */
.admin-page :is(#collection-table, #stamp-club-table) thead th,
.admin-page #product-table thead th {
    font-size: .86rem;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}
.admin-page :is(#collection-table, #stamp-club-table) th .collection-sort {
    display: inline;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #2563eb;
    font: inherit;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    cursor: pointer;
}
.admin-page :is(#collection-table, #stamp-club-table) th .collection-sort:hover,
.admin-page :is(#collection-table, #stamp-club-table) th .collection-sort:focus-visible {
    color: #1d4ed8;
}


/* Match every administration table heading and sortable link to h3 text size. */


/* Uniform H3-sized table headings, whether sortable or plain text. */
.admin-page table thead th,
.admin-page table thead th a,
.admin-page table thead th button,
.admin-page :is(#collection-table, #stamp-club-table) thead th .collection-sort,
.admin-page #product-table thead th .product-sort {
    font-size: 1.17rem;
    line-height: 1.3;
}

.admin-page table thead th a,
.admin-page table thead th a:hover,
.admin-page table thead th a:focus-visible,
.admin-page table thead th button,
.admin-page table thead th button:hover,
.admin-page table thead th button:focus-visible,
.admin-page :is(#collection-table, #stamp-club-table) thead th .collection-sort,
.admin-page :is(#collection-table, #stamp-club-table) thead th .collection-sort:hover,
.admin-page :is(#collection-table, #stamp-club-table) thead th .collection-sort:focus-visible,
.admin-page #product-table thead th .product-sort,
.admin-page #product-table thead th .product-sort:hover,
.admin-page #product-table thead th .product-sort:focus-visible {
    text-decoration: none;
}

/* Apply identical heading typography to plain and sortable table columns. */
.admin-page :is(#collection-table, #stamp-club-table) thead tr > th,
.admin-page #product-table thead tr > th,
.admin-page .admin-users thead tr > th,
.admin-page :is(#collection-table, #stamp-club-table) thead tr > th > button,
.admin-page #product-table thead tr > th > button {
    font-size: 1.17rem !important;
    line-height: 1.3;
    font-weight: 650;
}

.admin-page :is(#collection-table, #stamp-club-table) thead tr > th > button,
.admin-page #product-table thead tr > th > button {
    text-decoration: none !important;
}

/* Keep plain-text and clickable headings on the same vertical baseline. */
.admin-page :is(#collection-table, #stamp-club-table) thead tr > th,
.admin-page #product-table thead tr > th,
.admin-page .admin-users thead tr > th {
    padding: 12px 16px;
    height: 64px;
    vertical-align: middle;
    text-align: left;
    font-size: 1.17rem !important;
    line-height: 1.3;
    font-weight: 650;
    white-space: nowrap;
}

.admin-page :is(#collection-table, #stamp-club-table) thead th > .collection-sort,
.admin-page #product-table thead th > .product-sort,
.admin-page table thead th > a {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: inherit !important;
    line-height: inherit;
    font-weight: inherit;
    vertical-align: middle;
    text-decoration: none !important;
}

.admin-page :is(#collection-table, #stamp-club-table) thead th > .collection-sort:hover,
.admin-page :is(#collection-table, #stamp-club-table) thead th > .collection-sort:focus-visible,
.admin-page #product-table thead th > .product-sort:hover,
.admin-page #product-table thead th > .product-sort:focus-visible,
.admin-page table thead th > a:hover,
.admin-page table thead th > a:focus-visible {
    text-decoration: none !important;
}

/* Shared visual identity: carry the public gallery's paper, ink and stamp motif
   into administration without changing its navigation or form behaviour. */
body.admin-page {
    --archive-paper: #eee5d1;
    --archive-sheet: #f9f3e6;
    --archive-ink: #292b22;
    --archive-forest: #243f30;
    --archive-forest-dark: #182e24;
    --archive-gold: #9e8555;
    --archive-line: #c8b99b;
    background: radial-gradient(ellipse at 40% 0%, #fff9ec 0%, transparent 65%),
        repeating-linear-gradient(110deg, #5d4a2805 0 1px, transparent 1px 7px),
        var(--archive-paper);
    color: var(--archive-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.admin-page .classic-shell { color: var(--archive-ink); }
.admin-page .classic-sidebar { background: var(--archive-forest-dark); color: #f9f3e6; }
.admin-page .classic-brand { border-bottom-color: #ffffff26; padding: 19px 15px; gap: 11px; }
.admin-page .classic-brand-logo { width: 58px; height: 58px; object-fit: contain; flex: none; }
.admin-page .classic-brand strong { font: 500 19px/1.15 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #fff9ec; }
.admin-page .classic-brand small { font: 9px/1.5 Arial, sans-serif; letter-spacing: .12em; color: #d8c7a5; }
.admin-page .classic-nav-link { color: #f9f3e6; }
.admin-page .classic-nav-link:hover, .admin-page .classic-nav-link:focus-visible { background: #ffffff19; color: #fff; }
.admin-page .classic-nav-link[aria-current="page"] { background: #f9f3e6; color: var(--archive-forest-dark); }
.admin-page .classic-sidebar-bottom, .admin-page .classic-logout { border-color: #ffffff26; }
.admin-page .classic-topbar { background: #f9f1df; border-bottom: 1px solid var(--archive-line); }
.admin-page .classic-topbar > a { color: var(--archive-forest); }
.admin-page .classic-profile { border-left-color: var(--archive-line); }
.admin-page .classic-profile small, .admin-page .classic-crumb, .admin-page .classic-title p,
.admin-page .classic-count, .admin-page .classic-footer { color: #736b59; }
.admin-page .classic-avatar { background: var(--archive-forest); color: #fff9ec; }
.admin-page .classic-title-icon { background: #e7dcc3; color: var(--archive-forest); border: 1px solid var(--archive-line); }
.admin-page .classic-title h2 { color: var(--archive-forest-dark); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 500; }
.admin-page .classic-workspace { background: var(--archive-sheet); border: 1px solid var(--archive-line); border-radius: 3px;
    box-shadow: inset 0 0 0 5px var(--archive-sheet), inset 0 0 0 6px #d8c9ac, 0 3px 15px #3b32231c; }
.admin-page .classic-workspace h3 { color: var(--archive-forest-dark); }
.admin-page .classic-primary, .admin-page .classic-edit { background: var(--archive-forest); color: #fff; }
.admin-page .classic-primary:hover, .admin-page .classic-edit:hover { background: #35634a; color: #fff; }
.admin-page .classic-secondary { background: #e8ddc6; color: var(--archive-forest-dark); }
.admin-page .classic-table th, .admin-workspace .admin-users th { background: #eae0ca; color: var(--archive-forest); }
.admin-page .classic-table th, .admin-page .classic-table td, .admin-workspace .admin-users td { border-bottom-color: var(--archive-line); }
.admin-page .classic-table tr:hover td, .admin-workspace .admin-users tr:hover td { background: #f2ead9; }
.admin-page .classic-edit-panel, .admin-page .classic-add-form { border-top-color: var(--archive-line); }
.admin-page .classic-stats a { background: #fffaf0; border-color: var(--archive-line); border-radius: 3px; }
.admin-page .classic-stats strong { color: var(--archive-forest); }
.admin-page .classic-footer { border-top-color: var(--archive-line); }
.admin-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.admin-page select, .admin-page textarea { background-color: #fffdf7; border-color: #b5a887; color: var(--archive-ink); }
.admin-page input:focus-visible, .admin-page select:focus-visible, .admin-page textarea:focus-visible,
.admin-page a:focus-visible, .admin-page button:focus-visible { outline: 3px solid var(--archive-gold); outline-offset: 2px; }
@media (max-width: 480px) {
    .admin-page .classic-brand strong { font-size: 18px; }
    .admin-page .classic-brand-logo { width: 48px; height: 48px; }
}

/* Shared stamp-album appearance for login, registration and password recovery. */
.account-page { background: radial-gradient(ellipse at 40% 0%,#fff9ec 0%,transparent 65%),repeating-linear-gradient(110deg,#5d4a2805 0 1px,transparent 1px 7px),var(--paper); color:var(--ink); font-family:var(--archive-font-body); }
.account-card { background:var(--sheet); border:1px solid var(--line); border-radius:3px; box-shadow:inset 0 0 0 5px var(--sheet),inset 0 0 0 6px #d8c9ac,0 12px 35px #3b322326; }
.account-brand { display:flex; align-items:center; gap:12px; color:var(--forest-dark); letter-spacing:normal; text-decoration:none; }
.account-brand img { width:56px; height:56px; flex-shrink:0; }
.account-brand span { display:flex; flex-direction:column; gap:5px; }
.account-brand strong { font-family:var(--archive-font-heading); font-size:clamp(1.1rem,3vw,1.4rem); font-weight:600; line-height:1.15; }
.account-brand small { font-family:var(--archive-font-body); font-size:.61rem; letter-spacing:.15em; }
.account-card h1 { font-family:var(--archive-font-heading); color:var(--forest-dark); font-weight:500; }
.account-card input,.account-card select,.account-card textarea { font-family:var(--archive-font-body); border-color:var(--line); background:#fffdf7; }
.account-card button,.account-card .admin-button { font-family:var(--archive-font-body); background:var(--forest); }
.account-card a { color:var(--forest); }
.account-card :is(a,button,input,select,textarea):focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
@media(max-width:480px) { .account-page { padding:1rem; } .account-card { padding:1.5rem; } }


/* Collection administration: gallery-scale type and a properly contained inline editor.
   Scoped to the collections table so account pages and other admin forms are unaffected. */
.admin-page :is(#collection-table, #stamp-club-table) { font-size: 15px; line-height: 1.45; table-layout: auto; }
.admin-page :is(#collection-table, #stamp-club-table) thead th,
.admin-page :is(#collection-table, #stamp-club-table) thead th button.collection-sort,
.admin-page :is(#collection-table, #stamp-club-table) tbody > tr:not(.collection-inline-edit-row) > td {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.45;
}
.admin-page :is(#collection-table, #stamp-club-table) thead th { color: var(--archive-forest-dark); }
.admin-page :is(#collection-table, #stamp-club-table) thead th button.collection-sort {
    color: var(--archive-forest-dark);
    text-decoration: none;
    font-weight: 700;
}
.admin-page :is(#collection-table, #stamp-club-table) thead th button.collection-sort:hover { text-decoration: underline; }
.admin-page :is(#collection-table, #stamp-club-table) tbody > tr:not(.collection-inline-edit-row) > td { padding: 10px 12px; }
.admin-page :is(#collection-table, #stamp-club-table) .collection-products-row { cursor: pointer; }
.admin-page :is(#collection-table, #stamp-club-table) .collection-products-row:hover > td { background: #f2f7f3; }
.admin-page :is(#collection-table, #stamp-club-table) .collection-products-link,
.admin-page :is(#collection-table, #stamp-club-table) .collection-products-link:hover { color: inherit; font-weight: inherit; text-decoration: none; }
.admin-page :is(#collection-table, #stamp-club-table) .collection-products-link:focus-visible { outline: 2px solid var(--archive-forest-dark); outline-offset: 3px; }
.admin-page .product-list-toolbar { flex-wrap: wrap; }
.admin-page .product-collection-filter-form { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; width: 100%; padding: .25rem 0; }
.admin-page .product-collection-filter-form label { font-weight: 650; }
.admin-page .classic-workspace .product-collection-filter-form select {
    width: min(100%, 24rem);
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0 2.25rem 0 .8rem;
    border: 1px solid #cfc6b6;
    border-radius: 6px;
    background-color: #fffdf8;
    color: #244a3c;
    font: 500 14px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    box-shadow: none;
    cursor: pointer;
}
.admin-page .classic-workspace .product-collection-filter-form select:hover { border-color: #8da597; background-color: #fffdf8; }
.admin-page .classic-workspace .product-collection-filter-form select:focus-visible { outline: 2px solid #668b76; outline-offset: 2px; border-color: #668b76; box-shadow: none; }
.admin-page .product-clear-filter { color: var(--archive-forest-dark); text-decoration: underline; text-underline-offset: 3px; }
.admin-page .product-list-toolbar .product-bulk-actions { flex: 1 1 100%; }
.admin-page :is(#collection-table, #stamp-club-table) tbody > tr:not(.collection-inline-edit-row) > td:nth-child(3) {
    overflow-wrap: anywhere;
}
.admin-page :is(#collection-table, #stamp-club-table) .classic-actions { white-space: nowrap; }
.admin-page :is(#collection-table, #stamp-club-table) .classic-actions button { font-size: 14px !important; }
.admin-page :is(#collection-table, #stamp-club-table) .collection-inline-edit-row > td {
    padding: 0 12px 16px !important;
    background: #f8f3e8;
    vertical-align: top;
}
.admin-page :is(#collection-table, #stamp-club-table) .collection-inline-edit-row .classic-edit-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 18px 20px 20px;
    border: 1px solid var(--archive-line);
    border-top: 0;
    border-radius: 0 0 7px 7px;
    background: #fffdf7;
    box-shadow: none;
    font-size: 15px;
}
.admin-page :is(#collection-table, #stamp-club-table) .collection-inline-edit-row .classic-edit-panel h3 {
    margin: 0 0 14px;
    font-size: 19px;
    line-height: 1.3;
}
.admin-page :is(#collection-table, #stamp-club-table) .collection-inline-edit-row .classic-edit-panel form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}
.admin-page :is(#collection-table, #stamp-club-table) .collection-inline-edit-row .classic-edit-panel form label {
    display: block;
    margin: 7px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}
.admin-page :is(#collection-table, #stamp-club-table) .collection-inline-edit-row .classic-edit-panel :is(input:not([type="hidden"]), select) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 40px;
    margin: 0;
    padding: 8px 11px;
    font-size: 15px !important;
    line-height: 1.3;
}
.admin-page :is(#collection-table, #stamp-club-table) .collection-inline-edit-row .collection-edit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.admin-page :is(#collection-table, #stamp-club-table) .collection-inline-edit-row .collection-edit-actions button {
    width: auto;
    min-width: 110px;
    margin: 0;
    padding: 9px 14px;
    font-size: 14px !important;
    line-height: 1.3;
}
@media (max-width: 600px) {
    .admin-page :is(#collection-table, #stamp-club-table) .collection-inline-edit-row > td { padding: 0 6px 12px !important; }
    .admin-page :is(#collection-table, #stamp-club-table) .collection-inline-edit-row .classic-edit-panel { padding: 14px; }
}

/* Collections creation form: compact, consistent with the inline editor. */
.admin-page #add-collection.collection-add-top {
    margin: 0 0 20px; padding: 20px 22px 22px;
    border: 1px solid var(--archive-line); border-radius: 8px;
    background: #fffdf7; box-shadow: none; font-size: 15px;
}
.admin-page #add-collection > h3 {
    margin: 0 0 16px; font-size: 19px; line-height: 1.3;
}
.admin-page #add-collection > form {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: 13px; margin: 0; width: 100%; min-width: 0;
}
.admin-page #add-collection .collection-field {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: 6px; min-width: 0;
}
.admin-page #add-collection .collection-field label {
    display: block; margin: 0; font-size: 14px; font-weight: 600;
    line-height: 1.35;
}
.admin-page #add-collection .collection-field :is(input, select) {
    display: block; box-sizing: border-box; width: 100%; min-width: 0;
    height: 40px; margin: 0; padding: 8px 11px;
    font: 15px/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border: 1px solid var(--archive-line); border-radius: 6px;
    background: #fffdf7; box-shadow: none;
}
.admin-page #add-collection .collection-field :is(input, select):focus {
    border-color: var(--archive-forest);
    box-shadow: 0 0 0 2px #8da59766; outline: none;
}
.admin-page :is(#add-collection,#edit-collection) .collection-address-content :is(input:not([type="hidden"]),select:not([hidden])) {
    display: block; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%;
    height: 40px; min-height: 40px; margin: 0; padding: 8px 11px;
    font: 15px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    border: 1px solid var(--archive-line); border-radius: 6px; background: #fffdf7; box-shadow: none;
}
.admin-page :is(#add-collection,#edit-collection) .collection-address-fields { overflow: visible; }
.admin-page :is(#add-collection,#edit-collection) .collection-address-fields > summary { border-radius: 9px 9px 0 0; }
.admin-page :is(#add-collection,#edit-collection) .collection-address-fields:has(.collection-select-menu[open]) { position: relative; z-index: 50; }
.admin-page :is(#add-collection,#edit-collection) .collection-address-content .collection-select-menu > summary { height: 40px; min-height: 40px; }
.admin-page #add-collection .collection-form-hint {
    display: block; margin: -4px 0 0; font-size: 13px;
    line-height: 1.4; color: #736b59;
}
.admin-page #add-collection .collection-form-actions {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: flex-start; gap: 10px; margin: 3px 0 0;
}
.admin-page #add-collection .collection-form-actions button {
    display: inline-flex; align-items: center; justify-content: center;
    width: auto; min-width: 110px; min-height: 40px; margin: 0;
    padding: 9px 15px; border: 1px solid transparent;
    border-radius: 6px; font: 600 14px/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
}
.admin-page #add-collection .collection-form-actions .classic-primary {
    background: var(--archive-forest); color: #fff;
}
.admin-page #add-collection .collection-form-actions .classic-secondary {
    background: #e8ddc6; color: var(--archive-forest-dark);
    border-color: var(--archive-line);
}
@media (max-width: 600px) {
    .admin-page #add-collection.collection-add-top { padding: 15px; }
}


/* Products and collection types: same compact scale as Collections. Scoped to admin only. */
.admin-page :is(#product-table, #collection-type-table) { font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.admin-page :is(#product-table, #collection-type-table) thead th,
.admin-page :is(#product-table, #collection-type-table) tbody > tr:not(.product-inline-edit-row) > td {
    font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    padding: 10px 12px !important;
    vertical-align: middle;
}
.admin-page :is(#product-table, #collection-type-table) thead th { color: var(--archive-forest-dark) !important; }
.admin-page #product-table thead th .product-sort,
.admin-page #product-table thead th .product-sort:is(:hover, :focus-visible) {
    font: 700 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: var(--archive-forest-dark) !important;
    text-decoration: none;
}
.admin-page #product-table thead th .product-sort:hover { text-decoration: underline; }
.admin-page #product-table .classic-actions { white-space: nowrap; }
.admin-page #product-table .classic-actions button { font-size: 14px !important; }
.admin-page #product-table .product-inline-edit-row > td {
    padding: 0 12px 16px !important; background: #f8f3e8; vertical-align: top;
}
.admin-page #product-table .product-inline-edit-row .classic-edit-panel {
    box-sizing: border-box; width: 100%; max-width: 100%; margin: 0;
    padding: 18px 20px 20px; border: 1px solid var(--archive-line);
    border-top: 0; border-radius: 0 0 7px 7px; background: #fffdf7;
    box-shadow: none; font-size: 15px;
}
.admin-page .admin-compact-form {
    box-sizing: border-box; width: 100%; max-width: 100%;
    margin: 0 0 20px; padding: 20px 22px 22px;
    border: 1px solid var(--archive-line); border-radius: 8px;
    background: #fffdf7; box-shadow: none;
    font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.admin-page #product-table .product-inline-edit-row .admin-compact-form { margin: 0; }
.admin-page .admin-compact-form > h3,
.admin-page #product-table .product-inline-edit-row .classic-edit-panel h3 {
    margin: 0 0 16px; font-size: 19px; line-height: 1.3;
}
.admin-page .admin-compact-form form:not(.admin-inline):not(.classic-delete),
.admin-page #product-table .product-inline-edit-row .classic-edit-panel form {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
    width: 100%; max-width: 100%; min-width: 0; margin: 0;
}
.admin-page .admin-compact-form form label,
.admin-page #product-table .product-inline-edit-row .classic-edit-panel form label {
    display: block; align-self: auto; margin: 8px 0 0;
    font: 600 14px/1.35 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.admin-page .admin-compact-form form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]), select),
.admin-page #product-table .product-inline-edit-row .classic-edit-panel form :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]), select) {
    box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%;
    height: 40px; margin: 0; padding: 8px 11px;
    font: 15px/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    border: 1px solid var(--archive-line); border-radius: 6px;
    background: #fffdf7; box-shadow: none;
}
.admin-page .admin-compact-form form textarea,
.admin-page #product-table .product-inline-edit-row .classic-edit-panel form textarea {
    box-sizing: border-box; grid-column: auto; display: block;
    width: 100%; min-width: 0; max-width: 100%; min-height: 90px;
    margin: 0; padding: 9px 11px; resize: vertical;
    font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    border: 1px solid var(--archive-line); border-radius: 6px;
    background: #fffdf7; box-shadow: none;
}
.admin-page .admin-compact-form form input[type="file"] {
    box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%;
    margin: 0; padding: 8px 10px; font-size: 14px;
}
.admin-page .admin-compact-form form small { display: block; margin: 0; font-size: 13px; line-height: 1.4; color: #736b59; }
.admin-page .admin-compact-form :is(.admin-compact-actions, .product-edit-actions) {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
    gap: 10px; margin: 12px 0 0;
}
.admin-page .admin-compact-form :is(.admin-compact-actions, .product-edit-actions) button,
.admin-page #product-table .product-inline-edit-row .product-edit-actions button,
.admin-page .admin-compact-form .product-extra-images button {
    display: inline-flex; align-items: center; justify-content: center;
    width: auto; min-width: 110px; min-height: 40px; margin: 0;
    padding: 9px 15px; border-radius: 6px;
    font: 600 14px/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.admin-page .admin-compact-form .product-image-fieldset { min-width: 0; max-width: 100%; margin: 12px 0; padding: 12px; border: 1px solid var(--archive-line); }
.admin-page .admin-compact-form .product-extra-images { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--archive-line); }
@media (max-width: 600px) {
    .admin-page .admin-compact-form { padding: 14px; }
    .admin-page #product-table .product-inline-edit-row > td { padding: 0 6px 12px !important; }
    .admin-page #product-table .product-inline-edit-row .classic-edit-panel { padding: 14px; }
}

/* Products: keep every table cell in the same table row and align actions with the thumbnail. */
.admin-page #product-table { border-collapse: collapse; }
.admin-page #product-table tbody > tr:not(.product-inline-edit-row) > td {
    display: table-cell !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--archive-line, #d3c5a9);
}
.admin-page #product-table tbody > tr:not(.product-inline-edit-row) > td.classic-actions {
    white-space: nowrap;
    text-align: left;
}
.admin-page #product-table td.classic-actions > .classic-edit,
.admin-page #product-table td.classic-actions > .classic-delete {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    margin: 0 6px 0 0;
}
.admin-page #product-table td.classic-actions > .classic-delete { margin-right: 0; }
.admin-page #product-table td.classic-actions > .classic-delete button,
.admin-page #product-table td.classic-actions > .classic-edit {
    min-height: 36px;
    box-sizing: border-box;
    line-height: 1.2;
    padding: 8px 12px;
}
.admin-page #product-table .product-thumbnail { display: block; margin: 0; }

/* Shared compact action buttons and table rows for Collection Types and Manage Users. */
.admin-page #collection-type-table, .admin-page #manage-users-table {
    width: 100%; border-collapse: collapse; font: 14px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.admin-page :is(#collection-type-table, #manage-users-table) :is(th, td) {
    padding: 10px 12px; vertical-align: middle; font-size: 14px !important;
    border-bottom: 1px solid var(--archive-line, #d3c5a9);
}
.admin-page :is(#collection-type-table, #manage-users-table) th { font-weight: 700; }
.admin-page #manage-users-table td small { font-size: 12px; line-height: 1.4; color: #6e685b; }
.admin-page :is(#collection-type-table .type-row-actions, #manage-users-table .user-row-actions) {
    white-space: nowrap; vertical-align: middle !important;
}
.admin-page :is(#collection-type-table .type-row-actions, #manage-users-table .user-row-actions) > :is(button, form) {
    display: inline-flex; align-items: center; vertical-align: middle; margin: 0 8px 0 0;
}
.admin-page :is(#collection-type-table .type-row-actions, #manage-users-table .user-row-actions) > :is(button, form):last-child { margin-right: 0; }
.admin-page :is(#collection-type-table .type-row-actions, #manage-users-table .user-row-actions) button {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
    min-height: 36px; margin: 0 !important; padding: 8px 12px; border: 0; border-radius: 6px;
    font: 600 14px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important; cursor: pointer;
}
.admin-page :is(#collection-type-table, #manage-users-table) .classic-primary { background: #243e31; color: #fff; }
.admin-page :is(#collection-type-table, #manage-users-table) .classic-primary:hover { background: #35634a; }
.admin-page :is(#collection-type-table, #manage-users-table) .classic-danger { background: #b83e42; color: #fff; }
.admin-page :is(#collection-type-table, #manage-users-table) .classic-danger:hover { background: #992f34; }
.admin-page :is(#collection-type-table, #manage-users-table) .classic-secondary { background: #e8ddc6; color: #243e31; }
.admin-page :is(#collection-type-table, #manage-users-table) .classic-secondary:hover { background: #d9c9aa; }
.admin-page :is(#collection-type-table, #manage-users-table) button:focus-visible { outline: 2px solid #496f58; outline-offset: 2px; }
@media (max-width: 650px) {
    .admin-page :is(#collection-type-table, #manage-users-table) { min-width: 560px; }
}


/* Compact, accessible visibility switches in collection and product tables. */
.admin-page .visibility-toggle-wrap {display:inline-flex;align-items:center;gap:8px;white-space:nowrap;cursor:pointer;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;font-size:.78rem;line-height:1.2;vertical-align:middle;position:relative;}
.admin-page .visibility-toggle-input {position:absolute;opacity:0;width:1px;height:1px;}
.admin-page .visibility-toggle-track {position:relative;display:inline-block;flex:none;width:34px;height:19px;border-radius:20px;background:#a6aaa5;border:1px solid #818981;transition:background .15s ease;}
.admin-page .visibility-toggle-track::after {content:"";position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .15s ease;}
.admin-page .visibility-toggle-input:checked + .visibility-toggle-track {background:#356a50;border-color:#356a50;}
.admin-page .visibility-toggle-input:checked + .visibility-toggle-track::after {transform:translateX(15px);}
.admin-page .visibility-toggle-input:focus-visible + .visibility-toggle-track {outline:2px solid #214c3a;outline-offset:3px;}
.admin-page .visibility-toggle-input:disabled + .visibility-toggle-track {opacity:.55;cursor:wait;}
.admin-page .visibility-toggle-label {min-width:43px;color:#475449;}
.admin-page .visibility-toggle-label.is-public {color:#24583d;}
.admin-page .visibility-toggle-label.is-private {color:#665c4f;}


/* PDF products use a deliberate document tile instead of a broken image thumbnail. */
.admin-page .product-document-thumbnail {
    width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #d8cfbc; border-radius: 8px; background: #fbf7ed; vertical-align: middle;
}
.admin-page .product-document-thumbnail svg { width: 34px; height: 40px; overflow: visible; }
.admin-page .product-document-thumbnail .pdf-page { fill: #fffdf8; stroke: #8c806a; stroke-width: 1.6; }
.admin-page .product-document-thumbnail .pdf-fold { fill: none; stroke: #8c806a; stroke-width: 1.6; }
.admin-page .product-document-thumbnail .pdf-band { fill: #8d302c; }
.admin-page .product-document-thumbnail text { fill: #fff; font: 700 9px Arial, sans-serif; letter-spacing: .5px; }

/* Preserve native table-cell layout; flex belongs inside the Actions cell. */
.admin-page :is(#collection-table, #stamp-club-table) tbody > tr:not(.collection-inline-edit-row) > td.classic-actions {
    display: table-cell;
    vertical-align: middle;
    white-space: nowrap;
}
.admin-page :is(#collection-table, #stamp-club-table) .collection-action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.admin-page :is(#collection-table, #stamp-club-table) .collection-action-buttons > form { margin: 0; }
.admin-page :is(#collection-table, #stamp-club-table) .collection-action-buttons > :is(button, form) { flex: 0 0 auto; }


/* Collections table: lock header/body columns to the same grid and centre compact controls. */
.admin-page :is(#collection-table, #stamp-club-table) { table-layout: fixed; }
.admin-page :is(#collection-table, #stamp-club-table) col.collection-col-id { width: 6%; }
.admin-page :is(#collection-table, #stamp-club-table) col.collection-col-name { width: 16%; }
.admin-page :is(#collection-table, #stamp-club-table) col.collection-col-description { width: 34%; }
.admin-page :is(#collection-table, #stamp-club-table) col.collection-col-visibility { width: 14%; }
.admin-page :is(#collection-table, #stamp-club-table) col.collection-col-products { width: 10%; }
.admin-page :is(#collection-table, #stamp-club-table) col.collection-col-actions { width: 20%; }
.admin-page :is(#collection-table, #stamp-club-table) thead th:nth-child(5),
.admin-page :is(#collection-table, #stamp-club-table) thead th:nth-child(6),
.admin-page :is(#collection-table, #stamp-club-table) tbody > tr:not(.collection-inline-edit-row) > td:nth-child(5),
.admin-page :is(#collection-table, #stamp-club-table) tbody > tr:not(.collection-inline-edit-row) > td:nth-child(6) { text-align: center; }
.admin-page :is(#collection-table, #stamp-club-table) .collection-action-buttons { justify-content: center; width: 100%; }
@media (max-width: 900px) {
  .admin-page :is(#collection-table, #stamp-club-table) { table-layout: auto; }
}

/* 2026-09-26 admin form and product bulk-action refinements */
.admin-page .collection-document-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin: 0;
}
.admin-page .collection-document-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}
.admin-page #collection-search,
.admin-page #product-search {
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 11px;
    font-size: 15px;
    line-height: 22px;
}
.admin-page .product-list-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 20px;
}
.admin-page .product-search-group {
    flex: 1 1 420px;
    min-width: 220px;
}
.admin-page .product-search-group .classic-search-label { display: block; margin: 0 0 6px; }
.admin-page .product-search-group #product-search { width: 100%; margin: 0; }
.admin-page .product-bulk-actions {
    display: flex;
    align-items: end;
    gap: 8px;
    flex: 0 0 auto;
    margin: 0;
}
.admin-page .product-bulk-actions label { margin: 0 2px 10px 0; white-space: nowrap; }
.admin-page .product-bulk-actions select,
.admin-page .product-bulk-actions button {
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
}
.admin-page .product-bulk-actions select { min-width: 150px; }
.admin-page .product-selected-count { min-width: 70px; padding-bottom: 10px; font-size: 13px; white-space: nowrap; color: #6c675c; }
.admin-page .product-select-column { width: 38px; text-align: center !important; }
.admin-page .product-select-column input[type="checkbox"] { width: 16px; height: 16px; margin: 0; vertical-align: middle; }
@media (max-width: 900px) {
    .admin-page .product-bulk-actions { flex-wrap: wrap; align-items: center; }
    .admin-page .product-bulk-actions label { width: 100%; margin: 0; }
    .admin-page .product-selected-count { padding-bottom: 0; }
}

/* 2026-09-26 admin search + checkbox alignment refinement */
.admin-page .collection-address-option {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    min-height: 40px;
    padding: 0 !important;
    line-height: 1.25 !important;
}
.admin-page .collection-address-option input[type="checkbox"] {
    display: block;
    flex: 0 0 16px;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.admin-page .collection-address-option span {
    display: block;
    margin: 0;
    line-height: 16px;
}
.admin-page .admin-search-field {
    position: relative;
    width: 100%;
    max-width: 460px;
}
.admin-page .admin-search-field input[type="search"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 40px 8px 12px !important;
    border: 1px solid rgba(36, 74, 60, .25);
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 3px 12px rgba(29,57,47,.06);
    outline: none;
}
.admin-page .admin-search-field input[type="search"]:focus {
    border-color: rgba(36,74,60,.65);
    box-shadow: 0 0 0 3px rgba(36,74,60,.10);
}
.admin-page .admin-search-field > svg {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: #244a3c;
    stroke-width: 1.8;
    stroke-linecap: round;
    pointer-events: none;
}
.admin-page .product-list-toolbar {
    justify-content: space-between;
}
.admin-page .product-bulk-actions {
    order: 1;
    justify-content: flex-start;
}
.admin-page .product-search-group {
    order: 2;
    flex: 0 1 460px;
    width: min(460px, 100%);
    min-width: 260px;
    margin-left: auto;
}
.admin-page .product-search-group .admin-search-field { max-width: 460px; }
@media (max-width: 900px) {
    .admin-page .product-search-group .admin-search-field,
    .admin-page .admin-search-field { max-width: 100%; }
}

/* 2026-09-26 compact bulk menu and right-aligned admin searches */
.admin-page .collection-search-toolbar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0 0 20px;
}
.admin-page .collection-search-toolbar .admin-search-field {
    width: min(560px, 100%);
    max-width: none;
}
.admin-page .product-list-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.admin-page .product-bulk-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.admin-page .product-selected-count {
    min-width: 68px;
    padding: 0;
}
.admin-page .product-search-group {
    flex: 1 1 auto;
    width: auto;
    min-width: 240px;
    max-width: none;
    margin-left: auto;
}
.admin-page .product-search-group .classic-search-label { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); margin:0; }
.admin-page .product-search-group .admin-search-field {
    width: 100%;
    max-width: none;
}
.admin-page #my-account-settings .account-settings-panel input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-page #my-account-settings .account-settings-panel select { box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; height: 40px; min-height: 40px; margin: 0; padding: 8px 11px; border-radius: 6px; font: 15px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important; }
.admin-page #my-account-settings .account-settings-panel textarea { box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; height: 90px; min-height: 90px; margin: 0; padding: 9px 11px; resize: vertical; border-radius: 6px; font: 15px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important; }
.admin-page #my-account-settings .account-settings-panel input[type="file"] { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 40px; margin: 0; padding: 8px 10px; font-size: 14px; }
.admin-page #my-account-settings .account-settings-panel label:not(.follow-notification-switch) { margin: 8px 0 0; font: 600 14px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.admin-page .affiliated-clubs-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; border-radius: 0; background: none; color: #244a3c; font-family: inherit; font-size: 14px; font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; box-shadow: none; }
.admin-page .affiliated-clubs-link:hover { background: none; color: #34634e; text-decoration-thickness: 2px; }
.admin-page .affiliated-clubs-link svg { width: 16px; height: 16px; }
.admin-page .affiliated-clubs-link[hidden] { display: none; }
.admin-page .classic-section-heading:has(.affiliated-clubs-link) { flex-wrap: wrap; gap: 10px; }
.admin-page .classic-section-heading:has(.affiliated-clubs-link) > h3 { margin-right: auto; }
.admin-page #affiliated-clubs { margin-top: 24px; scroll-margin-top: 24px; }
.admin-page .classic-workspace .collection-select-menu { display: block; width: 100%; min-width: 0; }
.admin-page .classic-workspace select[hidden] { display: none !important; }
.admin-page .classic-workspace #transfer-recipient-picker > summary { height: 40px; min-height: 40px; border-color: #cfc6b6; border-radius: 6px; font: 600 14px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.admin-page .classic-workspace #transfer-recipient-options { top: calc(100% + 6px); max-height: 320px; padding: 6px; border-color: #d8cfbe; box-shadow: 0 10px 26px rgba(38,55,45,.13); }
.admin-page .classic-workspace .collection-select-menu > summary { display: flex; justify-content: space-between; width: 100%; box-sizing: border-box; height: 40px; padding: 0 13px; font: 600 14px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.admin-page .classic-workspace .collection-select-menu > summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-page .classic-workspace .collection-select-menu > summary > svg { flex-shrink: 0; }
.admin-page .classic-workspace .collection-select-menu .admin-action-menu-panel { width: 100%; min-width: 0; max-height: 320px; overflow-y: auto; box-sizing: border-box; z-index: 40; }
.admin-page .classic-workspace .collection-select-menu .admin-action-menu-panel button { margin: 0; min-height: 0; padding: 9px 11px; box-shadow: none; font: 500 14px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.admin-page .classic-workspace .collection-select-menu button[aria-current="true"] { background: #edf1e9; color: #244a3c; }
.admin-page .classic-workspace .collection-select-menu.is-disabled > summary { opacity: .5; cursor: default; }
.admin-page .collection-editor-toolbar .collection-select-menu { flex: 0 1 150px; width: 150px; }
.admin-page .classic-workspace .collection-editor-toolbar .collection-select-menu .admin-action-menu-panel { width: 220px; }
.admin-page .classic-workspace .collection-editor-toolbar .collection-select-menu .admin-action-menu-panel button { display: block; width: 100%; height: auto; min-width: 0; box-sizing: border-box; border: 0; border-radius: 5px; text-align: left; white-space: nowrap; }
.admin-page .classic-table-wrap:has(.collection-select-menu[open]) { overflow: visible; }
.admin-page .classic-workspace .collection-select-menu[open] { z-index: 40; }
.admin-page .club-share-invite { display: flex; align-items: center; gap: 8px; margin: 10px 0 16px; padding-bottom: 14px; border-bottom: 1px solid #ded5c5; }
.admin-page .club-share-invite[hidden] { display: none; }
.admin-page .club-share-invite label { margin: 0; white-space: nowrap; }
.admin-page .classic-workspace #club-invite-email { flex: 0 1 240px; box-sizing: border-box; width: 240px; min-width: 0; max-width: 100%; height: 40px; min-height: 40px; margin: 0; padding: 8px 11px; font-size: 15px !important; line-height: 1.3; }
.admin-page .club-share-invite button { margin: 0; white-space: nowrap; }
@media(max-width: 600px) { .admin-page .club-share-invite { flex-wrap: wrap; } .admin-page .club-share-invite label { flex-basis: 100%; } }
.admin-page .admin-action-menu {
    position: relative;
    z-index: 12;
}
.admin-page .admin-action-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #cfc6b6;
    border-radius: 6px;
    background: #fffdf8;
    color: #244a3c;
    font: 600 14px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}
.admin-page .admin-action-menu > summary::-webkit-details-marker { display: none; }
.admin-page .admin-action-menu > summary:hover { background: #f3f3eb; }
.admin-page .admin-action-menu > summary svg { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.admin-page .admin-action-menu[open] > summary svg { transform: rotate(180deg); }
.admin-page .admin-action-menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 165px;
    padding: 6px;
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 10px 26px rgba(38,55,45,.13);
}
.admin-page .admin-action-menu-panel button {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #244a3c;
    font: 500 14px/1.3 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    text-align: left;
    cursor: pointer;
}
.admin-page .admin-action-menu-panel button:hover:not(:disabled) { background: #edf1e9; }
.admin-page .admin-action-menu-panel button.danger { color: #8b342d; }
.admin-page .admin-action-menu-panel button:disabled { opacity: .42; cursor: default; }
.admin-page .admin-action-menu-divider { height: 1px; margin: 5px 4px; background: #ded5c5; }
@media (max-width: 760px) {
    .admin-page .product-list-toolbar { align-items: stretch; flex-direction: column; }
    .admin-page .product-bulk-actions { width: 100%; }
    .admin-page .product-search-group { width: 100%; min-width: 0; margin-left: 0; }
    .admin-page .collection-search-toolbar .admin-search-field { width: 100%; }
}

/* 2026-09-26 product search: match My Collections alignment and contained width */
.admin-page .product-list-toolbar .product-search-group {
    flex: 0 1 560px;
    width: min(560px, 100%);
    min-width: 0;
    max-width: 560px;
    margin-left: auto;
}
.admin-page .product-list-toolbar .product-search-group .admin-search-field {
    width: 100%;
    max-width: 560px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .admin-page .product-list-toolbar .product-search-group {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    .admin-page .product-list-toolbar .product-search-group .admin-search-field {
        max-width: 100%;
    }
}

/* Collection filter shares the Group action menu styling. */
.admin-page #product-collection-filter-label { font-weight: 650; }
.admin-page .product-collection-menu { max-width: 100%; z-index: 13; }
.admin-page .product-collection-menu > summary { max-width: 100%; }
.admin-page .product-collection-menu > summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(24rem, 65vw); }
.admin-page .product-collection-menu > summary svg { flex-shrink: 0; }
.admin-page .product-collection-menu .admin-action-menu-panel { width: min(24rem, 75vw); max-height: 320px; overflow-y: auto; box-sizing: border-box; }
.admin-page .product-collection-menu .admin-action-menu-panel button[aria-current="true"] { background: #edf1e9; font-weight: 650; }





.admin-page #product-export .product-export-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.admin-page #product-export .product-export-field{display:grid;gap:7px;flex:0 1 320px;min-width:0}.admin-page #product-export .product-export-menu>summary{display:flex;justify-content:space-between;box-sizing:border-box;width:100%;height:40px}.admin-page #product-export .admin-action-menu-panel{left:0;right:0;min-width:0;z-index:40}.admin-page #my-account-settings #product-export .admin-action-menu-panel label{display:flex;align-items:center;gap:9px;margin:0;padding:10px 11px;border-radius:5px;font-weight:400}.admin-page #product-export .admin-action-menu-panel label:hover{background:#edf1e9}.admin-page #product-export input[type="checkbox"]{appearance:auto;display:inline-block;width:16px;min-width:16px;max-width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:#244a3c}.admin-page #product-export .product-export-row>button{height:40px;margin:0}.admin-page #product-export .product-export-note{font-size:12px;margin:16px 0 0}.admin-page #product-export-status{font-size:12px;margin:8px 0 0}.admin-page #product-export button:disabled{opacity:.45}.admin-page #product-export .product-export-menu[open]{z-index:40}@media(max-width:440px){.admin-page #product-export .product-export-field{flex-basis:100%}}
