/* Theme management UI also works with the original theme. */
.brand-mark.brand-mark-image{padding:0;border:0;background:transparent;box-shadow:none;transform:none;flex-shrink:0}
.brand-mark-image img{width:100%;height:100%;object-fit:contain}
.theme-preview-banner{padding:12px 20px;text-align:center;background:#ffe66b;color:#24223f;font-size:.9rem}
.theme-preview-banner a{margin-left:14px;text-decoration:underline;font-weight:800}
.theme-page{padding-block:32px 60px}.theme-page h1{font-size:clamp(2rem,4vw,3rem)}
.theme-page>.section-heading{align-items:flex-start}.theme-page>.panel{margin-bottom:28px}
.theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-block:24px 34px}
.theme-card{display:flex;flex-direction:column;gap:16px;padding:24px;background:var(--surface,#fff);border:2px solid var(--line);border-radius:22px;min-width:0}
.theme-card.is-active{border-color:var(--violet);box-shadow:4px 4px 0 var(--line)}
.theme-art{height:230px;width:100%;object-fit:contain;border-radius:14px;background:var(--soft,#f0ebff)}
.theme-card-top{display:flex;gap:12px;align-items:center;justify-content:space-between}.theme-card-top h2{font-size:1.4rem}
.theme-card p{font-size:.9rem}.theme-card .button-group{margin-top:auto}.theme-card .button-group>*{flex:1}
.theme-badge{background:var(--soft,#eee8ff);color:var(--violet);padding:4px 10px;border-radius:7px;font-size:.8rem;font-weight:800;white-space:nowrap}
.theme-form{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1fr) auto;align-items:end;gap:18px}
.theme-form .button{margin:0}.theme-form .helptext{margin-top:6px}.theme-upload{display:flex;align-items:end;flex-wrap:wrap;gap:18px;margin-top:22px}.theme-upload>div{flex:1;min-width:0}
.theme-upload input{max-width:100%}.theme-page .small-text{margin-top:14px}.theme-page .errorlist{margin-top:14px}
.theme-details{margin-top:30px}.theme-details summary{font-size:1rem}.theme-details p{margin-top:14px}.theme-actions{display:flex;flex-wrap:wrap;gap:18px;font-size:.85rem}.theme-actions a{text-decoration:underline}
.theme-page form label{line-height:1.5}.theme-active-title{margin-bottom:10px}.theme-page code{overflow-wrap:anywhere}
@media(max-width:720px){.theme-grid{grid-template-columns:1fr}.theme-form{grid-template-columns:1fr}.theme-upload{display:block}.theme-upload .button{margin-top:18px;width:100%}.theme-card .button-group{flex-wrap:wrap}.theme-art{height:220px}.theme-preview-banner a{display:block;margin:4px 0 0}}

.theme-page h3{font-size:1.1rem;margin-block:20px 12px}.theme-mode-form{margin-block:18px}
.theme-calendar-list{margin-block:24px}.theme-calendar-row{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-block:18px}.theme-calendar-row h3{margin:0 0 6px}.theme-calendar-row p{font-size:.9rem;margin-bottom:10px}
.theme-calendar-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.theme-calendar-actions form{margin:0}.theme-calendar-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.theme-calendar-save,.theme-calendar-form>.errorlist{grid-column:1/-1}.theme-calendar-save{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.theme-light-form{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:18px}.theme-check{display:flex;align-items:center;gap:12px!important;margin:0!important}.theme-check input{width:22px;height:22px;flex:0 0 22px}.theme-empty{padding:16px;background:var(--soft);border-radius:12px}
@media(max-width:720px){.theme-calendar-form{grid-template-columns:1fr}.theme-calendar-row{flex-direction:column}.theme-light-form{align-items:flex-start;flex-direction:column}.theme-page input[type=date]{min-width:0;width:100%}}

/* Email-only account preferences and the three remaining service panels. */
.settings-grid>.panel:only-child{grid-column:1/-1}
.service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:720px){.service-grid{grid-template-columns:1fr}}

/* Member management, all themes. */
.member-management main .panel{margin-bottom:24px}
.member-management main>.wrap>.panel{margin-top:24px}
.member-management .panel details{margin-top:24px}
.member-management .panel article{border-bottom:1px solid #dddded;padding:12px 0;overflow-wrap:anywhere}
.member-management h1,.member-management td{overflow-wrap:anywhere}
.member-management .service-grid input,.member-management .service-grid select{width:100%;min-width:0}
.member-management summary{cursor:pointer;padding:8px 0}
.member-management .table-scroll{overflow-x:auto}

.monitoring-allowance{margin:24px 0}.monitoring-allowance .service-grid strong{font-size:1.6rem}.monitoring-allowance .service-grid p{margin-top:4px}
