.auth-widget {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

.auth-widget__user {
    color: var(--text-muted);
    font-size: 0.9rem;
    word-break: break-word;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}

.auth-form input {
    --cut: 8px;
    --cut-r: 10px;
    min-height: 2.5rem;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 0;
    background-color: #0c0b18;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 48%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(180, 190, 255, 0.28),
        inset 0 2px 8px rgba(0, 0, 0, 0.35);
    color: var(--text-card);
    font-size: var(--fs-sm);
    width: 100%;
    clip-path: polygon(
        var(--cut) 0,
        calc(100% - var(--cut-r)) 0,
        100% var(--cut-r),
        100% 100%,
        0 100%,
        0 var(--cut)
    );
}

.auth-form input:focus {
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 0 rgba(180, 190, 255, 0.7),
        0 0 14px rgba(180, 190, 255, 0.22);
}

.auth-form button {
    --cut: 8px;
    --cut-r: 11px;
    position: relative;
    isolation: isolate;
    min-height: 2.5rem;
    padding: 0.5rem 1.15rem;
    border: 0;
    border-radius: 0;
    color: #0c0b18;
    font-weight: 800;
    font-size: var(--fs-sm);
    width: 100%;
    cursor: pointer;
    clip-path: polygon(
        var(--cut) 0,
        calc(100% - var(--cut-r)) 0,
        100% var(--cut-r),
        100% 100%,
        0 100%,
        0 var(--cut)
    );
    background-color: #e8c84a;
    background-image:
        linear-gradient(180deg, rgba(255, 246, 196, 0.55) 0%, transparent 42%),
        radial-gradient(120% 80% at 50% 120%, rgba(255, 224, 138, 0.35), transparent 58%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -3px 0 #8a6a12,
        0 0 16px rgba(232, 200, 74, 0.28);
}

.auth-widget > button,
#logout-btn {
    --cut: 8px;
    --cut-r: 11px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 2.35rem;
    padding: 0.38rem 0.85rem;
    border: 0;
    border-radius: 0;
    color: #f0d4e2;
    font-weight: 700;
    font-size: var(--fs-sm);
    width: 100%;
    cursor: pointer;
    clip-path: polygon(
        var(--cut) 0,
        calc(100% - var(--cut-r)) 0,
        100% var(--cut-r),
        100% 100%,
        0 100%,
        0 var(--cut)
    );
    background-color: #1c1422;
    background-image:
        linear-gradient(180deg, rgba(255, 210, 230, 0.14) 0%, transparent 46%),
        radial-gradient(120% 80% at 50% 120%, rgba(228, 90, 134, 0.28), transparent 58%);
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 235, 0.2),
        inset 0 -3px 0 rgba(228, 90, 134, 0.82);
}

.auth-widget__btn-ico {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
}

#logout-btn:hover {
    color: #ffe8f2;
    background-color: #261824;
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 240, 0.28),
        inset 0 -3px 0 rgba(240, 110, 150, 0.95),
        0 0 16px rgba(228, 90, 134, 0.28);
}

.auth-error {
    color: var(--error);
    font-size: 0.8rem;
}

.share-widget {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(180, 190, 255, 0.16);
}

.share-widget[hidden] {
    display: none;
}

.share-widget__toggle,
.share-widget__view {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

.share-widget__toggle input {
    flex-shrink: 0;
}

.share-widget__view {
    flex-wrap: wrap;
}

.share-widget__view select {
    flex: 1 1 100%;
    min-height: 2rem;
    padding: 0 0.45rem;
    border: 0;
    background: #0c0b18;
    color: var(--text-card);
    font-size: 0.78rem;
}

.share-widget__pwd-toggle {
    border: 0;
    padding: 0;
    background: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.share-widget__pwd {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.share-widget__pwd[hidden] {
    display: none;
}

.share-widget__pwd input,
.share-widget__pwd button {
    min-height: 2rem;
    padding: 0 0.5rem;
    border: 0;
    font-size: 0.78rem;
}

.share-widget__pwd input {
    background: #0c0b18;
    color: var(--text-card);
}

.share-widget__pwd button {
    cursor: pointer;
    background: #1c1422;
    color: #f0d4e2;
}

.share-banner {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.8rem;
    background: rgba(232, 200, 74, 0.12);
    color: var(--text-card);
    font-size: 0.88rem;
}

body.is-viewing-shared .qty-stepper,
body.is-viewing-shared [data-remove-item],
body.is-viewing-shared #deck-new-btn,
body.is-viewing-shared #deck-import-open,
body.is-viewing-shared .decks-browse-btn--archidekt,
body.is-viewing-shared #decks-folder-new,
body.is-viewing-shared #deck-edit-btn,
body.is-viewing-shared #deck-delete-btn,
body.is-viewing-shared #deck-alloc-auto-btn,
body.is-viewing-shared #deck-alloc-save-btn,
body.is-viewing-shared #deck-auto-commander-btn,
body.is-viewing-shared .card-tile__loc-btn,
body.is-viewing-shared [data-open-location],
body.is-viewing-shared .card-tile__price,
body.is-viewing-shared .dash-kpi--value,
body.is-viewing-shared .deck-wishlist__price,
body.is-viewing-shared .deck-coach__price,
body.is-viewing-shared .archidekt-card-row .price {
    display: none !important;
}

.password-gate {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(6, 5, 14, 0.82);
}

.password-gate[hidden] {
    display: none;
}

.password-gate__panel {
    width: min(26rem, 100%);
    padding: 1.25rem 1.3rem 1.35rem;
    background: #12101c;
    color: var(--text-card);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.password-gate__panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.password-gate__panel p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.password-gate__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.password-gate__form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
}

.password-gate__form input {
    min-height: 2.4rem;
    padding: 0 0.7rem;
    border: 0;
    background: #0c0b18;
    color: var(--text-card);
}

body.must-change-password .share-widget,
body.must-change-password .site-main {
    visibility: hidden;
}

