.main-header {
  background-color: #ebebeb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  height: 60px;
  border-top: 1px solid #999999;
  border-bottom: 1px solid #999999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1000;
}

.logo-area .logo {
  width: 220px;
  height: 50px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(3px 4px 1px rgba(0, 0, 0, 0.3));
}

.main-nav {
  margin-left: auto;
  height: 100%;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.main-nav li {
  height: 100%;
  border-left: 1px solid #999999;
}

.main-nav li:last-child {
  border-right: 1px solid #999999;
}

.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #333333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 25px;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover {
  background-color: #6d6d6d;
  color: #ffffff;
  text-decoration: none;
}



.site-footer {
  background-color: #dddddd;
  padding: 0 60px;
  min-height: 50px;
  color: #333333;
  width: 100%;
  margin-top: auto;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 11px;
}

.footer-content p {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}
@media (max-width: 1150px) {
  .site-footer {
    padding: 4px 10px;
    min-height: auto;
    overflow: hidden;
  }
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
  }
  .footer-content p {
    font-size: 5px;
    white-space: nowrap;
    margin: 0;
  }
  .footer-content br {
    display: none;
  }
}
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background-color: #f0f0f0;
  overflow-x: hidden; 
  display: flex;
  flex-direction: column; 
}
#app-wrapper *,
#loading-screen *,
#alert-modal *,
#contact-modal *,
#info-modal *,
#inspector-modal *,
#schienale-modal *,
#portrait-lock-overlay * {
  font-family: 'Montserrat', sans-serif !important;
}
.tab-btn, .action-btn.white-style, .subcategory-toggle { font-size: 13px !important; }
.category-group button,
.section-label,
.color-btn:hover::after { font-size: 12px !important; }
.palette-title, .width-label, #mobile-desktop-hint { font-size: 11px !important; }
#alert-modal-text, .info-steps li { font-size: 15px !important; }
.alert-btn, .inspector-header, #contact-modal p, #contact-modal input, #contact-modal textarea { font-size: 14px !important; }
#palette-hint span,
#canvas-empty-state p { font-size: 13px !important; }
#canvas-empty-state h3 { font-size: 18px !important; }
#app-wrapper {
  display: flex;
  width: 100%;
  flex: 1; 
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 60px 20px 20px 20px; 
  box-sizing: border-box;
  position: relative;
}

#center-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
#left-controls {
  position: absolute;
  right: calc(50% + 520px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 80px;
  gap: 10px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.palette-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #f0f2f5;
  border: 1px solid #bbbbbb;
  padding: 8px 4px; 
  border-radius: 4px;
  box-shadow: 0 5px 5px rgba(0,0,0,0.20);
}

.palette-title {
  font-size: 9px;
  letter-spacing: 1px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  width: 100%; 
  text-align: center; 
  border-bottom: 1px solid #bbbbbb; 
  padding-bottom: 10px; 
}

.color-palette-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-btn {
  width: 31px;
  height: 31px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
}
.color-btn:hover::after {
  content: attr(title);
  position: absolute;
  top: 50%;
  right: 140%;
  transform: translateY(-50%);
  background: rgba(30, 30, 30, 0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  font-weight: 600;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 100;
}
.color-btn:hover::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 120%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(30, 30, 30, 0.9);
}

.color-btn:hover {
  transform: scale(1.4);
  z-index: 10;
  border-color: #000;
}
.c-ral9003 { background-color: #f4f4f4; }
.c-ral5022 { background-color: #2c2c54; }
.c-ral8011 { background-color: #533621; }
.c-ral6005 { background-color: #0f4336; }
.c-ral1023 { background-color: #f1a300; }
.c-ral1015 { background-color: #e6d2b5; }
.c-ral2004 { background-color: #e44c16; }
.c-ral3020 { background-color: #cc0605; }
.c-ral9005 { background-color: #0a0a0a; }
#top-controls {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 250;
  align-items: stretch;
  width: 100%;
}

.section-label {
  font-size: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 2px;
  transform: translateY(-3px);
}

.tabs-container {
  display: flex;
  gap: 5px;
  width: 100%; 
}
.tab-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tab-btn {
  background: #f0f2f5;
  border: 1px solid #bbbbbb;
  padding: 10px 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
  cursor: pointer;
  border-radius: 0;
    box-shadow: 0 5px 5px rgba(0,0,0,0.20);
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.tab-btn:hover {
  background: #e1e8f0;
  color: #000;
}

.tab-btn.active {
  background: #ffffff;
  color: #073f79;
  border-color: #073f79;
  border-bottom: 1px solid transparent; 
  z-index: 202;
}
.tab-btn.active-env {
  background-color: #7a7d8a !important;
  color: #ffffff !important;
  border-color: #6b6e7a !important;
}

.tab-btn.active-env:hover {
  background-color: #6c707d !important;
  color: #ffffff !important;
}
.tab-btn.active-env.active {
  background-color: #ffffff !important;
  color: #073f79 !important;
  border-color: #073f79 !important;
}
#btn-info {
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0 !important;
  border-radius: 50%;
  color: #4caf50;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

#btn-info:hover {
  transform: scale(1.15);
  color: #073f79;
}
@keyframes pulse-echo-green {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.info-pulse-echo {
  animation: pulse-echo-green 2s infinite cubic-bezier(0.66, 0, 0, 1) !important;
  color: #4caf50 !important;
}
#info-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 90vw;
  height: auto;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  z-index: 210;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s;
}

#info-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#info-content-container {
  width: 100%;
  min-height: auto;
  background: transparent;
  padding: 25px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-steps li {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
  display: flex;
  align-items: flex-start;
  white-space: nowrap;
}

.info-steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-steps strong {
  color: #073f79;
  font-weight: 700;
  margin-right: 8px;
}
#alert-modal, #contact-modal, #save-choice-modal, #schienale-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  max-width: 90%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  border: 1px solid #999999;
  z-index: 250;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s;
}
#alert-modal {
  width: 320px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid #ffb700;
}

#alert-modal.hidden, #contact-modal.hidden, #save-choice-modal.hidden, #schienale-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.alert-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#alert-modal .alert-content {
  padding: 15px;
}

#alert-modal-text {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: #000000;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
}

.alert-btn {
  background-color: #8c7b6d;
  color: #ffffff;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.alert-btn:hover {
  transform: scale(1.05);
  background-color: #6b5c50;
}
.category-group {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  width: max-content;
  background: #ffffff;
  border: 1px solid #073f79;
  border-top: none;
  padding: 5px;
  border-radius: 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  gap: 4px;
  box-sizing: border-box;
  z-index: 201;
}
.category-group.active {
  display: flex;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-group button {
  background: white;
  border: none;
  padding: 8px 12px;
  font-size: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  text-align: left;
  transition: background 0.2s;
  width: 100%;
  white-space: nowrap;
}

.category-group button:hover {
  background: #eaf1f8;
  color: #073f79;
  font-weight: 700;
}
.subcategory-toggle {
  font-family: "Montserrat", sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #555 !important;
  text-transform: uppercase;
  padding: 10px 12px 6px 12px !important;
  margin: 0;
  background-color: transparent !important;
  border: none !important;
  text-align: left !important;
  cursor: pointer !important;
  width: 100%;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.subcategory-toggle:hover {
  color: #073f79 !important;
}
.subcategory-toggle::after {
  content: '▾';
  font-size: 14px;
  transition: transform 0.2s ease;
}
.subcategory-toggle.open::after {
  transform: rotate(180deg);
}
.subcategory-toggle.open {
  background-color: #073f79 !important;
  color: #ffffff !important;
}

.subcategory-toggle.open:hover {
  background-color: #052c56 !important;
  color: #ffffff !important;
}

.subcategory-content {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-left: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.subcategory-content:last-child {
  border-bottom: none;
}
.subcategory-content.open {
  display: flex;
}
.category-group .subcategory-toggle:first-child {
  padding-top: 8px !important;
}
#main-app-container {
  position: relative;
  width: 1000px;
  height: 600px;
  background-color: #f9f9f9;
  border-radius: 0;
  box-shadow: none;
}
#main-app-container canvas {
  border-radius: 0;
  display: block;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform-origin 0.1s ease-out;
}
#selected-info-panel {
  position: absolute;
  top: 0; 
  left: calc(100% + 20px); 
  right: auto; 
  padding: 15px 20px;
  text-align: center;
  min-width: 200px; 
  max-width: max-content;
  background: #f0f2f5; 
  border-radius: 4px; 
  box-shadow: 0 5px 5px rgba(0,0,0,0.20); 
  border: 1px solid #073f79;
  z-index: 10;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

#selected-info-panel li {
  font-family: "Montserrat", sans-serif;
  line-height: 1.3;
  white-space: nowrap;
}

.width-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  font-weight: 700;
  margin-bottom: 5px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}
.scene-tab-btn {
  position: absolute;
  bottom: 0;
  background-color: #ffffff;
  color: #333;
  border: 1px solid #bbbbbb;
  padding: 10px 22px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 90;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}

.scene-tab-btn svg {
  width: 17px;
  height: 17px;
}

.scene-tab-btn:hover {
  background-color: #eaf1f8;
  color: #073f79;
}

.tab-left {
  left: 0;
  transform-origin: bottom left;
  transform: rotate(-90deg);
}

.tab-right {
  right: 0;
  transform-origin: bottom right;
  transform: rotate(90deg);
}
.btn-delete {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 50px;           
  height: 50px;          
  border-radius: 50%;    
  background: #ffffff;   
  color: #000;           
  border: 1px solid rgba(0,0,0,0.3); 
  opacity: 0.7;          
  text-align: center;    
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  display: none;         
  z-index: 100;
  transition: all 0.2s ease;
}

.btn-delete svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-delete:hover {
  opacity: 1.0;
  transform: scale(1.1);
  background-color: #ffffff;
}
.btn-inspect {
  position: absolute;
  bottom: 20px;
  left: 80px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: #000;
  border: 1px solid rgba(0,0,0,0.3);
  opacity: 0.7;
  text-align: center;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  display: none;         
  z-index: 100;
  transition: all 0.2s ease;
}

.btn-inspect svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-inspect:hover {
  opacity: 1.0;
  transform: scale(1.1);
  background-color: #ffffff;
}
#inspector-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: auto; 
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s;
}

#inspector-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.inspector-header {
  background: #f0f2f5;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.inspector-header button {
  background: transparent;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #888;
}

.inspector-header button:hover {
  color: #ff3b30;
}

#inspector-canvas-container {
  width: 600px;
  height: 420px;
  position: relative;
  background-color: #f9f9f9; 
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}
#bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-top: 15px;
}

.left-actions {
  display: flex;
  gap: 10px;
}

.email-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.action-btn.white-style {
  background-color: white;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn.white-style:hover {
  background-color: #f5f5f5;
  border-color: #999;
  transform: translateY(-1px);
}

body {
    overflow-x: hidden !important; 
    overflow-y: auto !important;
    background-color: #f0f0f0; 
}
#wireframe-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 199;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
  pointer-events: none !important;
}

#wireframe-preview-overlay * {
  pointer-events: none !important;
}

#wireframe-preview-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

#wireframe-canvas-container {
  width: 440px;
  height: 440px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 1px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#wireframe-canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
#wireframe-preview-overlay.preview-shifted-right #wireframe-canvas-container {
  transform: translateX(200px);
}

#wireframe-preview-overlay.preview-shifted-left #wireframe-canvas-container {
  transform: translateX(-200px);
}
#mobile-desktop-hint {
  display: none;
}

#mobile-exit-btn {
  display: none;
  align-items: center;
  gap: 6px;
  color: #555555;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.2s ease;
  margin-right: 2px;
}

#mobile-exit-btn svg {
  color: #333333;
}

#mobile-exit-btn:hover {
  color: #000000;
}

@media screen and (max-width: 1150px) {
  #mobile-exit-btn {
    display: flex;
  }
  html, body {
    height: 100vh !important;
    min-height: 100vh;
    overflow: hidden !important;
    background-color: #ffffff !important;
  }
  .logo-area {
    display: none;
  }
  .main-header {
    display: none !important;
  }
  .main-nav {
    margin-left: 0;
  }
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-nav li {
    border: none;
  }
  .main-nav a {
    font-size: 10px;
    padding: 5px 10px;
    height: auto;
  }
  #app-wrapper {
    flex-direction: column;
    justify-content: flex-start;                                   
    align-items: center;
    padding: 10px 5px 2px 5px;
    gap: 2px;
    flex: 1;
    height: 100%;
  }
      #center-column {
        display: contents;
      }
      #top-controls {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
      }
      #left-controls {
        position: fixed;
        right: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        order: unset;
        flex-direction: column;
        width: max-content;
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: 0;
        z-index: 300;
      }
      #left-controls[style*="visibility: hidden"] {
        display: none !important;
      }
      .canvas-scroll-wrapper {
        order: 2;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        margin: 0 auto;
        flex: 1 1 0%;                                       
        min-height: 0;                                
        display: flex;
        flex-direction: column;
      }

      #main-app-container {
        width: 100%;
        max-width: 100%;
        height: 100%;
        flex: 1 1 0%;                                       
        min-height: 0;                                
        max-height: none;
        overflow: hidden;
        position: relative;
      }
      #main-app-container canvas {
        transition: none;
      }
      #mobile-desktop-hint {
        display: block;
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        max-width: 80%;
        text-align: center;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        color: #333;
        font-family: "Montserrat", sans-serif;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.4;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 60;
        pointer-events: none;
      }

      #selected-info-panel {
        display: none !important;
      }
      #palette-hint {
        display: none !important;
      }
      #wireframe-preview-overlay {
        display: none !important;
      }
      .btn-delete { bottom: 15px; left: 15px; }
      .btn-inspect { display: none !important; }

  .palette-section {
    width: auto;
    min-width: 120px;
    background: rgba(240, 242, 245, 0.9);
    backdrop-filter: blur(5px);
  }

  .color-palette-vertical {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding: 5px 0;
    gap: 8px;
  }
  .color-palette-vertical::-webkit-scrollbar {
    display: none;
  }

  .tabs-container {
    flex-wrap: nowrap;
  }

  .tab-wrapper {
    flex: 1;
    min-width: 0;
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
    font-size: 7.5px !important;
    padding: 8px 2px;
    white-space: normal;
    line-height: 1.2;
  }
                                                                                 
  #bottom-controls {
    order: 4;
    position: relative;
    z-index: 220;
    align-self: flex-end;
    width: auto;
    max-width: calc(100% - 20px);
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
    margin-top: -38px;
    margin-left: auto;
    margin-right: 10px;
  }

  .left-actions {
    display: none !important;
  }

  .left-actions button {
    flex: 0 1 auto;
    justify-content: center;
    padding: 5px 7px;
    font-size: 8px !important;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .email-wrapper {
    flex: 0 1 auto;
    align-items: stretch;
  }

  #btn-email {
    width: auto;
    justify-content: center;
    padding: 5px 7px;
    font-size: 8px !important;
    letter-spacing: 0;
    white-space: nowrap;
  }

                                                                        
  .scene-tab-btn {
    display: none !important;
  }

                                                                 
  .category-group {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    width: min(320px, calc(100vw - 24px));
    min-width: 0;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translate(-50%, -50%);
    z-index: 300;
  }

                                                                              
  .category-group.active {
    animation: none;
  }

  .category-group button {
    white-space: normal;
    overflow-wrap: anywhere;
  }

                                                                  
  #info-modal, #inspector-modal, #alert-modal, #contact-modal, #save-choice-modal, #schienale-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(500px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  #info-modal .info-steps li {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #inspector-canvas-container, #wireframe-canvas-container {
    width: 100%;
    height: 350px;
  }
}


#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-content {
  text-align: center;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  width: 80%;
  max-width: 400px;
}

.loading-logo {
  width: 180px;
  margin-bottom: 30px;
}

.loading-text {
  font-size: 14px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background-color: #333333;
  border-radius: 2px;
  overflow: hidden;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background-color: #073f79;
  transition: width 0.2s ease;
}
.fixed-green-outline {
  border-color: #4caf50 !important;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3) !important;
}
#portrait-lock-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #1a1a1a;
  z-index: 9999999;
  color: #ffffff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.portrait-lock-content h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.portrait-lock-content p {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #bbbbbb;
}

.rotate-icon {
  animation: rotatePhone 2s infinite ease-in-out;
}
@keyframes rotatePhone {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-90deg); }
  100% { transform: rotate(-90deg); }
}
@media screen and (max-width: 950px) and (orientation: portrait) {
  #portrait-lock-overlay {
    display: flex;
  }
  body {
    overflow: hidden !important;
  }
}
#scene-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #073f79;
  cursor: ew-resize;
  z-index: 150;
  transform: translateX(-50%);
  display: none;
}
#scene-slider::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #073f79;
  color: #073f79;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
