.trama-mark{width:37px;height:37px;border-radius:0;background:none;filter:drop-shadow(0 0 11px #a78bfa55)}
.trama-mark i{left:4px;top:10px;width:29px;height:17px;border:2px solid #ccadff}
.trama-mark i:nth-child(2){border-color:#89ece4}
.trama-mark i:nth-child(3){border-color:#d9fa8a}
.brand{font-size:28px;letter-spacing:-.065em}.brand small{display:block;font-size:10px;letter-spacing:.21em;text-transform:uppercase}
.mobile-dock,.mobile-menu{display:none}.tour-screen{background:#0e1525;border:1px solid #625386;border-radius:17px;overflow:hidden;margin:16px 0}.tour-bar{padding:12px 16px;background:#24203b;color:#dfd3ff;font-weight:700}.tour-body{padding:15px}.tour-fields{display:grid;gap:9px}.tour-fields div{border:1px solid #34405d;border-radius:10px;padding:9px 13px}.tour-fields small{display:block}.tour-fields .focus-field{border:2px solid #d8fc85;background:#252d2b}.tour-callout{position:relative;margin:15px 0 0;padding:10px 12px;background:#d8fc85;color:#182107;border-radius:10px}.tour-callout:before{content:'';position:absolute;bottom:100%;left:18px;border:8px solid transparent;border-bottom-color:#d8fc85}.sheet-preview{display:block;width:min(100%,570px);max-height:58vh;object-fit:contain;background:#eae8f7;margin:12px auto;border-radius:10px}.secondary-actions{margin-top:10px}.resource-open{display:inline-block;padding:7px 0}
@media(max-width:780px){
aside{padding:10px 15px;background:#0e1524ee;backdrop-filter:blur(12px)}aside .brand{font-size:25px;line-height:1;margin:0}aside>small,aside nav,main>header{display:none}
.mobile-menu{display:block;position:absolute;right:14px;top:12px;padding:7px 12px}.mobile-dock{display:grid;position:fixed;grid-template-columns:repeat(4,1fr);bottom:0;left:0;right:0;z-index:3;padding:5px 6px max(6px,env(safe-area-inset-bottom));background:#101829f5;border-top:1px solid #34405d;backdrop-filter:blur(14px)}
.mobile-dock button{border:0;background:none;padding:5px 2px;font-size:12px;display:grid;gap:2px;justify-items:center}.mobile-dock button[aria-current=true]{color:#d6c4ff;background:#2b2345}.mobile-dock span{font-size:20px;line-height:1}
main{padding:10px 13px 83px}.portal{margin:2px 0 10px;min-height:auto;padding:16px}.portal>.brand{display:none}.portal h1{font-size:clamp(31px,9vw,46px);max-width:15ch;margin:3px 0 7px}.portal p{margin:0;font-size:14px}.tiles{gap:7px}.tile{min-height:74px;padding:9px;grid-template-columns:30px minmax(0,1fr);align-content:center;align-items:center;gap:6px}.tile .glyph{width:28px;height:28px;font-size:17px;border-radius:8px}.tile strong{font-size:14px;line-height:1.15}.tile small{display:none}.tile:last-child{grid-column:span 2;min-height:53px}
}

/* Brand and mobile entry screen */
.trama-signature{display:inline-flex;align-items:center;gap:11px}
.trama-wordmark{font-size:25px;line-height:1;font-weight:780;letter-spacing:-.055em}
.trama-wordmark span{display:block;margin-top:4px;font-size:10px;font-weight:650;letter-spacing:.14em;color:#c9b8eb}
.trama-emblem{display:grid;place-items:center;width:39px;height:39px;flex:none;border-radius:13px;background:linear-gradient(145deg,#ddc9ff,#ae88ff);color:#251742;font-size:25px;line-height:1;box-shadow:inset 0 1px 0 #fff8,0 4px 14px #0a071b70}
aside>small{display:none}
@media(max-width:780px){
 aside{padding:13px 18px;border-bottom:1px solid #25223b;background:#0b101df7}
 aside .brand{display:flex;min-height:40px}
 .mobile-menu{right:18px;top:14px;min-height:38px;padding:7px 12px;border-color:#38324e;background:#1a172b}
 main>header.row{display:none}
 main{padding:16px 16px calc(90px + env(safe-area-inset-bottom))}
 .portal{min-height:0;margin:0 0 17px;padding:24px 22px;border-radius:24px;background:radial-gradient(ellipse at 100% 10%,#6540a1 0%,transparent 70%),linear-gradient(135deg,#1d2342,#241636)}
 .portal h1{max-width:12ch;font-size:clamp(34px,9vw,45px);line-height:1.02;margin:0 0 10px;letter-spacing:-.06em}
 .portal p{max-width:32ch;font-size:15px;line-height:1.45;color:#e0d8f1}
 .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .tile{grid-template-columns:1fr;justify-items:start;align-content:center;gap:9px;min-height:92px;padding:13px 14px;border-radius:17px;background:linear-gradient(145deg,#1c263d,#141a2c)}
 .tile .glyph{width:32px;height:32px;border-radius:10px;font-size:19px}
 .tile strong{font-size:15px;line-height:1.2}
 .tile:last-child{grid-column:span 2;grid-template-columns:32px 1fr;align-items:center;min-height:54px}
 .mobile-dock{padding-top:7px;border-top:1px solid #332d49;background:#101423fa}
 .mobile-dock button{color:#aeb7ce;font-weight:600;min-height:43px}
 .mobile-dock button[aria-current=true]{color:#ebddff}
}
.mobile-menu[hidden]{display:none}

/* Draw the emblem directly so mobile systems cannot substitute an emoji. */
.trama-emblem{position:relative}
.trama-emblem i{position:absolute;width:18px;height:2px;border-radius:2px;background:currentColor;transform:rotate(0deg)}
.trama-emblem i:nth-child(2){transform:rotate(45deg)}
.trama-emblem i:nth-child(3){transform:rotate(90deg)}
.trama-emblem i:nth-child(4){transform:rotate(135deg)}
