/* Interfacce di NET ricostruite in codice. Ogni mock è disegnato a 1440×900 (le misure
   dell'app) e scalato alla larghezza del contenitore da mocks.js. */

.mock {
  position: relative; width: 100%; aspect-ratio: 1440 / 900; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line); background: #101827; box-shadow: var(--shadow);
}
.mock.hero-mock { border-radius: 18px 18px 0 0; border-bottom: 0; box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,.14); }
.band .mock { border-color: rgba(255,255,255,.14); }
.mock-cap { padding: 10px 16px; font-size: 13px; color: var(--muted); }

.frame {
  position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px; line-height: 1.4; color: var(--m-text); background: var(--m-bg);
  -webkit-font-smoothing: antialiased; user-select: none;
  --m-ink: #101827; --m-lime: #c5f778;
  --m-bg: #ffffff; --m-panel: #ffffff; --m-paper: #f5f7fa; --m-text: #1a2233; --m-muted: #6b7384; --m-line: #e6e9ef;
  --m-bubble: #f0f2f5; --m-own: #101827; --m-own-text: #ffffff; --m-sel: #eef9d8; --m-hover: #f3f5f8;
  --m-chip: #e6f6c3; --m-react: #eef9d8; --m-react-line: #c5f778;
  transition: background .5s ease, color .5s ease;
}
.frame[data-theme="dark"] {
  --m-bg: #0b1020; --m-panel: #0f1526; --m-paper: #0b1020; --m-text: #e8ebf1; --m-muted: #9aa3b5; --m-line: #222b3d;
  --m-bubble: #1a2234; --m-own: #c5f778; --m-own-text: #101827; --m-sel: #1b2538; --m-hover: #161e30;
  --m-chip: #2b3a1e; --m-react: #1f2a1a; --m-react-line: #4e6a1f;
}
.frame * { box-sizing: border-box; }
.frame svg { width: 20px; height: 20px; flex: none; }
.frame .t { transition: background .5s ease, color .5s ease, border-color .5s ease; }

/* Barra in alto */
.tb { position: absolute; left: 0; top: 0; right: 0; height: 44px; background: #101827; color: #fff; display: flex; align-items: center; }
.tb .wm { position: absolute; left: 86px; top: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; gap: 2px; }
.tb .wm i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #c5f778; margin-top: 7px; }
.tb .search { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); width: 560px; height: 30px; border-radius: 8px; background: #1b2234; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #9aa3b5; font-size: 14px; }
.tb .search svg { width: 16px; height: 16px; }
.tb .search .keys { margin-left: auto; display: flex; gap: 4px; }
.tb .search .keys b { font-weight: 500; font-size: 11px; padding: 1px 6px; border-radius: 4px; border: 1px solid #39425a; color: #c3c9d6; }
.tb .user { position: absolute; right: 22px; top: 6px; display: flex; align-items: center; gap: 10px; }
.tb .user .nm { font-weight: 700; font-size: 14px; line-height: 1.15; }
.tb .user .st { font-size: 12px; color: #9aa3b5; }
.tb .user svg { width: 14px; height: 14px; color: #9aa3b5; margin-left: 6px; }

/* Colonna di navigazione */
.rail { position: absolute; left: 0; top: 44px; bottom: 0; width: 76px; background: #101827; color: #a9b1c2; display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.rail .it { position: relative; width: 76px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; }
.rail .it .ic { width: 38px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.rail .it svg { width: 21px; height: 21px; }
.rail .it.on { color: #fff; }
.rail .it.on::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: #c5f778; }
.rail .it.on .ic { background: #262e40; }
.rail .it .bdg { position: absolute; left: 44px; top: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.rail .sp { flex: 1; }
.rail .it.bot { margin-bottom: 6px; }

/* Avatar */
.av { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; flex: none; letter-spacing: .01em; }
.av.s { width: 28px; height: 28px; font-size: 11px; }
.av.l { width: 40px; height: 40px; font-size: 14px; }
.av.xl { width: 44px; height: 44px; font-size: 15px; }
.av.xxl { width: 48px; height: 48px; font-size: 16px; }
.av .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #3ac269; border: 2px solid var(--m-panel); }
.av.l .dot { width: 12px; height: 12px; }
.c-gf { background: #c94fa3; } .c-ll { background: #c154a8; } .c-mb { background: #e8842c; } .c-sc { background: #3aa7b8; } .c-lm { background: #c94fa3; }
.c-d { background: #3b63e0; border-radius: 10px !important; } .c-pn { background: #7c3aed; border-radius: 10px !important; }

/* Colonna lista (chat, team) */
.col { position: absolute; left: 76px; top: 44px; bottom: 0; width: 300px; background: var(--m-panel); border-right: 1px solid var(--m-line); padding: 18px 16px; }
.col .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.col .hd h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.col .hd .ics { display: flex; gap: 14px; color: var(--m-muted); }
.col .hd .ics svg { width: 18px; height: 18px; }
.ci { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; margin-bottom: 2px; }
.ci.on { background: var(--m-sel); }
.ci .tx { min-width: 0; flex: 1; }
.ci .r1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ci .nm { font-weight: 700; font-size: 15px; white-space: nowrap; }
.ci .tm { font-size: 12px; color: var(--m-muted); }
.ci .pv { font-size: 13.5px; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci.on .pv { color: var(--m-text); }
.ci .avs { position: relative; width: 44px; height: 36px; flex: none; }
.ci .avs .av { position: absolute; width: 30px; height: 30px; font-size: 11px; border: 2px solid var(--m-panel); }
.ci .avs .av:first-child { left: 0; top: 0; } .ci .avs .av:last-child { left: 14px; top: 6px; }

/* Area principale */
.main { position: absolute; left: 376px; top: 44px; right: 0; bottom: 0; background: var(--m-bg); display: flex; flex-direction: column; }
.main.wide { left: 76px; }
.ph { height: 58px; display: flex; align-items: center; gap: 14px; padding: 0 18px 0 16px; border-bottom: 1px solid var(--m-line); }
.ph .nm { font-weight: 700; font-size: 18px; letter-spacing: -.01em; line-height: 1.1; }
.ph .st { font-size: 13px; color: var(--m-muted); }
.ph .ics { margin-left: auto; display: flex; align-items: center; gap: 18px; color: var(--m-muted); }
.ph .ics .sep { width: 1px; height: 22px; background: var(--m-line); }
.ph .ics svg { width: 20px; height: 20px; }
.ph .mbtn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--m-line); background: var(--m-panel); color: var(--m-text); font-weight: 600; font-size: 14px; }
.ph .mbtn svg { width: 18px; height: 18px; }
.msgs { flex: 1; padding: 14px 16px 0; overflow: hidden; }
.ds { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; color: var(--m-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; }
.ds::before, .ds::after { content: ""; flex: 1; height: 1px; background: var(--m-line); }
.m { display: flex; gap: 8px; margin: 0 0 16px; }
.m .av { margin-top: 2px; }
.m .b { min-width: 0; }
.m .who { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.m .who b { font-size: 14.5px; }
.m .who span { font-size: 12.5px; color: var(--m-muted); }
.m .bub { display: inline-block; padding: 10px 12px; border-radius: 12px; background: var(--m-bubble); max-width: 900px; font-size: 14.5px; line-height: 1.45; }
.m.own { justify-content: flex-end; }
.m.own .bub { background: var(--m-own); color: var(--m-own-text); border-radius: 12px; }
.m .react { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 8px; border-radius: 10px; background: var(--m-react); border: 1px solid var(--m-react-line); font-size: 12.5px; font-weight: 600; }
.m .react .n { font-size: 12px; }
.sys { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 2px 0 16px; font-size: 13.5px; color: var(--m-muted); }
.sys .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--m-bubble); display: grid; place-items: center; }
.sys .ic svg { width: 16px; height: 16px; }
.sys b { color: var(--m-text); }
.typing { height: 22px; padding: 0 16px 0 20px; font-size: 12.5px; color: var(--m-muted); display: flex; align-items: center; gap: 8px; }
.typing .dots { display: inline-flex; gap: 3px; }
.typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--m-muted); animation: tdot 1.1s infinite ease-in-out; }
.typing .dots i:nth-child(2) { animation-delay: .15s; } .typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.comp { margin: 0 16px 16px; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-panel); padding: 12px 14px 10px; }
.comp .in { color: var(--m-muted); font-size: 15px; margin-bottom: 14px; }
.comp .row { display: flex; align-items: center; gap: 14px; color: var(--m-muted); font-size: 12.5px; }
.comp .row svg { width: 18px; height: 18px; }
.comp .send { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; background: var(--m-own); color: var(--m-own-text); display: grid; place-items: center; }
.comp .send svg { width: 16px; height: 16px; }

/* Team: albero e post */
.tree .tm { display: flex; align-items: center; gap: 10px; padding: 8px 6px; font-weight: 700; font-size: 15px; }
.tree .tm svg { width: 14px; height: 14px; color: var(--m-muted); }
.tree .ch { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 40px; border-radius: 10px; font-size: 15px; color: var(--m-muted); position: relative; }
.tree .ch .hash { font-size: 15px; width: 14px; text-align: center; color: var(--m-muted); }
.tree .ch.on { background: var(--m-sel); color: var(--m-text); font-weight: 700; }
.tree .ch.on .hash { color: #7fbf1f; }
.tree .ch.unread { color: var(--m-text); font-weight: 700; }
.tree .ch .bdg { position: absolute; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tabs { display: flex; gap: 22px; padding: 0 18px; border-bottom: 1px solid var(--m-line); height: 44px; align-items: stretch; }
.tabs span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--m-muted); border-bottom: 2px solid transparent; }
.tabs span.on { color: var(--m-text); border-bottom-color: #c5f778; }
.tabs svg { width: 18px; height: 18px; }
.post { display: flex; gap: 10px; margin: 0 0 22px; }
.post .who { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.post .who b { font-size: 14.5px; } .post .who span { font-size: 12.5px; color: var(--m-muted); }
.post .tx { font-size: 14.5px; }
.mention { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--m-chip); color: #3f6b00; font-weight: 700; }
.frame[data-theme="dark"] .mention { color: #c5f778; }

/* Calendario */
.cal { position: absolute; left: 76px; top: 44px; right: 0; bottom: 0; background: var(--m-paper); padding: 20px 24px; }
.cal .ctop { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.cal .ctop h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.cal .nav { display: inline-flex; align-items: center; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-panel); height: 34px; }
.cal .nav span { padding: 0 14px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; height: 100%; }
.cal .nav span:first-child, .cal .nav span:last-child { padding: 0 10px; color: var(--m-muted); }
.cal .nav svg { width: 14px; height: 14px; }
.cal .mon { font-weight: 700; font-size: 18px; color: var(--m-muted); }
.cal .acts { margin-left: auto; display: flex; gap: 10px; }
.cal .seg { display: inline-flex; background: var(--m-line); border-radius: 10px; padding: 3px; }
.cal .seg span { padding: 5px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--m-muted); }
.cal .seg span.on { background: var(--m-panel); color: var(--m-text); }
.cal .mbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--m-line); background: var(--m-panel); font-weight: 600; font-size: 14px; }
.cal .mbtn svg { width: 18px; height: 18px; }
.cal .mbtn.ink { background: var(--m-ink); color: #fff; border-color: var(--m-ink); }
.frame[data-theme="dark"] .cal .mbtn.ink { background: #c5f778; color: #101827; border-color: #c5f778; }
.cal .grid { position: absolute; left: 24px; top: 70px; bottom: 20px; right: 324px; background: var(--m-panel); border: 1px solid var(--m-line); border-radius: 14px; overflow: hidden; }
.cal .days { position: absolute; left: 0; right: 0; top: 0; height: 52px; display: grid; grid-template-columns: 56px repeat(7, 1fr); border-bottom: 1px solid var(--m-line); }
.cal .days div { display: flex; align-items: center; gap: 8px; padding-left: 12px; font-size: 12px; font-weight: 700; color: var(--m-muted); letter-spacing: .04em; border-left: 1px solid var(--m-line); }
.cal .days div:first-child { border-left: 0; }
.cal .days b { font-size: 18px; color: var(--m-text); font-weight: 700; letter-spacing: 0; }
.cal .days div.today b { width: 30px; height: 30px; border-radius: 50%; background: var(--m-ink); color: #fff; display: grid; place-items: center; font-size: 16px; }
.frame[data-theme="dark"] .cal .days div.today b { background: #c5f778; color: #101827; }
.cal .hours { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; display: grid; grid-template-columns: 56px repeat(7, 1fr); }
.cal .hours .h { position: relative; border-left: 1px solid var(--m-line); }
.cal .hours .h:first-child { border-left: 0; }
.cal .hours .h.today { background: color-mix(in srgb, #c5f778 10%, transparent); }
.cal .hours .line { position: absolute; left: 0; right: 0; height: 1px; background: var(--m-line); }
.cal .hours .lbl { position: absolute; right: 8px; font-size: 11.5px; color: var(--m-muted); transform: translateY(-50%); }
.cal .ev { position: absolute; left: 4px; right: 4px; padding: 5px 8px; border-radius: 8px; background: var(--m-ink); color: #fff; font-size: 12px; line-height: 1.25; overflow: hidden; border-left: 3px solid #c5f778; }
.cal .ev b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .ev span { opacity: .8; }
.frame[data-theme="dark"] .cal .ev { background: #1b2538; }
.cal .now { position: absolute; left: 0; right: 0; height: 2px; background: #e5484d; }
.cal .now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; }
.cal .next { position: absolute; right: 24px; top: 70px; width: 284px; }
.cal .next h3 { margin: 6px 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); font-weight: 700; }
.cal .nx { background: var(--m-panel); border: 1px solid var(--m-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.cal .nx .w { font-size: 13px; color: #4f8f00; font-weight: 600; margin-bottom: 4px; }
.frame[data-theme="dark"] .cal .nx .w { color: #c5f778; }
.cal .nx b { font-size: 15px; display: block; margin-bottom: 8px; }
.cal .nx .avs { display: flex; }
.cal .nx .avs .av { width: 22px; height: 22px; font-size: 9px; margin-left: -6px; border: 2px solid var(--m-panel); }
.cal .nx .avs .av:first-child { margin-left: 0; }
.cal .nx .avs .more { width: 22px; height: 22px; border-radius: 50%; background: var(--m-line); color: var(--m-muted); font-size: 9px; font-weight: 700; display: grid; place-items: center; margin-left: -6px; border: 2px solid var(--m-panel); }

/* Chiamata */
.call { position: absolute; left: 0; top: 44px; right: 0; bottom: 0; background: #0b1020; color: #e8ebf1; }
.call .head { position: absolute; left: 22px; top: 18px; display: flex; align-items: center; gap: 12px; }
.call .head .ld { width: 18px; height: 18px; border-radius: 50%; background: #c5f778; box-shadow: 0 0 0 4px rgba(197,247,120,.18); }
.call .head b { font-size: 16px; display: block; line-height: 1.15; }
.call .head span { font-size: 13px; color: #9aa3b5; }
.call .min { position: absolute; right: 26px; top: 22px; color: #9aa3b5; }
.call .stage { position: absolute; left: 18px; top: 60px; width: 1028px; height: 596px; border-radius: 12px; background: #000; overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.call .stage .share { position: absolute; left: 36px; top: 0; width: 956px; height: 596px; transform-origin: 0 0; }
.call .stage .share .frame { transform: scale(.664); }
.call .tag { position: absolute; left: 18px; bottom: 16px; padding: 5px 12px; border-radius: 8px; background: rgba(16,24,39,.85); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.call .self { position: absolute; left: 442px; top: 672px; width: 180px; height: 104px; border-radius: 12px; background: #141a2a; border: 1px solid rgba(255,255,255,.08); display: grid; place-items: center; }
.call .self .nm { position: absolute; left: 10px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(16,24,39,.9); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.call .self .nm svg { width: 14px; height: 14px; color: #c5f778; }
.call .ctl { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.call .cnt { position: absolute; left: 22px; bottom: 30px; display: flex; align-items: center; gap: 6px; color: #9aa3b5; font-size: 14px; }
.call .cnt svg { width: 18px; height: 18px; }
.call .bar { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; background: #141a2a; border: 1px solid rgba(255,255,255,.06); }
.call .c { width: 50px; height: 46px; border-radius: 12px; background: #1b2234; color: #e8ebf1; display: grid; place-items: center; }
.call .c svg { width: 22px; height: 22px; }
.call .c.off { background: #f1f3f7; color: #101827; }
.call .c.on { background: #c5f778; color: #101827; }
.call .sep { width: 1px; height: 30px; background: rgba(255,255,255,.12); margin: 0 4px; }
.call .end { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 16px; border-radius: 12px; background: #e5484d; color: #fff; font-weight: 700; font-size: 15px; }
.call .end svg { width: 22px; height: 22px; }
.call .panel { position: absolute; right: 16px; top: 60px; width: 360px; height: 714px; border-radius: 14px; background: #fff; color: #1a2233; overflow: hidden; }
.call .panel .ph2 { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px; border-bottom: 1px solid #e6e9ef; font-weight: 700; font-size: 16px; }
.call .panel .ph2 span { color: #2f6fed; font-size: 14px; }
.call .panel .row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 15px; }
.call .panel .row .st { margin-left: auto; display: flex; gap: 12px; color: #6b7384; }
.call .panel .row .st svg { width: 18px; height: 18px; }
.call .panel .row .st .red { color: #e5484d; }
.call .panel .row .st .lime { color: #7fbf1f; }

/* Animazioni: elementi in attesa e comparsa */
.frame .pend { opacity: 0; transform: translateY(8px); }
.frame .in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.frame .pop.in { animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.frame .slide-r.pend { transform: translateX(28px); }
.frame .zoom.pend { transform: scale(.96); opacity: 0; }
.frame .zoom.in { transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .frame .pend { opacity: 1; transform: none; }
  .frame .in, .frame .pop.in, .frame .zoom.in { animation: none; transition: none; }
  .typing .dots i { animation: none; }
}
