* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #111;
  background: #2886d3;  
}
.screen {    /* ------------------------------------------------  Overall screen definition */
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.app-frame.theme-board {    /* ---------------------------------  Main panel definition */
  width: 100%;
  max-width: 1280px;
  background: #eef6ff;
  border: 1px solid #000;
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}
.board-header {    /* ------------------------------------------  LOAD FILE BUTTON panel definition */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 10px;
  padding: 10px 10px 10px 10px;
  background: #cae7ff;
  border-bottom: 1px solid #000;
}
.header-left {    /* -------------------------------------------  Section for Load File Button */
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.header-actions { /* -------------------------------------------  NOT USED */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn {    /* ---------------------------------------------------  Actual Load File Button Definition */
  background: #fff;
  color: #111;
  border: 1px solid #000;
  border-radius: 12px;
  padding: 10px 20px 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:active {
   transform: translateY(2px);
  box-shadow: 0 4px 0 #000;
}
.btn:hover {
  background: #f6fff6;
}
.meta-grid {    /* ---------------------------------------------  Definition of spacing for metadata boxes */
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 8px;
} 
.meta-grid div {    /* -----------------------------------------  Definition of each box that shows Metadata */
  border: 1px solid #000;
  border-radius: 10px;
  background: #ffffff;  
  padding: 4px 20px 4px 20px;
  font-size: 14px;
}

.thumb {    /* -------------------------------------------------  Definition of the WALLPAPER box */
  width: 220px;
  height: 220px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 2px 2px;
  box-shadow: 0 4px 44px rgba(0, 0, 0, 0.35);
}
.thumb-canvas {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.no-img {
  color: #000000;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  text-align: center;
  font-size: 14px;
  padding: 4px;
  display: grid;
  place-items: center;
}
.board-body {    /* --------------------------------------------  Define the section that includes all four panels */
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 10px;
    padding: 10px 10px 10px 10px;
  background: #edffe7;
  border: 1px solid #000;
}
.sections {      /* --------------------------------------------  Define that there are three panels on the left */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}
.panel {        /* ---------------------------------------------  Define the three panels on the left */
  border: 1px solid #000;
  border-radius: 12px;
  padding: 10px 10px 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel h3 {     
  margin: 0;
  font-size: 14px;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #0b213f;
  text-transform: uppercase;
}
.swatch-column {        /* -------------------------------------  Define the spacing within the two full width color boxes penel */
  display: flex;
  flex-direction: column;
  gap: 4px
}

.swatch-grid {        /* ---------------------------------------  Define the spacing within the twin color boxes panel */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 4px 10px;
}
.color-box {  /* -----------------------------------------------  Define all of the color boxes */
  border: 1px solid #000;
  color:#000000;
  background: #edffe7;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 4px;
  text-align: center;
  font-weight: 500;    
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 2px 0 rgba(140, 140, 140, 0.65)
}
.color-box:hover {
  transform: translateY(-1px);
}
.color-box:focus-visible {
  outline: 3px solid #ffcb40;
  outline-offset: 4px;
}
.color-box.selected {
  /* box-shadow: 0 0 0 1px #000000, 0 6px 0 rgba(140, 140, 140, 0.65); */
  transform: translateY(-1px);


border: 2px solid #ffd500;


}
.details-panel {  /* -------------------------------------------  Define the panel with ADDITION DETAILS  */
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff7db;
  padding: 10px 10px 10px 10px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.details-panel h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1.4px;
  color: #000291;
}
.detail-meta {
  display: grid;
  font-size: 12px;
  gap: 10px;
  font-weight: 600;
}
.detail-meta span {
  color: #141414;
}
.detail-note {
  font-size: 12px;
  line-height: 1.1;
  color: #af0000;
  font-weight: 500;
}
.detail-steps {  /* --------------------------------------------  Define the list of steps in the ADDITIONAL DETAILS panel */
  margin: 0;
  padding-left: 20px;
  display: none;
  gap: 6px;
  font-weight: 500;  
}
.detail-steps.visible {
  display: grid;
  gap: 6px;
}
.detail-steps {   /* ORIGINAL: .detail-steps li */
  font-size: 12px;
  line-height: 1;
  color: #160092;
}
.status {  /* --------------------------------------------------  Define the status area for messages */
  font-size: 14px;
  color: #ff0000;
  padding: 2px 10px 2px 10px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid #000;
  text-transform: uppercase;
  background: #cae7ff;
}
.status span {
  display: inline-block;
}
.footer-note {  /* ---------------------------------------------  Define the area for Copyright, Version and Date  */
  text-align: center;
  padding: 2px 10px 2px 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #0b213f;
  border: 1px solid #000;
}
/* -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .board-body {
    grid-template-columns: 1fr;
  }

  .sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-panel {
    order: -1;
  }
}

@media (max-width: 920px) {
  .board-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-actions {
    justify-content: center;
  }

  .header-right {
    margin-top: 12px;
  }
}

@media (max-width: 720px) {
  .screen {
    padding: 20px 20px;
  }

  .sections {
    grid-template-columns: 1fr;
  }

  .meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
