#edom-tile-screen {
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #555;
  background: transparent;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 25px;
}
#edom-tile-screen *,
#edom-tile-screen *::before,
#edom-tile-screen *::after { box-sizing: border-box; }
#edom-tile-screen h2 {
  margin: 22px 0 12px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: #333;
}
#edom-tile-screen .edom-tile-panel > h2:first-child { margin-top: 0; }
#edom-tile-screen p { margin: 0; }
#edom-tile-screen .edom-tile-note {
  margin: 0 0 8px;
  color: #555;
  font-size: 15px;
  line-height: 25px;
  font-weight: 400;
}
#edom-tile-screen .edom-tile-empty { color: #777; font-size: 15px; line-height: 25px; }
#edom-tile-screen .edom-tile-error {
  min-height: 0;
  margin-top: 10px;
  color: #e02222;
  font-size: 14px;
  line-height: 1.4;
}
#edom-tile-screen .edom-tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
#edom-tile-screen .edom-tile-size { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: end; }
#edom-tile-screen .edom-tile-presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
#edom-tile-screen .edom-tile-preset {
  border: 1px solid #e6e6e6 !important;
  background: #f8f8f8 !important;
  color: #555 !important;
  border-radius: 999px !important;
  padding: 5px 12px !important;
  font: 400 13px/1.3 Montserrat, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}
#edom-tile-screen .edom-tile-preset:hover {
  background: #f3f3f3 !important;
  border-color: #ddd !important;
  color: #333 !important;
}
#edom-tile-screen .edom-tile-grid label,
#edom-tile-screen .edom-tile-length {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #333;
}
#edom-tile-screen .edom-tile-length { margin-top: 12px; }
#edom-tile-screen .edom-tile-wide { grid-column: 1 / -1; }
#edom-tile-screen input {
  display: block;
  width: 100% !important;
  height: 48px !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 1px solid #ececec !important;
  background: #f8f8f8 !important;
  border-radius: 3px !important;
  padding: 0 16px !important;
  box-shadow: none !important;
  font: 400 14px/1.4 Montserrat, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #333 !important;
}
#edom-tile-screen input:focus {
  border-color: #e85222 !important;
  background: #fff !important;
  outline: none !important;
}
#edom-tile-screen .edom-tile-lab {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  margin-top: 16px;
  align-items: start;
}
#edom-tile-screen .edom-tile-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 3px;
  padding: 20px;
  box-shadow: none;
}
#edom-tile-screen .edom-tile-actions,
#edom-tile-screen .edom-tile-corners { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#edom-tile-screen .edom-tile-corners { flex-direction: column; align-items: stretch; }
#edom-tile-screen .edom-tile-walls {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
#edom-tile-screen .edom-tile-walls li {
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid #ececec;
  font-size: 15px;
  line-height: 22px;
  color: #555;
}
#edom-tile-screen .edom-tile-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 12px;
}
#edom-tile-screen .edom-tile-mode {
  display: flex !important;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #ececec !important;
  background: #fff !important;
  border-radius: 3px !important;
  text-align: left;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font: 400 15px/1.35 Montserrat, Arial, sans-serif !important;
  color: #333 !important;
  cursor: pointer;
}
#edom-tile-screen .edom-tile-mode strong,
#edom-tile-screen .edom-tile-mode-copy span {
  display: block;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#edom-tile-screen .edom-tile-mode strong { font-size: 16px; font-weight: 500; color: #333; }
#edom-tile-screen .edom-tile-mode-copy span { margin-top: 4px; font-size: 13px; line-height: 1.4; color: #777; font-weight: 400; }
#edom-tile-screen .edom-tile-mode-ico {
  display: flex;
  flex: 0 0 52px;
  width: 52px;
  height: 36px;
  margin: 0;
  color: #999;
}
#edom-tile-screen .edom-tile-mode.is-on .edom-tile-mode-ico { color: #e85222; }
#edom-tile-screen .edom-tile-mode-ico svg {
  width: 52px !important;
  height: 36px !important;
  max-width: none;
  display: block;
  background: none;
  border: 0;
}
#edom-tile-screen .edom-tile-mode-copy { display: block; margin: 0; min-width: 0; }
#edom-tile-screen .edom-tile-mode:hover { border-color: #e85222 !important; }
#edom-tile-screen .edom-tile-mode.is-on,
#edom-tile-screen .edom-tile-mode.is-on:hover { border-color: #e85222 !important; background: #fff !important; }
#edom-tile-screen .edom-tile-mode.is-on strong { color: #e85222; }
#edom-tile-screen .edom-tile-side-note { margin-top: 16px; }
#edom-tile-screen .edom-tile-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
  background: #f8f8f8;
  border: 1px solid #ececec;
  border-radius: 3px;
  padding: 12px;
  min-height: 420px;
}
#edom-tile-screen .edom-tile-canvas {
  min-width: 0;
  max-width: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
}
#edom-tile-screen .edom-tile-figure { width: 100%; max-width: 100%; min-width: 0; }
#edom-tile-screen .edom-tile-zoombar { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 8px; }
#edom-tile-screen .edom-tile-zoom-btn {
  min-width: 36px;
  height: 32px;
  padding: 0 10px !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 999px !important;
  background: #f8f8f8 !important;
  color: #555 !important;
  font: 400 13px/1 Montserrat, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}
#edom-tile-screen .edom-tile-zoom-btn:hover { background: #f3f3f3 !important; border-color: #ddd !important; color: #333 !important; }
#edom-tile-screen .edom-tile-zoom-btn:disabled,
#edom-tile-screen .edom-tile-zoom-btn:disabled:hover { color: #bbb !important; background: #f8f8f8 !important; border-color: #e6e6e6 !important; cursor: default; }
#edom-tile-screen .edom-tile-zoom {
  position: relative;
  width: 100%;
  max-width: var(--draw-w);
  aspect-ratio: var(--aw) / var(--ah);
}
#edom-tile-screen .edom-tile-variants { width: 100%; margin-top: 12px; }
#edom-tile-screen .edom-tile-canvas .edom-tile-variants { margin-top: 0; }
#edom-tile-screen .edom-tile-variants p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}
#edom-tile-screen .edom-tile-variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
#edom-tile-screen .edom-tile-variant {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  padding: 8px 12px !important;
}
#edom-tile-screen .edom-tile-variant.is-on,
#edom-tile-screen .edom-tile-variant.is-on:hover {
  background: #fff !important;
  color: #333 !important;
  border-color: #e85222 !important;
}
#edom-tile-screen .edom-tile-corner { cursor: pointer; }
#edom-tile-screen .edom-tile-hit { fill: transparent; stroke: transparent; }
#edom-tile-screen .edom-tile-corner:hover .edom-tile-hit,
#edom-tile-screen .edom-tile-corner:focus-visible .edom-tile-hit {
  fill: rgba(232, 82, 34, 0.16);
  stroke: #e85222;
  stroke-width: 1.5;
}
#edom-tile-screen .edom-tile-corner.is-on .edom-tile-hit { fill: rgba(232, 82, 34, 0.1); }
#edom-tile-screen .edom-tile-corner:hover .edom-tile-dot,
#edom-tile-screen .edom-tile-corner.is-on .edom-tile-dot { fill: #e85222; }
#edom-tile-screen .edom-tile-corner:hover .edom-tile-num,
#edom-tile-screen .edom-tile-corner.is-on .edom-tile-num { fill: #e85222; }
#edom-tile-screen .edom-tile-canvas .edom-tile-empty { padding: 24px; text-align: center; }
#edom-tile-screen svg.edom-tile-draw {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 3px;
  font-family: Montserrat, Arial, sans-serif;
}
#edom-tile-screen .edom-tile-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 176px;
}
#edom-tile-screen .edom-tile-pad .edom-tile-length { width: 100%; margin-top: 0; }
#edom-tile-screen .edom-tile-pad .edom-tile-close,
#edom-tile-screen .edom-tile-pad .edom-tile-add { width: 100%; margin-top: 0; }
#edom-tile-screen .edom-tile-pad .edom-tile-error { width: 100%; text-align: center; }
#edom-tile-screen .edom-tile-dpad {
  display: grid;
  grid-template-columns: 44px 44px 44px;
  grid-template-areas:
    ". up ."
    "left . right"
    ". down .";
  gap: 6px;
}
#edom-tile-screen .edom-tile-dir[data-dir="north"] { grid-area: up; }
#edom-tile-screen .edom-tile-dir[data-dir="west"] { grid-area: left; }
#edom-tile-screen .edom-tile-dir[data-dir="east"] { grid-area: right; }
#edom-tile-screen .edom-tile-dir[data-dir="south"] { grid-area: down; }
#edom-tile-screen .edom-tile-dir[data-dir="east"] svg { transform: rotate(90deg); }
#edom-tile-screen .edom-tile-dir[data-dir="south"] svg { transform: rotate(180deg); }
#edom-tile-screen .edom-tile-dir[data-dir="west"] svg { transform: rotate(-90deg); }
#edom-tile-screen .edom-tile-pad-tools { display: flex; gap: 8px; }
#edom-tile-screen .edom-tile-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #ececec !important;
  background: #fff !important;
  color: #333 !important;
  border-radius: 3px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}
#edom-tile-screen .edom-tile-icon svg {
  width: 18px !important;
  height: 18px !important;
  max-width: none;
  display: block;
  background: none;
  border: 0;
}
#edom-tile-screen .edom-tile-icon:hover { border-color: #e85222 !important; color: #e85222 !important; background: #fff !important; }
#edom-tile-screen .edom-tile-swap {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  margin: 0 0 6px !important;
}
#edom-tile-screen .edom-tile-icon:disabled,
#edom-tile-screen .edom-tile-icon:disabled:hover {
  color: #ccc !important;
  background: #f8f8f8 !important;
  border-color: #ececec !important;
  cursor: default;
}
#edom-tile-screen .tile-full { fill: #f3f3f3; stroke: #c8c8c8; stroke-width: 1; }
#edom-tile-screen .tile-cut { fill: #fde8e1; stroke: #e85222; stroke-width: 1.4; }
#edom-tile-screen .edom-tile-result { margin-top: 16px; }
#edom-tile-screen .edom-tile-download { margin-top: 16px; }
#edom-tile-screen .edom-tile-result span {
  display: block;
  color: #777;
  font-size: 14px;
  line-height: 1.4;
}
#edom-tile-screen .edom-tile-result b {
  display: block;
  margin-top: 2px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 500;
  color: #333;
}
#edom-tile-screen .edom-tile-result em {
  font-style: normal;
  color: #e85222;
  font-size: 15px;
  font-weight: 400;
  line-height: 25px;
}
#edom-tile-screen .edom-tile-result .edom-tile-note { margin-top: 8px; }
#edom-tile-screen button {
  box-shadow: none !important;
  line-height: 1.2 !important;
  height: auto !important;
  min-height: 0 !important;
  white-space: normal !important;
}
#edom-tile-screen .edom-tile-add {
  border: 1px solid #e85222 !important;
  background: #e85222 !important;
  color: #fff !important;
  border-radius: 3px !important;
  margin-top: 16px;
  padding: 12px 21px 11px !important;
  font: 400 11px/1.2 Montserrat, Arial, sans-serif !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  cursor: pointer;
}
#edom-tile-screen .edom-tile-add:hover { background: #d4471b !important; border-color: #d4471b !important; color: #fff !important; }
#edom-tile-screen .edom-tile-tab {
  border: 1px solid #ececec !important;
  background: #fff !important;
  color: #333 !important;
  border-radius: 3px !important;
  padding: 10px 14px 9px !important;
  font: 400 11px/1.2 Montserrat, Arial, sans-serif !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  cursor: pointer;
}
#edom-tile-screen .edom-tile-tab:hover { border-color: #e85222 !important; color: #e85222 !important; background: #fff !important; }
#edom-tile-screen .edom-tile-tab.is-on,
#edom-tile-screen .edom-tile-tab.is-on:hover {
  background: #e85222 !important;
  border-color: #e85222 !important;
  color: #fff !important;
}
#edom-tile-screen .edom-tile-tab:disabled,
#edom-tile-screen .edom-tile-tab:disabled:hover {
  color: #bbb !important;
  background: #f8f8f8 !important;
  border-color: #ececec !important;
  cursor: default;
}
#edom-tile-screen .edom-tile-corners .edom-tile-tab {
  text-align: left;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  padding: 10px 12px !important;
}
#edom-tile-screen .edom-tile-corners .edom-tile-tab.is-on,
#edom-tile-screen .edom-tile-corners .edom-tile-tab.is-on:hover {
  background: #fff !important;
  color: #333 !important;
  border-color: #e85222 !important;
}
#edom-tile-screen .edom-tile-text {
  border: 0 !important;
  background: transparent !important;
  color: #e85222 !important;
  font: 400 15px/25px Montserrat, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  padding: 0 !important;
}
#edom-tile-screen .edom-tile-text:hover { color: #d4471b !important; background: transparent !important; text-decoration: underline; }
@media (max-width: 800px) {
  #edom-tile-screen input { height: 56px !important; }
  #edom-tile-screen .edom-tile-modes,
  #edom-tile-screen .edom-tile-lab,
  #edom-tile-screen .edom-tile-grid,
  #edom-tile-screen .edom-tile-stage { grid-template-columns: 1fr; }
  #edom-tile-screen .edom-tile-size { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
  #edom-tile-screen .edom-tile-size .edom-tile-wide,
  #edom-tile-screen .edom-tile-size .edom-tile-presets { grid-column: 1 / -1; }
  #edom-tile-screen .edom-tile-swap { margin-bottom: 10px !important; }
  #edom-tile-screen .edom-tile-wide { grid-column: auto; }
  #edom-tile-screen .edom-tile-pad { width: 100%; }
  #edom-tile-screen .edom-tile-stage { min-height: 0; }
}
#edom-tile-screen .edom-tile-range { width: 100%; margin-top: 8px; }
#edom-tile-screen input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100% !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}
#edom-tile-screen input[type="range"]:disabled { cursor: default; }
#edom-tile-screen input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: #ececec;
  border-radius: 3px;
}
#edom-tile-screen input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: #e85222;
}
#edom-tile-screen input[type="range"]::-moz-range-track {
  height: 4px;
  background: #ececec;
  border: 0;
  border-radius: 3px;
}
#edom-tile-screen input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #e85222;
}
#edom-tile-screen .edom-tile-range-marks {
  position: relative;
  height: 8px;
  margin: 0 8px;
}
#edom-tile-screen .edom-tile-range-marks span {
  position: absolute;
  left: calc(var(--at) * 100%);
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
  transform: translateX(-50%);
}
#edom-tile-screen .edom-tile-range-marks span.is-on { background: #e85222; }
#edom-tile-screen .edom-tile-range-scale {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: #777;
  font-size: 12px;
  line-height: 1.2;
}
