:root{
  --hab-bg:#0b0b0b;
  --hab-panel:#141414;
  --hab-panel-2:#191919;
  --hab-border:#333;
  --hab-orange:#ff6b00;
  --hab-orange-2:#ff8a00;
  --hab-text:#fff;
  --hab-muted:#8e8e8e;
  --hab-free:#31c76a;
  --hab-busy:#ff6b00;
  --hab-unknown:#666;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
  background:
    radial-gradient(
      circle at 50% -20%,
      #271508,
      #0b0b0b 42%
    );
  color:var(--hab-text);
  font-family:
    Arial,
    sans-serif;
}

button,
input,
select{
  font:inherit;
}

.hab-map-top{
  min-height:72px;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid #292929;
  background:rgba(10,10,10,.96);
  position:sticky;
  top:0;
  z-index:10000;
}

.hab-map-brand{
  display:flex;
  align-items:center;
  gap:13px;
}

.hab-map-logo{
  height:35px;
  width:auto;
}

.hab-map-title{
  font-size:20px;
  font-weight:900;
}

.hab-map-sub{
  color:var(--hab-muted);
  font-size:12px;
  margin-top:3px;
}

.hab-map-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.hab-btn{
  border:1px solid #3a3a3a;
  border-radius:11px;
  padding:10px 14px;
  background:#222;
  color:white;
  font-weight:800;
  cursor:pointer;
}

.hab-btn:hover{
  border-color:#555;
}

.hab-btn.orange{
  background:linear-gradient(
    135deg,
    var(--hab-orange),
    var(--hab-orange-2)
  );
  color:#090909;
  border-color:transparent;
}

.hab-btn.danger{
  color:#ff7878;
}

.hab-select,
.hab-input{
  border:1px solid #404040;
  border-radius:10px;
  padding:9px 11px;
  color:white;
  background:#111;
  outline:none;
}

.hab-map-layout{
  display:grid;
  grid-template-columns:280px minmax(0,1fr) 260px;
  gap:12px;
  padding:12px;
  min-height:calc(100vh - 72px);
}

.hab-panel{
  border:1px solid #30251e;
  border-radius:14px;
  background:
    linear-gradient(
      150deg,
      rgba(73,34,8,.30),
      #141414 45%
    );
  padding:14px;
}

.hab-panel-title{
  color:var(--hab-orange);
  text-transform:uppercase;
  letter-spacing:2px;
  font-size:12px;
  font-weight:900;
  margin-bottom:12px;
}

.hab-map-stage-wrap{
  min-width:0;
}

.hab-map-viewport{
  width:100%;
  overflow:auto;
  border:1px solid #392b21;
  border-radius:16px;
  padding:18px;
  background:#0d0d0d;
  min-height:650px;
}

.hab-map-stage{
  position:relative;
  width:1400px;
  height:800px;
  overflow:hidden;
  transform-origin:top left;

  background-color:#101010;
  background-image:
    linear-gradient(
      rgba(255,107,0,.055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,107,0,.055) 1px,
      transparent 1px
    );
  background-size:25px 25px;

  border:1px solid #402812;
  border-radius:18px;
}

.hab-map-item{
  position:absolute;
  user-select:none;
}

.hab-map-item.pc,
.hab-map-item.ps{
  border-radius:13px;
  border:2px solid #555;
  background:#1e1e1e;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  font-weight:900;
  cursor:grab;
  box-shadow:
    0 8px 20px rgba(0,0,0,.25);
}

.hab-map-item.pc.free,
.hab-map-item.ps.free{
  border-color:rgba(49,199,106,.8);
  background:
    linear-gradient(
      145deg,
      rgba(49,199,106,.22),
      #171717
    );
}

.hab-map-item.pc.busy,
.hab-map-item.ps.busy{
  border-color:var(--hab-orange);
  background:
    linear-gradient(
      145deg,
      rgba(255,107,0,.32),
      #171717
    );

  box-shadow:
    0 0 20px rgba(255,107,0,.14);
}

.hab-map-item.wall{
  background:#eee;
  border-radius:6px;
  opacity:.95;
  cursor:grab;
}

.hab-map-item.zone{
  border:2px dashed rgba(255,107,0,.55);
  background:rgba(255,107,0,.055);
  border-radius:18px;
  color:#ff8a36;
  padding:12px;
  font-size:15px;
  font-weight:900;
  letter-spacing:1px;
  cursor:grab;
}

.hab-map-item.label{
  display:flex;
  align-items:center;
  color:white;
  font-size:20px;
  font-weight:900;
  letter-spacing:3px;
  cursor:grab;
}

.hab-map-item.selected{
  outline:3px solid #ff9b4a;
  outline-offset:3px;
}

.hab-pc-list{
  display:flex;
  flex-direction:column;
  gap:7px;
  max-height:430px;
  overflow:auto;
}

.hab-pc-chip{
  width:100%;
  border:1px solid #333;
  border-radius:10px;
  padding:9px 10px;
  background:#181818;
  color:#fff;
  cursor:pointer;
  text-align:left;
}

.hab-pc-chip.used{
  opacity:.4;
}

.hab-tool-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-bottom:14px;
}

.hab-field{
  margin-bottom:11px;
}

.hab-field label{
  display:block;
  color:var(--hab-muted);
  font-size:11px;
  margin-bottom:5px;
}

.hab-field input{
  width:100%;
}

.hab-status-bar{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  padding:12px 20px;
  background:#111;
  border-bottom:1px solid #242424;
  font-size:13px;
}

.hab-stat-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  display:inline-block;
  margin-right:5px;
}

.hab-stat-dot.free{
  background:var(--hab-free);
}

.hab-stat-dot.busy{
  background:var(--hab-busy);
}

.hab-public-shell{
  padding:18px;
}

.hab-public-map-wrap{
  width:100%;
  overflow:hidden;
  border:1px solid #332719;
  border-radius:18px;
  background:#0e0e0e;
  padding:10px;
}

.hab-public-map-scale{
  position:relative;
  width:1400px;
  height:800px;
  transform-origin:top left;
}

.hab-readonly-note{
  border:1px solid #63431d;
  background:#2a190d;
  color:#ffbc82;
  border-radius:10px;
  padding:10px;
  font-size:12px;
  margin-bottom:12px;
}

.hab-empty{
  color:var(--hab-muted);
  padding:30px;
  text-align:center;
}

@media(max-width:1050px){
  .hab-map-layout{
    grid-template-columns:220px minmax(0,1fr);
  }

  .hab-map-inspector{
    grid-column:1/-1;
  }
}

@media(max-width:720px){
  .hab-map-layout{
    display:block;
  }

  .hab-panel{
    margin-bottom:10px;
  }

  .hab-map-top{
    position:static;
  }
}


/* ============================================================
   HAB_CLUB_MAP_PUBLIC_DISPLAY_V2
   ============================================================ */

body:has(.hab-public-shell){
  min-height:100vh;
  overflow:hidden;
}


.hab-public-shell{
  padding:10px 12px 12px !important;
  min-height:0 !important;
}


.hab-public-map-wrap{
  position:relative !important;

  width:100% !important;

  min-height:520px;

  margin:0 !important;
  padding:0 !important;

  overflow:hidden !important;

  border:
    1px solid rgba(255,107,0,.28) !important;

  border-radius:16px !important;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(255,107,0,.035),
      rgba(15,15,15,.98) 58%
    ) !important;
}


.hab-public-map-scale{
  position:absolute !important;

  left:0;
  top:0;

  transform-origin:
    top left !important;
}


#publicMapStage{
  position:absolute !important;

  margin:0 !important;

  box-shadow:
    0 20px 70px
    rgba(0,0,0,.38);
}


body:has(.hab-public-shell)
.hab-map-top{
  min-height:68px;
  padding:
    10px 16px;
}


body:has(.hab-public-shell)
.hab-status-bar{
  min-height:38px;

  display:flex;
  align-items:center;

  padding:
    8px 16px;

  border-bottom:
    1px solid #262626;
}


body:has(.hab-public-shell)
.hab-map-title{
  font-size:19px;
}


body:has(.hab-public-shell)
.hab-map-logo{
  height:32px;
}


@media(max-width:700px){

  body:has(.hab-public-shell){
    overflow:auto;
  }

  .hab-public-map-wrap{
    min-height:420px;
  }

}


/* /HAB_CLUB_MAP_PUBLIC_DISPLAY_V2 */

/* HAB_MAP_FIELD_SIZE_V1 */

.hab-map-field-size{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.hab-map-field-size .hab-field{
  margin-bottom:8px;
}

.hab-map-field-size input{
  text-align:center;
  font-weight:800;
}

/* /HAB_MAP_FIELD_SIZE_V1 */


/* HAB_MAP_FREE_WHITE_V1 */

/*
 * СВОБОДЕН = БЕЛЫЙ
 * ЗАНЯТ = ОРАНЖЕВЫЙ
 * UNKNOWN = СЕРЫЙ
 */

:root{
  --hab-free:#ffffff;
}


/* Свободные ПК / PS */

.hab-map-item.pc.free,
.hab-map-item.ps.free{

  background:#ffffff !important;

  border-color:#ffffff !important;

  color:#111111 !important;

  box-shadow:
    0 5px 14px rgba(0,0,0,.28) !important;

}


/* Точка "Свободно" в легенде */

.hab-stat-dot.free{

  background:#ffffff !important;

  border:
    1px solid rgba(255,255,255,.45);

}


/* /HAB_MAP_FREE_WHITE_V1 */


/* HAB_MAP_SNAP_CONTROLS_CSS_V1 */

.hab-map-snap-controls{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:10px 0 18px;
}

.hab-map-snap-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  padding:9px 10px;

  border:1px solid #353535;
  border-radius:10px;

  background:#171717;

  cursor:pointer;
  user-select:none;
}

.hab-map-snap-row:hover{
  border-color:#4b3a2d;
}

.hab-map-snap-row > span{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.hab-map-snap-row b{
  font-size:12px;
  color:#fff;
}

.hab-map-snap-row small{
  font-size:9px;
  color:#777;
}

.hab-map-snap-row input{
  width:17px;
  height:17px;
  flex:0 0 auto;

  accent-color:#ff6b00;
  cursor:pointer;
}

/* /HAB_MAP_SNAP_CONTROLS_CSS_V1 */


/* HAB_MAP_FURNITURE_CSS_V1 */


/* Панель */

.hab-map-furniture-panel{
  margin-top:18px;
  margin-bottom:18px;
}


.hab-furniture-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}


.hab-furniture-add-btn{
  width:100%;
  min-width:0;
  padding-left:8px !important;
  padding-right:8px !important;
  font-size:11px !important;
}


/*
 * Базовый объект интерьера.
 * Он специально серый, чтобы его нельзя было
 * перепутать с белым свободным ПК.
 */

.hab-furniture{
  box-sizing:border-box !important;

  background:
    #252525 !important;

  border:
    2px solid #777 !important;

  color:
    #d7d7d7 !important;

  display:flex !important;

  align-items:center !important;

  justify-content:center !important;

  text-align:center !important;

  font-weight:700 !important;

  line-height:1.05 !important;

  overflow:hidden !important;

  user-select:none;
}


/* Диван */

.hab-furniture-sofa{
  border-radius:18px !important;

  background:
    #292929 !important;

  border-width:
    3px !important;

  box-shadow:
    inset 0 0 0 7px #1c1c1c !important;
}


/* Кресло */

.hab-furniture-armchair{
  border-radius:20px !important;

  box-shadow:
    inset 0 0 0 6px #1c1c1c !important;
}


/* Стол */

.hab-furniture-table{
  border-radius:8px !important;

  background:
    #1e1e1e !important;

  border:
    2px solid #a0a0a0 !important;
}


/* Стул */

.hab-furniture-chair{
  border-radius:8px !important;

  font-size:9px !important;
}


/* Стойка администратора */

.hab-furniture-counter{
  background:
    #181818 !important;

  border:
    2px solid #ff6b00 !important;

  border-radius:8px !important;

  color:
    #fff !important;
}


/* Холодильник */

.hab-furniture-fridge{
  background:
    #303030 !important;

  border-radius:7px !important;

  border:
    2px solid #999 !important;
}


/* Дверь */

.hab-furniture-door{
  background:
    transparent !important;

  border:
    0 !important;

  border-bottom:
    4px solid #aaa !important;

  border-radius:
    0 !important;

  color:
    #999 !important;
}


/* WC */

.hab-furniture-wc{
  border-radius:8px !important;

  background:
    #202020 !important;

  border:
    2px dashed #777 !important;
}


/* /HAB_MAP_FURNITURE_CSS_V1 */


/* HAB_MAP_MORE_WALLS_CSS_V1 */

.hab-more-walls-panel{
  margin:14px 0 18px;
}

.hab-more-walls-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}

.hab-wall-preset-btn{
  width:100%;
  min-width:0;
  padding-left:7px !important;
  padding-right:7px !important;
  font-size:10px !important;
  white-space:nowrap;
}

/* /HAB_MAP_MORE_WALLS_CSS_V1 */



/* HAB_MAP_UNIFORM_DEVICE_SIZE_CSS_V1 */

.hab-device-size-panel{
  margin:14px 0 18px;
}

.hab-device-size-group{
  margin-bottom:9px;
  padding:10px;

  border:1px solid #333;
  border-radius:10px;

  background:#151515;
}

.hab-device-size-head{
  margin-bottom:8px;

  color:#fff;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}

.hab-device-size-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;

  margin-bottom:8px;
}

.hab-device-size-fields label{
  display:flex;
  flex-direction:column;
  gap:4px;

  color:#777;
  font-size:9px;
}

.hab-device-size-fields input{
  box-sizing:border-box;

  width:100%;
  min-width:0;

  padding:8px;

  border:1px solid #333;
  border-radius:8px;

  background:#0e0e0e;
  color:#fff;

  font-size:12px;
  font-weight:800;

  outline:none;
}

.hab-device-size-fields input:focus{
  border-color:#ff6b00;
}

.hab-device-size-group .hab-btn{
  width:100%;
}

/* /HAB_MAP_UNIFORM_DEVICE_SIZE_CSS_V1 */


/* HAB_REAL_FURNITURE_CSS_V2 */

.hab-furniture.hab-real-furniture-v2{
  position:absolute !important;
  overflow:visible !important;

  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;

  padding:0 !important;

  color:#fff !important;
}

.hab-real-furniture-svg{
  position:absolute;

  inset:0;

  width:100%;
  height:100%;

  overflow:visible;

  pointer-events:none;
}


/* Базовые линии */

.hab-real-furniture-svg .hf-body{
  fill:#292929;
  stroke:#aaa;
  stroke-width:2.2;
}

.hab-real-furniture-svg .hf-dark{
  fill:#181818;
  stroke:#555;
  stroke-width:1.5;
}

.hab-real-furniture-svg .hf-cushion{
  fill:#363636;
  stroke:#777;
  stroke-width:1.5;
}

.hab-real-furniture-svg .hf-arm{
  fill:#202020;
  stroke:#999;
  stroke-width:1.8;
}


/* Стол */

.hab-real-furniture-svg .hf-table{
  fill:#262626;
  stroke:#aaa;
  stroke-width:2.5;
}

.hab-real-furniture-svg .hf-leg{
  fill:#bdbdbd;
}


/* Стул */

.hab-real-furniture-svg .hf-chair-back,
.hab-real-furniture-svg .hf-chair-seat{
  fill:#292929;
  stroke:#aaa;
  stroke-width:2;
}


/* Стойка */

.hab-real-furniture-svg .hf-counter{
  fill:#1e1e1e;
  stroke:#ff6b00;
  stroke-width:2.5;
}

.hab-real-furniture-svg .hf-counter-inner{
  fill:#ff6b00;
  opacity:.6;
}


/* Холодильник */

.hab-real-furniture-svg .hf-fridge{
  fill:#2b2b2b;
  stroke:#c5c5c5;
  stroke-width:2.4;
}

.hab-real-furniture-svg .hf-line{
  stroke:#777;
  stroke-width:2;
}

.hab-real-furniture-svg .hf-handle{
  stroke:#fff;
  stroke-width:3;
  stroke-linecap:round;
}


/* Дверь */

.hab-real-furniture-svg .hf-door-wall{
  stroke:#d6d6d6;
  stroke-width:5;
  stroke-linecap:round;
}

.hab-real-furniture-svg .hf-door-leaf{
  stroke:#f4f4f4;
  stroke-width:4;
  stroke-linecap:round;
}

.hab-real-furniture-svg .hf-door-swing{
  fill:none;
  stroke:#777;
  stroke-width:2;
  stroke-dasharray:5 4;
}

.hab-real-furniture-svg .hf-door-hinge{
  fill:#ff6b00;
}


/* WC */

.hab-real-furniture-svg .hf-wc-tank{
  fill:#e6e6e6;
  stroke:#999;
  stroke-width:2;
}

.hab-real-furniture-svg .hf-wc-bowl{
  fill:#ededed;
  stroke:#999;
  stroke-width:2;
}

.hab-real-furniture-svg .hf-wc-hole{
  fill:#1b1b1b;
}


/* Название объекта */

.hab-furniture-label-v2{
  position:absolute;

  left:50%;
  bottom:-17px;

  transform:translateX(-50%);

  max-width:150px;

  padding:2px 5px;

  border-radius:5px;

  background:rgba(0,0,0,.72);

  color:#aaa;

  font-size:8px;
  font-weight:700;

  line-height:1;

  white-space:nowrap;

  pointer-events:none;
}


/* Выбранный объект остаётся заметным */

.hab-real-furniture-v2.selected,
.hab-real-furniture-v2.is-selected{
  outline:2px solid #ff6b00 !important;
  outline-offset:3px;
}

/* /HAB_REAL_FURNITURE_CSS_V2 */

/* HAB_FURNITURE_ROTATE_DOOR_CSS_V3 */

/*
 * На самой планировке предмет уже понятен по форме.
 * Убираем маленькие отдельные подписи:
 * "Диван", "Дверь", "Стол" и т.д.
 */

.hab-real-furniture-v2 .hab-furniture-label-v2{
  display:none !important;
}


/*
 * SVG предметов занимает весь bounding-box.
 */

.hab-real-furniture-v2{
  overflow:visible !important;
}


/*
 * Дверь.
 * Никакой серой капсулы / рамки zone.
 */

.hab-furniture-door.hab-real-furniture-v2{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}


/*
 * Дверная коробка / участок стены.
 */

.hab-furniture-door
.hf-door-wall{
  stroke:#f2f2f2 !important;
  stroke-width:5 !important;
  stroke-linecap:round;
}


/*
 * Полотно двери.
 */

.hab-furniture-door
.hf-door-leaf{
  stroke:#dedede !important;
  stroke-width:4 !important;
  stroke-linecap:round;
}


/*
 * Дуга открывания.
 */

.hab-furniture-door
.hf-door-swing{
  fill:none !important;
  stroke:#777 !important;
  stroke-width:2 !important;
  stroke-dasharray:none !important;
}


/*
 * Петля.
 */

.hab-furniture-door
.hf-door-hinge{
  fill:#ff6b00 !important;
}


/* /HAB_FURNITURE_ROTATE_DOOR_CSS_V3 */

/* HAB_STABLE_FURNITURE_CSS_V4 */


.hab-stable-furniture-v4{
  position:absolute !important;

  background:transparent !important;
  border-color:transparent;

  overflow:visible !important;
}


/*
 * Вращается именно САМА картинка.
 */

.hab-furniture-rotator-v4{
  position:absolute;

  left:50%;
  top:50%;

  transform-origin:center center;

  pointer-events:none;

  z-index:1;
}


.hab-furniture-rotator-v4
.hab-real-furniture-svg{
  position:absolute;

  inset:0;

  width:100%;
  height:100%;

  pointer-events:none;
}


/*
 * Старую подпись полностью убираем.
 */

.hab-stable-furniture-v4
.hab-furniture-label-v2{
  display:none !important;
}


/*
 * Пользовательский TEXT =
 * название комнаты.
 */

.hab-room-label-v4{
  position:absolute;

  left:50%;
  top:50%;

  transform:
    translate(
      -50%,
      -50%
    );

  z-index:5;

  padding:3px 6px;

  border-radius:5px;

  background:
    rgba(
      0,
      0,
      0,
      .78
    );

  color:#fff;

  font-size:10px;
  font-weight:800;

  line-height:1;

  white-space:nowrap;

  pointer-events:none;
}


/*
 * У двери название комнаты лучше
 * показывать чуть выше неё.
 */

.hab-furniture-door
.hab-room-label-v4{
  top:-10px;

  transform:
    translate(
      -50%,
      -100%
    );
}


/* /HAB_STABLE_FURNITURE_CSS_V4 */

/* HAB_ROTATION_TEXT_CSS_V5 */


/*
 * Старые room labels больше не используем.
 */

.hab-room-label-v4{
  display:none !important;
}


/*
 * Новый контейнер непосредственно картинки.
 */

.hab-furniture-visual-v5{
  position:absolute !important;

  left:50% !important;
  top:50% !important;

  transform-origin:
    center center !important;

  pointer-events:none !important;

  overflow:visible !important;

  z-index:1;
}


.hab-furniture-visual-v5
.hab-real-furniture-svg{
  position:absolute !important;

  inset:0 !important;

  width:100% !important;
  height:100% !important;

  pointer-events:none !important;

  overflow:visible !important;
}


/*
 * Сам item не должен обрезать
 * повёрнутую картинку.
 */

.hab-furniture-v5{
  overflow:visible !important;
}


/*
 * НАЗВАНИЕ КОМНАТЫ.
 *
 * Не вращается вместе с мебелью.
 * Всегда горизонтально.
 * Всегда внутри bounding-box,
 * поэтому stage его не обрежет.
 */

.hab-room-text-v5{
  position:absolute !important;

  left:50% !important;
  top:5px !important;

  transform:
    translateX(-50%) !important;

  z-index:20 !important;

  display:block !important;

  max-width:
    calc(100% - 8px) !important;

  padding:
    3px 5px !important;

  border-radius:
    4px !important;

  background:
    rgba(
      0,
      0,
      0,
      .78
    ) !important;

  color:
    #ffffff !important;

  font-size:
    10px !important;

  font-weight:
    800 !important;

  line-height:
    1 !important;

  text-align:
    center !important;

  white-space:
    nowrap !important;

  overflow:
    hidden !important;

  text-overflow:
    ellipsis !important;

  pointer-events:
    none !important;
}


/*
 * Для двери текст ставим
 * в правый верхний угол,
 * чтобы он меньше закрывал дугу.
 */

.hab-furniture-door
.hab-room-text-v5{
  left:auto !important;

  right:3px !important;

  top:3px !important;

  transform:none !important;

  max-width:
    calc(100% - 10px) !important;
}


/* /HAB_ROTATION_TEXT_CSS_V5 */


/* HAB_ROOM_NUMBER_DISPLAY_V6 */


/*
 * Название / номер помещения.
 *
 * Больше никакого маленького чёрного бейджа.
 */

.hab-room-text-v5{
  position:absolute !important;

  left:50% !important;
  right:auto !important;

  top:-8px !important;

  transform:
    translate(
      -50%,
      -100%
    ) !important;

  z-index:50 !important;

  display:block !important;

  width:max-content !important;
  max-width:220px !important;

  padding:0 !important;

  background:
    transparent !important;

  border:0 !important;
  border-radius:0 !important;

  color:#ffffff !important;

  font-size:15px !important;
  font-weight:900 !important;

  line-height:1.15 !important;

  text-align:center !important;

  white-space:nowrap !important;

  overflow:visible !important;

  text-overflow:clip !important;

  pointer-events:none !important;

  text-shadow:
    0 2px 3px rgba(0,0,0,.95),
    0 0 6px rgba(0,0,0,.85) !important;
}


/*
 * Для двери то же самое:
 * строго по центру над символом двери.
 */

.hab-furniture-door
.hab-room-text-v5{

  left:50% !important;
  right:auto !important;

  top:-8px !important;

  transform:
    translate(
      -50%,
      -100%
    ) !important;

  font-size:16px !important;
}


/* /HAB_ROOM_NUMBER_DISPLAY_V6 */


/* HAB_SIMPLE_DOOR_TV_CSS_V7 */


/*
 * ==========================================================
 * ДВЕРЬ
 *
 * Убираем всю старую SVG-графику:
 * - дугу открытия;
 * - полотно;
 * - петлю.
 *
 * Вместо неё одна простая линия.
 * ==========================================================
 */

.hab-furniture-door
.hab-real-furniture-svg{
  opacity:0 !important;
}


/*
 * Эта линия находится ВНУТРИ rotator,
 * поэтому вращается вместе с дверью.
 */

.hab-furniture-door
.hab-furniture-visual-v5::after{

  content:"";

  position:absolute;

  left:7%;
  right:7%;

  top:50%;

  height:7px;

  transform:
    translateY(
      -50%
    );

  border-radius:
    999px;

  background:
    rgba(
      255,
      255,
      255,
      .58
    );

  pointer-events:none;
}


/*
 * Если по какой-то причине используется
 * старый rotator V4.
 */

.hab-furniture-door
.hab-furniture-rotator-v4::after{

  content:"";

  position:absolute;

  left:7%;
  right:7%;

  top:50%;

  height:7px;

  transform:
    translateY(
      -50%
    );

  border-radius:
    999px;

  background:
    rgba(
      255,
      255,
      255,
      .58
    );

  pointer-events:none;
}


/*
 * Букву / номер опускаем ниже.
 *
 * Было выше двери.
 * Теперь располагается ближе к самой линии.
 */

.hab-furniture-door
.hab-room-text-v5{

  left:50% !important;
  right:auto !important;

  top:10px !important;

  transform:
    translate(
      -50%,
      -100%
    ) !important;

  font-size:
    16px !important;

  line-height:
    1 !important;
}


/*
 * ==========================================================
 * ТЕЛЕВИЗОР
 * ==========================================================
 */

.hab-furniture-tv{
  background:
    transparent !important;

  border:
    0 !important;

  overflow:
    visible !important;
}


.hab-furniture-tv
.hf-tv-body{

  fill:
    #232323;

  stroke:
    #b5b5b5;

  stroke-width:
    3;
}


.hab-furniture-tv
.hf-tv-screen{

  fill:
    #090909;

  stroke:
    #555;

  stroke-width:
    1.5;
}


.hab-furniture-tv
.hf-tv-stand{

  stroke:
    #a0a0a0;

  stroke-width:
    4;

  stroke-linecap:
    round;
}


.hab-furniture-tv
.hf-tv-base{

  stroke:
    #a0a0a0;

  stroke-width:
    4;

  stroke-linecap:
    round;
}


/* /HAB_SIMPLE_DOOR_TV_CSS_V7 */

/* HAB_DOOR_45_NO_FLICKER_CSS_V9 */


/*
 * ==========================================================
 * ДВЕРЬ
 *
 * Только одна полупрозрачная толстая палка.
 * Открытие визуально = 45 градусов.
 *
 * Точка вращения находится слева,
 * как у реальной двери на петле.
 * ==========================================================
 */

.hab-furniture-door
.hab-furniture-visual-v5::after{

  content:"" !important;

  position:absolute !important;

  left:10% !important;
  right:auto !important;

  top:72% !important;

  width:72% !important;
  height:7px !important;

  border-radius:
    999px !important;

  background:
    rgba(
      255,
      255,
      255,
      .58
    ) !important;

  transform-origin:
    left center !important;

  transform:
    translateY(
      -50%
    )
    rotate(
      -45deg
    ) !important;

  pointer-events:
    none !important;
}


/*
 * Старый V4 fallback.
 */

.hab-furniture-door
.hab-furniture-rotator-v4::after{

  content:"" !important;

  position:absolute !important;

  left:10% !important;
  right:auto !important;

  top:72% !important;

  width:72% !important;
  height:7px !important;

  border-radius:
    999px !important;

  background:
    rgba(
      255,
      255,
      255,
      .58
    ) !important;

  transform-origin:
    left center !important;

  transform:
    translateY(
      -50%
    )
    rotate(
      -45deg
    ) !important;

  pointer-events:
    none !important;
}


/*
 * Старый SVG двери остаётся полностью скрытым.
 */

.hab-furniture-door
.hab-real-furniture-svg{

  opacity:
    0 !important;

}


/*
 * ==========================================================
 * НОМЕР / БУКВА
 *
 * Теперь находится ПОД дверью,
 * а не над ней.
 *
 * Не вращается вместе с палкой.
 * ==========================================================
 */

.hab-furniture-door
.hab-room-text-v5{

  left:
    50% !important;

  right:
    auto !important;

  top:
    auto !important;

  bottom:
    -19px !important;

  transform:
    translateX(
      -50%
    ) !important;

  width:
    max-content !important;

  max-width:
    180px !important;

  padding:
    0 !important;

  background:
    transparent !important;

  border:
    0 !important;

  color:
    #ffffff !important;

  font-size:
    15px !important;

  font-weight:
    900 !important;

  line-height:
    1 !important;

  text-align:
    center !important;

  white-space:
    nowrap !important;

  text-shadow:
    0 2px 3px rgba(0,0,0,.95) !important;

  pointer-events:
    none !important;

}


/* /HAB_DOOR_45_NO_FLICKER_CSS_V9 */

/* HAB_STABLE_DOOR_LABEL_CSS_V10 */


/*
 * Старые псевдо-двери выключаем полностью.
 */

.hab-furniture-door
.hab-furniture-visual-v5::after,
.hab-furniture-door
.hab-furniture-rotator-v4::after{

  content:
    none !important;

  display:
    none !important;

}


/*
 * SVG снова видим.
 */

.hab-furniture-door
.hab-real-furniture-svg{

  opacity:
    1 !important;

}


/*
 * ОДНА дверь-палка.
 *
 * Толще стены визуально не становится,
 * но она серая / полупрозрачная,
 * поэтому сразу отличается.
 */

.hab-furniture-door
.hf-door-simple-v10{

  fill:
    none !important;

  stroke:
    #ffffff !important;

  stroke-opacity:
    .58 !important;

  stroke-width:
    7 !important;

  stroke-linecap:
    round !important;

}


/*
 * Буква / номер строго под объектом двери.
 */

.hab-furniture-door
.hab-room-text-v5{

  position:
    absolute !important;

  left:
    50% !important;

  right:
    auto !important;

  top:
    auto !important;

  bottom:
    -15px !important;

  transform:
    translateX(
      -50%
    ) !important;

  z-index:
    50 !important;

  display:
    block !important;

  width:
    max-content !important;

  max-width:
    180px !important;

  padding:
    0 !important;

  margin:
    0 !important;

  border:
    0 !important;

  border-radius:
    0 !important;

  background:
    transparent !important;

  color:
    #ffffff !important;

  font-size:
    14px !important;

  font-weight:
    900 !important;

  line-height:
    1 !important;

  text-align:
    center !important;

  white-space:
    nowrap !important;

  overflow:
    visible !important;

  text-shadow:
    0 2px 3px rgba(0,0,0,.95) !important;

  pointer-events:
    none !important;

}


/*
 * Инспектор отдельной буквы.
 */

.hab-door-label-editor-v10{

  margin:
    8px 0 10px;

}


.hab-door-label-editor-v10 label{

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;

  color:
    #aaa;

  font-size:
    10px;

}


.hab-door-label-editor-v10 input{

  box-sizing:
    border-box;

  width:
    100%;

  padding:
    9px 10px;

  border:
    1px solid #3a3a3a;

  border-radius:
    9px;

  outline:
    none;

  background:
    #101010;

  color:
    #fff;

  font-size:
    13px;

  font-weight:
    800;

}


.hab-door-label-editor-v10 input:focus{

  border-color:
    #ff6b00;

}


/* /HAB_STABLE_DOOR_LABEL_CSS_V10 */

/* HAB_DOOR_REAL_45_CSS_V11 */


/*
 * Убиваем ВСЕ старые псевдо-двери.
 */

.hab-furniture-door
.hab-furniture-visual-v5::after,

.hab-furniture-door
.hab-furniture-rotator-v4::after{

  content:
    none !important;

  display:
    none !important;

}


/*
 * Старые door SVG линии скрыты,
 * новая V11 остаётся.
 */

.hab-furniture-door
.hab-real-furniture-svg{

  opacity:
    1 !important;

}


/*
 * Только одна настоящая дверная палка.
 */

.hab-furniture-door
.hf-door-v11{

  fill:
    none !important;

  stroke:
    #ffffff !important;

  stroke-opacity:
    .62 !important;

  stroke-width:
    9 !important;

  stroke-linecap:
    round !important;

}


/*
 * Буква / номер НЕ вращается.
 */

.hab-furniture-door
.hab-room-text-v5{

  position:
    absolute !important;

  left:
    50% !important;

  right:
    auto !important;

  top:
    auto !important;

  bottom:
    -18px !important;

  transform:
    translateX(
      -50%
    ) !important;

  z-index:
    100 !important;

  padding:
    0 !important;

  background:
    transparent !important;

  border:
    0 !important;

  color:
    #fff !important;

  font-size:
    14px !important;

  font-weight:
    900 !important;

  line-height:
    1 !important;

  white-space:
    nowrap !important;

  overflow:
    visible !important;

  pointer-events:
    none !important;

}


/* /HAB_DOOR_REAL_45_CSS_V11 */

/* HAB_DOOR_OVERLAY_FINAL_CSS_V12 */


/*
 * ==========================================================
 * СТАРАЯ ДВЕРЬ
 *
 * Полностью невидима.
 * Underlying item остаётся только для
 * selection / drag / resize.
 * ==========================================================
 */

.hab-furniture-door
.hab-real-furniture-svg,

.hab-furniture-door
.hab-furniture-visual-v5::after,

.hab-furniture-door
.hab-furniture-rotator-v4::after,

.hab-furniture-door
.hab-room-text-v5{

  opacity:
    0 !important;

  visibility:
    hidden !important;

}


/*
 * ==========================================================
 * НОВАЯ СТАБИЛЬНАЯ ДВЕРЬ
 * ==========================================================
 */

.hab-door-overlay-v12{

  position:
    absolute;

  width:
    var(
      --door-w
    );

  height:
    var(
      --door-h
    );

  z-index:
    40;

  pointer-events:
    none;

  overflow:
    visible;

}


/*
 * Одна палка.
 *
 * Петля примерно в нижней левой
 * части bounding-box.
 */

.hab-door-leaf-overlay-v12{

  position:
    absolute;

  left:
    16%;

  top:
    72%;

  width:
    72%;

  height:
    7px;

  border-radius:
    999px;

  background:
    rgba(
      255,
      255,
      255,
      .60
    );

  transform-origin:
    left center;

  transform:
    translateY(
      -50%
    )
    rotate(
      var(
        --door-angle
      )
    );

  box-shadow:
    0 1px 2px rgba(0,0,0,.25);

}


/*
 * ==========================================================
 * БУКВА / НОМЕР
 *
 * Это отдельный DOM-элемент.
 * Furniture renderer не может его удалить.
 * ==========================================================
 */

.hab-door-label-overlay-v12{

  position:
    absolute;

  z-index:
    60;

  transform:
    translate(
      -50%,
      0
    );

  color:
    #ffffff;

  font-size:
    14px;

  font-weight:
    900;

  line-height:
    1;

  text-align:
    center;

  white-space:
    nowrap;

  pointer-events:
    none;

  text-shadow:
    0 2px 3px rgba(0,0,0,.95);

}


/* /HAB_DOOR_OVERLAY_FINAL_CSS_V12 */


/* HAB_PC_OFFLINE_V15 */

.hab-map-item.pc.offline,
.hab-map-item.ps.offline{
  background:
    rgba(80,80,80,.88) !important;

  border-color:
    rgba(155,155,155,.58) !important;

  color:
    rgba(255,255,255,.74) !important;

  box-shadow:
    none !important;
}

.hab-stat-dot.offline{
  background:
    #777 !important;
}

/* /HAB_PC_OFFLINE_V15 */


/* HAB_PUBLIC_MAP_CLEAN_STAGE_V1 */

/*
 * Только ГОТОВАЯ публичная карта.
 *
 * Редактор карты не затрагиваем:
 * там сетка и рамка остаются.
 */

#publicMapStage{
  background-image:
    none !important;

  /*
   * Сам тёмный фон карты сохраняем.
   */
  background-color:
    #101010 !important;

  border:
    0 !important;

  outline:
    0 !important;

  border-radius:
    0 !important;

  box-shadow:
    none !important;
}


/*
 * На случай, если внешняя оболочка
 * получила декоративную рамку.
 */

.hab-public-map-wrap{
  border:
    0 !important;

  outline:
    0 !important;

  box-shadow:
    none !important;
}


/*
 * Масштабирующая оболочка тоже
 * не должна рисовать рамку.
 */

.hab-public-map-scale{
  border:
    0 !important;

  outline:
    0 !important;

  box-shadow:
    none !important;
}

/* /HAB_PUBLIC_MAP_CLEAN_STAGE_V1 */



/* HAB_PUBLIC_MAP_CLEAN_STAGE_V2 */


/*
 * ==========================================================
 * ГОТОВАЯ PUBLIC-КАРТА
 *
 * Полностью прозрачные:
 * shell
 * wrapper
 * scale
 * stage
 *
 * Никакой сетки, рамки, градиента,
 * скругления или тени вокруг плана.
 * ==========================================================
 */


body:has(.hab-public-shell)
.hab-public-shell{

  padding:
    0 !important;

  margin:
    0 !important;

  background:
    transparent !important;

  border:
    0 !important;

  border-radius:
    0 !important;

  box-shadow:
    none !important;

  outline:
    0 !important;

}


body:has(.hab-public-shell)
.hab-public-map-wrap{

  margin:
    0 !important;

  padding:
    0 !important;

  background:
    transparent !important;

  background-image:
    none !important;

  border:
    0 !important;

  border-radius:
    0 !important;

  box-shadow:
    none !important;

  outline:
    0 !important;

}


body:has(.hab-public-shell)
.hab-public-map-scale{

  background:
    transparent !important;

  background-image:
    none !important;

  border:
    0 !important;

  border-radius:
    0 !important;

  box-shadow:
    none !important;

  outline:
    0 !important;

}


body:has(.hab-public-shell)
#publicMapStage{

  background:
    transparent !important;

  background-color:
    transparent !important;

  background-image:
    none !important;

  border:
    0 !important;

  border-radius:
    0 !important;

  box-shadow:
    none !important;

  outline:
    0 !important;

}


/* /HAB_PUBLIC_MAP_CLEAN_STAGE_V2 */




/* HAB_ROUND_TABLE_V1 */

/*
 * Круглый стол:
 * - и в редакторе
 * - и на публичной карте
 */

.hab-furniture-table{
  border-radius:50% !important;
  background:
    radial-gradient(
      circle at 35% 35%,
      #2c2c2c 0%,
      #1b1b1b 58%,
      #111111 100%
    ) !important;
  border:2px solid #a9a9a9 !important;
  box-shadow:
    inset 0 0 0 3px #202020,
    0 4px 10px rgba(0,0,0,.24) !important;
}

/*
 * Если включён "реальный" стиль мебели,
 * тоже делаем стол круглым.
 */
.hab-furniture-table.hab-real-furniture-v2{
  border-radius:50% !important;
  background:
    radial-gradient(
      circle at 35% 35%,
      #2c2c2c 0%,
      #1b1b1b 58%,
      #111111 100%
    ) !important;
  border:2px solid #a9a9a9 !important;
  box-shadow:
    inset 0 0 0 3px #202020,
    0 4px 10px rgba(0,0,0,.24) !important;
}

/*
 * Небольшая центральная "ножка" у круглого стола.
 */
.hab-furniture-table::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:18%;
  height:18%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:#8e8e8e;
  box-shadow:
    0 0 0 2px #232323 inset;
  pointer-events:none;
}

/* /HAB_ROUND_TABLE_V1 */




/* HAB_REAL_ROUND_TABLE_V2 */

/*
 * Стол должен быть именно круглым,
 * без квадратной формы, уголков и болтов.
 */

.hab-furniture-table{
  border-radius:50% !important;
  background:#1a1a1a !important;
  border:3px solid #bdbdbd !important;
  box-shadow:none !important;
  overflow:hidden !important;
  color:transparent !important;
  font-size:0 !important;
}

/*
 * Если для мебели навешан "real furniture" режим,
 * тоже принудительно делаем стол простым кругом.
 */
.hab-furniture-table.hab-real-furniture-v2{
  border-radius:50% !important;
  background:#1a1a1a !important;
  border:3px solid #bdbdbd !important;
  box-shadow:none !important;
  overflow:hidden !important;
  color:transparent !important;
  font-size:0 !important;
}

/* Убираем старые SVG/декор, которые дают квадратный вид */
.hab-furniture-table .hab-real-furniture-svg,
.hab-furniture-table svg{
  display:none !important;
}

/* Внутренний круг */
.hab-furniture-table::before{
  content:"";
  position:absolute;
  inset:16%;
  border:2px solid #5c5c5c;
  border-radius:50%;
  background:transparent;
  pointer-events:none;
}

/* Центральная опора */
.hab-furniture-table::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:12%;
  height:12%;
  min-width:8px;
  min-height:8px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:#969696;
  pointer-events:none;
}

/* /HAB_REAL_ROUND_TABLE_V2 */




/* HAB_ROUND_TABLE_CLEAN_V3 */

/*
 * Чистый круглый стол:
 * без внутренних кругов,
 * без центральной точки,
 * без SVG-декора внутри.
 */
.hab-furniture-table,
.hab-furniture-table.hab-real-furniture-v2{
  border-radius:50% !important;
  background:#1a1a1a !important;
  border:3px solid #bdbdbd !important;
  box-shadow:none !important;
  overflow:hidden !important;
  color:transparent !important;
  font-size:0 !important;
}

.hab-furniture-table .hab-real-furniture-svg,
.hab-furniture-table svg{
  display:none !important;
}

.hab-furniture-table::before,
.hab-furniture-table::after{
  content:none !important;
  display:none !important;
}

/* /HAB_ROUND_TABLE_CLEAN_V3 */



/* HAB_PUBLIC_HIDE_FULLSCREEN_UPDATED_V1 */

/*
 * Убираем только элементы интерфейса.
 * Автообновление ПК продолжает работать.
 */

#publicFullscreen{
  display:none !important;
}

#publicUpdated{
  display:none !important;
}

/* /HAB_PUBLIC_HIDE_FULLSCREEN_UPDATED_V1 */


/* ============================================================
   STATDARK_WC_TEXT_CSS_ONLY_V1

   Только визуальная замена.
   JS / SVG renderer / drag / resize / rotation НЕ меняются.
   ============================================================ */

/* Прячем только детали рисунка унитаза */
.hab-furniture-wc .hf-wc-tank,
.hab-furniture-wc .hf-wc-bowl,
.hab-furniture-wc .hf-wc-hole {
  display:none !important;
}

/*
 * Старую подпись прячем, чтобы не было двойного WC.
 * Сам объект мебели остаётся полностью рабочим.
 */
.hab-furniture-wc .hab-furniture-label-v2 {
  visibility:hidden !important;
}

/* Простая надпись WC по центру объекта */
.hab-furniture-wc::after {
  content:"WC";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;

  font-family:Arial,Helvetica,sans-serif;
  font-size:28px;
  font-weight:900;
  letter-spacing:2px;
  line-height:1;

  color:currentColor;

  pointer-events:none;
  user-select:none;
}

/* /STATDARK_WC_TEXT_CSS_ONLY_V1 */

