.sas-tool-modal {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  font-family: system-ui, Segoe UI, sans-serif;
}
.sas-tool-modal.open { display: flex; }
.sas-tool-card {
  width: min(42rem, calc(100vw - 1.5rem));
  max-height: min(82vh, 40rem);
  overflow: auto;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .8rem;
  background: #14181e;
  color: #e8eaed;
  box-shadow: 0 24px 50px rgba(0,0,0,.45);
}
.sas-tool-card h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 .85rem;
  font-size: 1.05rem;
}
.sas-tool-card h2 button {
  border: 0;
  background: transparent;
  color: #9aa1aa;
  font-size: 1.2rem;
  cursor: pointer;
}
.sas-tool-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.sas-tool-card th, .sas-tool-card td {
  padding: .45rem .4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
}
.sas-tool-card th { color: #9aa1aa; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.sas-tool-card td.num, .sas-tool-card th.num { text-align: right; }
.sas-tool-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.sas-tool-actions button, .sas-tool-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 .75rem;
  border: 0;
  border-radius: .4rem;
  background: #f5c518;
  color: #111318;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.sas-tool-actions .ghost {
  background: #222830;
  color: #e8eaed;
  border: 1px solid rgba(255,255,255,.12);
}
.sas-tool-note { margin: .35rem 0 0; color: #9aa1aa; font-size: .8rem; }
.sas-set-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.sas-set-row select {
  background: #0f1318;
  color: #f4f4f5;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: .4rem;
  padding: .35rem .5rem;
}
.sas-cad-grid { display: grid; gap: .5rem; }
.sas-cad-grid button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .5rem;
  background: #1a2028;
  color: #e8eaed;
  cursor: pointer;
  text-align: left;
}
.sas-cad-grid button strong { display: block; }
.sas-cad-grid button span { color: #9aa1aa; font-size: .75rem; }
