/* Tu Recuerdo — private and public experience v3.
   This layer intentionally replaces the rejected panel/editor composition. */

.app-shell{
 --tr-ink:#241f25;
 --tr-night:#211c25;
 --tr-night-2:#312732;
 --tr-paper:#fbf8f3;
 --tr-canvas:#f1ece4;
 --tr-line:#d8cec1;
 --tr-muted:#746b67;
 --tr-gold:#bd8a57;
 --tr-gold-soft:#e9d7c4;
 --tr-green:#516b58;
 min-height:100svh;
 display:block;
 background:var(--tr-canvas);
 color:var(--tr-ink);
 font:400 15px/1.5 "Bitter",Georgia,serif;
}

/* One header, one scale and one behaviour on every private screen. */
.app-shell .product-header,
.app-shell.memorial-editor-shell .product-header{
 position:sticky;
 inset:0 0 auto;
 z-index:80;
 min-height:78px;
 padding:0 clamp(22px,3.2vw,52px);
 display:grid;
 grid-template-columns:minmax(220px,auto) minmax(0,1fr) minmax(220px,auto);
 align-items:center;
 gap:28px;
 border:0;
 border-bottom:1px solid rgba(255,255,255,.08);
 border-radius:0;
 background:linear-gradient(112deg,#1c1a22 0%,#2f242f 100%);
 color:#fff;
 box-shadow:0 10px 30px rgba(29,23,29,.12);
 backdrop-filter:none;
}
.app-shell .product-brand{display:flex;align-items:center;gap:13px;color:#fff!important}
.app-shell .product-monogram{width:39px;height:39px;display:grid;place-items:center;border:1px solid rgba(224,187,134,.72);border-radius:50%;background:transparent;color:#e3bd84;font:700 10px/1 "Bitter",serif;letter-spacing:.08em}
.app-shell .product-brand>span:last-child{display:grid;gap:2px}
.app-shell .product-brand strong{color:#fff;font:400 22px/1 "Adobe Gurmukhi","Bitter",serif;letter-spacing:0}
.app-shell .product-brand small{color:rgba(255,255,255,.48);font:700 8px/1.2 "Bitter",serif;letter-spacing:.14em;text-transform:uppercase}
.app-shell .product-navigation,
.app-shell.memorial-editor-shell .product-navigation{min-width:0;margin:0;padding:0;display:flex;align-items:stretch;justify-content:center;gap:4px;overflow-x:auto;border:0;background:transparent;box-shadow:none;scrollbar-width:none}
.app-shell .product-navigation a,
.app-shell.memorial-editor-shell .product-navigation a{position:relative;min-width:112px;min-height:48px;padding:7px 14px;display:grid;align-content:center;justify-items:center;gap:3px;border:0;border-radius:5px;background:transparent;color:rgba(255,255,255,.65)!important;box-shadow:none;white-space:nowrap}
.app-shell .product-navigation a span{display:block;color:#c99b69;font:700 8px/1 "Bitter",serif;letter-spacing:.1em}
.app-shell .product-navigation a b{display:block;color:inherit!important;font:700 13px/1.15 "Bitter",serif;opacity:1}
.app-shell .product-navigation a:after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:2px;background:transparent}
.app-shell .product-navigation a:hover,.app-shell .product-navigation a.active{background:rgba(255,255,255,.08);color:#fff!important}
.app-shell .product-navigation a.active:after{background:#d5aa78}
.app-shell .product-account{display:flex;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}
.app-shell .product-account>span{width:36px;height:36px;display:grid;place-items:center;border:1px solid rgba(218,180,127,.32);border-radius:50%;background:rgba(218,180,127,.12);color:#dfb77f;font:700 13px/1 "Bitter",serif}
.app-shell .product-account strong,.app-shell .product-account small{display:block}
.app-shell .product-account strong{color:#fff;font-size:12px}.app-shell .product-account small{color:rgba(255,255,255,.46);font-size:10px}
.app-shell .product-account>a{margin-left:4px;padding:7px 0 7px 12px;border-left:1px solid rgba(255,255,255,.13);color:rgba(255,255,255,.72);font:700 11px/1 "Bitter",serif}

.app-shell>.workspace,.app-shell>.product-workspace,.app-shell.memorial-editor-shell>.workspace{width:min(1380px,100%);max-width:1380px;margin:0 auto;padding:28px clamp(20px,3.4vw,48px) 64px}
.app-shell .workspace-top,.app-shell .product-intro{margin:0 0 22px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.app-shell .workspace h1,.app-shell .product-intro h1{margin:0;color:var(--tr-ink);font:400 clamp(33px,3.2vw,43px)/1.02 "Adobe Gurmukhi","Bitter",serif;letter-spacing:-.015em}
.app-shell .workspace-top>div>p:last-child,.app-shell .product-intro>div>p:last-child{margin:6px 0 0;color:var(--tr-muted);font-size:13px}
.app-shell .eyebrow,.app-shell .product-label{margin:0 0 6px;color:#a87349;font:700 9px/1.2 "Bitter",serif;letter-spacing:.16em;text-transform:uppercase}
.app-shell .back-link{display:inline-block;margin:0 0 8px;padding-bottom:2px;border-bottom:1px solid #c9b8a6;color:var(--tr-muted);font-size:11px}
.app-shell .btn{min-height:44px;padding:0 17px;border:1px solid transparent;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--tr-ink);font:700 13px/1 "Bitter",serif;cursor:pointer}
.app-shell .btn-primary,.app-shell .product-primary-action{border-color:var(--tr-night);background:var(--tr-night);color:#fff}
.app-shell .btn-outline,.app-shell .product-outline-action{border-color:#cdbfac;background:transparent;color:var(--tr-ink)}
.app-shell .form-stack label{color:#4f4749;font-size:13px;font-weight:700}
.app-shell .form-stack input,.app-shell .form-stack textarea,.app-shell .form-stack select,.app-shell .workspace select{min-height:48px;border:1px solid #cfc2b3;border-radius:6px;background:#fff;font:400 14px "Bitter",serif}

/* Family home keeps one memorial and four direct actions. */
.role-family .family-command-center{min-height:510px;display:grid;grid-template-columns:minmax(300px,.82fr) minmax(310px,.78fr) minmax(390px,1fr);border:1px solid var(--tr-line);border-radius:12px;overflow:hidden;background:var(--tr-paper);box-shadow:0 24px 60px rgba(43,32,38,.07)}
.role-family .family-feature-image{min-height:510px;margin:0;position:relative;overflow:hidden;background:#28232a}
.role-family .family-feature-image img{width:100%;height:100%;display:block;object-fit:cover;object-position:center top;filter:saturate(.86) contrast(.98)}
.role-family .family-feature-image:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 54%,rgba(24,20,25,.75))}
.role-family .family-feature-image figcaption{position:absolute;z-index:2;left:20px;right:20px;bottom:18px;display:flex;align-items:center;justify-content:space-between;color:#fff}
.role-family .family-record{padding:38px;display:flex;flex-direction:column;justify-content:center;border-right:1px solid var(--tr-line)}
.role-family .family-record-title h2{margin:0;font:400 clamp(39px,4vw,55px)/.98 "Adobe Gurmukhi","Bitter",serif}
.role-family .family-record-title blockquote{margin:16px 0 0;color:#675f5d;font:italic 15px/1.6 "Bitter",serif}
.role-family .family-command-list{padding:16px 30px;display:grid;align-content:center}
.role-family .family-command-list a{min-height:94px;padding:14px 0;display:grid;grid-template-columns:27px 1fr 30px;align-items:center;gap:12px;border-top:1px solid var(--tr-line);color:var(--tr-ink)}
.role-family .family-command-list a:first-child{border-top:0}.role-family .family-command-list strong{font-size:14px}.role-family .family-command-list small{font-size:11px;color:var(--tr-muted)}

/* Memorial editor: mobile cover preview beside a compact control surface. */
.app-shell.memorial-editor-shell>.workspace{padding-top:22px}
.app-shell.memorial-editor-shell .workspace-top{margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--tr-line)}
.app-shell.memorial-editor-shell .workspace-top h1{font-size:32px}.app-shell.memorial-editor-shell .workspace-top .btn{min-height:39px}
.app-shell.memorial-editor-shell .editor-view-tabs{position:static;width:max-content;max-width:100%;margin:0 0 18px;padding:4px;display:flex;gap:4px;border:1px solid #cdbfac;border-radius:8px;background:#fff;box-shadow:none;backdrop-filter:none}
.app-shell.memorial-editor-shell .editor-view-tabs button{min-height:38px;padding:0 20px;border:0;border-radius:5px;background:transparent;color:#6f6663;font:700 13px "Bitter",serif;cursor:pointer}
.app-shell.memorial-editor-shell .editor-view-tabs button.is-active{background:var(--tr-night);color:#fff}
.app-shell.memorial-editor-shell .memorial-editor-grid{display:block}
.app-shell.memorial-editor-shell .memorial-editor-grid>.editor-view{display:none!important}
.app-shell.memorial-editor-shell .memorial-editor-grid>.editor-view.is-active{display:block!important}
.app-shell.memorial-editor-shell .memorial-editor-grid>.panel-card{width:100%;max-width:none;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.app-shell.memorial-editor-shell .cover-studio-head{display:none}
.app-shell.memorial-editor-shell .portrait-frame-editor{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.app-shell.memorial-editor-shell .frame-editor-workspace{width:min(1180px,100%);margin:0 auto;display:grid;grid-template-columns:minmax(340px,420px) minmax(0,1fr);gap:34px;align-items:start;background:transparent;border:0;overflow:visible}
.app-shell.memorial-editor-shell .frame-editor-preview-column{position:relative;min-height:0;padding:24px;display:grid;place-items:center;border:1px solid var(--tr-line);border-radius:10px;background:#e7dfd4}
.app-shell.memorial-editor-shell .frame-editor-head{position:static;width:100%;margin:0 0 17px;display:flex;align-items:flex-end;justify-content:space-between;color:var(--tr-ink)}
.app-shell.memorial-editor-shell .frame-editor-head span{color:#a87349;font-size:8px}.app-shell.memorial-editor-shell .frame-editor-head strong{color:var(--tr-ink);font-size:20px}.app-shell.memorial-editor-shell .frame-editor-head small{color:var(--tr-muted);font-size:9px}
.app-shell.memorial-editor-shell .frame-editor-stage{width:min(330px,100%);margin:0;padding:12px 15px 14px;box-sizing:border-box;aspect-ratio:390/720;position:relative;overflow:hidden;border:0;border-radius:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#28232a var(--frame-background) center/cover no-repeat;box-shadow:none;isolation:isolate;text-align:center}
.app-shell.memorial-editor-shell .frame-editor-shade{position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(180deg,rgba(15,11,16,.42),rgba(15,11,16,.58) 45%,rgba(12,9,13,.9) 100%),radial-gradient(circle at 50% 20%,transparent,rgba(10,8,11,.45) 78%)}
.app-shell.memorial-editor-shell .frame-editor-mask{width:min(var(--frame-preview-width,72%),94%);height:auto;aspect-ratio:.72;position:relative;z-index:1;left:auto;top:auto;margin:0 auto 9px;border:0;border-radius:0;background:transparent;box-shadow:none;transform:none;overflow:hidden;flex:0 0 auto;cursor:grab;touch-action:none;user-select:none}
.app-shell.memorial-editor-shell .frame-editor-mask img{width:100%;height:100%;object-fit:cover;object-position:var(--frame-x) var(--frame-y);transform:scale(var(--frame-zoom));transform-origin:var(--frame-x) var(--frame-y);filter:saturate(.88) contrast(.98) brightness(.98)}
.app-shell.memorial-editor-shell .frame-editor-stage-copy{width:100%;position:relative;z-index:1;left:auto;right:auto;bottom:auto;display:flex;flex-direction:column;align-items:center;color:#fff;text-align:center;text-shadow:0 2px 12px rgba(0,0,0,.55)}
.app-shell.memorial-editor-shell .frame-editor-stage-copy .frame-preview-brand{margin:0 0 4px;color:#dcb37d;font:700 8px/1 "Bitter",serif;letter-spacing:.18em;text-transform:uppercase}
.app-shell.memorial-editor-shell .frame-editor-stage-copy .frame-preview-separator{width:82px;margin:0 auto 6px;display:flex;align-items:center;gap:8px;color:#dcb37d;font-size:6px}.app-shell.memorial-editor-shell .frame-preview-separator:before,.app-shell.memorial-editor-shell .frame-preview-separator:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,rgba(215,178,119,.82))}.app-shell.memorial-editor-shell .frame-preview-separator:after{background:linear-gradient(90deg,rgba(215,178,119,.82),transparent)}
.app-shell.memorial-editor-shell .frame-editor-stage-copy p{margin:0 auto 4px;color:rgba(255,255,255,.86);font:400 10px/1.36 "Bitter",serif}
.app-shell.memorial-editor-shell .frame-editor-stage-copy .frame-preview-name{margin:0;color:#fff;font:400 30px/.98 "Adobe Gurmukhi","Bitter",serif;letter-spacing:-.015em}
.app-shell.memorial-editor-shell .frame-editor-stage-copy blockquote{margin:5px auto 8px;color:#eadfce;font:italic 9px/1.35 "Bitter",serif}
.app-shell.memorial-editor-shell .frame-editor-stage-copy .frame-preview-enter{width:min(240px,82%);min-height:35px;padding:0 12px;border:1px solid rgba(222,179,122,.68);border-radius:5px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;background:linear-gradient(135deg,rgba(190,136,81,.34),rgba(82,50,60,.28));color:#fff;font:700 8px/1 "Bitter",serif;letter-spacing:.06em;text-transform:uppercase;backdrop-filter:blur(8px)}
.app-shell.memorial-editor-shell .frame-editor-stage-copy .frame-preview-contribute{margin:5px auto 0;padding:2px 1px;border-bottom:1px solid rgba(255,255,255,.42);color:rgba(255,255,255,.88);font:400 8px/1.35 "Bitter",serif}
.app-shell.memorial-editor-shell .frame-editor-controls{min-width:0;padding:26px;display:grid;grid-template-columns:1fr;gap:20px;border:1px solid var(--tr-line);border-radius:10px;background:var(--tr-paper)}
.app-shell.memorial-editor-shell .frame-tool-header{padding-bottom:17px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;border-bottom:1px solid var(--tr-line)}
.app-shell.memorial-editor-shell .frame-tool-header span{color:#a87349;font-size:8px}.app-shell.memorial-editor-shell .frame-tool-header strong{font-size:21px}
.app-shell.memorial-editor-shell .frame-tool-tabs{display:grid;grid-template-columns:1fr 1fr;border:1px solid #cdbfac;border-radius:6px;background:#fff;overflow:hidden}
.app-shell.memorial-editor-shell .frame-tool-tabs button{min-height:38px;padding:0 15px;border:0;border-radius:0;background:#fff;color:#6f6663;font:700 12px "Bitter",serif}.app-shell.memorial-editor-shell .frame-tool-tabs button.is-active{background:var(--tr-night);color:#fff}
.app-shell.memorial-editor-shell .frame-editor-controls fieldset{min-width:0;margin:0;padding:0;border:0}
.app-shell.memorial-editor-shell .frame-editor-controls legend{margin:0 0 5px;font:400 25px/1.05 "Adobe Gurmukhi","Bitter",serif}
.app-shell.memorial-editor-shell .frame-background-controls>p,.app-shell.memorial-editor-shell .frame-adjust-controls>p{margin:0 0 14px;color:var(--tr-muted);font-size:12px;line-height:1.55}
.app-shell.memorial-editor-shell .frame-file-choice{position:relative;min-height:66px;margin-bottom:17px;padding:12px 14px;display:flex;align-items:center;border:1px solid #cfc2b3;border-radius:7px;background:#fff;cursor:pointer}
.app-shell.memorial-editor-shell .frame-file-choice input{position:absolute;width:1px;height:1px;opacity:0}.app-shell.memorial-editor-shell .frame-file-choice strong{font-size:13px}.app-shell.memorial-editor-shell .frame-file-choice small{font-size:11px;color:var(--tr-muted)}
.app-shell.memorial-editor-shell .frame-adjust-controls{display:grid;grid-template-columns:1fr 1fr;gap:15px 24px}
.app-shell.memorial-editor-shell .frame-adjust-controls legend,.app-shell.memorial-editor-shell .frame-adjust-controls>p,.app-shell.memorial-editor-shell .frame-adjust-controls>.frame-portrait-choice{grid-column:1/-1}
.app-shell.memorial-editor-shell .frame-style-picker{grid-column:1/-1;display:grid;gap:10px;margin:0 0 2px}
.app-shell.memorial-editor-shell .frame-style-picker-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.app-shell.memorial-editor-shell .frame-style-picker-head strong{font-size:12px}.app-shell.memorial-editor-shell .frame-style-picker-head small{color:var(--tr-muted);font-size:10px;text-align:right}
.app-shell.memorial-editor-shell .frame-style-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.app-shell.memorial-editor-shell .frame-style-option{min-width:0;padding:8px 6px 7px;display:grid;justify-items:center;gap:6px;border:1px solid #d6cbbf;border-radius:7px;background:#fff;color:var(--tr-ink);font-family:"Bitter",serif;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}.app-shell.memorial-editor-shell .frame-style-option:hover{border-color:#a98162;transform:translateY(-1px)}.app-shell.memorial-editor-shell .frame-style-option.is-active{border-color:#8e6044;background:#f7efe5;box-shadow:0 0 0 2px rgba(142,96,68,.13)}.app-shell.memorial-editor-shell .frame-style-option:focus-visible{outline:2px solid #8e6044;outline-offset:2px}.app-shell.memorial-editor-shell .frame-style-option small{width:100%;overflow:hidden;color:inherit;font-size:8px;font-weight:700;line-height:1.2;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.app-shell.memorial-editor-shell .frame-style-swatch{width:42px;height:52px;padding:5px;display:grid;place-items:center;box-sizing:border-box;background:#29232b}.app-shell.memorial-editor-shell .frame-style-swatch i{width:100%;height:100%;display:block;box-sizing:border-box;background:linear-gradient(145deg,#a99a8f,#5a4b4d 58%,#28222a)}
.app-shell.memorial-editor-shell [data-frame-swatch="none"]{padding:3px;background:transparent}.app-shell.memorial-editor-shell [data-frame-swatch="none"] i{border:1px dashed #c9bcaf;background:linear-gradient(145deg,#b7aaa0,#5f5253 58%,#302931)}
.app-shell.memorial-editor-shell [data-frame-swatch="fine"]{padding:3px;border:1px solid #cba979}.app-shell.memorial-editor-shell [data-frame-swatch="ivory"]{padding:6px;background:#e9dfd1}.app-shell.memorial-editor-shell [data-frame-swatch="double"]{padding:4px;border:3px double #cba979}.app-shell.memorial-editor-shell [data-frame-swatch="floating"]{padding:4px;border:1px solid rgba(255,255,255,.5);box-shadow:0 5px 10px rgba(28,22,27,.35)}.app-shell.memorial-editor-shell [data-frame-swatch="arch"]{padding:4px;border:1px solid #cba979;border-radius:48% 48% 5px 5px/18% 18% 5px 5px;overflow:hidden}.app-shell.memorial-editor-shell [data-frame-swatch="paper"]{padding:5px 5px 11px;background:#eee7dd;box-shadow:0 4px 8px rgba(38,30,32,.25)}.app-shell.memorial-editor-shell [data-frame-swatch="corners"]{padding:5px;background:linear-gradient(#d6b57f,#d6b57f) left top/12px 1px no-repeat,linear-gradient(#d6b57f,#d6b57f) left top/1px 12px no-repeat,linear-gradient(#d6b57f,#d6b57f) right top/12px 1px no-repeat,linear-gradient(#d6b57f,#d6b57f) right top/1px 12px no-repeat,linear-gradient(#d6b57f,#d6b57f) left bottom/12px 1px no-repeat,linear-gradient(#d6b57f,#d6b57f) left bottom/1px 12px no-repeat,linear-gradient(#d6b57f,#d6b57f) right bottom/12px 1px no-repeat,linear-gradient(#d6b57f,#d6b57f) right bottom/1px 12px no-repeat}.app-shell.memorial-editor-shell [data-frame-swatch="night"]{padding:5px;border:1px solid #b8966f;background:#211c23;box-shadow:inset 0 0 0 2px #322933}
.app-shell.memorial-editor-shell [data-frame-swatch^="oval-"]{overflow:hidden;border-radius:50%}.app-shell.memorial-editor-shell [data-frame-swatch="oval-soft"]{padding:2px;border:1px solid rgba(203,169,121,.55);box-shadow:0 4px 9px rgba(28,22,27,.2)}.app-shell.memorial-editor-shell [data-frame-swatch="oval-gold"]{padding:4px;border:2px solid #cba979;background:#4a3a3c}.app-shell.memorial-editor-shell [data-frame-swatch="oval-ivory"]{padding:6px;border:1px solid #fff8ec;background:#e9dfd1}.app-shell.memorial-editor-shell [data-frame-swatch="oval-double"]{padding:4px;border:3px double #cba979;background:#30272e}.app-shell.memorial-editor-shell [data-frame-swatch="oval-halo"]{padding:5px;background:linear-gradient(145deg,#f0d6a6,#9b6c49 60%,#efe0c3);box-shadow:0 4px 10px rgba(28,22,27,.3)}.app-shell.memorial-editor-shell [data-frame-swatch="oval-fade"]{padding:3px;border:1px solid rgba(255,255,255,.32);box-shadow:0 0 10px rgba(108,75,83,.55)}
.app-shell.memorial-editor-shell .frame-adjust-controls>label:not(.frame-portrait-choice){display:grid;gap:7px}.app-shell.memorial-editor-shell .frame-editor-controls label>span{display:flex;justify-content:space-between;font-size:12px;font-weight:700}.app-shell.memorial-editor-shell .frame-editor-controls output{color:#9b6944;font-size:11px}
.app-shell.memorial-editor-shell .frame-editor-controls input[type=range]{width:100%;height:4px;margin:7px 0;accent-color:#865b42}
.app-shell.memorial-editor-shell .frame-editor-actions{margin:0;padding-top:18px;display:grid;grid-template-columns:.8fr 1.2fr;gap:10px;border-top:1px solid var(--tr-line)}
.app-shell.memorial-editor-shell .frame-editor-actions .btn{min-width:0;min-height:46px;font-size:13px}

/* History is a composed editing surface, not an oversized form. */
.app-shell.memorial-editor-shell #historia.is-active{padding:28px;border:1px solid var(--tr-line);border-radius:10px;background:var(--tr-paper)}
.app-shell.memorial-editor-shell .history-editor-head{margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--tr-line)}
.app-shell.memorial-editor-shell .history-editor-head h2{font-size:29px}.app-shell.memorial-editor-shell .history-editor-head>p{font-size:12px}
.app-shell.memorial-editor-shell .history-editor-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(310px,.75fr);gap:28px}
.app-shell.memorial-editor-shell .history-narrative{padding-right:28px;border-right:1px solid var(--tr-line)}
.app-shell.memorial-editor-shell .history-details{padding:21px;border-radius:7px;background:#eee7dd}

/* Menu 3: complete content manager with upload and visible library. */
.app-shell.memorial-editor-shell .content-studio{padding:0;border:0;background:transparent}
.app-shell.memorial-editor-shell .media-content-uploader{margin:0 0 26px;padding:28px;display:grid;grid-template-columns:minmax(250px,.7fr) minmax(440px,1.3fr);gap:32px;border:1px solid var(--tr-line);border-radius:10px;background:var(--tr-paper)}
.app-shell.memorial-editor-shell .content-uploader-copy h3{margin:0;font:400 31px/1.05 "Adobe Gurmukhi","Bitter",serif}.app-shell.memorial-editor-shell .content-uploader-copy>p:last-of-type{color:var(--tr-muted);font-size:13px}.app-shell.memorial-editor-shell .content-uploader-copy>span{display:inline-block;margin-top:15px;color:#9b6944;font-size:11px;font-weight:700}
.app-shell.memorial-editor-shell .content-upload-form{display:grid;gap:13px}.app-shell.memorial-editor-shell .media-dropzone{min-height:132px;border:1px dashed #bba995;border-radius:8px;background:#f6f1ea}.app-shell.memorial-editor-shell .content-meta-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.app-shell.memorial-editor-shell .content-upload-form input{min-height:46px;border-radius:6px}
.app-shell.memorial-editor-shell .content-library-head{margin:0;padding:0 0 14px;display:flex;align-items:flex-end;justify-content:space-between;border-bottom:1px solid var(--tr-line)}
.app-shell.memorial-editor-shell .content-library-head h3{font-size:28px}.app-shell.memorial-editor-shell .content-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.app-shell.memorial-editor-shell .content-media-card{min-height:92px;padding:10px;display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid var(--tr-line);border-radius:7px;background:#fff}.app-shell.memorial-editor-shell .content-media-card img,.app-shell.memorial-editor-shell .content-media-card .media-kind{width:72px;height:72px;object-fit:cover;border-radius:4px}.app-shell.memorial-editor-shell .content-media-card strong{font-size:12px}.app-shell.memorial-editor-shell .content-media-card small{font-size:10px;color:var(--tr-muted)}
.app-shell.memorial-editor-shell .content-empty{min-height:220px;margin-top:14px;padding:28px;display:grid;grid-template-columns:auto 1fr;place-content:center;align-items:center;gap:17px;border:1px solid var(--tr-line);border-radius:8px;background:var(--tr-paper)}

/* Menu 4: moderation inbox with clear hierarchy and direct decisions. */
.message-workspace{width:min(1180px,100%)!important}
.message-page-head{align-items:flex-end!important}.message-selector label{display:grid;gap:6px}.message-selector label>span{color:var(--tr-muted);font-size:10px;text-transform:uppercase;letter-spacing:.1em}.message-selector select{min-width:260px}
.message-summary{margin-bottom:26px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #bcae9d;border-bottom:1px solid #bcae9d;background:rgba(255,255,255,.38)}
.message-summary article{position:relative;padding:17px 20px}.message-summary article+article:before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:1px;background:var(--tr-line)}.message-summary span,.message-summary small{display:block;color:var(--tr-muted);font-size:10px}.message-summary strong{display:block;margin:2px 0;font-size:27px}
.message-inbox{border-top:2px solid var(--tr-ink)}.message-inbox>header{padding:18px 0;display:flex;align-items:flex-end;justify-content:space-between;border-bottom:1px solid var(--tr-line)}.message-inbox h2{margin:0;font:400 29px/1 "Adobe Gurmukhi","Bitter",serif}.message-inbox>header>span{color:var(--tr-muted);font-size:11px}
.message-compose{margin:0 0 25px;padding:22px 0;display:grid;grid-template-columns:minmax(220px,.65fr) minmax(420px,1.35fr);gap:32px;border-top:1px solid var(--tr-line);border-bottom:1px solid var(--tr-line)}.message-compose h2{margin:3px 0 5px;font:400 27px/1.05 "Adobe Gurmukhi","Bitter",serif}.message-compose>div>p:last-child{margin:0;color:var(--tr-muted);font-size:11px;line-height:1.5}.message-compose form,.message-edit-form{display:grid;gap:11px}.message-compose-fields{display:grid;grid-template-columns:1fr 1fr;gap:11px}.message-compose label,.message-edit-form label{display:grid;gap:6px;color:#534b4d;font-size:10px;font-weight:700}.message-compose input,.message-compose textarea,.message-edit-form input,.message-edit-form textarea{width:100%;box-sizing:border-box;border:1px solid #d0c3b4;border-radius:6px;background:#fff;color:var(--tr-ink);font:400 12px/1.5 "Bitter",serif}.message-compose input,.message-edit-form input{min-height:43px;padding:0 12px}.message-compose textarea,.message-edit-form textarea{padding:11px 12px;resize:vertical}.message-compose .btn,.message-edit-form .btn{justify-self:end;min-height:42px;padding:0 19px}
.message-list{display:grid}.message-entry{min-height:150px;padding:20px 10px;display:grid;grid-template-columns:36px minmax(180px,.65fr) auto auto;gap:10px 18px;align-items:start;border-bottom:1px solid var(--tr-line)}
.message-number{color:#a87349;font-size:9px;font-weight:700}.message-author strong,.message-author small{display:block}.message-author strong{font-size:13px}.message-author small,.message-entry time{color:var(--tr-muted);font-size:10px}.message-status{justify-self:end;padding:5px 8px;border-radius:3px;background:#e9e2d8;color:#706660;font-size:9px;font-weight:700;text-transform:uppercase}.message-entry.status-approved .message-status{background:#e1ebe3;color:var(--tr-green)}
.message-entry blockquote{grid-column:2/5;margin:5px 0 0;color:#443d40;font:400 15px/1.65 "Bitter",serif}.message-editor{grid-column:2/5;margin-top:4px;border-top:1px solid var(--tr-line)}.message-editor[hidden]{display:none}.message-edit-form{margin-top:10px;padding:16px;border:1px solid var(--tr-line);border-radius:7px;background:rgba(255,255,255,.55)}.message-actions{grid-column:2/5;display:flex;justify-content:flex-end;gap:8px}.message-actions form{display:flex;gap:8px}.message-actions button{min-height:38px;padding:0 14px;border:1px solid #c9baaa;border-radius:5px;background:#fff;color:var(--tr-ink);font:700 11px "Bitter",serif;cursor:pointer}.message-actions .message-edit-toggle{border-color:#b9a58f;background:#f7f2eb;color:#614f43}.message-actions .message-edit-toggle[aria-expanded="true"]{border-color:#846a58;background:#846a58;color:#fff}.message-actions form:last-child button:last-child{border-color:var(--tr-night);background:var(--tr-night);color:#fff}.message-actions .message-delete{border-color:#c9a7a0;color:#8e473f;background:#fff}.message-empty{min-height:260px;padding:40px;display:grid;grid-template-columns:42px minmax(0,520px);place-content:center;gap:18px;background:rgba(255,255,255,.4)}.message-empty>span{width:42px;height:42px;display:grid;place-items:center;border:1px solid #c9baaa;border-radius:50%;color:#a87349}.message-empty h3{margin:0;font:400 25px "Adobe Gurmukhi","Bitter",serif}.message-empty p{margin:6px 0 0;color:var(--tr-muted);font-size:12px;line-height:1.6}

.memory-message-compose{margin:0 0 22px;border:1px solid #d2c5b7;border-radius:9px;background:rgba(255,255,255,.68);overflow:hidden}.memory-message-compose>summary{min-height:72px;padding:15px 20px;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto 34px;align-items:center;gap:16px;list-style:none;cursor:pointer}.memory-message-compose>summary::-webkit-details-marker{display:none}.memory-message-compose>summary div span,.memory-message-compose>summary div strong{display:block}.memory-message-compose>summary div span{color:#9a6949;font-size:8px;font-weight:700;letter-spacing:.11em;text-transform:uppercase}.memory-message-compose>summary div strong{margin-top:3px;font:400 23px/1 "Adobe Gurmukhi","Bitter",serif}.memory-message-compose>summary small{max-width:220px;color:#817773;font-size:9px;line-height:1.45;text-align:right}.memory-message-compose>summary i{position:relative;width:34px;height:34px;border:1px solid #c8b8a7;border-radius:50%}.memory-message-compose>summary i:before,.memory-message-compose>summary i:after{content:"";position:absolute;left:50%;top:50%;width:12px;height:1px;background:#6f5748;transform:translate(-50%,-50%);transition:transform .2s ease}.memory-message-compose>summary i:after{transform:translate(-50%,-50%) rotate(90deg)}.memory-message-compose[open]>summary{background:rgba(247,242,235,.8)}.memory-message-compose[open]>summary i:after{transform:translate(-50%,-50%) rotate(0)}.memory-message-form{margin:0;padding:20px;display:grid;gap:13px;border-top:1px solid #ddd1c4;background:rgba(255,255,255,.4)}.memory-message-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.memory-message-form label{display:grid;gap:6px;color:#554d4d;font-size:9px;font-weight:700}.memory-message-form input,.memory-message-form textarea{width:100%;box-sizing:border-box;border:1px solid #d0c4b7;border-radius:6px;background:#fff;color:#332d31;font:400 11px/1.5 "Bitter",serif}.memory-message-form input{min-height:42px;padding:0 11px}.memory-message-form textarea{padding:11px;resize:vertical}.memory-message-submit{justify-self:end;min-height:42px;padding:0 18px;border:1px solid #302831;border-radius:6px;background:#211c24;color:#fff;font:700 10px "Bitter",serif;cursor:pointer}

/* Compact responsive album: every item is a thumbnail and the full image opens in the viewer. */
.memory-life-dates{margin-top:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:rgba(255,255,255,.94);font:600 clamp(13px,1.35vw,16px)/1.2 "Bitter",serif;letter-spacing:.045em;text-shadow:0 2px 12px rgba(0,0,0,.55)}
.memory-life-date{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.memory-life-date svg{width:17px;height:17px;flex:0 0 17px;fill:#e1b96f;filter:drop-shadow(0 2px 5px rgba(0,0,0,.45))}.memory-life-date small{margin-left:1px;color:#e8dccb;font-size:.65em;font-weight:700;letter-spacing:.13em}.memory-life-separator{color:rgba(255,255,255,.48);font-weight:400}
.memory-body>.memory-story-card:first-child{position:relative;z-index:3;margin:-22px auto 0}
.memory-body>.memory-story-card+.memory-actions{margin:17px auto 0}
.memory-photo-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:10px!important;align-items:start}
.memory-photo-grid .memory-photo-item,.memory-photo-grid .memory-photo-item.orientation-landscape,.memory-photo-grid .memory-photo-item.orientation-portrait,.memory-photo-grid .memory-photo-item.orientation-square{grid-column:auto;min-width:0;min-height:0!important;height:auto!important;aspect-ratio:auto!important;margin:0;position:relative;overflow:hidden;border:1px solid #d2c5b7;border-radius:8px;background:rgba(255,255,255,.72)}
.memory-photo-thumb{position:relative;width:100%;height:180px;padding:0;display:grid;place-items:center;overflow:hidden;border:0;background:#e5ddd3;cursor:zoom-in}
.memory-photo-thumb img{width:100%!important;height:100%!important;max-height:none!important;display:block!important;object-fit:contain!important;transition:transform .3s ease,filter .3s ease}
.memory-photo-thumb>span{position:absolute;right:11px;bottom:10px;padding:6px 8px;border:1px solid rgba(255,255,255,.28);border-radius:4px;background:rgba(22,18,23,.6);color:#fff;font:700 8px/1 "Bitter",serif;letter-spacing:.08em;text-transform:uppercase;opacity:0;transform:translateY(4px);transition:opacity .2s,transform .2s;backdrop-filter:blur(8px)}
.memory-photo-thumb:hover img,.memory-photo-thumb:focus-visible img{transform:scale(1.012);filter:brightness(.9)}.memory-photo-thumb:hover>span,.memory-photo-thumb:focus-visible>span{opacity:1;transform:none}.memory-photo-thumb:focus-visible{outline:2px solid #b88758;outline-offset:3px}
.memory-photo-grid .memory-photo-item figcaption{position:static!important;min-height:36px;padding:10px 12px!important;border-top:1px solid #ded3c6;color:#5f5652!important;background:rgba(255,255,255,.82)!important;font-size:10px!important;line-height:1.45}
body.memory-photo-modal-open{overflow:hidden}
.memory-photo-modal[hidden]{display:none}.memory-photo-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:18px;opacity:0;transition:opacity .18s ease}.memory-photo-modal.is-open{opacity:1}
.memory-photo-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(12,10,13,.9);backdrop-filter:blur(16px);cursor:zoom-out}
.memory-photo-modal-dialog{position:relative;z-index:1;width:min(1180px,100%);height:min(88svh,900px);display:grid;place-items:center;margin:0;padding:0;background:transparent}
.memory-photo-modal-dialog img{max-width:100%;max-height:calc(88svh - 54px);width:auto;height:auto;display:block;object-fit:contain;filter:none;cursor:zoom-out}
.memory-photo-modal-close{position:absolute;z-index:2;top:0;right:0;width:42px;height:42px;border:1px solid rgba(255,255,255,.32);border-radius:50%;display:grid;place-items:center;background:rgba(18,15,20,.62);color:#fff;font:300 25px/1 "Bitter",serif;cursor:pointer;backdrop-filter:blur(8px)}
.memory-photo-modal-dialog p{position:absolute;left:50%;bottom:0;max-width:min(760px,calc(100% - 40px));margin:0;padding:8px 13px;transform:translateX(-50%);border-radius:4px;background:rgba(18,15,20,.72);color:#fff;font-size:10px;text-align:center;backdrop-filter:blur(8px)}
.memory-video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;align-items:start}.memory-video-item{min-width:0;margin:0;overflow:hidden;border:1px solid #d2c5b7;border-radius:8px;background:rgba(255,255,255,.72)}.memory-video-thumb{position:relative;width:100%;height:180px;padding:0;display:grid;place-items:center;overflow:hidden;border:0;background:#e5ddd3;cursor:pointer}.memory-video-thumb img{width:100%;height:100%;display:block;object-fit:contain;transition:transform .3s ease,filter .3s ease}.memory-video-placeholder{color:#8c674d;font:700 23px/1 "Bitter",serif;letter-spacing:.08em;opacity:.55}.memory-video-play{position:absolute;left:50%;top:50%;width:48px;height:48px;display:grid;place-items:center;padding-left:3px;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.62);border-radius:50%;background:rgba(38,31,40,.76);color:#f0c986;font-size:16px;box-shadow:0 8px 24px rgba(0,0,0,.24);backdrop-filter:blur(8px);transition:transform .2s,background .2s}.memory-video-thumb:hover img,.memory-video-thumb:focus-visible img{transform:scale(1.015);filter:brightness(.82)}.memory-video-thumb:hover .memory-video-play,.memory-video-thumb:focus-visible .memory-video-play{transform:translate(-50%,-50%) scale(1.07);background:rgba(43,33,43,.9)}.memory-video-thumb:focus-visible{outline:2px solid #a97851;outline-offset:-2px}.memory-video-item figcaption{min-height:36px;padding:10px 12px;border-top:1px solid #ded3c6;color:#5f5652;background:rgba(255,255,255,.82);font-size:10px;line-height:1.45}.memory-video-modal-dialog video{max-width:100%;max-height:calc(88svh - 54px);width:auto;height:auto;display:block;border-radius:6px;background:#000;box-shadow:0 24px 70px rgba(0,0,0,.45)}
#videos .memory-audio-card{border-color:#d2c5b7;background:rgba(255,255,255,.65);color:#3d3539}#videos .memory-audio-card span{color:#9a6949}#videos .memory-media-empty{border-color:#d2c5b7;background:rgba(255,255,255,.5);color:#3d3539}#videos .memory-media-empty>span{background:#ece2d6;color:#986d4a}#videos .memory-media-empty p{color:#766c67}

/* Public QR cover: always a vertical, mobile-style composition. */
html:has(.public-memorial),body:has(.public-memorial){height:100%;overflow:hidden}
.public-memorial{width:100%;height:100svh;overflow:hidden;background:#171319;color:#fff}
.public-memorial .qr-cover{width:100%;height:100svh;min-height:0;display:grid;place-items:center;overflow:hidden;background-position:center;background-size:cover}
.public-memorial .qr-cover-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(15,11,16,.42),rgba(15,11,16,.58) 45%,rgba(12,9,13,.9) 100%),radial-gradient(circle at 50% 20%,transparent,rgba(10,8,11,.45) 78%)}
.public-memorial .qr-cover-content{width:min(520px,100%);height:100svh;max-height:100svh;margin:0 auto;padding:14px 22px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;text-align:center}
.public-memorial .qr-portrait{order:0;width:min(calc(28.08svh * var(--portrait-mask-scale,1)),82vw);height:auto;aspect-ratio:.72;margin:0 auto 12px;display:block;position:relative;overflow:visible;filter:none!important;flex:0 0 auto}
.public-memorial .qr-portrait-frame{width:100%;height:100%;display:block;position:relative;overflow:hidden;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;-webkit-mask-image:linear-gradient(to right,transparent 0,rgba(0,0,0,.08) 5%,rgba(0,0,0,.42) 12%,rgba(0,0,0,.82) 20%,#000 29%,#000 71%,rgba(0,0,0,.82) 80%,rgba(0,0,0,.42) 88%,rgba(0,0,0,.08) 95%,transparent 100%),linear-gradient(to bottom,transparent 0,rgba(0,0,0,.08) 5%,rgba(0,0,0,.42) 12%,rgba(0,0,0,.82) 20%,#000 28%,#000 72%,rgba(0,0,0,.82) 80%,rgba(0,0,0,.42) 88%,rgba(0,0,0,.08) 95%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent 0,rgba(0,0,0,.08) 5%,rgba(0,0,0,.42) 12%,rgba(0,0,0,.82) 20%,#000 29%,#000 71%,rgba(0,0,0,.82) 80%,rgba(0,0,0,.42) 88%,rgba(0,0,0,.08) 95%,transparent 100%),linear-gradient(to bottom,transparent 0,rgba(0,0,0,.08) 5%,rgba(0,0,0,.42) 12%,rgba(0,0,0,.82) 20%,#000 28%,#000 72%,rgba(0,0,0,.82) 80%,rgba(0,0,0,.42) 88%,rgba(0,0,0,.08) 95%,transparent 100%);mask-composite:intersect}
.public-memorial .qr-portrait.has-photo .qr-portrait-frame:before,.public-memorial .qr-portrait-frame:after{display:none!important}
.public-memorial .qr-portrait img{width:100%;height:100%;display:block;object-fit:cover;object-position:var(--portrait-x,50%) var(--portrait-y,50%);transform:scale(var(--portrait-zoom,1));transform-origin:var(--portrait-x,50%) var(--portrait-y,50%);filter:saturate(.9) contrast(.98) brightness(.98)}

/* Selectable portrait frames. The unframed option deliberately has no fade, filter or ornamental edge. */
.public-memorial .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-editor] .frame-editor-mask{box-sizing:border-box;-webkit-mask-image:none!important;mask-image:none!important;-webkit-mask-composite:initial!important;mask-composite:initial!important;border:0!important;border-radius:0!important;outline:0!important;padding:0;background:transparent!important;box-shadow:none!important;overflow:hidden!important}
.public-memorial .qr-portrait-frame:before,.public-memorial .qr-portrait-frame:after,.app-shell.memorial-editor-shell [data-frame-editor] .frame-editor-mask:before,.app-shell.memorial-editor-shell [data-frame-editor] .frame-editor-mask:after{display:none!important}
.public-memorial .qr-portrait img,.app-shell.memorial-editor-shell [data-frame-editor] .frame-editor-mask img{filter:none!important}
.public-memorial .qr-portrait[data-frame-style="fine"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="fine"] .frame-editor-mask{padding:4px;border:1px solid rgba(226,190,140,.78)!important;background:rgba(40,32,38,.28)!important;box-shadow:0 12px 32px rgba(10,8,11,.2)!important}
.public-memorial .qr-portrait[data-frame-style="ivory"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="ivory"] .frame-editor-mask{padding:8px;border:1px solid rgba(255,255,255,.64)!important;background:#e9dfd1!important;box-shadow:0 14px 34px rgba(10,8,11,.25)!important}
.public-memorial .qr-portrait[data-frame-style="double"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="double"] .frame-editor-mask{padding:6px;border:3px double rgba(224,188,138,.86)!important;background:rgba(37,29,35,.5)!important;box-shadow:0 12px 30px rgba(10,8,11,.22)!important}
.public-memorial .qr-portrait[data-frame-style="floating"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="floating"] .frame-editor-mask{padding:5px;border:1px solid rgba(255,255,255,.5)!important;background:rgba(255,255,255,.12)!important;box-shadow:0 22px 48px rgba(8,6,9,.38)!important}
.public-memorial .qr-portrait[data-frame-style="arch"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="arch"] .frame-editor-mask{padding:5px;border:1px solid rgba(224,188,138,.78)!important;border-radius:48% 48% 8px 8px/18% 18% 8px 8px!important;background:rgba(38,30,36,.35)!important;box-shadow:0 16px 36px rgba(9,7,10,.3)!important}
.public-memorial .qr-portrait[data-frame-style="paper"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="paper"] .frame-editor-mask{padding:7px 7px 24px;border:1px solid rgba(255,255,255,.7)!important;background:#eee7dd!important;box-shadow:0 18px 38px rgba(8,6,9,.34)!important}
.public-memorial .qr-portrait[data-frame-style="corners"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="corners"] .frame-editor-mask{padding:8px;background:linear-gradient(#d9b476,#d9b476) left top/34px 1px no-repeat,linear-gradient(#d9b476,#d9b476) left top/1px 34px no-repeat,linear-gradient(#d9b476,#d9b476) right top/34px 1px no-repeat,linear-gradient(#d9b476,#d9b476) right top/1px 34px no-repeat,linear-gradient(#d9b476,#d9b476) left bottom/34px 1px no-repeat,linear-gradient(#d9b476,#d9b476) left bottom/1px 34px no-repeat,linear-gradient(#d9b476,#d9b476) right bottom/34px 1px no-repeat,linear-gradient(#d9b476,#d9b476) right bottom/1px 34px no-repeat!important;box-shadow:0 14px 34px rgba(9,7,10,.25)!important}
.public-memorial .qr-portrait[data-frame-style="night"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="night"] .frame-editor-mask{padding:7px;border:1px solid rgba(224,190,148,.56)!important;background:#211b22!important;box-shadow:inset 0 0 0 2px #342a34,0 18px 42px rgba(7,5,8,.4)!important}
.public-memorial .qr-portrait[data-frame-style^="oval-"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style^="oval-"] .frame-editor-mask{border-radius:50%!important}
.public-memorial .qr-portrait[data-frame-style="oval-soft"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="oval-soft"] .frame-editor-mask{padding:2px;border:1px solid rgba(231,205,166,.56)!important;box-shadow:0 14px 34px rgba(8,6,9,.27)!important}
.public-memorial .qr-portrait[data-frame-style="oval-gold"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="oval-gold"] .frame-editor-mask{padding:6px;border:2px solid rgba(218,177,111,.94)!important;background:rgba(54,40,43,.62)!important;box-shadow:0 16px 38px rgba(8,6,9,.34)!important}
.public-memorial .qr-portrait[data-frame-style="oval-ivory"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="oval-ivory"] .frame-editor-mask{padding:10px;border:1px solid rgba(255,250,240,.88)!important;background:#e9dfd1!important;box-shadow:0 16px 38px rgba(8,6,9,.29)!important}
.public-memorial .qr-portrait[data-frame-style="oval-double"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="oval-double"] .frame-editor-mask{padding:7px;border:4px double rgba(222,184,124,.9)!important;background:rgba(42,31,37,.58)!important;box-shadow:0 17px 40px rgba(8,6,9,.33)!important}
.public-memorial .qr-portrait[data-frame-style="oval-halo"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="oval-halo"] .frame-editor-mask{padding:8px;border:1px solid rgba(255,238,203,.68)!important;background:linear-gradient(145deg,#ead2a4,#8e6248 55%,#e8d9bc)!important;box-shadow:0 0 0 4px rgba(231,193,132,.12),0 18px 44px rgba(8,6,9,.36)!important}
.public-memorial .qr-portrait[data-frame-style="oval-fade"] .qr-portrait-frame,.app-shell.memorial-editor-shell [data-frame-style="oval-fade"] .frame-editor-mask{border:0!important;background:transparent!important;box-shadow:0 18px 42px rgba(8,6,9,.22)!important;-webkit-mask-image:radial-gradient(ellipse at center,#000 58%,rgba(0,0,0,.96) 70%,rgba(0,0,0,.55) 84%,transparent 100%)!important;mask-image:radial-gradient(ellipse at center,#000 58%,rgba(0,0,0,.96) 70%,rgba(0,0,0,.55) 84%,transparent 100%)!important}
.public-memorial .qr-brand{order:1;margin:0 0 4px;color:#dcb37d;font:700 9px/1 "Bitter",serif;letter-spacing:.18em;text-transform:uppercase}
.public-memorial .qr-separator{order:2;width:92px;margin:0 auto 7px;color:#dcb37d;font-size:7px}
.public-memorial .qr-cover-content>p{order:3;max-width:430px;margin:0 auto 5px;color:rgba(255,255,255,.86);font:400 13px/1.38 "Bitter",serif;text-align:center}
.public-memorial .qr-cover h1{order:4;max-width:470px;margin:0;color:#fff;font:400 clamp(34px,5vw,44px)/.98 "Adobe Gurmukhi","Bitter",serif;letter-spacing:-.015em;text-align:center;text-wrap:balance}
.public-memorial .qr-cover blockquote{order:5;margin:7px auto 12px;color:#eadfce;font:italic 13px/1.4 "Bitter",serif;text-align:center}
.public-memorial .qr-enter{order:6;width:min(310px,82%);min-height:44px;margin:0 auto;padding:0 18px;border:1px solid rgba(222,179,122,.68);border-radius:6px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(190,136,81,.34),rgba(82,50,60,.28));color:#fff;font:700 11px/1 "Bitter",serif;letter-spacing:.06em;text-transform:uppercase;box-shadow:none;backdrop-filter:blur(8px)}
.public-memorial .qr-enter:before,.public-memorial .qr-enter:after{display:none}
.public-memorial .qr-contribute{order:7;margin:7px auto 0;padding:3px 1px;border:0;border-bottom:1px solid rgba(255,255,255,.42);background:transparent;color:rgba(255,255,255,.88);font:400 11px/1.4 "Bitter",serif;text-align:center}

@media(max-width:1050px){
 .app-shell .product-header{grid-template-columns:auto minmax(0,1fr) auto;gap:12px;padding-left:18px;padding-right:18px}
 .app-shell .product-navigation a{min-width:94px;padding-left:9px;padding-right:9px}.app-shell .product-navigation a b{font-size:12px}
 .role-family .family-command-center{grid-template-columns:minmax(250px,.65fr) minmax(270px,.65fr) minmax(330px,1fr)}
 .app-shell.memorial-editor-shell .frame-editor-workspace{grid-template-columns:minmax(310px,380px) minmax(0,1fr);gap:24px}
 .app-shell.memorial-editor-shell .content-library{grid-template-columns:1fr 1fr}
}

@media(max-width:820px){
 .app-shell>.workspace,.app-shell>.product-workspace,.app-shell.memorial-editor-shell>.workspace{padding:22px 16px 98px}
 .app-shell .product-header,.app-shell.memorial-editor-shell .product-header{min-height:65px;padding:8px 13px;grid-template-columns:1fr auto;background:#211c25}
 .app-shell .product-brand strong{font-size:19px}.app-shell .product-brand small{display:none}.app-shell .product-account>div{display:none}.app-shell .product-account>a{font-size:10px}
 .app-shell .product-navigation,.app-shell.memorial-editor-shell .product-navigation{position:fixed;z-index:95;inset:auto 10px 9px 10px;width:auto;height:64px;min-height:64px;margin:0;padding:5px;display:grid;grid-template-columns:repeat(var(--nav-count,5),1fr);gap:2px;border:1px solid rgba(230,207,177,.2);border-radius:10px;background:rgba(31,26,34,.97);box-shadow:0 16px 38px rgba(25,18,25,.28);backdrop-filter:none}
 .product-header.is-family .product-navigation{--nav-count:4}.product-header.is-admin .product-navigation{--nav-count:5}
 .app-shell .product-navigation a,.app-shell.memorial-editor-shell .product-navigation a{min-width:0;min-height:52px;padding:5px 2px;border-radius:6px}.app-shell .product-navigation a span{font-size:7px}.app-shell .product-navigation a b{font-size:10px;white-space:normal;text-align:center}.app-shell .product-navigation a:after{left:26%;right:26%;top:0;bottom:auto}
 .app-shell .workspace-top,.app-shell .product-intro{align-items:flex-start;flex-direction:column;gap:12px}.app-shell .workspace h1,.app-shell .product-intro h1{font-size:31px}
 .role-family .family-command-center{display:block}.role-family .family-feature-image{min-height:50svh}.role-family .family-record{padding:26px 20px;border-right:0;border-bottom:1px solid var(--tr-line)}.role-family .family-command-list{padding:7px 20px}.role-family .family-command-list a{min-height:80px}
 .app-shell.memorial-editor-shell .workspace-top{display:none}.app-shell.memorial-editor-shell .editor-view-tabs{width:100%;margin-bottom:10px}.app-shell.memorial-editor-shell .editor-view-tabs button{flex:1}
 .app-shell.memorial-editor-shell .frame-editor-workspace{grid-template-columns:1fr;gap:12px}.app-shell.memorial-editor-shell .frame-editor-preview-column{padding:16px}.app-shell.memorial-editor-shell .frame-editor-head{margin-bottom:12px}.app-shell.memorial-editor-shell .frame-editor-stage{width:min(300px,76vw);aspect-ratio:390/700}
 .app-shell.memorial-editor-shell .frame-editor-controls{padding:20px}.app-shell.memorial-editor-shell .frame-adjust-controls{grid-template-columns:1fr 1fr}
 .app-shell.memorial-editor-shell .frame-style-options{grid-template-columns:repeat(3,minmax(0,1fr))}
 .app-shell.memorial-editor-shell .history-editor-grid{grid-template-columns:1fr}.app-shell.memorial-editor-shell .history-narrative{padding-right:0;border-right:0}.app-shell.memorial-editor-shell #historia.is-active{padding:20px}
 .app-shell.memorial-editor-shell .media-content-uploader{grid-template-columns:1fr;gap:18px;padding:20px}.app-shell.memorial-editor-shell .content-library{grid-template-columns:1fr}.app-shell.memorial-editor-shell .content-meta-fields{grid-template-columns:1fr}
 .message-page-head{align-items:flex-start!important}.message-selector,.message-selector select{width:100%}.message-compose{grid-template-columns:1fr;gap:16px}.message-summary{grid-template-columns:1fr 1fr 1fr}.message-summary article{padding:14px}.message-entry{grid-template-columns:28px 1fr auto}.message-entry .message-status{grid-column:3}.message-entry time{display:none}.message-entry blockquote,.message-editor,.message-actions{grid-column:2/4}.memory-message-fields{grid-template-columns:1fr 1fr}.memory-message-fields label:last-child{grid-column:1/-1}
}

@media(max-width:520px){
 .app-shell .product-monogram{width:35px;height:35px}.app-shell .product-account>span{width:33px;height:33px}.app-shell .product-account>a{padding-left:8px}
 .app-shell.memorial-editor-shell .frame-editor-preview-column{padding:13px}.app-shell.memorial-editor-shell .frame-editor-head strong{font-size:18px}.app-shell.memorial-editor-shell .frame-editor-head small{display:none}.app-shell.memorial-editor-shell .frame-editor-stage{width:min(270px,73vw)}
 .app-shell.memorial-editor-shell .frame-editor-controls{padding:17px 14px}.app-shell.memorial-editor-shell .frame-tool-header{align-items:flex-start;flex-direction:column}.app-shell.memorial-editor-shell .frame-tool-tabs{width:100%}.app-shell.memorial-editor-shell .frame-adjust-controls{gap:12px}.app-shell.memorial-editor-shell .frame-editor-actions{grid-template-columns:1fr 1.15fr}.app-shell.memorial-editor-shell .frame-editor-actions .btn{padding:0 8px;font-size:12px}
 .app-shell.memorial-editor-shell .frame-style-picker-head{align-items:flex-start;flex-direction:column;gap:3px}.app-shell.memorial-editor-shell .frame-style-picker-head small{text-align:left}.app-shell.memorial-editor-shell .frame-style-option{padding:7px 4px}.app-shell.memorial-editor-shell .frame-style-swatch{width:38px;height:47px}
 .message-compose-fields,.memory-message-fields{grid-template-columns:1fr}.memory-message-fields label:last-child{grid-column:auto}.message-summary{grid-template-columns:1fr}.message-summary article+article:before{top:0;right:14px;bottom:auto;width:auto;height:1px}.message-entry{grid-template-columns:25px 1fr}.message-entry .message-status{grid-column:2;grid-row:2;justify-self:start}.message-entry blockquote,.message-editor,.message-actions{grid-column:2}.message-actions{justify-content:stretch;flex-direction:column}.message-actions form{display:grid;grid-template-columns:1fr 1fr}.message-actions form:first-of-type{grid-template-columns:1fr}.message-actions button{width:100%;padding:0 8px}.message-edit-form{padding:13px}.message-edit-form .btn,.message-compose .btn{width:100%;justify-self:stretch}.message-empty{grid-template-columns:1fr;text-align:center;justify-items:center;padding:30px 20px}.memory-message-compose>summary{min-height:66px;padding:13px;grid-template-columns:minmax(0,1fr) 32px;gap:10px}.memory-message-compose>summary small{display:none}.memory-message-compose>summary i{width:32px;height:32px}.memory-message-form{padding:16px 13px}.memory-message-submit{width:100%;justify-self:stretch}
 .memory-life-dates{margin-top:11px;gap:6px;font-size:12px;letter-spacing:.02em}.memory-life-date{gap:5px}.memory-life-date svg{width:14px;height:14px;flex-basis:14px}.memory-life-date small{font-size:.58em;letter-spacing:.08em}.memory-body>.memory-story-card:first-child{margin-top:-17px}.memory-body>.memory-story-card+.memory-actions{margin-top:12px}.memory-photo-grid,.memory-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.memory-photo-grid .memory-photo-item,.memory-photo-grid .memory-photo-item.orientation-landscape,.memory-photo-grid .memory-photo-item.orientation-portrait,.memory-photo-grid .memory-photo-item.orientation-square{grid-column:auto}.memory-photo-thumb,.memory-video-thumb{height:128px}.memory-photo-thumb>span{right:6px;bottom:6px;padding:5px 6px;font-size:7px;opacity:1;transform:none}.memory-photo-grid .memory-photo-item figcaption,.memory-video-item figcaption{min-height:32px;padding:8px 9px!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:9px!important}.memory-video-play{width:42px;height:42px;font-size:14px}.memory-photo-modal{padding:10px}.memory-photo-modal-dialog{height:92svh}.memory-photo-modal-dialog img,.memory-video-modal-dialog video{max-height:calc(92svh - 48px)}.memory-photo-modal-close{top:4px;right:4px;width:39px;height:39px}
 .public-memorial .qr-cover-content{padding:10px 15px 14px}.public-memorial .qr-portrait{width:min(calc(27.36svh * var(--portrait-mask-scale,1)),84vw);height:auto;margin-bottom:9px}.public-memorial .qr-cover-content>p{font-size:12px}.public-memorial .qr-cover h1{font-size:clamp(32px,9vw,38px)}.public-memorial .qr-cover blockquote{font-size:12px}.public-memorial .qr-enter{min-height:42px;font-size:10px}.public-memorial .qr-contribute{font-size:10px}
}

@media(max-height:700px){
 .public-memorial .qr-cover-content{padding-top:7px;padding-bottom:9px}.public-memorial .qr-portrait{width:min(calc(25.2svh * var(--portrait-mask-scale,1)),84vw);height:auto;margin-bottom:6px}.public-memorial .qr-brand{font-size:8px}.public-memorial .qr-cover-content>p{font-size:11px}.public-memorial .qr-cover h1{font-size:30px}.public-memorial .qr-cover blockquote{margin:4px auto 8px;font-size:11px}.public-memorial .qr-enter{min-height:38px}.public-memorial .qr-contribute{margin-top:5px;font-size:9px}
}
