/* edge-mode.css (fix-edge-mode; Luca, phone 3 Dec 2026 03:51). Edge as a mode of the page, for admins: the calendar as a
   field of days (Forma mode's shell, direction B · Field), a list of the same days, and the opened post with Approve.
   Source: landing-hub/edge-mode.css (edge_mode_fix.py). Blue is Edge's own mark (Glance white, Forma red, Edge blue). */
#em-mode { --em-you: #FF6A4D; --em-forma: #E9B949; --em-set: #5FD08A; --em-stop: #E5382B; --em-out: #8E8A99; --em-blue: #7C9CFF;
  --em-cream: #F4F1EE; --em-silver: #B4B4B4; --em-dim: #8E8A99; --em-sb: env(safe-area-inset-bottom, 0px); --em-st: env(safe-area-inset-top, 0px);
  position: fixed; inset: 0; z-index: 15; display: none; overflow: hidden; color: var(--em-cream);
  font: 400 14px/1.4 "Space Grotesk", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
body.em-on #em-mode { display: block; }
/* Glance rests under the mode: its photos, ring, hint and footer step away (field.js stops drawing them) */
body.em-on #stage, body.em-on .lens-ring, body.em-on .hint, body.em-on .ft, body.em-on .cta, body.em-on .gr-rail,
body.em-on .glance-rail, body.em-on .gu-fab, body.em-on .gc-fab { visibility: hidden !important; pointer-events: none !important; }
#em-mode .mono, .em-lb .mono { font: 400 10px/1.2 "Space Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
#em-mode button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
#em-mode [hidden] { display: none !important; }
.em-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab;
  background: radial-gradient(60% 45% at 30% 30%, rgba(124,156,255,.13), transparent 70%),
              radial-gradient(50% 40% at 75% 70%, rgba(114,124,224,.08), transparent 70%), rgba(10,10,10,.8); }
.em-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.em-cl { position: absolute; }
#em-mode .em-cl .em-lbl { display: block; position: absolute; left: 0; top: -22px; white-space: nowrap; color: var(--em-silver); }
#em-mode .em-cl.today .em-lbl { color: var(--em-cream); }
#em-mode .em-cl.today::before { content: ""; position: absolute; left: -7px; top: -27px; bottom: -7px; right: -7px; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(124,156,255,.45); pointer-events: none; }
#em-mode .em-card { position: absolute; width: 112px; border-radius: 5px; overflow: hidden; background: #17161d;
  box-shadow: 0 6px 18px rgba(0,0,0,.5); text-align: left; }
.em-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; display: block; }
#em-mode .em-card.txt { background: linear-gradient(160deg, #1d1c26, #14131a); box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 0 0 1px rgba(244,241,238,.1); }
.em-card .tx { position: absolute; left: 8px; right: 8px; top: 26px; bottom: 22px; overflow: hidden; font: 400 9.5px/1.32 "Space Grotesk", sans-serif; color: #DAD6E0; pointer-events: none; }
.em-card .ac { position: absolute; left: 21px; top: 7px; right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 8px !important; color: var(--em-cream);
  text-shadow: 0 1px 4px rgba(0,0,0,.9); pointer-events: none; }
.em-card .k { position: absolute; right: 5px; bottom: 5px; padding: 3px 5px; border-radius: 3px; background: rgba(10,10,10,.72); color: var(--em-cream); font-size: 8px !important; pointer-events: none; }
#em-mode .em-card .dot { position: absolute; left: 7px; top: 7px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(10,10,10,.7); pointer-events: none; }
#em-mode .em-dot, .em-lb .em-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--em-out, #8E8A99); flex: none; }
#em-mode .dot.you, #em-mode .em-dot.you, .em-lb .em-dot.you { background: #FF6A4D; box-shadow: 0 0 8px rgba(255,106,77,.7); }
#em-mode .em-card .dot.you { box-shadow: 0 0 0 2px rgba(10,10,10,.7), 0 0 8px rgba(255,106,77,.8); }
#em-mode .dot.forma, #em-mode .em-dot.forma, .em-lb .em-dot.forma { background: #E9B949; }
#em-mode .dot.set, #em-mode .em-dot.set, .em-lb .em-dot.set { background: #5FD08A; }
#em-mode .dot.stop, #em-mode .em-dot.stop, .em-lb .em-dot.stop { background: #E5382B; }
#em-mode .dot.out, #em-mode .em-dot.out, .em-lb .em-dot.out { background: #8E8A99; }
.em-none { position: absolute; left: 0; right: 0; top: 40vh; margin: 0; text-align: center; color: #8E8A99; width: 100vw; }
.em-key { position: absolute; z-index: 2; left: 10px; bottom: calc(14px + var(--em-sb)); display: grid; gap: 2px; padding: 8px 4px; border-radius: 12px;
  background: rgba(14,13,20,.78); box-shadow: 0 0 0 1px rgba(244,241,238,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#em-mode .em-key button { display: flex; align-items: center; gap: 8px; padding: 7px 10px; min-height: 30px; color: #CFCBD6; text-align: left; }
#em-mode .em-key button.off { opacity: .4; }
.em-key button b { font-weight: 400; color: var(--em-dim); margin-left: auto; padding-left: 10px; }
.em-hint { position: absolute; left: 0; right: 0; top: calc(122px + var(--em-st)); margin: 0; text-align: center; color: var(--em-dim); pointer-events: none; transition: opacity .4s; }
#em-mode .em-fit { position: absolute; z-index: 2; right: 26px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(244,241,238,.3); background: rgba(14,13,20,.78); font-size: 9px; bottom: calc(96px + var(--em-sb)); }
.em-snap { position: absolute; z-index: 2; left: 12px; right: 12px; top: calc(146px + var(--em-st)); margin: 0; text-align: center; color: var(--em-dim); font-size: 8.5px !important; pointer-events: none; }
#em-mode[data-view="list"] .em-snap, #em-mode[data-view="field"] .em-snap { top: calc(102px + var(--em-st)); }
/* gate rnmw-1203 (Luca 4 Dec): the view tabs and ‹ Today › under the header, like the stand-alone Edge's bar */
.em-bar { position: absolute; z-index: 3; left: 10px; right: 10px; top: calc(56px + var(--em-st)); display: grid; gap: 6px; }
.em-tabs { display: flex; padding: 3px; border-radius: 999px; background: rgba(14,13,20,.82); box-shadow: 0 0 0 1px rgba(244,241,238,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#em-mode .em-tabs button { flex: 1 1 0; min-width: 0; min-height: 36px; border-radius: 999px; color: #B9B6C2; font-size: 9.5px !important; }
#em-mode .em-tabs button.on { background: #F4F1EE; color: #101014; }
.em-nav { display: flex; align-items: center; gap: 6px; }
#em-mode .em-nav .em-prev, #em-mode .em-nav .em-next { flex: 0 0 40px; height: 36px; border-radius: 999px; font-size: 20px; line-height: 1;
  background: rgba(14,13,20,.82); box-shadow: 0 0 0 1px rgba(244,241,238,.18); }
.em-range { flex: 1 1 0; width: 0; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--em-cream); font-size: 10.5px !important; }
#em-mode .em-nav .em-today { flex: none; height: 36px; padding: 0 12px; border-radius: 999px; color: #C9D6FF; box-shadow: 0 0 0 1px rgba(124,156,255,.55);
  background: rgba(14,13,20,.82); }
.em-list h3 .em-go { color: inherit; text-align: left; min-height: 28px; }
.em-free { margin: 0 4px 4px; padding: 10px 8px; color: #6F6B7A; border-top: 1px solid rgba(244,241,238,.06); font-size: 9px !important; }
.em-empty { padding: 40px 8px; text-align: center; color: #8E8A99; display: grid; gap: 10px; justify-items: center; }
.em-empty p { margin: 0 0 6px; }
#em-mode .em-jump { min-height: 44px; padding: 0 16px; border-radius: 999px; color: #C9D6FF; box-shadow: 0 0 0 1px rgba(124,156,255,.45); }
.em-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.em-month .hd { text-align: center; color: var(--em-dim); padding: 2px 0 6px; font-size: 9px !important; }
#em-mode .em-month .cell { position: relative; min-height: 58px; border-radius: 8px; padding: 5px 4px; background: rgba(244,241,238,.04);
  box-shadow: inset 0 0 0 1px rgba(244,241,238,.07); display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; }
#em-mode .em-month .cell.out { opacity: .38; }
#em-mode .em-month .cell.today { box-shadow: inset 0 0 0 1.5px rgba(124,156,255,.8); }
#em-mode .em-month .cell:active { background: rgba(244,241,238,.1); }
.em-month .dn { color: #D6D2DC; font-size: 10px !important; }
.em-month .cell.today .dn { color: #C9D6FF; }
.em-month .ds { display: flex; flex-wrap: wrap; gap: 3px; }
#em-mode .em-month .ds .em-dot { width: 6px; height: 6px; box-shadow: none; }
.em-month .ds em { font: 400 8px/6px "Space Mono", monospace; color: var(--em-dim); font-style: normal; }
.em-month .nn { position: absolute; right: 5px; top: 5px; color: var(--em-dim); font-size: 8.5px !important; }
.em-month + .em-free { border: 0; text-align: center; margin-top: 10px; }
@media (min-width: 721px) {
  .em-bar { left: 50%; right: auto; width: 520px; margin-left: -260px; top: calc(86px + var(--em-st)); }
  .em-snap { top: calc(170px + var(--em-st)); }
  #em-mode[data-view="list"] .em-snap, #em-mode[data-view="field"] .em-snap { top: calc(132px + var(--em-st)); }
  #em-mode .em-month .cell { min-height: 84px; }
}
/* in the list the legend is one line of chips along the bottom, so no row hides under it */
#em-mode.list .em-key { display: flex; gap: 0; left: 8px; right: 78px; bottom: calc(14px + var(--em-sb)); padding: 4px; overflow-x: auto; scrollbar-width: none; }
#em-mode.list .em-key::-webkit-scrollbar { display: none; }
#em-mode.list .em-key button { flex: none; white-space: nowrap; padding: 7px 9px; }
#em-mode.list .em-key button b { padding-left: 6px; }
.em-snap.warn { color: #E9B949; }
/* the list: the same days as a plain agenda */
.em-list { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: rgba(10,10,10,.86);
  padding: calc(122px + var(--em-st)) 12px calc(84px + var(--em-sb)); }
#em-mode[data-view="day"] .em-list, #em-mode[data-view="week"] .em-list, #em-mode[data-view="month"] .em-list { padding-top: calc(170px + var(--em-st)); }
#em-mode .em-nav .em-today.on { background: rgba(124,156,255,.22); }
@media (min-width: 721px) { .em-list { padding-top: calc(152px + var(--em-st)); }
  #em-mode[data-view="day"] .em-list, #em-mode[data-view="week"] .em-list, #em-mode[data-view="month"] .em-list { padding-top: calc(192px + var(--em-st)); } }
.em-list h3 { display: flex; align-items: baseline; margin: 18px 4px 6px; color: var(--em-silver); font-weight: 400; }
.em-list h3:first-child { margin-top: 0; }
.em-list h3.today { color: #C9D6FF; }
.em-list h3 b { margin-left: auto; font-weight: 400; color: var(--em-dim); }
#em-mode .em-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 64px; padding: 10px 8px; border-radius: 10px; text-align: left;
  border-top: 1px solid rgba(244,241,238,.08); }
#em-mode .em-row:active { background: rgba(244,241,238,.06); }
.em-row .t { flex: 0 0 38px; padding-top: 3px; color: var(--em-cream); font-size: 10.5px !important; }
.em-row .th { flex: 0 0 44px; height: 44px; border-radius: 5px; background: #1d1c26 center / cover no-repeat; display: grid; place-items: center;
  font: 400 10px/1 "Space Mono", monospace; color: #8E8A99; box-shadow: inset 0 0 0 1px rgba(244,241,238,.08); }
.em-row .b { flex: 1; min-width: 0; display: grid; gap: 3px; }
.em-row .a { display: flex; align-items: center; gap: 6px; color: var(--em-silver); font-size: 9px !important; }
.em-row .c { color: #E4E0EA; font-size: 13px; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.em-row .s { font-size: 8.5px !important; color: var(--em-dim); }
.em-row .s.you { color: #FF8F78; } .em-row .s.forma { color: #E9B949; } .em-row .s.set { color: #5FD08A; } .em-row .s.stop { color: #FF7A70; }
@media (min-width: 721px) { .em-list { padding-left: calc(50vw - 330px); padding-right: calc(50vw - 330px); } }
/* the mode row in the header: Edge is the mode you are in */
.hd nav a.ms-tool[data-tool="edge"] .em-n { display: inline-block; min-width: 16px; margin-left: 6px; padding: 2px 4px; border-radius: 999px; background: #FF6A4D;
  color: #14110F; font: 400 9px/1.2 "Space Mono", monospace; text-align: center; letter-spacing: 0; vertical-align: 1px; }
@media (min-width: 721px) { .hd nav a.ms-tool[aria-current="page"] { color: var(--cream, #F4F1EE) !important; opacity: 1 !important; } }
/* the opened post: as it goes out, with Approve */
.em-lb { position: fixed; inset: 0; z-index: 60; background: rgba(6,6,9,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .22s; color: #F4F1EE;
  font: 400 14px/1.4 "Space Grotesk", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
.em-lb.on { opacity: 1; pointer-events: auto; }
.em-lb [hidden] { display: none !important; }
.em-lb button, .em-lb a { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.em-lb .top { flex: none; display: flex; align-items: flex-start; gap: 10px; padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 8px; }
.em-lb .top > div { flex: 1; min-width: 0; }
.em-lb h2 { margin: 0 0 5px; font: 500 16px/1.2 "Space Grotesk", sans-serif; overflow-wrap: anywhere; }
.em-lb h2 small { font: 400 11px/1 "Space Mono", monospace; color: #8E8A99; margin-left: 4px; }
.em-lb .st { display: flex; align-items: center; gap: 7px; color: #D6D2DC; }
.em-lb .meta { margin-top: 5px; color: #8E8A99; }
.em-lb .x { flex: none; padding: 11px 14px !important; min-height: 40px; border-radius: 999px; border: 1px solid rgba(244,241,238,.3) !important; }
.em-lb .body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 14px 10px; }
.em-lb .mslot:empty { display: none; }
.em-media { position: relative; width: 100%; height: min(52vh, 125vw); margin-bottom: 12px; }
.em-media.reel { height: min(60vh, 160vw); }
.em-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; height: 100%; width: 100%; }
.em-cards::-webkit-scrollbar { display: none; }
.em-cards .card { position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; height: 100%; }
.em-cards .ph { position: relative; max-width: 100%; max-height: 100%; display: grid; place-items: center; height: 100%; }
.em-cards img, .em-cards video { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; background: #151418; display: block; }
.em-cards .ld { color: #8E8A99; }
.em-media .count { position: absolute; top: 10px; right: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(10,10,10,.66); }
.em-media .dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.em-media .dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(244,241,238,.35); }
.em-media .dots i.on { background: #F4F1EE; }
.em-media .play { position: absolute !important; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(10,10,10,.55) !important; box-shadow: 0 0 0 1px rgba(244,241,238,.4); display: grid; place-items: center; }
.em-media .play::after { content: ""; border-left: 18px solid #F4F1EE; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.em-media .play.wait { opacity: .5; }
.em-lb .copy { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.45; color: #ECE8F1; }
.em-lb .copy.big { font-size: 18px; line-height: 1.42; padding: 16px 16px 18px; margin-top: 4px; border-radius: 14px; background: #15141b; box-shadow: inset 0 0 0 1px rgba(244,241,238,.1); }
.em-lb .quote { margin-top: 10px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(244,241,238,.16); display: grid; gap: 5px; }
.em-lb .quote span { color: #8E8A99; } .em-lb .quote p { margin: 0; font-size: 13px; color: #CFCBD6; }
.em-lb .quote a { color: #C9D6FF; font-size: 12px; overflow-wrap: anywhere; }
.em-lb .facts { margin: 14px 0 0; display: grid; gap: 9px; }
.em-lb .facts div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: baseline; }
.em-lb .facts dt { color: #8E8A99; font-size: 9px !important; }
.em-lb .facts dd { margin: 0; font-size: 12.5px; line-height: 1.4; color: #CFCBD6; overflow-wrap: anywhere; }
.em-lb .form { flex: none; padding: 10px 14px 0; display: grid; gap: 6px; border-top: 1px solid rgba(244,241,238,.1); }
.em-lb .form label { color: #B4B4B4; }
.em-lb .form .r { display: flex; gap: 8px; align-items: stretch; }
.em-lb .form input, .em-lb .form textarea { flex: 1; min-width: 0; min-height: 48px; padding: 10px; border-radius: 12px; border: 1px solid rgba(244,241,238,.3); background: #15141b;
  color: #F4F1EE; font: 400 16px/1.3 "Space Grotesk", system-ui, sans-serif; color-scheme: dark; }
.em-lb .form .btn { flex: 0 0 84px; }
.em-lb .msg { flex: none; min-height: 14px; margin: 8px 14px 0; text-align: center; color: #5FD08A; }
.em-lb .msg.bad { color: #FF8F78; text-transform: none; letter-spacing: 0; font-size: 12px !important; line-height: 1.35 !important; }
.em-lb .tools { flex: none; display: flex; gap: 6px; padding: 8px 14px 0; }
.em-lb .btn { flex: 1; min-height: 52px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(244,241,238,.24) !important;
  padding: 0 8px !important; font: 400 10.5px/1.25 "Space Mono", monospace; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.em-lb .btn.go { background: #F4F1EE !important; color: #101014 !important; border-color: #F4F1EE !important; font-weight: 700; }
.em-lb .btn.ok { color: #5FD08A !important; border-color: rgba(95,208,138,.5) !important; }
.em-lb .btn[disabled] { opacity: .62; cursor: default; }
.em-lb .btn.nv { flex: 0 0 46px; font-size: 18px; }
.em-lb.busy .btn.go { opacity: .5; pointer-events: none; }
.em-lb .more { flex: none; display: flex; justify-content: center; gap: 4px; padding: 4px 10px calc(10px + env(safe-area-inset-bottom, 0px)); color: #B4B4B4; }
.em-lb .more button, .em-lb .more a { padding: 12px 10px !important; min-height: 40px; display: inline-grid; place-items: center; }
body.em-piece .cm-btn, body.em-piece .cm, body.em-piece .user-icon { visibility: hidden; }
@media (max-width: 350px) { .em-lb .tools { gap: 4px; padding-left: 8px; padding-right: 8px; } .em-lb .btn { font-size: 9.5px; letter-spacing: 0; } .em-lb .facts div { grid-template-columns: 78px 1fr; } }
@media (min-width: 721px) { .em-lb .body, .em-lb .tools, .em-lb .form, .em-lb .more, .em-lb .top { padding-left: calc(50vw - 300px); padding-right: calc(50vw - 300px); } .em-lb .msg { margin-left: calc(50vw - 300px); margin-right: calc(50vw - 300px); } }
@media (prefers-reduced-motion: reduce) { .em-lb { transition: none; } }
