/* Tu Recuerdo — product experience v2. Functional logic is inherited; visual language is new. */

.app-shell{
 --x-canvas:#f2f3f0;
 --x-paper:#fff;
 --x-ink:#25282c;
 --x-muted:#727873;
 --x-soft:#979c97;
 --x-line:#d7dbd6;
 --x-line-dark:#bfc5bf;
 --x-graphite:#25292f;
 --x-graphite-2:#32373d;
 --x-accent:#ad7655;
 --x-accent-soft:#eee0d6;
 --x-live:#4f6959;
 min-height:100svh;
 display:block;
 background:var(--x-canvas);
 color:var(--x-ink);
 font:400 15px/1.5 "Bitter",Georgia,serif;
}

/* Clear editorial header on desktop; compact bottom navigation on mobile. */
.app-shell .product-header{
 position:sticky;
 top:0;
 z-index:80;
 min-height:82px;
 padding:0 clamp(24px,3.2vw,52px);
 display:grid;
 grid-template-columns:minmax(210px,auto) minmax(0,1fr) minmax(230px,auto);
 align-items:center;
 gap:28px;
 color:var(--x-ink);
 background:rgba(255,255,255,.93);
 border-bottom:1px solid var(--x-line);
 box-shadow:none;
 backdrop-filter:blur(18px);
}
.app-shell .product-brand{display:flex;align-items:center;gap:12px;color:var(--x-ink)}
.app-shell .product-monogram{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--x-ink);border-radius:3px;background:var(--x-ink);color:#fff;font:700 10px/1 "Bitter",serif;letter-spacing:.08em}
.app-shell .product-brand>span:last-child{display:grid;gap:1px}
.app-shell .product-brand strong{font:400 21px/1.05 "Adobe Gurmukhi","Bitter",serif;letter-spacing:-.01em}
.app-shell .product-brand small{color:var(--x-muted);font:700 9px/1.2 "Bitter",serif;letter-spacing:.12em;text-transform:uppercase}
.app-shell .product-navigation{min-width:0;display:flex;align-items:stretch;justify-content:center;gap:2px;overflow-x:auto;scrollbar-width:none}
.app-shell .product-navigation::-webkit-scrollbar{display:none}
.app-shell .product-navigation a{position:relative;min-width:72px;min-height:48px;padding:7px 11px;display:grid;align-content:center;justify-items:center;gap:3px;border-radius:0;color:#7a807b;white-space:nowrap}
.app-shell .product-navigation a:after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;background:transparent}
.app-shell .product-navigation a span{font:700 8px/1 "Bitter",serif;letter-spacing:.08em;color:#aaa29b}
.app-shell .product-navigation a b{font:700 12px/1.1 "Bitter",serif}
.app-shell .product-navigation a:hover,.app-shell .product-navigation a.active{background:#f5f3ef;color:var(--x-ink)}
.app-shell .product-navigation a.active:after{background:var(--x-accent)}
.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 var(--x-line-dark);border-radius:3px;background:#f5f4f1;color:var(--x-ink);font:700 13px/1 "Bitter",serif}
.app-shell .product-account strong,.app-shell .product-account small{display:block}
.app-shell .product-account strong{color:var(--x-ink);font:700 12px/1.3 "Bitter",serif}
.app-shell .product-account small{margin-top:1px;color:var(--x-muted);font:400 10px/1.25 "Bitter",serif}
.app-shell .product-account>a{margin-left:4px;padding:7px 0 7px 11px;border-left:1px solid var(--x-line);color:var(--x-muted);font:700 11px/1 "Bitter",serif}
.app-shell .product-account>a:hover{color:var(--x-ink)}

.app-shell>.product-workspace,.app-shell>.workspace{
 width:min(1500px,100%);
 max-width:1500px;
 margin:0 auto;
 padding:34px clamp(22px,4vw,64px) 70px;
}
.app-shell .product-label,.app-shell .eyebrow{display:block;margin:0 0 7px;color:var(--x-accent);font:700 10px/1.2 "Bitter",serif;letter-spacing:.16em;text-transform:uppercase}
.app-shell .product-intro,.app-shell .workspace-top{margin:0 0 28px;display:flex;align-items:flex-end;justify-content:space-between;gap:28px}
.app-shell .product-intro h1,.app-shell .workspace h1{margin:0;color:var(--x-ink);font:400 clamp(34px,3vw,42px)/1.04 "Adobe Gurmukhi","Bitter",serif;letter-spacing:-.015em}
.app-shell .product-intro>div>p:last-child,.app-shell .workspace-top>div>p:last-child{max-width:680px;margin:7px 0 0;color:var(--x-muted);font-size:14px}
.app-shell .back-link{margin:0 0 10px;padding:0 0 3px;display:inline-block;border-bottom:1px solid var(--x-line-dark);color:var(--x-muted);font-size:12px}

/* Buttons share one scale in every private screen. */
.app-shell .btn{min-height:43px;padding:0 17px;border:1px solid transparent;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;gap:10px;background:transparent;color:var(--x-ink);font:700 13px/1 "Bitter",serif;cursor:pointer;transition:background .18s,color .18s,border-color .18s,transform .18s}
.app-shell .btn:hover{transform:translateY(-1px)}
.app-shell .btn-primary,.app-shell .product-primary-action{background:var(--x-graphite);color:#fff;box-shadow:none}
.app-shell .btn-primary:hover,.app-shell .product-primary-action:hover{background:#111418}
.app-shell .btn-outline,.app-shell .product-outline-action{border-color:var(--x-line-dark);background:#fff;color:var(--x-ink)}
.app-shell .btn-small{min-height:35px;padding:0 12px;font-size:12px}
.product-primary-action{min-width:164px;justify-content:space-between!important}
.product-primary-action b{width:25px;height:25px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.25);border-radius:50%;font-size:15px}

/* Administrative dashboard: ledger, not cards. */
.operations-ribbon{margin-bottom:28px;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--x-line-dark);border-bottom:1px solid var(--x-line-dark);background:rgba(255,255,255,.38)}
.operations-ribbon article{position:relative;padding:18px 21px}
.operations-ribbon article+article:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:1px;background:var(--x-line)}
.operations-ribbon span,.operations-ribbon small{display:block;color:var(--x-muted);font-size:11px}
.operations-ribbon strong{display:block;margin:2px 0;color:var(--x-ink);font:700 27px/1.1 "Bitter",serif}
.admin-workbench{margin-bottom:34px;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,.55fr);gap:34px;align-items:start}
.admin-ledger{min-width:0;border-top:2px solid var(--x-ink)}
.ledger-title{min-height:84px;padding:18px 0 16px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;border-bottom:1px solid var(--x-line)}
.ledger-title h2,.admin-command h2{margin:0;font:400 27px/1.08 "Adobe Gurmukhi","Bitter",serif}
.ledger-title>p{margin:0;color:var(--x-muted);font-size:12px}
.ledger-columns,.client-ledger-row{display:grid;grid-template-columns:minmax(220px,1.5fr) .65fr .55fr .7fr .75fr auto;align-items:center;gap:13px}
.ledger-columns{padding:11px 9px;color:var(--x-soft);font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.ledger-row{min-height:70px;padding:12px 9px;border-top:1px solid var(--x-line);background:transparent}
.ledger-row:hover{background:rgba(255,255,255,.5)}
.ledger-identity{min-width:0;display:flex;align-items:center;gap:11px}
.ledger-identity>span{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border:1px solid var(--x-line-dark);border-radius:3px;color:var(--x-accent);font-size:11px;font-weight:700}
.ledger-identity strong,.ledger-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ledger-identity strong{font-size:13px}.ledger-identity small{margin-top:2px;color:var(--x-soft);font-size:10px}
.ledger-row p{margin:0;color:#555b57;font-size:12px}
.ledger-row>a{display:inline-flex;gap:6px;color:var(--x-ink);font-size:12px;font-weight:700;border-bottom:1px solid var(--x-line-dark);padding-bottom:2px}
.product-status{display:inline-flex;width:max-content;padding:5px 8px;border-radius:2px;font:700 9px/1 "Bitter",serif;letter-spacing:.04em;text-transform:uppercase}
.product-status.is-live{background:#e3ebe5;color:var(--x-live)}
.product-status.is-off{background:#e8e8e5;color:#707670}
.admin-command{padding:25px 24px;background:var(--x-graphite);color:#fff}
.admin-command .product-label{color:#cf9975}
.admin-command h2{color:#fff}
.admin-command nav{margin-top:19px;display:grid}
.admin-command nav a{padding:17px 0;display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.14);color:#fff}
.admin-command nav a:first-child{border-top-color:rgba(255,255,255,.28)}
.admin-command nav a>b{color:#d1a283;font-size:9px}.admin-command nav strong,.admin-command nav small{display:block}.admin-command nav strong{font-size:12px}.admin-command nav small{margin-top:3px;color:rgba(255,255,255,.5);font-size:10px}.admin-command nav i{font-style:normal;color:#d1a283}
.memorial-ledger{margin-top:0}
.memorial-ledger-list{display:grid}
.memorial-ledger-list article{min-height:72px;padding:12px 8px;display:grid;grid-template-columns:38px minmax(220px,1fr) auto auto;align-items:center;gap:14px;border-bottom:1px solid var(--x-line)}
.ledger-number{color:var(--x-accent);font-size:10px;font-weight:700}
.memorial-ledger-list strong,.memorial-ledger-list small{display:block}.memorial-ledger-list strong{font-size:14px}.memorial-ledger-list small{margin-top:3px;color:var(--x-muted);font-size:11px}
.memorial-ledger-list article>div:last-child{display:flex;align-items:center;justify-content:flex-end;gap:14px}
.memorial-ledger-list article>div:last-child>a:not(.btn){color:var(--x-muted);font-size:11px;border-bottom:1px solid var(--x-line-dark)}

/* Family dashboard: one record, four direct commands. */
.family-role{display:flex;align-items:center;gap:10px}
.family-role>span{width:39px;height:39px;display:grid;place-items:center;border:1px solid var(--x-line-dark);border-radius:3px;background:#fff;font-size:12px;font-weight:700}
.family-role p{margin:0}.family-role strong,.family-role small{display:block}.family-role strong{font-size:12px}.family-role small{color:var(--x-muted);font-size:10px}
.family-command-center{min-height:520px;display:grid;grid-template-columns:minmax(280px,.75fr) minmax(300px,.75fr) minmax(360px,1fr);border-top:2px solid var(--x-ink);border-bottom:1px solid var(--x-line-dark);background:rgba(255,255,255,.36)}
.family-feature-image{position:relative;min-width:0;min-height:520px;margin:0;overflow:hidden;background:var(--x-graphite)}
.family-feature-image img{width:100%;height:100%;display:block;object-fit:cover;object-position:center top;filter:saturate(.78) contrast(.98)}
.family-feature-image>span{height:100%;display:grid;place-items:center;color:#d6b49c;font:400 48px "Adobe Gurmukhi","Bitter",serif}
.family-feature-image:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(25,28,32,.78))}
.family-feature-image figcaption{position:absolute;z-index:2;left:19px;right:19px;bottom:17px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fff}
.family-feature-image figcaption small{font-size:9px;letter-spacing:.13em;text-transform:uppercase}
.family-record{min-width:0;padding:clamp(26px,4vw,54px);display:flex;flex-direction:column;justify-content:center;border-right:1px solid var(--x-line)}
.family-record-title h2{margin:0;font:400 clamp(36px,4.5vw,58px)/.98 "Adobe Gurmukhi","Bitter",serif;letter-spacing:-.025em}
.family-record-title blockquote{margin:17px 0 0;color:#626864;font:italic 15px/1.65 "Bitter",serif}
.family-record dl{margin:32px 0 0;display:flex;border-top:1px solid var(--x-line);border-bottom:1px solid var(--x-line)}
.family-record dl div{flex:1;padding:14px 0}.family-record dl div+div{padding-left:18px;border-left:1px solid var(--x-line)}
.family-record dt{color:var(--x-muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em}.family-record dd{margin:2px 0 0;font-size:22px;font-weight:700}
.family-public-link{margin-top:26px;align-self:flex-start;display:inline-flex;gap:10px;color:var(--x-ink);font-size:12px;font-weight:700;border-bottom:1px solid var(--x-line-dark);padding-bottom:4px}
.family-command-list{min-width:0;padding:20px clamp(18px,3vw,38px);display:grid;align-content:center}
.family-command-list a{min-height:91px;padding:14px 0;display:grid;grid-template-columns:28px minmax(0,1fr) 30px;align-items:center;gap:12px;border-top:1px solid var(--x-line);color:var(--x-ink)}
.family-command-list a:first-child{border-top:0}.family-command-list>a>span{color:var(--x-accent);font-size:9px;font-weight:700}.family-command-list strong,.family-command-list small{display:block}.family-command-list strong{font-size:14px}.family-command-list small{margin-top:4px;color:var(--x-muted);font-size:11px}.family-command-list>a>b{width:29px;height:29px;display:grid;place-items:center;border:1px solid var(--x-line-dark);border-radius:50%;font-size:12px}.family-command-list a:hover>b{background:var(--x-graphite);border-color:var(--x-graphite);color:#fff}
.product-empty{min-height:160px;padding:34px;display:grid;place-content:center;text-align:center;border-top:1px solid var(--x-line-dark);border-bottom:1px solid var(--x-line-dark);background:rgba(255,255,255,.35)}
.product-empty strong{font-size:15px}.product-empty p{margin:5px 0 0;color:var(--x-muted);font-size:12px}
.family-product-empty{grid-auto-flow:column;align-items:center;gap:18px;text-align:left}.family-product-empty>span{width:46px;height:46px;display:grid;place-items:center;background:var(--x-graphite);color:#fff;font-size:10px}

/* All remaining private screens inherit this restrained form language. */
.app-shell .panel-card{padding:24px;border:0;border-top:2px solid var(--x-ink);border-bottom:1px solid var(--x-line-dark);border-radius:0;background:rgba(255,255,255,.45);box-shadow:none}
.app-shell .panel-card h2,.app-shell .card-head h2{margin:0;font:400 25px/1.1 "Adobe Gurmukhi","Bitter",serif}
.app-shell .card-head{margin:0 0 20px;padding:0 0 15px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;border-bottom:1px solid var(--x-line)}
.app-shell .badge{padding:5px 8px;border-radius:2px;background:#e7e8e4;color:#686e69;font-size:9px}.app-shell .badge.success{background:#e3ebe5;color:var(--x-live)}
.app-shell .form-stack{display:grid;gap:16px}
.app-shell .form-stack label,.app-shell .guest-form label{display:grid;gap:7px;color:#4d524f;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,.app-shell .guest-form input,.app-shell .guest-form textarea{width:100%;min-height:46px;padding:11px 13px;border:1px solid var(--x-line-dark);border-radius:2px;background:#fff;color:var(--x-ink);font:400 14px "Bitter",serif;outline:0}
.app-shell .form-stack textarea{min-height:125px;line-height:1.6}
.app-shell .form-stack input:focus,.app-shell .form-stack textarea:focus,.app-shell .form-stack select:focus{border-color:var(--x-accent);box-shadow:0 0 0 3px rgba(173,118,85,.1)}
.app-shell .form-help,.app-shell .form-stack label small{color:var(--x-muted);font-size:12px;line-height:1.5}
.app-shell .management-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.app-shell .section-gap{margin-top:28px}
.app-shell table th{font-size:10px}.app-shell table td{font-size:13px}
.app-shell .memorial-list article,.app-shell .member-list article{padding:15px 0;border-top:1px solid var(--x-line)}
.app-shell .avatar{border-radius:3px;background:#e6e7e3;color:var(--x-accent)}
.app-shell .memorial-list h3{font-size:17px}.app-shell .memorial-list p,.app-shell .member-list small{font-size:11px}.app-shell .row-actions{font-size:12px}
.app-shell .memory-list strong{font-size:13px}.app-shell .memory-list small{font-size:11px}.app-shell .memory-list p{font:400 14px/1.65 "Bitter",serif}
.app-shell .inline-actions button{min-height:34px;padding:0 10px;border:1px solid var(--x-line-dark);border-radius:2px;background:#fff;font:700 11px "Bitter",serif}
.app-shell .activity-list strong{font-size:13px}.app-shell .activity-list p{font-size:11px}.app-shell .activity-list time{font-size:10px}.app-shell .settings small{font-size:11px}.app-shell .flash{border-radius:2px;font-size:12px}

/* New cover studio: preview canvas above a horizontal control dock. */
.app-shell.memorial-editor-shell{background:var(--x-canvas);color:var(--x-ink)}
.app-shell.memorial-editor-shell>.workspace{width:min(1500px,100%);max-width:1500px;padding:26px clamp(18px,3.5vw,54px) 72px}
.app-shell.memorial-editor-shell .workspace-top{margin-bottom:18px;align-items:flex-end}
.app-shell.memorial-editor-shell .workspace-top h1{font-size:35px}.app-shell.memorial-editor-shell .workspace-top p{font-size:13px}.app-shell.memorial-editor-shell .workspace-top .eyebrow{font-size:10px}.app-shell.memorial-editor-shell .workspace-top .btn{min-height:40px;font-size:12px}
.app-shell.memorial-editor-shell .editor-view-tabs{position:sticky;top:94px;z-index:45;width:max-content;max-width:100%;margin:0 0 18px;padding:0;display:flex;gap:0;border:1px solid var(--x-line-dark);border-radius:2px;background:#fff;box-shadow:none;backdrop-filter:none}
.app-shell.memorial-editor-shell .editor-view-tabs button{min-height:39px;padding:0 20px;border:0;border-radius:0;background:#fff;color:var(--x-muted);font:700 13px "Bitter",serif}
.app-shell.memorial-editor-shell .editor-view-tabs button+button{border-left:1px solid var(--x-line)}
.app-shell.memorial-editor-shell .editor-view-tabs button.is-active{background:var(--x-graphite);color:#fff;box-shadow:none}
.app-shell.memorial-editor-shell .memorial-editor-grid>#portada{padding:0 0 35px}
.app-shell.memorial-editor-shell .cover-studio,.app-shell.memorial-editor-shell .portrait-frame-editor{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.app-shell.memorial-editor-shell .cover-studio-head{display:none}
.app-shell.memorial-editor-shell .frame-editor-workspace{display:grid;grid-template-columns:1fr;gap:0;background:#fff;border-top:2px solid var(--x-ink);border-bottom:1px solid var(--x-line-dark)}
.app-shell.memorial-editor-shell .frame-editor-preview-column{position:relative;min-height:455px;padding:34px;display:grid;place-items:center;background:linear-gradient(145deg,#2b3035,#1f2328)}
.app-shell.memorial-editor-shell .frame-editor-head{position:absolute;z-index:5;left:28px;right:28px;top:22px;margin:0;color:#fff}
.app-shell.memorial-editor-shell .frame-editor-head span{color:#d7a887;font-size:9px}.app-shell.memorial-editor-shell .frame-editor-head strong{color:#fff;font-size:22px}.app-shell.memorial-editor-shell .frame-editor-head small{color:rgba(255,255,255,.48);font-size:10px}
.app-shell.memorial-editor-shell .frame-editor-stage{width:min(360px,72vw);margin:26px auto 0;aspect-ratio:390/540;border-radius:3px;box-shadow:0 24px 60px rgba(0,0,0,.32)}
.app-shell.memorial-editor-shell .frame-editor-controls{min-width:0;padding:24px 28px 27px;display:grid;grid-template-columns:1fr;gap:19px;background:#fff}
.app-shell.memorial-editor-shell .frame-tool-header{padding:0 0 18px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;border-bottom:1px solid var(--x-line)}
.app-shell.memorial-editor-shell .frame-tool-header span{color:var(--x-accent);font-size:9px}.app-shell.memorial-editor-shell .frame-tool-header strong{font-size:21px}
.app-shell.memorial-editor-shell .frame-tool-tabs{border:1px solid var(--x-line-dark);border-radius:2px;background:#fff}
.app-shell.memorial-editor-shell .frame-tool-tabs button{min-height:35px;border-radius:0;font-size:13px}.app-shell.memorial-editor-shell .frame-tool-tabs button.is-active{background:var(--x-graphite);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-adjust-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px 22px}
.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-editor-controls legend{margin:0 0 2px;font:400 22px/1.1 "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 4px;color:var(--x-muted);font-size:12px;line-height:1.5}
.app-shell.memorial-editor-shell .frame-file-choice{min-height:61px;padding:12px;border:1px solid var(--x-line-dark);border-radius:2px;background:#f7f7f4}
.app-shell.memorial-editor-shell .frame-file-choice strong{font-size:13px}.app-shell.memorial-editor-shell .frame-file-choice small{font-size:11px}
.app-shell.memorial-editor-shell .frame-file-choice span:before{background:var(--x-graphite);color:#fff}
.app-shell.memorial-editor-shell .frame-editor-controls label>span{font-size:13px}.app-shell.memorial-editor-shell .frame-editor-controls output{font-size:12px}
.app-shell.memorial-editor-shell .frame-editor-actions{margin:0;padding-top:18px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--x-line)}
.app-shell.memorial-editor-shell .frame-editor-actions .btn{min-width:175px;min-height:43px;font-size:13px}
.app-shell.memorial-editor-shell .history-editor-head{padding-bottom:17px}.app-shell.memorial-editor-shell .history-editor-head h2{font-size:27px}.app-shell.memorial-editor-shell .history-editor-head>p{font-size:13px}
.app-shell.memorial-editor-shell .history-editor-grid{grid-template-columns:minmax(0,1.4fr) minmax(320px,.6fr);gap:28px}
.app-shell.memorial-editor-shell .history-narrative{padding-right:28px;border-right:1px solid var(--x-line)}
.app-shell.memorial-editor-shell .history-details{border-radius:0;background:#ebeeea}
.app-shell.memorial-editor-shell .content-studio{border-top:2px solid var(--x-ink);border-bottom:1px solid var(--x-line-dark);background:rgba(255,255,255,.5)}
.app-shell.memorial-editor-shell .content-uploader-copy h3,.app-shell.memorial-editor-shell .content-library-head h3{font-size:25px}
.app-shell.memorial-editor-shell .content-uploader-copy>p:last-of-type,.app-shell.memorial-editor-shell .content-format-help{font-size:12px}

/* Public cover v2: cinematic split composition, full screen and no scroll. */
.public-memorial{background:#17191b}
.public-memorial .qr-cover{min-height:100svh;height:100svh;display:block;overflow:hidden;background-position:center;background-size:cover}
.public-memorial .qr-cover-shade{background:linear-gradient(90deg,rgba(14,16,17,.9) 0%,rgba(17,18,19,.55) 44%,rgba(17,18,19,.7) 100%),linear-gradient(180deg,rgba(10,11,12,.1),rgba(10,11,12,.55))}
.public-memorial .qr-cover-content{width:min(1380px,100%);height:100svh;max-height:none;margin:0 auto;padding:clamp(32px,5vw,72px);display:grid;grid-template-columns:minmax(320px,.88fr) minmax(420px,1.12fr);grid-template-rows:auto auto auto auto auto auto auto;align-content:center;align-items:start;column-gap:clamp(50px,8vw,130px);overflow:hidden;text-align:left}
.public-memorial .qr-portrait{grid-column:1;grid-row:1/8;align-self:center;width:min(calc(390px * var(--portrait-mask-scale,1)),31vw);max-width:430px;aspect-ratio:.74;margin:0;filter:none}
.public-memorial .qr-portrait-frame{border-radius:3px;box-shadow:0 30px 80px rgba(0,0,0,.36);mask-image:linear-gradient(to bottom,transparent 0,#000 7%,#000 86%,transparent 100%),linear-gradient(to right,transparent 0,#000 9%,#000 91%,transparent 100%);mask-composite:intersect;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 7%,#000 86%,transparent 100%),linear-gradient(to right,transparent 0,#000 9%,#000 91%,transparent 100%);-webkit-mask-composite:source-in}
.public-memorial .qr-portrait.has-photo .qr-portrait-frame:before{display:none}
.public-memorial .qr-portrait-frame:after{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(12,14,15,.16))}
.public-memorial .qr-portrait img{filter:saturate(.72) contrast(1.01) brightness(.93)}
.public-memorial .qr-brand{grid-column:2;margin:0 0 15px;color:#d3a784;font-size:10px;letter-spacing:.2em}
.public-memorial .qr-separator{grid-column:2;width:74px;margin:0 0 19px;justify-self:start}
.public-memorial .qr-cover-content>p{grid-column:2;max-width:540px;margin:0 0 11px;color:rgba(255,255,255,.72);font-size:15px;line-height:1.5;text-align:left}
.public-memorial .qr-cover h1{grid-column:2;margin:0;max-width:640px;color:#fff;font:400 clamp(40px,4vw,58px)/.98 "Adobe Gurmukhi","Bitter",serif;letter-spacing:-.02em;text-align:left}
.public-memorial .qr-cover blockquote{grid-column:2;margin:18px 0 27px;color:rgba(255,255,255,.72);font:italic 16px/1.55 "Bitter",serif;text-align:left}
.public-memorial .qr-enter{grid-column:2;width:min(330px,100%);min-height:47px;margin:0;padding:0 18px;border:1px solid rgba(224,192,155,.6);border-radius:2px;justify-content:space-between;background:rgba(255,255,255,.08);color:#fff;font-size:11px;letter-spacing:.06em;box-shadow:none;backdrop-filter:blur(10px)}
.public-memorial .qr-enter:after{content:"→";color:#d7af8e;font-size:16px}
.public-memorial .qr-enter:before{display:none}
.public-memorial .qr-contribute{grid-column:2;justify-self:start;margin:12px 0 0;padding:4px 0;border-bottom-color:rgba(255,255,255,.28);color:rgba(255,255,255,.72);font-size:11px;text-align:left}

@media(max-width:1100px){
 .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:62px;padding-left:8px;padding-right:8px}
 .admin-workbench{grid-template-columns:1fr}.admin-command{display:grid;grid-template-columns:220px 1fr;gap:28px}.admin-command nav{margin-top:0}
 .family-command-center{grid-template-columns:minmax(250px,.65fr) minmax(280px,.65fr) minmax(340px,1fr)}
 .public-memorial .qr-cover-content{column-gap:50px}
}

@media(max-width:820px){
 .app-shell>.product-workspace,.app-shell>.workspace,.app-shell.memorial-editor-shell>.workspace{padding:24px 18px 108px}
 .app-shell .product-header{min-height:69px;padding:9px 14px;grid-template-columns:1fr auto;backdrop-filter:none}
 .app-shell .product-brand strong{font-size:19px}.app-shell .product-brand small{font-size:8px}
 .app-shell .product-account>div{display:none}.app-shell .product-account>a{font-size:10px}
 .app-shell .product-navigation{position:fixed;z-index:95;inset:auto 12px 10px 12px;width:auto;height:62px;min-height:62px;margin:0;grid-area:initial;padding:5px;display:grid;grid-template-columns:repeat(var(--nav-count,5),1fr);align-items:stretch;gap:1px;overflow:visible;border:1px solid rgba(176,182,176,.9);border-radius:7px;background:rgba(255,255,255,.95);box-shadow:0 16px 42px rgba(31,35,38,.18);backdrop-filter:blur(18px)}
 .product-header.is-family .product-navigation{--nav-count:4}.product-header.is-admin .product-navigation{--nav-count:5}
 .app-shell .product-navigation a{min-width:0;min-height:50px;padding:5px 3px;border-radius:4px}
 .app-shell .product-navigation a:after{left:25%;right:25%;top:0;bottom:auto;height:2px}
 .app-shell .product-navigation a span{display:none}.app-shell .product-navigation a b{font-size:12px}
 .app-shell .product-intro,.app-shell .workspace-top{align-items:flex-start;flex-direction:column;gap:14px}
 .app-shell .product-intro h1,.app-shell .workspace h1{font-size:34px}
 .operations-ribbon{grid-template-columns:1fr 1fr}.operations-ribbon article:nth-child(3):before{display:none}.operations-ribbon article:nth-child(n+3){border-top:1px solid var(--x-line)}
 .ledger-columns{display:none}.client-ledger-row{grid-template-columns:minmax(0,1fr) auto auto;gap:8px 12px}.client-ledger-row .ledger-identity{grid-column:1/3}.client-ledger-row p{display:flex;gap:5px}.client-ledger-row p:before{content:attr(data-label);color:var(--x-soft);font-size:9px;text-transform:uppercase}.client-ledger-row>a{grid-column:3;grid-row:1}
 .admin-command{grid-template-columns:1fr}.memorial-ledger-list article{grid-template-columns:28px 1fr auto}.memorial-ledger-list article>div:last-child{grid-column:2/4;justify-content:flex-start}
 .family-command-center{grid-template-columns:minmax(230px,.6fr) minmax(0,1fr);min-height:0}.family-feature-image{min-height:430px}.family-record{border-right:0}.family-command-list{grid-column:1/-1;grid-template-columns:1fr 1fr;border-top:1px solid var(--x-line)}.family-command-list a:nth-child(2){border-top:0}.family-command-list a:nth-child(even){padding-left:18px;border-left:1px solid var(--x-line)}
 .app-shell .management-grid{grid-template-columns:1fr}
 .app-shell.memorial-editor-shell .editor-view-tabs{top:80px}
 .app-shell.memorial-editor-shell .frame-adjust-controls{grid-template-columns:1fr 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}
 .public-memorial .qr-cover-content{padding:24px 22px;grid-template-columns:minmax(230px,.65fr) minmax(330px,1fr);column-gap:34px}
 .public-memorial .qr-portrait{width:min(calc(330px * var(--portrait-mask-scale,1)),36vw)}
 .public-memorial .qr-cover h1{font-size:50px}
}

@media(max-width:600px){
 .app-shell .product-brand small{display:none}.app-shell .product-account>span{width:33px;height:33px}.app-shell .product-account>a{padding-left:8px}
 .app-shell .product-intro h1,.app-shell .workspace h1{font-size:31px}.app-shell .product-intro>div>p:last-child{font-size:13px}
 .app-shell .product-intro>.btn{width:100%}
 .operations-ribbon article{padding:14px}.operations-ribbon strong{font-size:23px}.operations-ribbon span,.operations-ribbon small{font-size:10px}
 .ledger-title{align-items:flex-start;flex-direction:column;gap:5px}.client-ledger-row{grid-template-columns:1fr auto}.client-ledger-row .ledger-identity{grid-column:1/-1}.client-ledger-row p:nth-of-type(2),.client-ledger-row p:nth-of-type(3){display:none}.client-ledger-row>a{grid-column:2;grid-row:2}
 .admin-command{padding:22px 18px}
 .memorial-ledger-list article{grid-template-columns:25px 1fr}.memorial-ledger-list .product-status{grid-column:2}.memorial-ledger-list article>div:last-child{grid-column:2;flex-wrap:wrap}
 .family-intro .family-role{width:100%;padding-top:12px;border-top:1px solid var(--x-line)}
 .family-command-center{display:block}.family-feature-image{min-height:52svh;max-height:470px}.family-record{padding:27px 20px;border-bottom:1px solid var(--x-line)}.family-record-title h2{font-size:42px}.family-record dl{margin-top:22px}.family-command-list{display:grid;grid-template-columns:1fr;padding:8px 20px}.family-command-list a,.family-command-list a:nth-child(2),.family-command-list a:nth-child(even){min-height:80px;padding-left:0;border-left:0;border-top:1px solid var(--x-line)}.family-command-list a:first-child{border-top:0}
 .app-shell .panel-card{padding:18px}.app-shell .card-head{align-items:flex-start;flex-direction:column}.app-shell .form-row{grid-template-columns:1fr}
 .app-shell.memorial-editor-shell .workspace-top{display:none}
 .app-shell.memorial-editor-shell .editor-view-tabs{top:78px;width:100%;margin-bottom:10px}.app-shell.memorial-editor-shell .editor-view-tabs button{flex:1;padding:0 8px;font-size:13px}
 .app-shell.memorial-editor-shell .frame-editor-workspace{height:auto;min-height:0;display:grid;grid-template-rows:auto auto;overflow:visible}
 .app-shell.memorial-editor-shell .frame-editor-preview-column{position:relative;top:auto;min-height:350px;padding:30px 15px 17px}.app-shell.memorial-editor-shell .frame-editor-head{left:17px;right:17px;top:13px}.app-shell.memorial-editor-shell .frame-editor-head strong{font-size:17px}.app-shell.memorial-editor-shell .frame-editor-head small{display:none}
 .app-shell.memorial-editor-shell .frame-editor-stage{width:min(210px,56vw);margin-top:25px}
 .app-shell.memorial-editor-shell .frame-editor-controls{height:auto;overflow:visible;padding:18px 14px 22px}.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%;display:grid;grid-template-columns:1fr 1fr}.app-shell.memorial-editor-shell .frame-adjust-controls{grid-template-columns:1fr 1fr;gap:12px}.app-shell.memorial-editor-shell .frame-editor-actions{display:grid;grid-template-columns:1fr 1.2fr}.app-shell.memorial-editor-shell .frame-editor-actions .btn{min-width:0;padding:0 8px;font-size:13px}
 .public-memorial .qr-cover-content{padding:14px 17px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
 .public-memorial .qr-portrait{order:0;width:clamp(190px,min(calc(68vw * var(--portrait-mask-scale,1)),37svh),330px);margin:0 auto 4px;flex:0 0 auto}
 .public-memorial .qr-brand{order:1;margin:2px 0 5px}.public-memorial .qr-separator{order:2;width:68px;margin:0 auto 7px}.public-memorial .qr-cover-content>p{order:3;max-width:360px;margin:0 auto 5px;font-size:14px;line-height:1.38;text-align:center}.public-memorial .qr-cover h1{order:4;font-size:clamp(31px,9vw,39px);text-align:center}.public-memorial .qr-cover blockquote{order:5;margin:7px auto 11px;font-size:13px;text-align:center}.public-memorial .qr-enter{order:6;width:min(300px,82%);min-height:43px;margin:0 auto;font-size:12px}.public-memorial .qr-contribute{order:7;margin:7px auto 0;font-size:12px;text-align:center}
}

@media(max-height:700px) and (max-width:600px){
 .public-memorial .qr-portrait{width:clamp(165px,min(calc(64vw * var(--portrait-mask-scale,1)),31svh),280px)}
 .public-memorial .qr-brand{font-size:8px}.public-memorial .qr-cover-content>p{font-size:12px}.public-memorial .qr-cover h1{font-size:30px}.public-memorial .qr-cover blockquote{margin:4px auto 7px;font-size:11px}.public-memorial .qr-enter{min-height:38px;font-size:11px}.public-memorial .qr-contribute{font-size:10px}
}
