/* Bram Phase A: existing Telos tokens, approved Figma identity, one native dialog. */
@font-face{font-family:'Bram Lora';src:url('/lora-italic.ttf') format('truetype');font-style:italic;font-weight:400 700;font-display:swap}
.bram-identity{position:relative;display:block;flex:none;width:80px;height:104px}
.bram-oval{position:absolute;left:8px;top:12px;width:64px;height:88px;background:var(--olive-soft);border:1px solid var(--olive);border-radius:40px;opacity:.6}
.bram-identity img{position:absolute;max-width:none;display:block;pointer-events:none;user-select:none}
.bram-identity .bram-character{left:5.657px;top:-1.251px}
.bram-identity .bram-pottery-tab{left:16px;top:83.5px}
.bram-name{position:absolute;left:22.5px;top:83px;white-space:nowrap;font:italic 500 14px/20px 'Bram Lora',var(--serif);color:var(--rust)}
.bram-invitation{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px;margin:16px 0 0;border:0;border-radius:12px;background:var(--surface);color:var(--ink)}
.bram-invite-copy{display:grid;gap:5px;flex:1;min-width:0}
.bram-invitation strong{font:400 21px/1.4 Marcellus,var(--serif)}
.bram-invite-copy>span{font-size:14px;line-height:1.4;color:var(--muted)}
/* Approved sticker A: one native button, exact Hybrid 2 identity and die-cut asset. */
.bram-sticker{position:relative;display:block;flex:none;width:88px;height:112px;padding:0;border:0;background:transparent;border-radius:16px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.bram-sticker-art{display:block;position:relative;width:88px;height:112px;pointer-events:none;transition:transform 120ms ease-out}
.bram-sticker-edge{position:absolute;left:0;top:-1.0976px;max-width:none;pointer-events:none;transition:opacity 120ms ease-out}
.bram-sticker .bram-identity{position:absolute;left:4px;top:4px}
.bram-sticker:active .bram-sticker-art{transform:translateY(1px);transition-duration:100ms}
.bram-sticker:active .bram-sticker-edge{opacity:.78;transition-duration:100ms}
.bram-sticker:focus-visible{outline:3px solid var(--rust);outline-offset:3px}
/* Option A: secondary entry below team filters, always in document flow. */
.work-heading>.section-heading-copy{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;width:100%;min-width:0}
.work-view>.list-heading.bram-section-heading,.calendar-heading.bram-section-heading{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:16px;align-items:center;margin-bottom:16px}
.bram-section-heading h2{min-width:0;overflow-wrap:anywhere}
.bram-section-heading>.section-heading-copy{display:block}
.bram-section-heading>.section-heading-copy p{margin-top:8px;overflow-wrap:anywhere}
.calendar-heading>.section-heading-copy{min-width:0}
.calendar-heading>.section-heading-copy p{font-size:12px;color:var(--muted);line-height:1.5;margin:8px 0 0}
.calendar-navigation{margin:0 0 12px}
.calendar-navigation>.week-actions{width:100%;justify-content:space-between}
@media(max-width:359px){.work-view>.list-heading.bram-section-heading,.calendar-heading.bram-section-heading{gap:12px}.calendar-navigation .week-actions button{min-width:44px}}
@media(prefers-reduced-motion:reduce){.bram-sticker-art,.bram-sticker-edge{transition:none}.bram-sticker:active .bram-sticker-art{transform:none}.bram-sticker:active .bram-sticker-edge{opacity:1}.bram-sticker:active{outline:2px solid var(--olive);outline-offset:2px}}
.bram-context-entry{width:100%;min-height:48px;padding:12px;margin:12px 0;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--olive);font-size:14px}
dialog.bram-sheet{position:fixed;top:var(--bram-top,100px);bottom:auto;left:0;right:0;margin:0 auto;padding:0;width:min(100%,520px);max-width:100%;height:var(--bram-height,75dvh);max-height:none;border:0;border-radius:20px 20px 0 0;overflow:hidden;background:var(--paper);color:var(--ink);box-shadow:0 0 0 1px var(--line)}
dialog.bram-sheet::backdrop{background:rgba(244,239,227,.2);backdrop-filter:none}
.bram-sheet>.sheet-handle{display:none}
.bram-sheet #sheet-content{height:100%;display:flex;flex-direction:column;min-height:0}
.bram-header{flex:none;position:relative;min-height:118px;padding:78px 20px 10px 116px}
.bram-header>.bram-identity{position:absolute;left:20px;top:0}
.bram-close{position:absolute;right:20px;top:20px;min-height:44px;min-width:70px;padding:10px;background:var(--surface);border-radius:7px;color:var(--olive);font-size:15px}
.bram-context{font-size:11px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.bram-context>span{text-transform:uppercase;display:block}
.bram-context small{display:block;font-size:10px;margin-top:4px}
.bram-context .bram-text-button{min-height:44px;padding:6px 0;display:block}
.bram-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 20px 20px;scroll-padding:12px;-webkit-overflow-scrolling:touch}
.bram-body h2{font:400 25px/1.4 Marcellus,var(--serif);letter-spacing:normal;margin:0 0 12px;overflow-wrap:anywhere}
.bram-body h2:focus{outline:none}
.bram-sheet p{font:400 14px/1.45 var(--sans);margin:10px 0;color:var(--muted);overflow-wrap:anywhere}
.bram-choices{display:grid;gap:12px}
.bram-choices p{margin:12px 0 0}
.bram-button,.bram-source-link{display:block;min-height:48px;padding:13px 16px;width:100%;border-radius:7px;color:var(--olive);background:var(--surface);font:400 15px/1.4 var(--sans);text-align:center;overflow-wrap:anywhere}
.bram-button:hover,.bram-source-link:hover,.bram-close:hover{background:var(--olive-soft)}
.bram-primary{background:var(--olive);color:var(--paper)}
.bram-primary:hover{background:#505a30}
.bram-text-button{display:inline-block;min-height:44px;padding:10px 0;background:none;color:var(--olive);font:400 13px/1.4 var(--sans);text-decoration:underline;text-underline-offset:3px}
.bram-sheet .bram-readonly{font-size:12px;color:var(--olive);margin-top:14px}
.bram-footer{flex:none;padding:8px 12px 12px;background:var(--paper)}
.bram-question-form{margin:0}
.bram-question-row{display:flex;align-items:stretch;gap:6px}
.bram-question-row input{width:0;min-width:0;flex:1;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font:400 16px/1.4 var(--sans)}
.bram-question-row input::placeholder{color:var(--muted);opacity:1}
.bram-submit{min-height:48px;min-width:48px;padding:10px;background:var(--olive);color:var(--paper);border-radius:7px;font-size:14px}
.bram-submit:disabled{opacity:.6;cursor:wait}
.bram-sheet .bram-question-help{font-size:10px;margin:5px 0 7px;line-height:1.3}
.bram-return{min-height:44px;padding:11px}
.bram-answer-section{margin:18px 0}
.bram-answer-section h3,.bram-sheet .bram-trust{font:400 11px/1.5 var(--sans);text-transform:uppercase;letter-spacing:.025em;color:var(--rust);margin:0 0 8px}
.bram-answer-section p{color:var(--ink)}
.bram-source-link{margin:7px 0;text-align:left;font-size:14px}
.bram-sheet .bram-fine{font-size:12px;color:var(--muted);line-height:1.45}
.bram-source-meta{display:flex;flex-wrap:wrap;gap:10px 22px;margin:12px 0 18px;padding-bottom:14px;border-bottom:1px solid var(--line);font:400 12px/1.45 var(--sans)}
.bram-source-meta dt{color:var(--muted)}
.bram-source-meta dd{margin:2px 0 0;color:var(--ink)}
.bram-sheet .bram-gap{border-left:2px solid var(--rust);padding:10px 12px;background:var(--surface);font-size:13px}
.bram-loading-line{display:block;height:3px;width:72px;background:var(--olive-soft);border-radius:2px;margin:24px 0}
.bram-sheet button:focus-visible,.bram-sheet input:focus-visible,.bram-invitation:focus-visible{outline:3px solid var(--rust);outline-offset:2px}
.bram-keyboard .bram-header{min-height:58px;padding:8px 98px 8px 68px}
.bram-keyboard .bram-header>.bram-identity{left:14px;top:4px;transform:scale(.5);transform-origin:top left}
.bram-keyboard .bram-close{top:7px}
.bram-keyboard .bram-context .bram-text-button{display:inline;min-height:44px}
@media(min-width:850px){dialog.bram-sheet{border-radius:20px;box-shadow:0 12px 60px #432a2726}.bram-sheet::backdrop{background:#432a2730}.bram-invitation{max-width:640px}}
@media(prefers-reduced-motion:no-preference){dialog.bram-sheet[open]{animation:bram-appear .14s ease-out}@keyframes bram-appear{from{opacity:0}to{opacity:1}}}
@media(prefers-reduced-motion:reduce){dialog.bram-sheet[open]{animation:none}}

@media(max-width:849px){body.bram-open #main{visibility:hidden}}

.bram-import{margin-top:18px}.bram-import summary{min-height:44px;cursor:pointer}.bram-import input{display:block;max-width:100%;margin-top:12px}.bram-body p{white-space:pre-line}

/* A clear, fixed exit target; the footer Return action remains available. */
.bram-close{z-index:1;min-height:48px;min-width:88px;display:flex;gap:8px;align-items:center;justify-content:center;border:1px solid var(--line);touch-action:manipulation}
.bram-close>span{font-size:23px;line-height:1}
