
:root {
  --bg: #1b1626; --panel: #262036; --panel-2: #302944; --line: #40385a; --text: #f4efe6; --muted: #a79fbd;
  --gold: #f6c453; --pink: #e33572; --ok: #3ccf8e; --bell: #ffb020;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
body { min-height: 100dvh; }
button { font: inherit; color: inherit; }
.app { max-width: 1240px; margin: 0 auto; padding: 16px 16px 96px; display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
header.top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { font-family: "Silkscreen", monospace; font-size: 26px; letter-spacing: .5px; }
.brand span { color: var(--muted); font-size: 13px; }
.clock { font-family: "Silkscreen", monospace; color: var(--gold); font-size: 18px; }

/* Elevator */
.elevator { background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-self: start; position: sticky; top: 16px; }
.elevator h2 { margin: 0 0 4px; font-family: "Silkscreen", monospace; font-size: 15px; color: var(--muted); font-weight: 600; text-align: center; }
.floor-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--panel-2); cursor: pointer; transition: transform .1s, border-color .2s; }
.floor-btn:hover { transform: translateY(-1px); }
.floor-btn[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px #f6c45333 inset; }
.floor-btn:disabled { opacity: .55; cursor: not-allowed; }
.floor-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: "Silkscreen", monospace; font-weight: 700; background: #12101a; border: 2px solid #5b5378; flex: none; }
.floor-btn[aria-current="true"] .floor-num { background: var(--gold); color: #1b1626; border-color: #fff3; }
.floor-txt { display: flex; flex-direction: column; min-width: 0; }
.floor-txt b { font-size: 14px; }
.floor-txt small { color: var(--muted); font-size: 12px; }
.lamp { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #4a4363; flex: none; }
.lamp.on { background: var(--bell); box-shadow: 0 0 10px var(--bell); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Scene */
main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.floor-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.floor-title h1 { margin: 0; font-family: "Silkscreen", monospace; font-size: 24px; }
.floor-title p { margin: 0; color: var(--muted); font-size: 14px; }
.scene { position: relative; width: 100%; aspect-ratio: 640 / 384; border-radius: 14px; overflow: hidden; border: 3px solid #0d0b12; box-shadow: 0 10px 30px #0007; background: #000; container-type: inline-size; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; transform: translate(-50%, 0); pointer-events: auto; cursor: pointer; border: 0; padding: .25cqw .9cqw; border-radius: 99px; font-size: max(9px, 1.7cqw); font-weight: 700; color: #fff; white-space: nowrap; box-shadow: 0 1px 0 #0006; }
.tag:focus-visible { outline: 2px solid #fff; }
.bubble { position: absolute; z-index: 2; background: #fffdf7; color: #2a2238; border: 2px solid #2a2238; border-radius: 10px; padding: .6cqw 1.1cqw; font-size: max(10px, 1.75cqw); line-height: 1.25; max-width: 34cqw; width: max-content; box-shadow: 0 3px 0 #2a223855; pointer-events: auto; cursor: pointer; animation: pop .18s ease-out; }
.bubble::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -8px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #2a2238; border-bottom: 0; }
.bubble.below::after { bottom: auto; top: -8px; border-top: 0; border-bottom: 7px solid #2a2238; }
.bubble.order { background: #fff4cf; }
.bubble.chat { background: #f1ecff; }
.bubble b { display: block; font-size: .8em; opacity: .7; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.bell { position: absolute; transform: translate(-50%, -100%); font-size: max(14px, 2.6cqw); pointer-events: auto; cursor: pointer; animation: ring 1.2s infinite; filter: drop-shadow(0 2px 0 #0008); background: none; border: 0; padding: 0; }
@keyframes ring { 0%, 60%, 100% { transform: translate(-50%, -100%) rotate(0); } 10%, 30% { transform: translate(-50%, -100%) rotate(-16deg); } 20%, 40% { transform: translate(-50%, -100%) rotate(16deg); } }
.board { position: absolute; pointer-events: auto; background: #b98d5a; border: .5cqw solid #6d4a2b; border-radius: .6cqw; padding: .8cqw; display: grid; gap: .6cqw; font-size: max(9px, 1.45cqw); box-shadow: 0 .5cqw 0 #0005; }
.board h3 { margin: 0; font-family: "Silkscreen", monospace; font-size: 1.25em; color: #3b2611; text-align: center; }
.note { background: #fff7c2; color: #3b2611; padding: .5cqw .8cqw; border-radius: .3cqw; transform: rotate(var(--r, -1deg)); box-shadow: 0 .3cqw 0 #0003; cursor: pointer; border: 0; text-align: left; font-size: 1em; }
.note.pink { background: #ffd6e6; } .note.blue { background: #d7ecff; } .note.green { background: #d8f7e3; }
.sign { position: absolute; transform: translate(-50%, 0); font-family: "Silkscreen", monospace; font-weight: 700; color: #fff; text-shadow: 0 2px 0 #0009; font-size: max(11px, 2.4cqw); pointer-events: none; white-space: nowrap; }
.tv-text { position: absolute; transform: translate(-50%, -50%); font-family: "Silkscreen", monospace; font-size: max(7px, 1.25cqw); color: #9dffb8; text-align: center; pointer-events: none; line-height: 1.1; white-space: nowrap; }
.tv-text.flash { color: #fff; animation: blink .35s steps(2) infinite; }
@keyframes blink { 50% { color: var(--gold); } }

/* Elevator doors */
.doors { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.door { position: absolute; top: 0; bottom: 0; width: 50%; background: repeating-linear-gradient(90deg, #8d93a6 0 6px, #a9afc0 6px 12px); transition: transform .55s cubic-bezier(.6, 0, .3, 1); box-shadow: inset 0 0 0 3px #555b6e; }
.door.l { left: 0; transform: translateX(-101%); } .door.r { right: 0; transform: translateX(101%); }
.doors.closed .door { transform: none; }
.doors .indicator { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); background: #111; color: #ff8f3a; font-family: "Silkscreen", monospace; font-size: max(16px, 4cqw); padding: .4cqw 1.6cqw; border-radius: .6cqw; border: 2px solid #333; opacity: 0; transition: opacity .2s; }
.doors.closed .indicator { opacity: 1; }

/* Feed + cards */
.below { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.card { background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.card h2 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card h2 small { color: var(--muted); font-weight: 400; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 8px; border-radius: 10px; background: var(--panel-2); }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } }
.feed .who { font-size: 12px; font-weight: 700; display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.feed .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.feed .what { font-size: 13px; }
.feed time { color: var(--muted); font-size: 11px; }
.kind { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; padding: 1px 6px; border-radius: 99px; background: #0003; margin-left: 4px; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.member { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; background: var(--panel-2); border: 0; text-align: left; cursor: pointer; }
.member canvas { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.member b { font-size: 13px; display: block; }
.member small { color: var(--muted); font-size: 11px; display: block; }
.floors { display: grid; gap: 8px; }
.floor-card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--panel-2); border: 0; text-align: left; cursor: pointer; width: 100%; }
.floor-card .pill { margin-left: auto; background: var(--bell); color: #1b1626; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.floor-card .pill.soon { background: #4a4363; color: var(--muted); }

/* Agent sheet */
.sheet-back { position: fixed; inset: 0; background: #0008; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; }
.sheet { position: fixed; z-index: 21; right: 16px; top: 16px; bottom: 16px; width: 360px; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 18px; transform: translateX(110%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.sheet.open { transform: none; } .sheet-back.open { opacity: 1; pointer-events: auto; }
.sheet header { display: flex; gap: 12px; align-items: center; }
.sheet header canvas { width: 64px; height: 64px; image-rendering: pixelated; background: var(--panel-2); border-radius: 12px; }
.sheet header b { font-size: 18px; display: block; }
.sheet header span { color: var(--muted); font-size: 13px; }
.sheet .close { margin-left: auto; align-self: start; background: var(--panel-2); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.sheet .status { padding: 10px; border-radius: 10px; background: var(--panel-2); font-size: 14px; }
.sheet .need { padding: 10px; border-radius: 10px; background: #ffb02022; border: 1px solid #ffb02066; font-size: 14px; }
.sheet .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet .actions button { flex: 1; min-width: 120px; padding: 10px; border-radius: 10px; border: 0; background: var(--gold); color: #1b1626; font-weight: 700; cursor: pointer; }
.sheet .actions button.ghost { background: var(--panel-2); color: var(--text); }
.sheet h4 { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.sheet ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.sheet li { background: var(--panel-2); padding: 8px; border-radius: 8px; }
.credits { color: var(--muted); font-size: 12px; text-align: center; grid-column: 1 / -1; }
.credits a { color: var(--muted); }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; padding: 12px 12px 92px; }
  .elevator { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 10; flex-direction: row; border-radius: 16px 16px 0 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-width: 2px 0 0; gap: 6px; }
  .elevator h2 { display: none; }
  .floor-btn { flex-direction: column; gap: 3px; padding: 6px 4px; text-align: center; position: relative; }
  .floor-num { width: 28px; height: 28px; font-size: 13px; }
  .floor-txt b { font-size: 12px; } .floor-txt small { display: none; }
  .lamp { position: absolute; top: 6px; right: 10px; }
  .below { grid-template-columns: 1fr; }
  .sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 82dvh; border-radius: 18px 18px 0 0; transform: translateY(105%); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .brand span { display: none; }
  .floor-title h1 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Live app additions */
[hidden] { display: none !important; }
.top-right { display: flex; align-items: center; gap: 10px; }
.live { color: var(--ok); font-size: 12px; } .live.off { color: #ef4444; }
.error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #ef444422; border: 1px solid #ef444466; font-size: 14px; }
.linklike { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; font-size: 12px; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(380px, 100%); background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 12px; }
.login-card b { font-family: "Silkscreen", monospace; font-size: 26px; }
.login-card p { margin: 0; color: var(--muted); font-size: 14px; }
.login-card input, .order textarea { width: 100%; padding: 12px; border-radius: 10px; border: 2px solid var(--line); background: #12101a; color: var(--text); font: inherit; font-size: 16px; }
.login-card button, .order button { padding: 12px; border-radius: 10px; border: 0; background: var(--gold); color: #1b1626; font-weight: 700; cursor: pointer; font-size: 15px; }
.login-card small { color: #ff8a8a; min-height: 1em; }
.order { display: grid; gap: 8px; }
.order textarea { min-height: 84px; resize: vertical; font-size: 15px; }
.order small { color: var(--muted); font-size: 12px; }
.msg { display: grid; gap: 4px; }
.msg .meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 11px; }
.msg .new { background: var(--bell); color: #1b1626; border-radius: 99px; padding: 0 6px; font-weight: 700; font-size: 10px; }
.msg p { margin: 0; white-space: pre-wrap; color: #d9d3e6; font-size: 12px; max-height: 7.5em; overflow: hidden; }
.msg .row { display: flex; gap: 6px; }
.msg .row button { border: 0; border-radius: 8px; padding: 5px 9px; background: #3a3354; color: var(--text); cursor: pointer; font-size: 12px; }
.sheet a.open-panel { color: var(--gold); font-size: 13px; }
.paused { opacity: .55; }
.feed .ago { color: var(--muted); font-size: 11px; }
.bubble .ago { display: block; font-size: .75em; opacity: .55; margin-top: 2px; }
.member small.working { color: var(--ok); }
.empty { color: var(--muted); font-size: 13px; }

/* Posts calendar */
.calendar { display: grid; gap: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cal-head h2 { margin: 0; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { background: var(--panel-2); border: 2px solid var(--line); border-radius: 10px; padding: 6px 12px; cursor: pointer; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.st-ready { background: #f6c453; } .st-auto { background: #f59e0b; } .st-review { background: #60a5fa; } .st-fixing { background: #c084fc; } .st-published { background: #3ccf8e; } .st-missed { background: #ef4444; } .st-ask { background: #fb923c; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-day { background: var(--panel-2); border-radius: 10px; padding: 8px 6px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal-day.past { opacity: .8; }
.cal-day h3 { margin: 0 0 2px; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: capitalize; display: flex; justify-content: space-between; }
.cal-day.today h3 { color: var(--gold); }
.cal-day .none { color: #6f6789; font-size: 11px; }
.post-chip { border: 0; text-align: left; cursor: pointer; border-radius: 8px; padding: 6px 7px; background: #1f1a2d; border-left: 4px solid var(--c, #888); display: grid; gap: 2px; color: var(--text); min-width: 0; }
.post-chip:hover { background: #2a2340; }
.post-chip .t { font-size: 11px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.post-chip .h { font-size: 12px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-chip .s { font-size: 10px; font-weight: 700; color: var(--c); }
.net { font-weight: 800; font-size: 11px; padding: 0 4px; border-radius: 4px; background: #000; color: #fff; }
.net.ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }

/* Post sheet */
.post-sheet img { width: 100%; border-radius: 12px; background: var(--panel-2); }
.post-sheet .text { white-space: pre-wrap; background: var(--panel-2); border-radius: 10px; padding: 12px; font-size: 14px; line-height: 1.45; }
.post-sheet .count { font-size: 12px; color: var(--muted); } .post-sheet .count.over { color: #ff8a8a; }
.post-sheet .state { padding: 10px; border-radius: 10px; font-size: 14px; background: #ffffff0d; border-left: 4px solid var(--c, #888); }
.post-sheet .state small { display: block; color: var(--muted); margin-top: 4px; white-space: pre-wrap; }
.post-sheet .actions a { flex: 1; min-width: 120px; padding: 10px; border-radius: 10px; background: var(--panel-2); color: var(--text); font-weight: 700; text-align: center; text-decoration: none; font-size: 14px; }
.post-sheet .actions button.x { background: #000; color: #fff; border: 1px solid #444; }
.post-sheet .hint { font-size: 13px; padding: 10px; border-radius: 10px; background: #3ccf8e1a; border: 1px solid #3ccf8e55; }

@media (max-width: 860px) {
  .cal-grid { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; }
  .cal-day.empty { padding: 6px 8px; flex-direction: row; justify-content: space-between; align-items: center; }
  .cal-day.empty h3 { margin: 0; }
}
.sheet { overflow-x: hidden; }
.post-sheet .text, .msg p, .msg b { overflow-wrap: anywhere; }

/* Albii: LinkedIn */
.tag.li::before, .li-badge { content: "in"; display: inline-block; background: #fff; color: #0A66C2; font-weight: 900; border-radius: 3px; padding: 0 .35em; margin-right: .35em; font-family: Inter, sans-serif; line-height: 1.3; }
.li-badge { font-size: 13px; vertical-align: 1px; }
.liposts h2 small { color: var(--muted); font-weight: 400; font-size: 12px; }
.li-group { display: grid; gap: 10px; margin-top: 10px; }
.li-group h3 { margin: 4px 0 0; font-size: 14px; }
.li-group h3 small { color: var(--muted); font-weight: 400; font-size: 12px; }
.li-card { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px; border-radius: 12px; background: var(--panel-2); border-left: 4px solid #0A66C2; }
.li-card.li-changes { border-left-color: #c084fc; } .li-card.li-approved { border-left-color: #E8FF47; } .li-card.li-published { border-left-color: #3ccf8e; opacity: .9; }
.li-card img { width: 140px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: #111; }
.li-body { display: grid; gap: 6px; min-width: 0; align-content: start; }
.li-meta { color: var(--muted); font-size: 12px; }
.li-text { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.45; max-height: 5.8em; overflow: hidden; overflow-wrap: anywhere; }
.li-text.open { max-height: none; }
.li-notes { font-size: 13px; padding: 8px; border-radius: 8px; background: #c084fc1f; }
.li-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.li-actions button, .li-change button { border: 0; border-radius: 9px; padding: 8px 14px; font-weight: 700; cursor: pointer; background: #3a3354; color: var(--text); }
.li-actions .li-ok { background: #0A66C2; color: #fff; }
.li-wait { font-size: 13px; color: #E8FF47; }
.li-link { color: #7fb6ff; font-weight: 700; font-size: 13px; }
.li-change { display: grid; gap: 6px; }
.li-change textarea { width: 100%; min-height: 70px; padding: 10px; border-radius: 10px; border: 2px solid var(--line); background: #12101a; color: var(--text); font: inherit; font-size: 15px; }
@media (max-width: 860px) { .li-card { grid-template-columns: 1fr; } .li-card img { width: 100%; max-height: 320px; } }
