*{box-sizing:border-box}.member-bg{min-height:100vh;background:linear-gradient(135deg,#f7f5ee,#eaf4ef);color:#263f42;font:16px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}.member-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px clamp(18px,5vw,55px);background:#fff;border-bottom:1px solid #dce8e3}.member-header a{color:#226b69;text-decoration:none;font-weight:800}.member-header>div{display:flex;gap:16px;align-items:center;font-size:14px}.member-brand{display:flex;align-items:center;gap:9px;font-size:20px}.member-auth,.member-dashboard{max-width:1050px;margin:auto;padding:42px 18px 80px}.member-auth{text-align:center}.member-auth h1,.member-intro h1{font:500 clamp(35px,6vw,58px)/1.1 Georgia,serif;letter-spacing:-.03em;margin:6px 0 10px}.member-auth>p:not(.eyebrow),.member-intro>p:last-child{color:#627979}.member-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:35px;text-align:left}.member-panel{padding:25px;border:1px solid #d6e5df;border-radius:18px;background:#fff;box-shadow:0 12px 38px #1c4b4530}.member-panel h2{margin:0 0 18px;font:500 29px Georgia,serif}.member-panel label{display:grid;gap:6px;margin-bottom:14px;color:#294d4f;font-size:14px;font-weight:800}.member-panel label small{color:#758785;font-weight:500}.member-panel input,.member-panel select,.member-panel textarea{width:100%;min-width:0;min-height:45px;border:1px solid #bfd5cf;border-radius:9px;background:#fff;color:#263e42;padding:9px 11px;font:16px system-ui,sans-serif}.member-panel textarea{resize:vertical;min-height:88px}.member-panel input[type=file]{font-size:14px}.member-panel button{cursor:pointer}.member-primary,.member-secondary{min-height:45px;padding:9px 17px;border-radius:9px;font-size:15px;font-weight:800}.member-primary{background:#177d7a;border:1px solid #177d7a;color:#fff}.member-secondary{background:#fff;border:1px solid #98c5bc;color:#226c69}.member-note{color:#6b817e;font-size:13px}.member-error{max-width:700px;margin:16px auto 0;padding:12px;border:1px solid #d99090;border-radius:9px;background:#fff3f0;color:#a33d38}.member-dashboard{display:grid;gap:24px}.member-intro{margin-bottom:2px}.member-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.member-form>button{align-self:end;margin-bottom:14px}.member-card-list{display:grid;gap:15px}.member-card{padding:18px;border:1px solid #e0e9e5;border-radius:14px;background:#fbfdfb}.member-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.member-card-head small{color:#35817c;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.member-card h3{font:500 25px Georgia,serif;margin:3px 0}.member-card-head p{margin:0;color:#687a78;font-size:13px}.member-status{flex:none;padding:6px 10px;border-radius:99px;background:#e1f2eb;color:#257363;font-size:12px;font-weight:800}.member-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:15px}.member-card-actions a,.member-card-actions button,.member-card-settings button{display:inline-flex;align-items:center;min-height:36px;padding:6px 10px;border:1px solid #c4dad3;border-radius:8px;background:#fff;color:#275f60;font-size:12px;font-weight:800;text-decoration:none}.member-card-actions a{background:#207d79;color:#fff;border-color:#207d79}.member-card-settings{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:10px;margin-top:15px;padding-top:15px;border-top:1px solid #e5eeea}.member-card-settings label{margin:0}.member-card-settings button{min-height:45px}.member-panel .result-box{background:#eff8f3;color:#2b5550}.member-panel .result-box input{color:#304c4d}.member-panel .result-box .mini{color:#275f60;background:#fff}
@media(max-width:700px){.member-auth,.member-dashboard{padding:27px 12px 55px}.member-auth-grid,.member-form,.member-card-settings{grid-template-columns:1fr}.member-panel{padding:19px 15px}.member-card-head{display:block}.member-status{display:inline-block;margin-top:10px}.member-card-settings button{width:100%;justify-content:center}.member-header{padding:13px 15px}.member-brand{font-size:17px}.member-header>div{gap:8px;font-size:12px}}

.member-card-actions .danger{border-color:#d59a96;color:#9b3f3a;background:#fff7f5}.member-panel button:disabled{opacity:.58;cursor:not-allowed}

.theme-style-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.theme-style-picker .theme-preview-trigger{min-height:45px}.member-card-settings .theme-style-picker .theme-preview-trigger{display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:8px 12px;border:1px solid #98c5bc;border-radius:9px;background:#fff;color:#226c69;font-size:13px;font-weight:800}.member-card-settings .theme-style-picker .theme-preview-trigger:hover{background:#f4fbf8}@media(max-width:700px){.theme-style-picker{grid-template-columns:1fr}.theme-style-picker .theme-preview-trigger{width:100%;justify-content:center}}

/* Keep the style-preview control visible on member/mobile forms. */
.member-panel .theme-style-picker .theme-preview-trigger,
.member-panel .theme-style-picker .member-secondary.theme-preview-trigger{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  min-height:46px!important;
  padding:10px 14px!important;
  border:1px solid #1b8581!important;
  border-radius:9px!important;
  background:#1b8581!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-align:center!important;
  cursor:pointer!important;
}
.member-panel .theme-style-picker .theme-preview-trigger:hover{background:#146f6c!important}
@media(max-width:700px){
  .member-panel .theme-style-picker{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .member-panel .theme-style-picker .theme-preview-trigger{width:100%!important}
}

/* Member dashboard card editor */
.member-panel .text-style-tools button,.member-panel .text-style-tools .color-tool{border-color:#b9d2cb;background:#f9fcfb;color:#285d5c}.member-panel .text-style-tools button.active{background:#e2f2ed;border-color:#3b8e82;box-shadow:inset 0 0 0 1px #3b8e82}.member-panel .field-live-preview{border-color:#c9dcd7;background:#f8fbfa;color:#3e5d5f}.member-panel .card-edit-details{border-top-color:#dfe9e5}.member-panel .card-edit-details summary{color:#226c69}.member-panel .card-edit-grid input,.member-panel .card-edit-grid select,.member-panel .card-edit-grid textarea{width:100%;min-width:0;min-height:45px;border:1px solid #bfd5cf;border-radius:9px;background:#fff;color:#263e42;padding:9px 11px;font:16px system-ui,sans-serif}.member-panel .card-edit-grid textarea{min-height:88px;resize:vertical}.member-panel .card-edit-grid label{margin:0}.member-panel .card-save-status.success{color:#24745e}.member-panel .card-save-status.error{color:#a53e3e}


/* Cover field formatting: direct live styling, no duplicate preview row. */
.field-live-preview{display:none!important}
.text-style-tools{position:relative;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.text-style-tools .font-picker-trigger{display:inline-grid;place-items:center;min-width:46px;height:46px;padding:0;border-radius:10px;font-size:24px;line-height:1}
.text-style-tools .font-icon{display:inline-block;font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:900;transform:translateY(-1px)}
.text-style-tools .font-picker-trigger.active{background:#e2f2ed;border-color:#3b8e82;box-shadow:inset 0 0 0 1px #3b8e82}
.text-style-tools .font-style-select{position:absolute;left:0;top:calc(100% + 6px);z-index:50;width:min(250px,92vw);min-height:44px;padding:9px 34px 9px 10px;border:1px solid #8dbbb1;border-radius:10px;background:#fff;color:#244f50;font-size:15px;box-shadow:0 12px 30px #173f3a2b}
.text-style-tools .font-style-select[hidden]{display:none!important}

/* Member dashboard custom font picker sizing and popup. */
.member-panel .text-style-tools .font-picker-trigger{
  width:34px!important;
  min-width:34px!important;
  height:32px!important;
  padding:0!important;
  font-size:14px!important;
}
.member-panel .text-style-tools .font-picker-trigger .font-icon{font-size:17px!important;line-height:1!important;transform:none!important}
.member-panel .text-style-tools .font-picker-popover{background:#fff;border-color:#b9d2cb}
.member-panel .text-style-tools .font-picker-option{color:#244f50!important}

/* Ensure the member dashboard font popup can be finger-scrolled on iPhone. */
.member-panel .text-style-tools .font-picker-popover{
  max-height:min(58dvh,430px)!important;
  overflow-y:scroll!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  touch-action:pan-y!important;
}

/* iPhone font-menu gesture fix: rows must allow vertical panning without activating. */
.text-style-tools .font-picker-popover,.text-style-tools .font-picker-option{touch-action:pan-y!important;-webkit-user-select:none;user-select:none}
.text-style-tools .font-picker-option{-webkit-tap-highlight-color:transparent}
.cover-customize-note{grid-column:1/-1;margin:-3px 0 14px!important;padding:8px 10px;border-radius:8px;background:#f1f8f5;color:#55736e!important}

.kingdom-domain-note{display:block;margin-top:5px;font-size:11px;line-height:1.3;color:#66807d}

/* Account settings + recovery */
.member-settings-link{display:inline-flex!important;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #b8d3cc;border-radius:9px;background:#f6fbf8;font-size:18px;line-height:1}
.member-notice{max-width:760px;margin:0 auto;padding:12px 14px;border:1px solid #a8d4c6;border-radius:10px;background:#eff9f5;color:#27695f;font-weight:700}.member-dashboard>.member-notice{max-width:none;width:100%}
.recovery-panel{max-width:560px;margin:28px auto 0;text-align:left}.recovery-request{max-width:560px;margin:18px auto 0;text-align:left}.forgot-details{margin-top:16px;color:#226c69}.forgot-details summary{cursor:pointer;font-weight:800}
.profile-settings-panel{scroll-margin-top:20px}.profile-settings-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.profile-settings-title h2{margin-top:2px}.settings-badge{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #b8d3cc;border-radius:12px;background:#f3faf7;font-size:22px}.profile-form{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.profile-form>button{grid-column:1/-1;justify-self:start}.profile-pin-grid{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:16px}

/* Manager dashboard uses the same visual language as the member dashboard. */
.admin-themed .admin-shell{max-width:1050px;padding:32px 18px 80px}.admin-themed .panel{background:#fff;border:1px solid #d6e5df;border-radius:18px;padding:25px;box-shadow:0 12px 38px #1c4b4530;color:#263f42}.admin-themed .panel h2{font:500 29px Georgia,serif;color:#263f42}.admin-themed .panel label{color:#294d4f}.admin-themed .panel input,.admin-themed .panel select,.admin-themed .panel textarea{border:1px solid #bfd5cf;background:#fff;color:#263e42}.admin-themed .panel small{color:#758785;opacity:1}.admin-themed .panel .btn.primary{background:#177d7a;border-color:#177d7a;color:#fff}.admin-themed .panel .mini,.admin-themed .panel .pill{border-color:#c4dad3;background:#fff;color:#275f60}.admin-themed .panel .mini.danger{border-color:#d59a96;color:#9b3f3a;background:#fff7f5}.admin-themed .card-table th,.admin-themed .card-table td{border-bottom-color:#e3ece8;color:#294d4f}.admin-themed .card-table td::before{color:#35817c}.admin-themed .card-table tr{background:#fbfdfb;border-color:#e0e9e5}
.manager-tabs{display:flex;gap:10px;flex-wrap:wrap}.manager-tabs a{display:inline-flex;align-items:center;gap:8px;padding:10px 15px;border:1px solid #bfd5cf;border-radius:10px;background:#fff;color:#226c69;text-decoration:none;font-weight:800}.manager-tabs a.active{background:#177d7a;color:#fff;border-color:#177d7a}.manager-tabs span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:99px;background:#edf6f2;color:inherit;font-size:12px}.manager-users-panel .panel-title{margin-bottom:18px}.manager-user-list{display:grid;gap:14px}.manager-user-card{padding:18px;border:1px solid #dce9e4;border-radius:14px;background:#fbfdfb}.manager-user-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.manager-user-head h3{margin:0;font:500 25px Georgia,serif}.manager-user-head p{margin:4px 0 0;color:#687a78;font-size:13px}.manager-user-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.manager-pin-form{display:flex;gap:8px;flex:1;min-width:280px}.manager-pin-form input{min-width:130px}.manager-danger{border-color:#d59a96!important;color:#9b3f3a!important;background:#fff7f5!important}.manager-user-cards{margin-top:14px;padding-top:14px;border-top:1px solid #e3ece8}.manager-user-cards summary{cursor:pointer;color:#226c69;font-weight:800;margin-bottom:12px}

@media(max-width:700px){.profile-form,.profile-pin-grid{grid-template-columns:1fr}.profile-form>button{grid-column:auto;width:100%}.manager-user-head{display:block}.manager-user-actions,.manager-pin-form{display:grid;grid-template-columns:1fr;width:100%;min-width:0}.manager-user-actions form,.manager-user-actions button{width:100%}.admin-themed .admin-shell{padding:22px 12px 55px}.admin-themed .panel{padding:19px 15px}.manager-tabs{display:grid;grid-template-columns:1fr 1fr}.manager-tabs a{justify-content:center}.member-header>div{flex-wrap:wrap;justify-content:flex-end}}

/* Collapsible account settings */
.profile-settings-panel{padding:0;overflow:hidden}
.profile-settings-panel summary{list-style:none}
.profile-settings-panel summary::marker{content:"";font-size:0}
.profile-settings-panel summary::-webkit-details-marker{display:none}
.profile-settings-summary{display:flex;align-items:center;gap:12px;padding:18px 20px;cursor:pointer;font-weight:800;font-size:18px;color:#174d4b;user-select:none}
.profile-settings-triangle{display:inline-block;width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:10px solid currentColor;flex:0 0 auto;transform-origin:center;transition:transform .16s ease}
.profile-settings-panel[open] .profile-settings-triangle{transform:rotate(90deg)}
.profile-settings-summary-icon{font-size:22px;line-height:1}
.profile-settings-body{padding:4px 20px 22px;border-top:1px solid rgba(34,108,105,.14)}
@media(max-width:700px){.profile-settings-summary{padding:16px 18px}.profile-settings-body{padding:4px 18px 20px}}

/* Account settings save feedback */
.profile-save-feedback{margin:10px 0 16px;padding:12px 14px;border-radius:10px;font-weight:800;font-size:14px;line-height:1.35}
.profile-save-feedback.success{border:1px solid #9fd3c3;background:#eef9f5;color:#226b5d}
.profile-save-feedback.error{border:1px solid #e0aaa5;background:#fff4f2;color:#9b403a}

/* Live theme cover preview */
.theme-preview-image-wrap{display:flex;justify-content:center;padding:14px;background:#e9efec!important}
.theme-preview-live{position:relative;width:min(100%,430px);aspect-ratio:4/5;border:2px solid #d8b76f;border-radius:18px;background:#fffdf7 center/cover no-repeat;overflow:hidden;box-shadow:0 14px 34px #173f3a26;color:#123f48}
.theme-preview-live-copy{position:absolute;inset:19% 13% 16%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7%;text-align:center;text-wrap:balance}
.theme-preview-live-copy strong{font:600 clamp(24px,6vw,42px)/1.05 Georgia,serif}
.theme-preview-live-copy span{font:500 clamp(14px,3vw,21px)/1.25 Georgia,serif;color:#426d73}
.theme-preview-live-copy em{font:500 clamp(16px,3.5vw,25px)/1.15 Georgia,serif;color:#315e63}
.theme-preview-live[data-theme="wedding"]{color:#64475b;border-color:#cda9bb}.theme-preview-live[data-theme="graduation"]{color:#142f4a;border-color:#c9a34e}.theme-preview-live[data-theme="newborn"]{color:#5c536b;border-color:#cbbad8}.theme-preview-live[data-theme="celebration"]{color:#344c46;border-color:#d0ab50}

/* Cover photo crop and positioning editor */
.cover-image-field strong{color:#176f6b}.cover-image-summary{display:grid;grid-template-columns:58px 1fr;align-items:center;gap:9px;margin-top:8px;padding:8px;border:1px solid #bfdbd4;border-radius:11px;background:#f5fbf8;font-weight:700}.cover-image-summary[hidden]{display:none!important}.cover-image-summary img{width:58px;height:72px;object-fit:cover;border-radius:7px;background:#e7efec}.cover-image-summary button{grid-column:1/-1;width:100%;min-height:40px!important;padding:7px 10px!important;border:1px solid #93bfb5!important;border-radius:8px!important;background:#fff!important;color:#226c69!important;font-weight:800!important}.cover-image-summary.pending-removal{grid-template-columns:1fr;border-color:#d9b0aa;background:#fff5f3;color:#93443f}.cover-image-dialog[hidden]{display:none!important}.cover-image-dialog{position:fixed;inset:0;z-index:10020;display:flex;align-items:center;justify-content:center;padding:12px;background:#071b1bcc;backdrop-filter:blur(5px);overflow:auto}.cover-image-editor{width:min(520px,100%);max-height:96dvh;overflow:auto;padding:18px;border:1px solid #bdd8d1;border-radius:22px;background:#fff;color:#263f42;box-shadow:0 28px 80px #0008}.cover-image-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.cover-image-editor-head h2{margin:0;font:600 30px/1.1 Georgia,serif}.cover-image-editor-head p{margin:0 0 4px}.cover-image-editor-head>button{width:42px;height:42px;border:1px solid #b8d3cc;border-radius:50%;background:#f5faf8;color:#285d5c;font-size:25px}.cover-image-editor>p{margin:10px 0;color:#5d7472}.cover-image-viewport{position:relative;width:min(100%,360px);aspect-ratio:4/5;margin:12px auto;overflow:hidden;border:3px solid #d7b66c;border-radius:18px;background:#fffdf8;touch-action:none;cursor:grab;box-shadow:0 12px 30px #183f3b2b}.cover-image-viewport:active{cursor:grabbing}.cover-image-viewport img{position:absolute;left:50%;top:50%;max-width:none;max-height:none;transform-origin:center;user-select:none;pointer-events:none}.cover-image-stretch-handle{position:absolute;right:8px;bottom:8px;z-index:3;width:46px;height:46px;padding:0;border:2px solid #fff;border-radius:50%;background:#168a84;color:#fff;font-size:24px;line-height:1;box-shadow:0 4px 14px #0005;touch-action:none;cursor:nwse-resize}.cover-zoom-control{display:grid!important;grid-template-columns:auto 1fr!important;align-items:center;gap:12px;margin:12px 0!important}.cover-zoom-control input{min-height:34px!important}.cover-image-editor-tools{display:flex;gap:8px;flex-wrap:wrap}.cover-image-editor-tools button{flex:1;min-width:90px}.cover-image-editor>small{display:block;margin-top:10px;color:#6e8380;text-align:center}body.cover-image-open{overflow:hidden}
@media(max-width:600px){.cover-image-summary{grid-template-columns:48px 1fr}.cover-image-summary img{width:48px;height:60px}.cover-image-summary button{grid-column:1/-1;grid-row:auto}.cover-image-editor{padding:14px}.cover-image-editor-tools{display:grid;grid-template-columns:1fr 1fr}.cover-image-editor-tools button{width:100%}}
.member-panel .result-box .result-open-cover{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin:12px 0 15px;padding:10px 15px;border:1px solid #177d7a;border-radius:10px;background:#177d7a;color:#fff;text-decoration:none;font-weight:850}
.member-panel .result-box .result-open-cover:hover{background:#126d69}
.member-panel .result-box .result-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.member-panel .result-box .result-link-row input{margin:0}.member-panel .result-box .result-link-row .copy{height:45px;min-width:76px;margin:0}

/* Card dashboard actions match the stacked mobile layout used throughout the card manager. */
.member-card-actions{display:grid!important;grid-template-columns:1fr;gap:8px!important;margin-top:15px}.member-card-actions .card-main-action,.member-card-actions .card-delete-action{display:flex!important;width:100%;min-height:54px!important;align-items:center!important;justify-content:center!important;gap:13px!important;margin:0!important;padding:9px 14px!important;border-radius:10px!important;color:#fff!important;font-size:16px!important;font-weight:850!important;line-height:1.05!important;text-align:left!important;box-shadow:0 2px 5px #153f3a22;transition:transform .11s ease,filter .11s ease,box-shadow .11s ease}.member-card-actions svg,.card-edit-details>summary svg{width:25px;height:25px;flex:0 0 25px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.member-card-actions .card-cover-action{background:linear-gradient(135deg,#198d87,#137c78)!important;border-color:#137c78!important}.member-card-actions .card-copy-signing{background:linear-gradient(135deg,#27aa78,#20a36d)!important;border-color:#209e6c!important}.member-card-actions .card-copy-recipient{background:linear-gradient(135deg,#b26cdd,#9250c4)!important;border-color:#9250c4!important}.member-card-actions .card-action-copy{display:grid;gap:4px;min-width:0}.member-card-actions .card-action-copy strong{font:inherit}.member-card-actions .card-action-copy small{color:#fff!important;font-size:11px!important;font-weight:500!important;line-height:1.05!important}.member-card-actions .card-state-actions{display:grid;grid-template-columns:.9fr .8fr 1.25fr;gap:7px}.member-card-actions .card-state-actions button{display:flex!important;min-width:0;min-height:46px!important;align-items:center!important;justify-content:center!important;gap:7px!important;margin:0!important;padding:7px 8px!important;border-radius:9px!important;font-size:13px!important;font-weight:850!important;line-height:1!important;transition:transform .11s ease,filter .11s ease,box-shadow .11s ease}.member-card-actions .card-state-actions svg{width:22px;height:22px;flex-basis:22px}.member-card-actions .card-reopen-action{border-color:#55a8d8!important;background:#b9e6ff!important;color:#08699e!important}.member-card-actions .card-close-action{border-color:#b9b9b9!important;background:#dedede!important;color:#171717!important}.member-card-actions .card-deliver-action{border-color:#e5ad41!important;background:#ffd477!important;color:#76500c!important}.member-card-actions .card-delete-action{min-height:45px!important;border:1px solid #ef6969!important;background:#fff0f0!important;color:#b31515!important}.member-card-actions .card-delete-action svg{width:22px;height:22px;flex-basis:22px}.member-card-actions a:active,.member-card-actions button:active,.member-card-actions .copy-confirmed{transform:scale(.965)!important;filter:brightness(.9)!important;box-shadow:inset 0 3px 8px #0003!important}.member-card-actions a:focus-visible,.member-card-actions button:focus-visible{outline:3px solid #f1b954;outline-offset:2px}.member-panel .card-edit-details{margin-top:12px;padding-top:12px;border-top:1px solid #dfe9e5}.member-panel .card-edit-details>summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;color:#167a73!important;font-size:17px;font-weight:850}.member-panel .card-edit-details>summary::-webkit-details-marker{display:none}.member-panel .card-edit-details>summary svg{width:18px;height:18px;flex-basis:18px;stroke-width:2}.member-panel .card-edit-details .details-caret{font-size:12px;transition:transform .15s ease}.member-panel .card-edit-details[open] .details-caret{transform:rotate(180deg)}
@media(max-width:390px){.member-card-actions .card-state-actions{gap:5px}.member-card-actions .card-state-actions button{gap:4px;padding-inline:5px!important;font-size:11px!important}.member-card-actions .card-state-actions svg{width:19px;height:19px;flex-basis:19px}}

/* Compact action sizing with extra separation between related groups. */
.member-card-actions{gap:6px!important}.member-card-actions .card-main-action{min-height:48px!important;padding:6px 13px!important;font-size:15px!important}.member-card-actions .card-main-action>svg{width:22px;height:22px;flex-basis:22px}.member-card-actions .card-action-copy{gap:2px}.member-card-actions .card-action-copy small{font-size:10.5px!important}.member-card-actions .card-cover-action{margin-bottom:4px!important}.member-card-actions .card-copy-recipient{margin-bottom:5px!important}.member-card-actions .card-state-actions{gap:7px;margin-bottom:5px}.member-card-actions .card-state-actions button{min-height:42px!important;padding-block:5px!important}.member-card-actions .card-state-actions svg{width:20px;height:20px;flex-basis:20px}.member-card-actions .card-delete-action{min-height:42px!important;margin-top:1px!important;padding-block:6px!important;font-size:15px!important}.member-card-actions .card-delete-action svg{width:20px;height:20px;flex-basis:20px}.member-panel .card-edit-details{margin-top:17px;padding-top:14px}.member-panel .card-edit-details>summary::after{content:'▾';display:inline-block;margin-left:1px;font-size:12px;line-height:1;transition:transform .15s ease}.member-panel .card-edit-details[open]>summary::after{transform:rotate(180deg)}.member-panel .card-edit-details .details-caret{display:none!important}

/* Visual categorized theme library. */
.theme-style-picker[data-theme-picker]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.theme-library-native-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.theme-selected-name{grid-column:1/-1;display:flex;align-items:center;min-height:45px;padding:8px 12px;border:1px solid #bfd5cf;border-radius:10px;background:linear-gradient(120deg,var(--selected-secondary,#f5efe4),#fff);color:var(--selected-primary,#315b5d);font-size:16px;font-weight:850}.theme-selected-name::before{content:attr(data-symbol);display:grid;place-items:center;width:31px;height:31px;margin-right:9px;border-radius:8px;background:#ffffffb8;font-size:19px}.theme-style-picker .theme-library-trigger,.theme-style-picker .theme-preview-trigger{justify-content:center!important;width:100%!important;min-height:43px!important}.theme-library-dialog[hidden]{display:none!important}.theme-library-dialog{position:fixed;inset:0;z-index:10030;display:flex;align-items:center;justify-content:center;padding:14px;background:#071b1bd6;backdrop-filter:blur(6px)}.theme-library-shell{width:min(760px,100%);max-height:94dvh;overflow:auto;padding:20px;border:1px solid #bad5ce;border-radius:22px;background:#f9fcfa;color:#263f42;box-shadow:0 30px 90px #0008}.theme-library-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.theme-library-head p{margin:0;color:#b47635}.theme-library-head h2{margin:2px 0 0;font:600 clamp(27px,5vw,40px)/1.05 Georgia,serif}.theme-library-close{width:44px;height:44px;flex:0 0 44px;border:1px solid #b8d3cc;border-radius:50%;background:#fff;color:#315b5d;font-size:27px}.theme-category-tabs{display:flex;gap:7px;margin:18px 0 15px;padding-bottom:5px;overflow-x:auto;scrollbar-width:thin}.theme-category-tabs button{flex:none;min-height:36px;padding:7px 12px;border:1px solid #b9d4cd;border-radius:99px;background:#fff;color:#326565;font-size:12px;font-weight:800;white-space:nowrap}.theme-category-tabs button.selected{border-color:#177d7a;background:#177d7a;color:#fff}.theme-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.theme-library-card{display:grid!important;grid-template-rows:105px auto;min-width:0;padding:0!important;overflow:hidden;border:2px solid transparent!important;border-radius:14px!important;background:#fff!important;color:#294d4f!important;text-align:left;box-shadow:0 5px 16px #173f3a18;transition:transform .12s ease,border-color .12s ease}.theme-library-card:active{transform:scale(.97)}.theme-library-card.selected{border-color:#efad4e!important;box-shadow:0 0 0 2px #fff,0 0 0 5px #efad4e}.theme-library-art{position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 22% 22%,#ffffffb0 0 9%,transparent 10%),radial-gradient(circle at 80% 78%,color-mix(in srgb,var(--theme-primary) 28%,transparent) 0 16%,transparent 17%),linear-gradient(145deg,var(--theme-secondary),color-mix(in srgb,var(--theme-primary) 28%,white));font-size:42px}.theme-library-art::after{content:'';position:absolute;inset:8px;border:2px solid color-mix(in srgb,var(--theme-primary) 65%,white);border-radius:9px}.theme-library-card-copy{display:grid;gap:2px;padding:9px 10px}.theme-library-card-copy strong{overflow:hidden;text-overflow:ellipsis;font-size:13px;white-space:nowrap}.theme-library-card-copy small{overflow:hidden;color:#708380!important;font-size:10px!important;text-overflow:ellipsis;white-space:nowrap}.theme-preview-live{background:radial-gradient(circle at 15% 14%,#ffffffa8 0 10%,transparent 11%),radial-gradient(circle at 85% 83%,color-mix(in srgb,var(--preview-primary) 24%,transparent) 0 14%,transparent 15%),linear-gradient(150deg,var(--preview-secondary,#f5efe4),#fff)!important;border-color:var(--preview-primary,#315b5d)!important;color:var(--preview-primary,#315b5d)!important}.theme-preview-live::before{content:var(--preview-symbol,'✦');position:absolute;left:50%;top:8%;transform:translateX(-50%);font-size:54px}.theme-preview-live .theme-preview-live-copy span,.theme-preview-live .theme-preview-live-copy em{color:color-mix(in srgb,var(--preview-primary,#315b5d) 78%,#263d42)!important}body.theme-library-open{overflow:hidden}
@media(max-width:650px){.theme-library-shell{padding:16px 12px}.theme-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.theme-library-card{grid-template-rows:92px auto}.theme-library-art{font-size:37px}}
.theme-library-art.has-art{background-position:center!important;background-size:cover!important}.theme-library-art.has-art::after{border-color:#ffffffb8;box-shadow:inset 0 0 12px #0002}
.theme-preview-live:not(.catalog-art-preview)::before{display:none}.theme-preview-live[data-theme="birthday"]{background-image:url("theme-covers/birthday-cover.png")!important}.theme-preview-live[data-theme="wedding"]{background-image:url("theme-covers/wedding-cover.png")!important}.theme-preview-live[data-theme="graduation"]{background-image:url("theme-covers/graduation-cover.png")!important}.theme-preview-live[data-theme="newborn"]{background-image:url("theme-covers/newborn-cover.png")!important}.theme-preview-live[data-theme="celebration"]{background-image:url("theme-covers/celebration-cover.png")!important}
.theme-preview-shell{width:min(520px,100%)!important;padding:18px!important}.theme-preview-image-wrap{padding:10px!important}.theme-preview-live{width:min(100%,320px)!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}.theme-preview-live-copy strong{font-size:clamp(21px,5vw,34px)!important}.theme-preview-live-copy span{font-size:clamp(13px,2.6vw,18px)!important}.theme-preview-live-copy em{font-size:clamp(14px,3vw,21px)!important}@media(max-height:720px){.theme-preview-live{width:min(100%,250px)!important}.theme-preview-image-wrap{margin:10px 0!important}.theme-preview-shell{padding:14px!important}.theme-preview-shell h2{font-size:26px!important}.theme-preview-copy{font-size:14px!important}}

/* Current and delivered card lists. */
.card-limit-counter{margin:4px 0 13px}.card-list-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 16px}.card-list-tabs button{min-height:43px;padding:8px 10px;border:1px solid #a9cbc3;border-radius:10px;background:#f5faf8;color:#286562;font-weight:800}.card-list-tabs button.active{border-color:#16857f;background:#16857f;color:#fff;box-shadow:0 4px 12px #155f5a2b}.card-list-tabs span{display:inline-grid;place-items:center;min-width:23px;height:23px;margin-left:4px;padding:0 6px;border-radius:99px;background:#ffffffc7;color:#246663}.card-list-tabs button.active span{background:#fff;color:#126f6b}.member-card[hidden]{display:none!important}.locked-schedule{display:grid;gap:4px;padding:11px 12px;border:1px solid #c9dcd7;border-radius:10px;background:#f4f8f6}.locked-schedule strong{color:#294f50}.locked-schedule span{font-weight:700}.locked-schedule small{color:#788987}
.card-details-form input[type="datetime-local"]{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden}.card-details-form label{min-width:0}.member-card-list{overflow-anchor:none}
.cards-panel-refreshing{opacity:.72;transform:translateY(5px)}#createdCardsPanel{transition:opacity .22s ease,transform .22s ease}.member-card.card-just-created{animation:card-created-highlight 1.4s ease-out}@keyframes card-created-highlight{0%{box-shadow:0 0 0 4px #20a87866,0 12px 30px #173f3a26;transform:translateY(8px)}100%{box-shadow:0 8px 22px #173f3a16;transform:none}}
#createCard,#createCard input,#createCard textarea,#createCard select{color-scheme:light}.field-validation-message{display:block;margin:4px 0 7px;padding:7px 10px;border:1px solid #e7a39d;border-radius:8px;background:#fff1ef;color:#9a3028;font-size:13px;font-weight:800;line-height:1.25}.has-validation-error>input,.has-validation-error>textarea,.has-validation-error>select{border-color:#d84d43!important;box-shadow:0 0 0 3px #d84d4326!important}
.member-panel .text-style-tools .theme-sample-text-button{width:auto!important;min-width:98px!important;height:32px!important;padding:0 9px!important;gap:5px!important;color:#26726e!important;font-size:11px!important;font-weight:850!important;white-space:nowrap}.member-panel .text-style-tools .theme-sample-text-button.sample-applied{border-color:#2b9a77!important;background:#e7f7ef!important;color:#197058!important;transform:scale(.97)}

/* Keep iOS datetime controls inside their form column. */
.card-details-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0!important;max-width:100%!important}.card-details-form>.schedule-field{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;contain:inline-size}.schedule-field>small{display:block;margin:6px 0}.schedule-input-wrap{display:block;width:100%;min-width:0;max-width:100%;padding-right:2px;overflow:hidden;box-sizing:border-box}.card-details-form .schedule-input-wrap input[type="datetime-local"]{display:block!important;inline-size:100%!important;width:100%!important;min-inline-size:0!important;max-inline-size:100%!important;margin:0!important;box-sizing:border-box!important}
@media(max-width:700px){.card-details-form{grid-template-columns:minmax(0,1fr)!important}}

/* Delivered card details and optional additional email delivery. */
.closed-card-delivery{display:grid;gap:5px;margin:14px 0 11px;padding:12px 13px;border:1px solid #c9ddd7;border-radius:11px;background:#f3f9f6;color:#4d6867;font-size:13px;line-height:1.4}.closed-card-delivery p{margin:0;overflow-wrap:anywhere}.closed-card-delivery strong{color:#245e5b}.closed-card-delivery span{color:#6f8280}.closed-view-card{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:44px;padding:8px 14px;border:1px solid #177d7a;border-radius:10px;background:#177d7a;color:#fff!important;font-weight:850;text-decoration:none}.closed-card-email-form{margin-top:12px;padding-top:12px;border-top:1px solid #dde9e5}.closed-card-email-form label{margin:0}.closed-card-email-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.closed-card-email-row input{margin:0!important}.closed-card-email-row button{min-height:45px;padding:8px 13px;border:1px solid #1b8c84;border-radius:9px;background:#eef8f5;color:#176e69;font-weight:850;white-space:nowrap}.closed-card-email-row button:active{transform:scale(.97)}.closed-card-email-status{display:block;min-height:18px;margin-top:5px;font-size:12px;font-weight:750}.closed-card-email-status.success{color:#187354}.closed-card-email-status.error{color:#ac3832}
@media(max-width:390px){.closed-card-email-row{grid-template-columns:1fr}.closed-card-email-row button{width:100%}}

/* Controlled schedule picker: past dates and times are unavailable before submission. */
.card-details-form>.schedule-field{overflow:visible!important;contain:none!important}.schedule-input-wrap{padding:0!important;overflow:visible!important}.schedule-picker-trigger{display:block!important;width:100%!important;min-width:0!important;min-height:45px!important;margin:0!important;padding:9px 11px!important;border:1px solid #bfd5cf!important;border-radius:9px!important;background:#fff!important;color:#6d807e!important;font:16px system-ui,sans-serif!important;text-align:left!important}.schedule-picker-trigger.has-value{color:#263e42!important}.schedule-picker-dialog{width:min(450px,calc(100vw - 24px));max-height:calc(100dvh - 28px);padding:0;border:1px solid #b8d3cc;border-radius:20px;background:#fff;color:#294849;box-shadow:0 28px 90px #0008}.schedule-picker-dialog::backdrop{background:#0b2424bd;backdrop-filter:blur(5px)}.schedule-picker-shell{padding:18px}.schedule-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.schedule-picker-head span{text-transform:uppercase;letter-spacing:.14em;color:#ae7135;font-size:11px;font-weight:850}.schedule-picker-head h2{margin:2px 0 0;font:600 28px/1.05 Georgia,serif}.schedule-picker-head>button{width:40px;height:40px;border:1px solid #bfd6d0;border-radius:50%;background:#f7fbf9;color:#315f5d;font-size:25px}.schedule-month-nav{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;gap:8px;margin:18px 0 10px}.schedule-month-nav strong{text-align:center}.schedule-month-nav button{height:38px;border:1px solid #bfd6d0;border-radius:9px;background:#f5faf8;color:#176f6b;font-size:25px}.schedule-month-nav button:disabled{opacity:.3;cursor:not-allowed}.schedule-weekdays,.schedule-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.schedule-weekdays span{padding:4px 0;color:#7a8d8a;font-size:10px;font-weight:800;text-align:center}.schedule-calendar>span,.schedule-calendar button{aspect-ratio:1;min-width:0;border:0;border-radius:9px;background:#f3f8f6;color:#294f50;font-weight:750}.schedule-calendar button.today{box-shadow:inset 0 0 0 2px #67aaa0}.schedule-calendar button.selected{background:#177d7a;color:#fff}.schedule-calendar button:disabled{background:#f3f3f3;color:#bec6c4;text-decoration:line-through;cursor:not-allowed;box-shadow:none}.schedule-time-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.schedule-time-row label{display:grid;gap:5px;margin:0!important;font-size:12px}.schedule-time-row select{width:100%;min-height:44px;border:1px solid #bfd5cf;border-radius:9px;background:#fff;padding:8px 10px;font-size:16px}.schedule-time-row option:disabled{color:#b9c2c0}.schedule-picker-zone{margin:10px 0 0;color:#748684;font-size:11px}.schedule-picker-error{min-height:18px;margin:5px 0;color:#aa3832;font-size:12px;font-weight:800}.schedule-picker-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:8px}.schedule-picker-actions button{min-height:44px;border:1px solid #a9cbc3;border-radius:9px;background:#fff;color:#276461;font-weight:850}.schedule-picker-actions .confirm{border-color:#177d7a;background:#177d7a;color:#fff}

.schedule-time-row select{background:#fff!important;color:#263e42!important;-webkit-text-fill-color:#263e42!important;opacity:1!important;color-scheme:light;-webkit-appearance:menulist;appearance:auto}.schedule-time-row select option{background:#fff!important;color:#263e42!important;-webkit-text-fill-color:#263e42!important}

/* Public theme showcase */
.theme-showcase{display:grid;grid-template-columns:minmax(0,.88fr) minmax(290px,1.12fr);gap:26px;align-items:center;margin:34px 0 40px;padding:22px;border:1px solid #d4e4df;border-radius:24px;background:linear-gradient(135deg,#ffffffd9,#eef7f3);box-shadow:0 18px 46px #1f5c5120;text-align:left;overflow:hidden}
.theme-showcase-copy h2{margin:5px 0 10px;font:600 clamp(30px,4.5vw,46px)/1.05 Georgia,serif;letter-spacing:-.025em;color:#294a4c}.theme-showcase-copy>p:last-child{margin:0;color:#627979;font-size:15px;line-height:1.55}.theme-showcase-stage{min-width:0}.theme-showcase-card{position:relative;width:min(100%,430px);aspect-ratio:4/5;margin:auto;border-radius:20px;overflow:hidden;background:#d9e5df center/cover no-repeat;box-shadow:0 16px 34px #183c3540;isolation:isolate;transition:opacity .22s ease,transform .22s ease}.theme-showcase-card.is-changing{opacity:.45;transform:scale(.985)}.theme-showcase-overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 52%,#061817e8 100%);z-index:1}.theme-showcase-label{position:absolute;left:0;right:0;bottom:0;z-index:2;display:grid;gap:3px;padding:18px 18px 16px;color:#fff;text-shadow:0 1px 6px #000}.theme-showcase-label span{font-size:10px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:#a9f2e5}.theme-showcase-label strong{font:700 clamp(22px,4vw,31px)/1.06 Georgia,serif}.theme-showcase-label small{font-size:12px;line-height:1.35;color:#eef7f4}.theme-showcase-controls{display:flex;justify-content:center;gap:8px;margin-top:12px}.theme-showcase-controls button{display:grid;place-items:center;width:35px;height:35px;padding:0;border:1px solid #9fc9c0;border-radius:50%;background:#fff;color:#226c69;font-size:24px;font-weight:800;line-height:1;box-shadow:0 4px 12px #214e4730;cursor:pointer}.theme-showcase-controls #themeShowcasePause{font-size:14px}.theme-showcase-controls button:active{transform:scale(.94)}.theme-showcase-progress{margin-top:6px;text-align:center;color:#728784;font-size:11px;font-weight:800;letter-spacing:.08em}.theme-showcase-copy .eyebrow{margin:0;color:#b77c5f}
@media(max-width:700px){.theme-showcase{grid-template-columns:1fr;gap:18px;margin:27px 0 30px;padding:17px 14px 18px;border-radius:20px;text-align:center}.theme-showcase-copy h2{font-size:32px}.theme-showcase-copy>p:last-child{font-size:14px}.theme-showcase-card{width:min(100%,345px)}.theme-showcase-label{text-align:left;padding:15px}.theme-showcase-label strong{font-size:25px}}

/* Home Kingdom account/admin controls. */
.manager-home-kingdom-form{display:flex;align-items:end;gap:8px;flex:1;min-width:270px}
.manager-home-kingdom-form label{flex:1;margin:0;font-size:12px;font-weight:800;color:#536c69}
.manager-home-kingdom-form select{width:100%;margin-top:4px}
.home-style-toggles{display:flex;gap:14px;flex-wrap:wrap;padding:10px 12px;border:1px solid #d6e6e1;border-radius:10px;background:#f8fbfa}
.home-style-toggles label{display:inline-flex;align-items:center;gap:6px;margin:0}
.home-icon-current{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap}
.home-icon-current img{width:48px;height:48px;object-fit:contain;border:1px solid #d6e6e1;border-radius:10px;background:#fff;padding:4px}
@media(max-width:700px){.manager-home-kingdom-form{display:grid;grid-template-columns:1fr;width:100%;min-width:0}.home-style-toggles{display:grid;grid-template-columns:1fr 1fr}}

/* Admin dashboard uses the same clear card presentation as the member area. */
.admin-themed .admin-shell{width:min(100%,900px)}
.admin-section-heading{margin-bottom:20px}
.admin-section-heading .eyebrow,.admin-cards-panel .eyebrow{margin:0 0 5px;color:#3a827c;font-size:11px;font-weight:900;letter-spacing:.14em}
.admin-section-heading h2,.admin-cards-panel .panel-title h2{margin:0 0 6px}
.admin-section-heading>p:last-child{margin:0;color:#6b817e;font-size:13px}
.admin-create-form{gap:0 16px}
.admin-create-form .theme-style-picker{grid-template-columns:minmax(0,1fr) 1fr 1fr}
.admin-create-form .theme-style-picker select{grid-column:1/-1}
.admin-create-form .theme-library-trigger,.admin-create-form .theme-preview-trigger{width:100%;min-width:0;justify-content:center;white-space:normal}
.admin-create-submit{width:100%}
.admin-card{padding:20px;border-color:#d7e7e1;background:linear-gradient(180deg,#fff,#f9fcfa);box-shadow:0 7px 22px #1b554b12}
.admin-card-creator{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px!important;color:#718482!important}
.admin-card-creator span{font-weight:650}
.admin-card-creator a{display:inline-flex;align-items:center;min-height:29px;padding:4px 9px;border:1px solid #9ccbc0;border-radius:999px;background:#edf8f4;color:#176f68;font-weight:850;text-decoration:none}
.admin-card-creator a::after{content:'›';margin-left:5px;font-size:17px;line-height:1}
.admin-card-creator a:focus-visible{outline:3px solid #f1b954;outline-offset:2px}
.admin-card-creator strong{color:#607672;font-weight:750}
.manager-user-card{scroll-margin-top:18px}
.manager-user-card:target{border-color:#2a968a;box-shadow:0 0 0 3px #68bfb044,0 12px 30px #174c4424;background:#f4fcf8}
.admin-card-actions{margin-top:18px!important}
.admin-card-actions>*{min-width:0}
.admin-card-actions .card-main-action{white-space:normal;overflow:visible}
.admin-card-actions .card-main-action span{min-width:0;overflow-wrap:anywhere}
.admin-card-state-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:1px 0 5px}
.admin-card-actions .admin-state-button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%;min-width:0;min-height:44px!important;margin:0!important;padding:8px 7px!important;border-radius:9px!important;font-size:12px!important;font-weight:850!important;line-height:1.15!important;text-align:center;white-space:normal}
.admin-card-actions .admin-close-button{border-color:#b9b9b9!important;background:#e6e6e6!important;color:#202020!important}
.admin-card-actions .admin-reopen-button{border-color:#71b8df!important;background:#dff3ff!important;color:#096997!important}
.admin-card-actions .admin-full-reopen-button{border-color:#8fcab9!important;background:#e5f8f1!important;color:#176c59!important}
.admin-card-actions .admin-deliver-button{border-color:#e5b34f!important;background:#ffe6aa!important;color:#704c08!important}
.admin-card-controls{margin-top:17px;padding-top:14px;border-top:1px solid #dfe9e5}
.admin-card-controls>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;color:#167a73;font-size:16px;font-weight:850}
.admin-card-controls>summary::-webkit-details-marker{display:none}
.admin-card-controls>summary::after{content:'▾';font-size:13px;transition:transform .15s ease}
.admin-card-controls[open]>summary::after{transform:rotate(180deg)}
.admin-card-controls-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 14px;margin-top:17px;padding:16px;border:1px solid #dfebe7;border-radius:12px;background:#f5faf8}
.admin-card-controls-grid label{min-width:0;margin:0!important}
.admin-card-controls-grid .theme-style-picker{grid-template-columns:minmax(0,1fr) auto}
.admin-card-controls-grid .save-deadline{align-self:end;width:100%;min-width:0;min-height:45px}
.admin-card-controls-grid input,.admin-card-controls-grid select,.admin-card-controls-grid button{max-width:100%}
.admin-reopen-dialog{width:min(470px,calc(100vw - 24px));padding:0;border:1px solid #b8d3cc;border-radius:20px;background:#fff;color:#294849;box-shadow:0 28px 90px #0008}.admin-reopen-dialog::backdrop{background:#0b2424bd;backdrop-filter:blur(5px)}.admin-reopen-form{display:grid;gap:14px;padding:20px}.admin-reopen-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.admin-reopen-head .eyebrow{margin:0 0 3px}.admin-reopen-head h2{margin:0;font:600 29px/1.05 Georgia,serif}.admin-reopen-head>button{width:40px;height:40px;border:1px solid #bfd6d0;border-radius:50%;background:#f7fbf9;color:#315f5d;font-size:25px}.admin-reopen-form>p{margin:0;color:#687e7b;font-size:14px}.admin-reopen-form label{display:grid;gap:6px;margin:0;font-weight:800}.admin-reopen-form input,.admin-reopen-form select{width:100%;min-height:46px;padding:9px 11px;border:1px solid #bfd5cf;border-radius:9px;background:#fff;color:#263e42;font:16px system-ui,sans-serif}.admin-reopen-error{min-height:18px;color:#a33d38;font-size:13px;font-weight:800}.admin-reopen-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:9px}.creator-edit-lock-notice{display:grid;gap:3px;margin:12px 0;padding:12px 13px;border:1px solid #e4bd74;border-radius:10px;background:#fff8e7;color:#755217}.creator-edit-lock-notice span{font-size:13px}.card-save-button:disabled{opacity:.5;cursor:not-allowed}.card-save-status:not(:empty){display:block;margin-top:8px;color:#9b493f;font-weight:750}
.card-edit-details[data-edit-locked="1"] .card-edit-form :disabled{opacity:.58;cursor:not-allowed}
@media(max-width:700px){
  .manager-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .manager-tabs a{min-width:0;padding:10px 6px;font-size:12px;line-height:1.15;text-align:center;white-space:normal}
  .admin-create-form{grid-template-columns:1fr}
  .admin-create-form .wide{grid-column:auto}
  .admin-card{padding:17px 14px}
  .admin-card-controls-grid{grid-template-columns:1fr;padding:13px 11px}
}
@media(max-width:430px){
  .admin-card-state-actions{grid-template-columns:1fr}
  .admin-card-actions .admin-state-button{min-height:42px!important;font-size:13px!important}
  .admin-create-form .theme-style-picker{grid-template-columns:1fr 1fr!important}
  .admin-create-form .theme-style-picker select{grid-column:1/-1}
}


/* Home button shared across cards dashboard, login and admin headers. */
.member-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0}
.member-home-button{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:7px 11px!important;border:1px solid #b9d6cf;border-radius:12px;background:linear-gradient(180deg,#ffffff,#f1f8f5);box-shadow:0 4px 12px #1c5f5520;text-decoration:none!important;white-space:nowrap;max-width:150px;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.member-home-button:active{transform:scale(.97)}
.member-home-button:hover{border-color:#78b5aa;box-shadow:0 6px 16px #1c5f5530}
.member-home-button-icon{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;color:#236b68}
.member-home-button-icon svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.member-home-button-icon img{display:block;width:20px;height:20px;object-fit:contain;border-radius:4px}
.member-home-button-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.05;max-width:98px}
@media(max-width:700px){
  .member-header{gap:8px;padding-left:14px;padding-right:14px}
  .member-header-actions{gap:8px}
  .member-home-button{min-height:36px;padding:6px 8px!important;max-width:92px;gap:4px}
  .member-home-button-icon{flex-basis:18px;width:18px;height:18px}
  .member-home-button-icon svg,.member-home-button-icon img{width:18px;height:18px}
  .member-home-button-label{max-width:52px}
  .member-header-name{max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:430px){
  .member-brand span{font-size:17px}
  .member-header-actions{gap:6px}
  .member-home-button{max-width:78px;padding:6px!important}
  .member-home-button-label{max-width:42px}
}

/* Signing-link share action in creator card list. */
.card-signing-action-row{display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:10px;align-items:stretch}
.card-signing-action-row .card-copy-signing{min-width:0;margin:0!important}
.card-signing-share-button{display:grid;place-items:center;min-width:0;border:0;border-radius:14px;background:#24b47e;color:#fff;box-shadow:0 7px 16px #14845a2b;cursor:pointer}
.card-signing-share-button:active{transform:scale(.96)}
.card-signing-share-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.member-share-dialog{width:min(520px,calc(100vw - 24px));padding:21px;border:1px solid #b9d3ce;border-radius:20px;background:#fff;color:#294748;box-shadow:0 30px 90px #0007}
.member-share-dialog::backdrop{background:#0b2323b8;backdrop-filter:blur(6px)}
.member-share-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.member-share-dialog-head span{text-transform:uppercase;letter-spacing:.14em;color:#b27435;font-size:11px;font-weight:850}
.member-share-dialog-head h2{margin:3px 0 0;font:600 31px/1.05 Georgia,serif}
.member-share-dialog-head>button{width:40px;height:40px;border:1px solid #bdd4cf;border-radius:50%;background:#f8fbfa;color:#315d5d;font-size:25px}
.member-share-dialog>p{color:#637a77}
.member-share-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.member-share-link-row input{min-width:0;height:44px;padding:8px 10px;border:1px solid #bed4cf;border-radius:9px;background:#f7faf9;color:#355d5d}
.member-share-link-row button{min-width:76px;border:0;border-radius:9px;background:#187f79;color:#fff;font-weight:850}
.member-share-platform-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:18px}
.member-share-platform-grid a,.member-share-platform-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:82px;padding:9px;border:1px solid #d2dfdc;border-radius:12px;background:#fff;color:#315b5d;text-decoration:none;font:750 11px system-ui,sans-serif}
.member-share-platform-grid span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e8f3f0;color:#176f6b;font-size:17px;font-weight:900}
@media(max-width:700px){.member-share-dialog{padding:17px}.member-share-dialog-head h2{font-size:27px}.member-share-platform-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:390px){.card-signing-action-row{grid-template-columns:minmax(0,1fr) 50px;gap:8px}}

/* Final mobile safeguards for the administrator header and action labels. */
.admin-themed,.admin-themed .member-dashboard,.admin-themed .member-panel,.admin-themed .admin-card{min-width:0;max-width:100%}

/* Manager mode uses a distinct red palette and compact, collapsed records. */
.admin-themed{--admin-red:#a5232c;--admin-red-dark:#75151d;--admin-red-soft:#fff1f2;background:linear-gradient(145deg,#fff8f5,#f5e5e6)!important}
.admin-themed .member-header{border-bottom-color:#dca8ab;background:#fff9f8}
.admin-themed .member-brand,.admin-themed h1,.admin-themed h2,.admin-themed h3{color:#5f171d}
.admin-themed .manager-tabs a.active,.admin-themed .member-primary,.admin-themed .btn.primary{border-color:var(--admin-red)!important;background:var(--admin-red)!important;color:#fff!important}
.admin-themed .manager-tabs>*,.admin-themed .member-panel,.admin-themed .admin-card,.admin-themed .manager-user-card{border-color:#e4c2c4}
.admin-themed .eyebrow,.admin-themed .admin-section-heading .eyebrow,.admin-themed .admin-cards-panel .eyebrow{color:#b13b43}
.admin-themed .member-status{background:#f7dfe1!important;color:#7c1c24!important}
.admin-themed .manager-tabs span{background:#fff!important;color:#7c1c24!important;box-shadow:inset 0 0 0 1px #d9959a}
.admin-kingdom-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px}
.admin-kingdom-tabs a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid #d9aaad;border-radius:11px;background:#fff8f8;color:#7b252b;font-weight:850;text-decoration:none}
.admin-kingdom-tabs a.active{background:#8f2028;color:#fff;border-color:#8f2028}
.admin-kingdom-tabs span{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:99px;background:#fff;color:#781b23!important}
.admin-record{overflow:hidden}.admin-record>summary{list-style:none;cursor:pointer}.admin-record>summary::-webkit-details-marker{display:none}.admin-record-summary::after{content:'Open ▾';margin-left:auto;color:#9b3037;font-size:12px;font-weight:900}.admin-record[open]>.admin-record-summary::after{content:'Close ▴'}.admin-record-body{padding-top:16px;border-top:1px solid #ead5d6}.admin-record:not([open]){padding-bottom:18px}.admin-record:not([open])>.admin-record-summary{margin-bottom:0}.admin-discord-toggle span{display:flex;align-items:center;gap:8px}.admin-discord-toggle input{width:20px!important;height:20px!important}
@media(max-width:700px){
  .admin-themed .member-header{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px}
  .admin-themed .member-brand{min-width:0}
  .admin-themed .member-header-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;min-width:0;max-width:none;gap:7px!important}
  .admin-themed .member-header-actions>a{display:flex!important;align-items:center;justify-content:center;width:100%;min-width:0;max-width:none!important;min-height:38px;padding:7px 5px!important;border:1px solid #bfd8d2;border-radius:9px;background:#f7fbf9;font-size:11px!important;line-height:1.15;text-align:center;white-space:normal;overflow-wrap:anywhere}
  .admin-themed .member-header-actions .member-home-button{max-width:none!important}
  .admin-card-state-actions{grid-template-columns:1fr}
  .admin-card-actions .admin-state-button{min-height:42px!important;font-size:13px!important}
}
.discord-link-panel{display:grid;gap:12px}.discord-link-panel h2{margin:0}.discord-link-panel form{margin:0}.discord-link-code{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border:1px solid rgba(18,132,125,.3);border-radius:14px;background:#f1faf7}.discord-link-code span{color:#58716f;font-weight:700}.discord-link-code strong{font:800 1.45rem/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.14em;color:#0f7772}
.discord-push-option{display:grid!important;gap:7px!important;padding:14px 15px;border:1px solid #bfd9d2;border-radius:12px;background:#f5fbf9}.discord-push-option>span{display:flex;align-items:center;gap:10px;font-weight:850}.discord-push-option input[type="checkbox"]{width:22px!important;min-width:22px!important;height:22px!important;min-height:22px!important;margin:0;padding:0;accent-color:#177d7a}.discord-push-option small{line-height:1.45}
.discord-signin-panel{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:24px 0;text-align:left}.discord-signin-panel h2{margin:2px 0 6px}.discord-oauth-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;background:#5865f2;border-color:#5865f2}.discord-link-panel .discord-oauth-button{width:max-content}@media(max-width:700px){.discord-signin-panel{display:grid}.discord-oauth-button{width:100%!important}}
.discord-connect-auth{max-width:780px}.discord-connect-auth .member-auth-grid{margin-top:28px}.profile-pin-status{display:grid;align-content:center;gap:4px;min-height:84px;margin-bottom:14px;padding:12px 14px;border:1px solid #bfd5cf;border-radius:10px;background:#f4faf8;color:#285b59}.profile-pin-status small{color:#6b817e}.discord-disconnect-guard{margin:0;padding:11px 13px;border:1px solid #e2c47f;border-radius:10px;background:#fff9e8;color:#775b20;font-size:13px;font-weight:700}
