.new-tool-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(1050px,calc(100vw - 28px));
  height: min(890px,calc(100dvh - 28px));
  max-width: none;
  max-height: none;
  overflow: hidden;
  border: 1px solid var(--border-strong,#33483e);
  border-radius: 18px;
  background: var(--bg,#0b1713);
  color: var(--text,#eff8f2);
}
.new-tool-dialog::backdrop {
  background: rgba(0,5,9,.82);
  backdrop-filter: blur(5px);
}
.new-tool-dialog-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.new-tool-dialog-header {
  flex: none;
  min-height: 72px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-strong,#355043);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: var(--panel-strong,#12251d);
}
.new-tool-dialog-header h2 {
  font-size: clamp(1.05rem,2.2vw,1.45rem);
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
  color: var(--text,#f1faf4);
}
.new-tool-dialog-close {
  display: grid;
  place-items: center;
  flex: none;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid var(--border-strong,#5d8773);
  background: var(--panel-soft,#1c352a);
  color: var(--text,#fff);
  border-radius: 12px;
  cursor: pointer;
}
.new-tool-dialog-close:hover,.new-tool-dialog-close:focus-visible {
  outline: 2px solid var(--accent,#8adab0);
  outline-offset: 2px;
}
.new-tool-dialog-frame {
  display: block;
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  background: var(--bg,#07100d);
  color: var(--text,#fff);
}
@media(max-width:600px) {
  .new-tool-dialog {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .new-tool-dialog-header {
    padding: 10px 15px;
    min-height: 64px;
  }
}
.linux-starter-cta {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 20px;
  align-items: center;
  padding: clamp(20px,3vw,28px);
  border: 1px solid rgba(103,218,159,.42);
  background: linear-gradient(115deg,rgba(29,76,57,.92),rgba(11,30,25,.96));
  border-radius: 21px;
  text-decoration: none;
  color: #f1fff7;
  box-shadow: 0 12px 38px rgba(0,0,0,.17);
}
.linux-starter-cta:hover,.linux-starter-cta:focus-visible {
  border-color: #7befb6;
  box-shadow: 0 17px 47px rgba(0,0,0,.26);
  outline-offset: 3px;
}
.linux-starter-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(119,248,175,.13);
  border: 1px solid rgba(119,248,175,.24);
}
.linux-starter-icon svg {
  width: 32px;
  height: 32px;
  stroke: #a3f5c7;
}
.linux-starter-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
  line-height: 1.5;
}
.linux-starter-copy small {
  font-size: .72rem;
  letter-spacing: .09em;
  color: #a6e8c0;
  font-weight: 800;
}
.linux-starter-copy strong {
  font-size: clamp(1.07rem,2.3vw,1.36rem);
  line-height: 1.25;
  color: #fff;
}
.linux-starter-copy>span {
  font-size: .9rem;
  color: #cbded1;
}
.linux-starter-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #6de0a4;
  color: #08251a;
  font-size: .9rem;
  font-weight: 850;
  white-space: nowrap;
}
.linux-starter-action svg {
  width: 19px;
  height: 19px;
}
@media(max-width:730px) {
  .linux-starter-cta {
    grid-template-columns: 44px minmax(0,1fr);
    gap: 13px;
  }
  .linux-starter-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .linux-starter-icon svg {
    width: 26px;
    height: 26px;
  }
  .linux-starter-action {
    grid-column: 1/-1;
    width: 100%;
  }
}
.start-dashboard+.linux-starter-cta {
  margin-top: 20px;
}

 
.new-tool-dialog-foot{flex:none;min-height:65px;display:flex;justify-content:flex-end;align-items:center;background:var(--panel-strong,#13261d);border-top:1px solid var(--border,#385847);padding:10px 20px}
.new-tool-dialog-foot .new-tool-dialog-direct{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border:1px solid var(--border-strong,#496c59);border-radius:11px;color:var(--accent,#78e6b0);background:var(--panel,#102319);font-weight:750;font-size:.87rem;text-decoration:none}
.new-tool-dialog-foot .new-tool-dialog-direct:hover,.new-tool-dialog-foot .new-tool-dialog-direct:focus-visible{border-color:var(--accent,#78e6b0);background:var(--accent-soft,#183b2b)}
.new-tool-dialog,.resource-modal{width:min(1050px,calc(100vw - 28px));height:min(890px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);border-radius:18px;border:1px solid var(--border-strong,#446450)}
.new-tool-dialog-header,.resource-modal-head{min-height:70px;padding:14px 22px;background:var(--panel-strong,#142a20);border-bottom:1px solid var(--border-strong,#446450)}
.new-tool-dialog-close,.resource-modal-head button{width:44px;height:44px;min-width:44px;border-radius:12px;background:var(--panel,#17372a);border:1px solid var(--border-strong,#446450);color:var(--accent,#78e6b0)}
.new-tool-dialog-close:hover,.new-tool-dialog-close:focus-visible,.resource-modal-head button:hover,.resource-modal-head button:focus-visible{outline:2px solid var(--accent,#78e6b0);outline-offset:2px}
.new-tool-dialog-frame,.resource-modal-body iframe{background:var(--bg,#09140f)}
@media(max-width:600px){.new-tool-dialog,.resource-modal{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.new-tool-dialog-foot{padding:9px 14px}}

 
:where(.new-tool-dialog,.resource-modal,.catalog-modal) {
  width:min(1050px,calc(100vw - 28px));
  height:min(890px,calc(100dvh - 28px));
  max-height:calc(100dvh - 28px);
  border-radius:18px;
  border:1px solid var(--border-strong);
  overflow:hidden;
}
:where(.new-tool-dialog-header,.resource-modal-head,.catalog-modal-head) {
  min-height:70px;padding:14px 22px;
  background:var(--panel-strong);border-bottom:1px solid var(--border-strong);
}
:where(.new-tool-dialog-foot,.resource-modal-foot,.catalog-modal-foot) {
  display:flex;justify-content:flex-end;align-items:center;gap:12px;
  padding:11px 20px;border-top:1px solid var(--border);
  background:var(--panel-strong);min-height:62px;flex:none;
}
:where(.new-tool-dialog-foot,.resource-modal-foot,.catalog-modal-foot) a {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:9px 13px;border-radius:10px;
  border:1px solid var(--border-strong);color:var(--accent);
  font-weight:750;text-decoration:none;background:var(--panel);
}
:where(.new-tool-dialog-close,.resource-modal-head button,.catalog-modal-close) {
  min-width:44px;width:44px;height:44px;border-radius:12px;
  color:var(--accent);background:var(--panel);border:1px solid var(--border-strong);
}
@media(max-width:600px){:where(.new-tool-dialog,.resource-modal,.catalog-modal){width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}}

 
.new-tool-dialog.no-direct .new-tool-dialog-foot{display:none!important}
.new-tool-dialog-direct[hidden]{display:none!important}
