@7365admin1/layer-common 4.30.0 → 4.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.32.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 959b862: HERO phase (d): 3D building map (`RobotBuildingMap` - CSS 3D stacked floors, ISO/TOP/SIDE/UNDER, drag/pan/zoom, floor filter, auto-orbit, full screen, robots with pins, patrol routes, lift shafts, "Floors · top down" legend + Floor unknown tray), map editor (`RobotMapEditor` - Wall/Zone/Door/Lift shaft/Move/Delete, Undo + Ctrl/Cmd+Z, plain-language save checks, keyboard), lift queue (`RobotLiftQueue` - animated shaft, riding/requested/released/timed-out rows), `RobotSiteScreen` `view` prop, `utils/robot-building.ts`, `useRobotBuilding`. Floors read "L1"/"B1"; a security robot's "Not reported" line lists spot clean; route tags and checkpoint labels stay inside the plan; plan grids repeat again.
8
+
9
+ ## 4.31.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 2cdc577: HERO robot fleet phase c: `RobotSiteScreen` (shared shell header + site fleet overview + robot detail) for Property Management, Hygiene, Security and the console drill-down, built from new `RobotSiteHeader`, `RobotSiteFleet`, `RobotMiniMap`, `RobotDetail`, `RobotLivePlan`, `RobotFloorPlan`, `RobotPatrolRoutes`, `RobotMark`. `siteStatesFeed` (estate-scoped 4 s poll); `useRobots` gains `getSiteFleet`, `getSiteSummary`, `getRobot`, `getPatrolRoutes` and the pause / resume / cancel / navigate / relocalize command kinds. Pure rules in `utils/robot-display.ts` (list paging - fixes the old fleet never paging past page 1 -, site summary, mini-map placement, patrol drawing and schedule rows, facts grid, optimistic command status, trail, spot points). `RobotTable` gains `paged-foot`; `notReportedLine` uses the handoff's words (battery, floor, spot clean, live position).
14
+
3
15
  ## 4.30.0
4
16
 
5
17
  ### Minor Changes
@@ -1363,11 +1375,11 @@
1363
1375
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
1364
1376
  own rule from two endpoints the console already calls, unprojected:
1365
1377
 
1366
- GET /api/members/user/:user/app/admin the Seven365 staff membership
1367
- GET /api/roles/id/:role that membership's role document
1378
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
1379
+ GET /api/roles/id/:role that membership's role document
1368
1380
 
1369
- owner = member.type === "admin" && role.type === "admin" && role.default === true
1370
- staff = member.type === "admin" && role.type === "admin"
1381
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
1382
+ staff = member.type === "admin" && role.type === "admin"
1371
1383
 
1372
1384
  `role.default` is the marker because it is the only property of a platform
1373
1385
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -320,7 +320,10 @@
320
320
  display: grid;
321
321
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
322
322
  border-top: 2px solid var(--hero-divider);
323
+ border-left: 1px solid var(--hero-divider);
323
324
  }
325
+ /* The site fleet's strip: always six columns (README §2). */
326
+ .hero-summary--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
324
327
  .hero-cell {
325
328
  --hero-cell-color: var(--hero-text);
326
329
  position: relative;
@@ -388,7 +391,7 @@
388
391
  }
389
392
  .hero-lift-row__n, .hero-lift-row__wait { opacity: 0.6; font-variant-numeric: tabular-nums; }
390
393
  .hero-lift-row__route { opacity: 0.65; }
391
- .hero-lift-row__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background-size: 40px 2px; }
394
+ .hero-lift-row__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background-size: 40px 2px; background-repeat: repeat-x; }
392
395
  .hero-lift-row__stripe--fast { background-image: linear-gradient(90deg, var(--hero-text) 0 50%, transparent 50%); animation: heroBar 1s linear infinite; }
393
396
  .hero-lift-row__stripe--slow { background-image: linear-gradient(90deg, rgb(var(--v-theme-info)) 0 25%, transparent 25%); animation: heroBar 2.4s linear infinite; }
394
397
  .hero-lift-row__stripe--solid { background: var(--hero-accent); }
@@ -576,8 +579,493 @@
576
579
  .hero-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
577
580
  .hero-note { font-size: 12px; opacity: 0.6; }
578
581
 
582
+ /* ---------------------------------------- site fleet + detail (phase c) */
583
+
584
+ /* The whole screen inside an app layout: header edge to edge, then main. */
585
+ .hero-screen {
586
+ display: flex;
587
+ flex-direction: column;
588
+ margin: -24px;
589
+ min-height: calc(100vh - 64px);
590
+ }
591
+ .hero-main { display: flex; flex-direction: column; gap: 20px; padding: 20px 24px 40px; min-width: 0; }
592
+
593
+ /* Shared shell header (README "Shared shell"): 62px, 2px rule, sweep line. */
594
+ .hero-header {
595
+ position: relative;
596
+ display: flex;
597
+ flex-wrap: wrap;
598
+ align-items: center;
599
+ gap: 12px 20px;
600
+ min-height: 62px;
601
+ padding: 10px 20px;
602
+ border-bottom: 2px solid var(--hero-divider);
603
+ box-sizing: border-box;
604
+ overflow: hidden;
605
+ }
606
+ .hero-brand { display: flex; align-items: center; gap: 10px; }
607
+ .hero-brand__name { font-family: var(--hero-font); font-weight: 800; font-size: 16px; letter-spacing: 0.06em; line-height: 1; }
608
+ .hero-brand__org { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-top: 3px; white-space: nowrap; }
609
+ .hero-header__site { display: flex; align-items: center; gap: 8px; }
610
+ .hero-header__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
611
+
612
+ /* Cleaning | Security: selected = accent fill, white text. */
613
+ .hero-switch { display: flex; border: 1px solid var(--hero-divider); }
614
+ .hero-switch__opt {
615
+ font: inherit;
616
+ font-size: 12px;
617
+ font-weight: 600;
618
+ padding: 6px 14px;
619
+ border: 0;
620
+ background: transparent;
621
+ color: var(--hero-text);
622
+ cursor: pointer;
623
+ }
624
+ .hero-switch__opt + .hero-switch__opt { border-left: 1px solid var(--hero-divider); }
625
+ .hero-switch__opt[aria-pressed="true"] { background: var(--hero-accent); color: #fff; }
626
+
627
+ /* A native select in the handoff's look, anywhere in the scope. */
628
+ .hero select.hero-select {
629
+ width: auto;
630
+ min-height: 32px;
631
+ padding: 4px 26px 4px 8px;
632
+ font-size: 13px;
633
+ appearance: none;
634
+ background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
635
+ background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%;
636
+ background-size: 4px 4px;
637
+ background-repeat: no-repeat;
638
+ cursor: pointer;
639
+ }
640
+ .hero select.hero-select--sm { min-height: 28px; padding: 2px 24px 2px 8px; font-size: 12px; }
641
+
642
+ .hero-back--sm { font-size: 12px; white-space: nowrap; margin-bottom: 4px; }
643
+ .hero-title { margin: 0 0 4px; text-wrap: balance; }
644
+
645
+ /* Site fleet: main + mini-map aside (stacks below ~900px). */
646
+ .hero-split__main--fleet { flex: 999 1 520px; }
647
+ .hero-split__aside--map { flex: 1 1 320px; max-width: 420px; gap: 10px; }
648
+ .hero-tag--xs { font-size: 10px; }
649
+
650
+ /* Icon button (full screen). */
651
+ .hero .v-btn.hero-iconbtn { padding: 4px 8px; }
652
+
653
+ /* The floor plan: mini-map and detail plan share it (4:3, grid, walls, dock, brackets). */
654
+ .hero-plan {
655
+ position: relative;
656
+ aspect-ratio: 4 / 3;
657
+ background-color: var(--hero-surface);
658
+ background-image: linear-gradient(var(--hero-divider) 1px, transparent 1px), linear-gradient(90deg, var(--hero-divider) 1px, transparent 1px);
659
+ background-size: 10% 10%;
660
+ background-repeat: repeat; /* Vuetify resets every element to no-repeat */
661
+ border: 1px solid var(--hero-divider);
662
+ overflow: hidden;
663
+ }
664
+ .hero-plan--detail { max-height: 440px; }
665
+ .hero-plan--pick { cursor: crosshair; }
666
+ .hero-plan:fullscreen { background-color: var(--hero-bg); }
667
+ .hero-plan__corner { position: absolute; width: 14px; height: 14px; }
668
+ .hero-plan__corner--tl { left: -1px; top: -1px; border-top: 2px solid var(--hero-accent); border-left: 2px solid var(--hero-accent); }
669
+ .hero-plan__corner--tr { right: -1px; top: -1px; border-top: 2px solid var(--hero-accent); border-right: 2px solid var(--hero-accent); }
670
+ .hero-plan__corner--bl { left: -1px; bottom: -1px; border-bottom: 2px solid var(--hero-accent); border-left: 2px solid var(--hero-accent); }
671
+ .hero-plan__corner--br { right: -1px; bottom: -1px; border-bottom: 2px solid var(--hero-accent); border-right: 2px solid var(--hero-accent); }
672
+ .hero-plan__wall { position: absolute; border: 2px solid var(--hero-text); opacity: 0.6; }
673
+ .hero-plan__dock {
674
+ position: absolute;
675
+ right: 6%;
676
+ bottom: 8%;
677
+ width: 10%;
678
+ height: 14%;
679
+ background: color-mix(in srgb, var(--hero-accent) 30%, transparent);
680
+ border: 1px solid var(--hero-accent);
681
+ }
682
+ .hero-plan__dock-label { position: absolute; left: 0; top: -15px; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; white-space: nowrap; }
683
+ .hero-plan__scan {
684
+ position: absolute;
685
+ inset: 0;
686
+ pointer-events: none;
687
+ background-image: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hero-accent) 22%, transparent) 50%, transparent);
688
+ background-size: 100% 60px;
689
+ background-repeat: no-repeat;
690
+ animation: heroScan 4s linear infinite;
691
+ }
692
+ .hero-plan__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
693
+ .hero-plan__route { fill: none; stroke: var(--hero-accent); stroke-width: 2; stroke-dasharray: 6 5; }
694
+ .hero-plan__route--anim { animation: heroDash 1.6s linear infinite; }
695
+
696
+ /* Mini-map robots: 14px squares in their status colour, heading tick, ping ring, name tag. */
697
+ .hero-bot { position: absolute; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
698
+ .hero-bot__ping { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border: 1.5px solid var(--hero-bot); animation: heroPing 2.4s ease-out infinite; box-sizing: border-box; }
699
+ .hero-bot__body { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; background: var(--hero-bot); outline: 2px solid var(--hero-bg); }
700
+ .hero-bot__tick { position: absolute; right: -5px; top: 5px; width: 5px; height: 4px; background: var(--hero-accent); }
701
+ .hero-bot__name { position: absolute; left: 10px; top: -18px; font-size: 10px; font-weight: 600; white-space: nowrap; background: var(--hero-bg); padding: 0 4px; line-height: 1.45; }
702
+
703
+ /* Patrol checkpoints and route tags. */
704
+ .hero-cp {
705
+ position: absolute;
706
+ width: 12px;
707
+ height: 12px;
708
+ margin: -6px;
709
+ border: 2px solid var(--hero-accent);
710
+ background: var(--hero-bg);
711
+ display: grid;
712
+ place-items: center;
713
+ font-size: 7px;
714
+ font-weight: 800;
715
+ color: var(--hero-accent);
716
+ box-sizing: border-box;
717
+ }
718
+ .hero-cp--lg { width: 14px; height: 14px; margin: -7px; font-size: 8px; }
719
+ .hero-cp--current { background: var(--hero-accent); color: #fff; }
720
+ .hero-cp__label { position: absolute; margin: -19px 0 0 -8px; font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; opacity: 0.7; }
721
+ .hero-cp__label--lg { margin: -22px 0 0 -10px; font-size: 9px; opacity: 0.75; }
722
+ .hero-routetag {
723
+ position: absolute;
724
+ margin: -34px 0 0 -6px;
725
+ font-size: 8px;
726
+ letter-spacing: 0.08em;
727
+ text-transform: uppercase;
728
+ white-space: nowrap;
729
+ font-weight: 800;
730
+ padding: 1px 5px;
731
+ background: var(--hero-accent);
732
+ color: #fff;
733
+ }
734
+ .hero-routetag--lg { margin: -38px 0 0 -8px; font-size: 9px; padding: 2px 6px; }
735
+
736
+ .hero-mini { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
737
+ .hero-seen { opacity: 0.65; }
738
+ .hero-mini__head { display: flex; align-items: center; gap: 8px; border-top: 2px solid var(--hero-divider); padding-top: 8px; }
739
+ .hero-mini__foot { font-size: 11px; opacity: 0.6; display: flex; gap: 12px; white-space: nowrap; }
740
+ .hero-mini__foot > span:first-child { overflow: hidden; text-overflow: ellipsis; }
741
+ .hero-mini__legend { display: inline-block; width: 12px; height: 0; border-top: 2px dashed var(--hero-accent); vertical-align: middle; margin-right: 5px; }
742
+ .hero-mini__count { margin-left: auto; font-variant-numeric: tabular-nums; }
743
+
744
+ /* Robot detail. */
745
+ .hero-detail__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
746
+ .hero-detail__title h2 { white-space: nowrap; }
747
+ .hero-detail__where { opacity: 0.6; font-size: 12px; }
748
+ .hero .v-btn.hero-ghost { color: var(--hero-accent); padding-inline: 4px; }
749
+ .hero .v-btn.hero-ghost:hover { background: color-mix(in srgb, var(--hero-accent) 10%, transparent); }
750
+
751
+ .hero-faultbar { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 2px solid var(--hero-accent); }
752
+ .hero-faultbar__code { font-family: var(--hero-font); font-weight: 800; color: var(--hero-accent); font-size: 18px; }
753
+ .hero-faultbar__msg { font-weight: 600; }
754
+ .hero-faultbar__since { opacity: 0.65; font-size: 12px; }
755
+ .hero-faultbar__badge { font-size: 11px; padding: 2px 8px; background: var(--hero-accent); color: #fff; font-weight: 600; }
756
+
757
+ .hero-facts {
758
+ display: grid;
759
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
760
+ border-top: 2px solid var(--hero-divider);
761
+ border-left: 1px solid var(--hero-divider);
762
+ }
763
+ .hero-fact { padding: 10px 12px; border-right: 1px solid var(--hero-divider); border-bottom: 1px solid var(--hero-divider); }
764
+ .hero-fact__label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
765
+ .hero-fact__value { font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 3px; }
766
+ .hero-fact__value--dim { opacity: 0.5; }
767
+ .hero-notreported { font-size: 12px; opacity: 0.7; }
768
+
769
+ .hero-section__title {
770
+ font-size: 10px;
771
+ letter-spacing: 0.12em;
772
+ text-transform: uppercase;
773
+ white-space: nowrap;
774
+ font-weight: 600;
775
+ border-top: 2px solid var(--hero-divider);
776
+ padding-top: 8px;
777
+ margin-bottom: 8px;
778
+ }
779
+ .hero-detail__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
780
+ .hero-detail__grid .hero-aside__hint { opacity: 0.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
781
+
782
+ .hero-sched__empty { padding: 20px 0; opacity: 0.65; }
783
+ .hero-sched__row { display: grid; grid-template-columns: 90px 100px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hero-divider); font-size: 12.5px; }
784
+ .hero-sched__row > span:nth-child(2) { font-variant-numeric: tabular-nums; }
785
+ .hero-sched__row > span:nth-child(3) { opacity: 0.8; }
786
+
787
+ /* Detail plan: trail, crosshair, readout, radar, robot, spot points. */
788
+ .hero-trail { position: absolute; width: 6px; height: 6px; margin: -3px; background: var(--hero-accent); }
789
+ .hero-cross { position: absolute; pointer-events: none; }
790
+ .hero-cross--h { left: 0; right: 0; border-top: 1px dashed color-mix(in srgb, var(--hero-accent) 55%, transparent); }
791
+ .hero-cross--v { top: 0; bottom: 0; border-left: 1px dashed color-mix(in srgb, var(--hero-accent) 55%, transparent); }
792
+ .hero-readout {
793
+ position: absolute;
794
+ left: 8px;
795
+ bottom: 6px;
796
+ font-size: 10px;
797
+ letter-spacing: 0.08em;
798
+ text-transform: uppercase;
799
+ font-variant-numeric: tabular-nums;
800
+ background: var(--hero-bg);
801
+ padding: 3px 8px;
802
+ border-left: 2px solid var(--hero-accent);
803
+ white-space: nowrap;
804
+ }
805
+ .hero-me { position: absolute; width: 0; height: 0; }
806
+ .hero-me__tag { position: absolute; left: 14px; top: -26px; white-space: nowrap; font-size: 11px; font-weight: 800; padding: 2px 6px; background: var(--hero-text); color: var(--hero-bg); line-height: 1.45; }
807
+ .hero-me__tag > span { font-weight: 400; opacity: 0.75; }
808
+ .hero-me__radar {
809
+ position: absolute;
810
+ left: -36px;
811
+ top: -36px;
812
+ width: 72px;
813
+ height: 72px;
814
+ background: conic-gradient(from 0deg, color-mix(in srgb, var(--hero-accent) 45%, transparent), transparent 70deg);
815
+ animation: heroSpin 3s linear infinite;
816
+ }
817
+ .hero-me__ping { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border: 1px solid var(--hero-accent); animation: heroPing 2.4s ease-out infinite; box-sizing: border-box; }
818
+ .hero-me__body { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; background: var(--hero-text); outline: 2px solid var(--hero-bg); }
819
+ .hero-me__tick { position: absolute; right: -6px; top: 6px; width: 6px; height: 4px; background: var(--hero-accent); }
820
+ .hero-spot {
821
+ position: absolute;
822
+ width: 18px;
823
+ height: 18px;
824
+ margin: -9px;
825
+ border: 2px solid var(--hero-accent);
826
+ display: grid;
827
+ place-items: center;
828
+ font-size: 10px;
829
+ font-weight: 700;
830
+ color: var(--hero-accent);
831
+ background: var(--hero-bg);
832
+ box-sizing: border-box;
833
+ }
834
+ .hero-spotbar { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
835
+
836
+ /* HERO dialog (remove). */
837
+ .hero-dialog { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--hero-surface); box-shadow: var(--hero-shadow-lg); }
838
+ .hero-dialog__title { font-family: var(--hero-font); font-weight: 800; font-size: 20px; }
839
+ .hero-dialog__body { font-size: 14px; opacity: 0.85; }
840
+ .hero-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
841
+
579
842
  /* ----------------------------------------------------------- animations */
580
843
 
844
+ /* ============================================ HERO phase (d): building map, editor, lift queue */
845
+
846
+ .hero .v-btn.hero-btn-icon .v-btn__content { gap: 8px; }
847
+
848
+ /* 3D building map (README §4). */
849
+ .hero-split.hero-bmap { align-items: stretch; }
850
+ .hero-bmap__viewer {
851
+ flex: 999 1 460px;
852
+ min-width: 0;
853
+ position: relative;
854
+ /* 520 at least; otherwise down to the fold like the handoff's full-height main. */
855
+ min-height: max(520px, calc(100vh - 255px));
856
+ background-color: var(--hero-surface);
857
+ background-image: radial-gradient(ellipse at center, transparent 45%, color-mix(in srgb, var(--hero-text) 7%, transparent) 100%);
858
+ border-top: 2px solid var(--hero-divider);
859
+ overflow: hidden;
860
+ perspective: 1600px;
861
+ display: grid;
862
+ place-items: center;
863
+ user-select: none;
864
+ touch-action: none;
865
+ }
866
+ .hero-bmap__viewer:fullscreen { background-color: var(--hero-bg); }
867
+ .hero-bmap__viewer--grab { cursor: grab; }
868
+ .hero-bmap__viewer--pan { cursor: grabbing; }
869
+ .hero-bmap__viewer--rotate { cursor: move; }
870
+ .hero-bmap__zoom { position: absolute; left: 14px; top: 12px; z-index: 3; display: flex; flex-direction: column; border: 1px solid var(--hero-divider); background: var(--hero-bg); }
871
+ .hero-bmap__zoom button {
872
+ width: 34px;
873
+ height: 34px;
874
+ padding: 0;
875
+ display: grid;
876
+ place-items: center;
877
+ border: 0;
878
+ border-bottom: 1px solid var(--hero-divider);
879
+ background: transparent;
880
+ color: var(--hero-text);
881
+ font: inherit;
882
+ font-size: 18px;
883
+ font-weight: 800;
884
+ cursor: pointer;
885
+ }
886
+ .hero-bmap__zoom button:last-child { border-bottom: 0; }
887
+ .hero-bmap__zoom button:hover { background: color-mix(in srgb, var(--hero-text) 7%, transparent); }
888
+ .hero-bmap__zoom button.hero-bmap__orbit--on { color: var(--hero-accent); }
889
+ .hero-bmap__bar { position: absolute; left: 56px; right: 150px; top: 12px; z-index: 3; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
890
+ .hero-bmap__seg { display: inline-flex; border: 1px solid var(--hero-divider); background: var(--hero-bg); }
891
+ .hero-bmap__seg button {
892
+ border: 0;
893
+ border-right: 1px solid var(--hero-divider);
894
+ padding: 6px 10px;
895
+ font: inherit;
896
+ font-size: 11px;
897
+ font-weight: 700;
898
+ letter-spacing: 0.06em;
899
+ text-transform: uppercase;
900
+ white-space: nowrap;
901
+ cursor: pointer;
902
+ background: transparent;
903
+ color: var(--hero-text);
904
+ line-height: 1.45;
905
+ }
906
+ .hero-bmap__seg button[aria-pressed="true"] { background: var(--hero-accent); color: #fff; }
907
+ .hero-bmap__readout { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; white-space: nowrap; font-variant-numeric: tabular-nums; }
908
+ .hero-bmap__live { position: absolute; right: 14px; top: 12px; z-index: 3; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
909
+ .hero-bmap__loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 20%; background: color-mix(in srgb, var(--hero-bg) 55%, transparent); }
910
+ .hero-bmap__view { transform-style: preserve-3d; }
911
+ .hero-bmap__stack { position: relative; width: 400px; height: 260px; transform-style: preserve-3d; transform-origin: center; }
912
+ .hero-bmap__floor {
913
+ position: absolute;
914
+ inset: 0;
915
+ transform-style: preserve-3d;
916
+ border: 1.5px solid var(--hero-text);
917
+ background-color: color-mix(in srgb, var(--hero-bg) var(--hero-fill, 88%), transparent);
918
+ background-image: linear-gradient(var(--hero-divider) 1px, transparent 1px), linear-gradient(90deg, var(--hero-divider) 1px, transparent 1px);
919
+ background-size: 10% 15%;
920
+ background-repeat: repeat; /* Vuetify resets every element to no-repeat */
921
+ transition: opacity 0.6s ease, background-color 0.6s ease;
922
+ }
923
+ .hero-bmap__room { position: absolute; border: 1.5px solid var(--hero-text); opacity: 0.5; }
924
+ .hero-bmap__door { position: absolute; width: 3px; height: 10%; background: var(--hero-accent); }
925
+ .hero-bmap__wall { stroke: var(--hero-text); stroke-width: 3; opacity: 0.8; }
926
+ .hero-bmap__zone { fill: color-mix(in srgb, var(--hero-text) 10%, transparent); stroke: var(--hero-text); stroke-width: 1; stroke-dasharray: 4 3; }
927
+ .hero-bmap__doorline { stroke: var(--hero-accent); stroke-width: 3; }
928
+ .hero-bmap__anchor { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
929
+ .hero-bmap__routetag { position: absolute; left: -6px; top: -30px; transform-origin: 0 0; white-space: nowrap; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; padding: 1px 6px; background: var(--hero-accent); color: #fff; }
930
+ .hero-bmap__cp { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--hero-accent); background: var(--hero-bg); display: grid; place-items: center; font-size: 7px; font-weight: 800; color: var(--hero-accent); }
931
+ .hero-bmap__cplabel { position: absolute; left: 8px; top: -4px; transform-origin: 0 0; white-space: nowrap; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 4px; background: var(--hero-bg); color: var(--hero-accent); font-weight: 700; }
932
+ .hero-bmap__ping { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--hero-bot); animation: heroPing 2.4s ease-out infinite; }
933
+ .hero-bmap__body { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--hero-bot); outline: 2px solid var(--hero-bg); }
934
+ .hero-bmap__pin { position: absolute; left: -2px; top: 0; width: 4px; transform-origin: 0 0; transform: rotateX(90deg); background: var(--hero-bot); outline: 1px solid var(--hero-bg); }
935
+ .hero-bmap__pin--y { transform: rotateY(90deg) rotateX(90deg); }
936
+ .hero .hero-bmap__name {
937
+ position: absolute;
938
+ left: 6px;
939
+ top: -6px;
940
+ transform-origin: 0 0;
941
+ white-space: nowrap;
942
+ font: inherit;
943
+ font-size: 11px;
944
+ font-weight: 800;
945
+ letter-spacing: 0.02em;
946
+ line-height: 1.45;
947
+ padding: 1px 5px;
948
+ background: var(--hero-bg);
949
+ color: var(--hero-text);
950
+ border: 0;
951
+ border-left: 3px solid var(--hero-bot);
952
+ box-shadow: var(--hero-shadow-sm);
953
+ cursor: pointer;
954
+ }
955
+ .hero-bmap__floorlabel { position: absolute; left: -14px; top: 50%; transform-origin: 0 0; font-size: 12px; font-weight: 800; padding: 1px 6px; background: var(--hero-text); color: var(--hero-bg); white-space: nowrap; }
956
+ .hero-bmap__shaft { position: absolute; width: 0; height: 0; transform-style: preserve-3d; transition: opacity 0.6s ease; }
957
+ .hero-bmap__shaftwall { position: absolute; left: 0; top: 0; box-sizing: border-box; transform-origin: top; transform: rotateX(90deg); background: color-mix(in srgb, var(--hero-accent) 28%, transparent); border: 1px solid var(--hero-accent); }
958
+ .hero-bmap__shaftwall--y { transform-origin: left; transform: rotateY(-90deg); background: color-mix(in srgb, var(--hero-accent) 18%, transparent); }
959
+ .hero-bmap__legend { position: absolute; left: 14px; bottom: 12px; z-index: 3; font-size: 11px; opacity: 0.65; display: flex; gap: 14px; white-space: nowrap; }
960
+ .hero-bmap__key { display: inline-block; width: 8px; height: 8px; vertical-align: middle; margin-right: 5px; }
961
+ .hero-bmap__key--door { background: var(--hero-accent); }
962
+ .hero-bmap__key--shaft { background: color-mix(in srgb, var(--hero-accent) 30%, transparent); border: 1px solid var(--hero-accent); box-sizing: border-box; }
963
+ .hero-bmap__key--bot { background: var(--hero-text); }
964
+ .hero-bmap__key--route { width: 12px; height: 0; border-top: 2px dashed var(--hero-accent); }
965
+ .hero-bmap__aside { display: flex; flex-direction: column; gap: 2px; font-size: 12px; flex: 1 1 260px; max-width: 360px; min-width: 0; }
966
+ .hero-bmap__asidetitle { border-top: 2px solid var(--hero-divider); padding-top: 8px; margin-bottom: 6px; }
967
+ .hero-bmap__legendrow { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--hero-divider); }
968
+ .hero-bmap__chips { display: flex; flex-wrap: wrap; gap: 4px; }
969
+ /* The tone sits on the inner span: Vuetify's [type="button"] reset would win a colour set on the button itself. */
970
+ .hero-bmap__chip { border: 0; padding: 0; background: none; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.45; cursor: pointer; }
971
+ .hero-bmap__chip > span { display: block; padding: 1px 6px; }
972
+ .hero-bmap__tray { margin-top: 8px; padding: 8px 10px; background: var(--hero-surface); border-left: 2px solid var(--hero-divider); }
973
+ .hero-bmap__tray > .hero-aside__title, .hero-bmap__tray > .hero-bmap__chips { margin-bottom: 6px; }
974
+ .hero-bmap__traytext { opacity: 0.7; }
975
+
976
+ /* Map editor (README §4 "Edit mode"). */
977
+ .hero-editor { display: flex; flex-direction: column; gap: 16px; flex: 1; background: var(--hero-bg); }
978
+ .hero-editor--fs { padding: 24px; }
979
+ .hero-editor__bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
980
+ .hero-editor .hero-seg__opt { font-weight: 600; }
981
+ .hero-editor .hero-seg__opt--undo { border-left-width: 2px; font-weight: 400; }
982
+ .hero-editor .hero-seg__opt--save { font-weight: 700; color: var(--hero-accent); }
983
+ .hero-seg__kbd { opacity: 0.55; }
984
+ .hero .hero-input.hero-editor__floor { width: auto; min-height: 32px; padding: 4px 26px 4px 8px; }
985
+ .hero .hero-input.hero-editor__zone { width: 220px; min-height: 32px; }
986
+ .hero-editor__hint { font-size: 12px; opacity: 0.7; }
987
+ .hero .v-btn.hero-editor__fs { margin-left: auto; }
988
+ .hero .v-btn.hero-editor__fs .v-btn__content { gap: 8px; }
989
+ .hero-editor__notice { padding: 10px 12px; font-size: 12.5px; border-left: 2px solid var(--hero-accent); background: var(--hero-surface); }
990
+ .hero-editor__notice--ok { border-left-color: rgb(var(--v-theme-success)); }
991
+ .hero-editor__split { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; flex: 1; }
992
+ .hero-editor__plan {
993
+ flex: 999 1 460px;
994
+ min-width: 0;
995
+ position: relative;
996
+ min-height: max(480px, calc(100vh - 330px));
997
+ background-color: var(--hero-surface);
998
+ background-image: linear-gradient(var(--hero-divider) 1px, transparent 1px), linear-gradient(90deg, var(--hero-divider) 1px, transparent 1px);
999
+ background-size: 5% 8.9%;
1000
+ background-repeat: repeat; /* Vuetify resets every element to no-repeat */
1001
+ border: 1px solid var(--hero-divider);
1002
+ overflow: hidden;
1003
+ cursor: crosshair;
1004
+ }
1005
+ .hero-editor__plan:focus-visible { outline: 2px solid var(--hero-accent); outline-offset: 0; }
1006
+ .hero-editor__room { position: absolute; border: 2px solid var(--hero-text); opacity: 0.4; pointer-events: none; }
1007
+ .hero-editor__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
1008
+ .hero-editor__wall { stroke: var(--hero-text); stroke-width: 1.5; }
1009
+ .hero-editor__zone-shape { fill: color-mix(in srgb, var(--hero-text) 10%, transparent); stroke: var(--hero-text); stroke-width: 1; stroke-dasharray: 4 3; }
1010
+ line.hero-editor__sel { stroke: var(--hero-accent); }
1011
+ polygon.hero-editor__sel { stroke: var(--hero-accent); stroke-width: 2; stroke-dasharray: none; }
1012
+ div.hero-editor__sel { outline: 2px solid var(--hero-accent); }
1013
+ .hero-editor__label { position: absolute; display: grid; place-items: center; font-size: 10px; font-weight: 600; pointer-events: none; }
1014
+ .hero-editor__lift { position: absolute; box-sizing: border-box; display: grid; place-items: center; font-size: 10px; font-weight: 600; background: color-mix(in srgb, var(--hero-accent) 30%, transparent); border: 1px solid var(--hero-accent); }
1015
+ .hero-editor__door { position: absolute; width: 3%; height: 3%; margin: -1.5% 0 0 -1.5%; background: var(--hero-accent); }
1016
+ .hero-editor__cursor { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid var(--hero-accent); pointer-events: none; }
1017
+ .hero-editor__aside { font-size: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 260px; max-width: 360px; min-width: 0; align-self: stretch; }
1018
+ .hero-editor__asidetitle { border-top: 2px solid var(--hero-divider); padding-top: 8px; }
1019
+ .hero-editor__row { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--hero-divider); padding: 4px 0; }
1020
+ .hero-editor__pos { opacity: 0.55; font-variant-numeric: tabular-nums; }
1021
+ .hero-editor__note { opacity: 0.6; margin-top: auto; }
1022
+
1023
+ /* Lift queue (README §5). */
1024
+ .hero-lifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
1025
+ .hero-lift { border-top: 2px solid var(--hero-divider); display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 20px; align-items: start; }
1026
+ .hero-lift--skel { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
1027
+ .hero-lift__head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; padding: 8px 0; min-width: 0; }
1028
+ .hero-lift__name { font-weight: 800; font-size: 16px; white-space: nowrap; }
1029
+ .hero-lift__sub { opacity: 0.6; font-size: 12px; white-space: nowrap; }
1030
+ .hero-lift__car { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; white-space: nowrap; overflow: hidden; }
1031
+ .hero-lift__cardot { width: 5px; height: 5px; flex: none; }
1032
+ .hero-lift__cardot--ink { background: var(--hero-text); }
1033
+ .hero-lift__cardot--accent { background: var(--hero-accent); }
1034
+ .hero-lift__cardot--neutral { background: color-mix(in srgb, var(--hero-text) 45%, transparent); }
1035
+ .hero-lift__cardot--blink { animation: heroBlink 1s ease-in-out infinite; }
1036
+ .hero-lift__shaft { position: relative; margin: 4px 0 8px; display: grid; grid-template-columns: 44px 1fr; }
1037
+ .hero-lift__labels { position: relative; }
1038
+ .hero-lift__floor { position: absolute; left: 0; right: 0; height: 0; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; opacity: 0.55; }
1039
+ .hero-lift__floor--lit { opacity: 1; }
1040
+ .hero-lift__floorname { width: 20px; white-space: nowrap; }
1041
+ .hero-lift__waiting { width: 7px; height: 7px; flex: none; background: rgb(var(--v-theme-info)); animation: heroBlink 1.4s ease-in-out infinite; }
1042
+ .hero-lift__well { position: relative; border-left: 2px solid var(--hero-divider); border-right: 2px solid var(--hero-divider); background: var(--hero-surface); overflow: hidden; }
1043
+ .hero-lift__rail { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--hero-divider); }
1044
+ .hero-lift__flow { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hero-accent) 14%, transparent), transparent); animation: heroFlow 3s linear infinite; }
1045
+ .hero-lift__carbox { position: absolute; left: 14%; right: 14%; box-sizing: content-box; background: var(--hero-bg); border: 2px solid; display: grid; place-items: center; overflow: hidden; }
1046
+ .hero-lift__carbox--ink { border-color: var(--hero-text); color: var(--hero-text); }
1047
+ .hero-lift__carbox--accent { border-color: var(--hero-accent); color: var(--hero-accent); }
1048
+ .hero-lift__carbox--neutral { border-color: color-mix(in srgb, var(--hero-text) 45%, transparent); color: color-mix(in srgb, var(--hero-text) 45%, transparent); }
1049
+ .hero-lift__carlabel { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; }
1050
+ .hero-lift__doors { position: absolute; inset: 0; background: var(--hero-surface); transform-origin: left; }
1051
+ .hero-lift__rows { min-width: 0; }
1052
+ .hero-lift__empty { opacity: 0.6; padding: 12px 0; }
1053
+ .hero-lift__list { display: flex; flex-direction: column; gap: 1px; background: var(--hero-divider); }
1054
+ .hero-lift__list .hero-lift-row { padding: 10px; overflow: hidden; }
1055
+ .hero-lift-row--click { cursor: pointer; }
1056
+ .hero-lift-row--act { grid-template-columns: 28px 1fr auto auto auto; }
1057
+ .hero-lift-row__who { min-width: 0; }
1058
+ .hero-lift-row__who .hero-lift-row__route { white-space: nowrap; }
1059
+ .hero-lift__list .hero-lift-row__wait { font-size: 12px; white-space: nowrap; }
1060
+ .hero .hero-lift-row__release { border: 0; background: none; padding: 0; font: inherit; font-size: 11px; font-weight: 600; color: var(--hero-accent); cursor: pointer; white-space: nowrap; }
1061
+ .hero-lift__ask { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; }
1062
+ .hero-lift__simnote { font-size: 11px; }
1063
+ @media (max-width: 600px) {
1064
+ .hero-lift { grid-template-columns: 1fr; }
1065
+ .hero-bmap__bar { right: 14px; }
1066
+ .hero-bmap__live { display: none; }
1067
+ }
1068
+
581
1069
  @keyframes heroScan { from { background-position: 0 -60px; } to { background-position: 0 120%; } }
582
1070
  @keyframes heroPulse {
583
1071
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, rgb(var(--v-theme-accent)) 60%, transparent); }