/* Additional surface depth; the existing content and page structure stay native. */
.d21-portal {
    --d21-surface-highlight:rgba(255,255,255,.7);
    --d21-surface-plane:rgba(38,101,63,.045);
    --d21-surface-shadow:0 12px 30px rgba(8,37,26,.065),0 1px 3px rgba(8,37,26,.045);
}
.d21-portal[data-theme=dark],.d21-document[data-d21-theme=dark] .d21-portal {
    --d21-surface-highlight:rgba(190,227,201,.07);
    --d21-surface-plane:rgba(147,214,170,.035);
    --d21-surface-shadow:0 12px 30px rgba(0,0,0,.18),0 1px 3px rgba(0,0,0,.12);
}
.d21-portal .d21-title-row {
    padding:18px 20px;
    border:1px solid var(--d21-line);
    border-inline-start:3px solid var(--d21-gold);
    border-radius:14px;
    background:linear-gradient(120deg,var(--d21-paper),var(--d21-surface-plane)),var(--d21-paper);
    box-shadow:inset 0 1px var(--d21-surface-highlight),var(--d21-surface-shadow);
}
.d21-portal :is(.d21-panel,.d21-record,.d21-detail,.d21-auth) {
    box-shadow:inset 0 1px var(--d21-surface-highlight),var(--d21-surface-shadow);
}
.d21-portal :is(.d21-calendar-head,.d21-history-toolbar) {
    background-image:linear-gradient(120deg,transparent,var(--d21-surface-plane));
}
.d21-portal .d21-dialog {
    border-top:2px solid var(--d21-gold);
    box-shadow:0 26px 80px rgba(0,0,0,.32),inset 0 1px var(--d21-surface-highlight);
}
.d21-portal .d21-icon-button[data-d21-action="theme"] {border:0;background:transparent;box-shadow:none;}
@media(min-width:701px) {
    .d21-portal :is(.d21-lodge-list,.d21-brothers-list) {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:18px;
        align-items:stretch;
    }
    .d21-portal .d21-lodge-row {
        grid-template-columns:minmax(0,1fr);
        grid-template-rows:1fr auto;
        min-height:230px;
        align-items:start;
        gap:22px;
        border-top:2px solid var(--d21-line);
    }
    .d21-portal .d21-lodge-row .d21-actions {justify-self:start;margin:0;}
    .d21-portal .d21-brothers-list>li {display:flex;min-width:0;}
    .d21-portal .d21-brothers-list .d21-brother-row {
        min-height:180px;
        height:100%;
        padding:24px;
        align-content:center;
        gap:12px;
        border-radius:13px;
        box-shadow:inset 0 1px var(--d21-surface-highlight),var(--d21-surface-shadow);
    }
    .d21-portal .d21-brothers-list .d21-brother-name {white-space:normal;overflow:visible;overflow-wrap:anywhere;}
    .d21-portal .d21-brothers-list .d21-brother-meta {white-space:normal;overflow:visible;line-height:1.6;}
    .d21-portal :is(.d21-lodge-list,.d21-brothers-list)>:has(.d21-empty),
    .d21-portal .d21-lodge-list>.d21-empty {grid-column:1/-1;}
}
@media(min-width:1100px) {
    .d21-portal :is(.d21-lodge-list,.d21-brothers-list) {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:700px) {
    .d21-portal .d21-title-row {padding:15px 16px;border-radius:11px;}
}
