/* =========================================================
   sdn.assist — folha de estilo do painel
   Tema claro, sem dependências externas.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #fdfaf7;
  --card: #ffffff;
  --border: #ecebe9;
  --border-strong: #dedcd8;
  --accent: #ff7707;
  --accent-dark: #e56a04;
  --accent-soft: #fff6ec;
  --accent-border: #ffd9b0;
  --text: #2b2b2b;
  --muted: #8c8c8c;
  --icon: #9a9a9a;
  --green: #2f9e5f;
  --green-bg: #e6f4ea;
  --green-border: #bfe3cd;
  --st-online: #2ecc71;
  --st-offline: #e74c3c;
  --st-pending: #f1c40f;
  --danger: #e74c3c;
  --danger-soft: #fdecea;
  --code-bg: #2f2f2f;
  --sidebar-w: 64px;
  --sidebar-w-open: 214px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- 2. Base ---------- */
/* O atributo hidden precisa vencer qualquer display: custom (flex/grid/block). */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden; /* o body nunca rola horizontalmente */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

/* Foco visível laranja em tudo que recebe teclado */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 3. Sidebar ---------- */
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0 18px;
  z-index: 60;
  transition: width .18s ease;
  overflow-x: hidden;
  overflow-y: auto;
}
body.sidebar-open .sidebar { width: var(--sidebar-w-open); }
/* Abre ao passar o mouse (sobrepondo o conteúdo, sem empurrar o layout). */
.sidebar:hover,
.sidebar:focus-within { width: var(--sidebar-w-open); box-shadow: 0 0 24px rgba(0,0,0,.06); }

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 20px;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  color: var(--icon);
  cursor: pointer;
  text-align: left;
}
.nav-item:hover { color: var(--text); background: #fafafa; }
.nav-item.is-active { color: var(--accent); border-left-color: var(--accent); }

.nav-ico { flex: 0 0 22px; display: inline-flex; }
.nav-ico svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-ico svg .f { fill: currentColor; stroke: none; }

.nav-label {
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
body.sidebar-open .nav-label,
.sidebar:hover .nav-label,
.sidebar:focus-within .nav-label { opacity: 1; pointer-events: auto; }

.nav-burger { color: var(--icon); margin-bottom: 4px; }

/* ---------- 4. Topbar ---------- */
.shell {
  margin-left: var(--sidebar-w);
  min-width: 0;
  transition: margin-left .18s ease;
}
body.sidebar-open .shell { margin-left: var(--sidebar-w-open); }

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px 6px;
  min-height: 62px;
}
.topbar-spacer { flex: 1 1 auto; }

.user-box { display: flex; align-items: center; gap: 10px; }
.user-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.user-hello { font-size: 13px; font-weight: 700; }
.user-name { font-size: 11px; color: var(--muted); }

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  letter-spacing: .5px;
}
.chev svg { width: 16px; height: 16px; fill: none; stroke: var(--icon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.auth-warn {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: #8a4a06;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
}
.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--accent); font-weight: 700; cursor: pointer;
  text-decoration: underline;
}

/* ---------- 5. Área de conteúdo ---------- */
.view { padding: 10px 32px 60px; min-width: 0; }
.view:focus { outline: none; }

.page-title { font-size: 28px; font-weight: 700; margin: 6px 0 22px; }
.section-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.section-title.mt { margin-top: 18px; }
.section-title.mt-lg { margin-top: 26px; }
.muted-p { color: var(--muted); font-size: 13px; margin: 0 0 18px; max-width: 900px; }

/* ---------- 6. Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 11px 20px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  background: none;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }

.btn-outline { border-color: var(--accent); color: var(--accent); background: var(--card); }
.btn-outline:hover:not(:disabled) { background: var(--accent-soft); }

.btn-ghost { color: var(--accent); padding: 11px 12px; }
.btn-ghost:hover:not(:disabled) { background: var(--accent-soft); }

.btn-danger-outline { border-color: var(--danger); color: var(--danger); background: var(--card); }
.btn-danger-outline:hover:not(:disabled) { background: var(--danger-soft); }

.btn-neutral { border-color: var(--border-strong); color: var(--text); background: var(--card); }
.btn-neutral:hover:not(:disabled) { background: #f6f5f3; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: none; color: var(--icon); cursor: pointer;
}
.icon-btn:hover { background: #f2f1ef; color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg .f { fill: currentColor; stroke: none; }

.btn-trash {
  border-color: #f3c3bd; color: var(--danger); background: var(--card);
  width: 40px; height: 40px; border-radius: var(--radius);
}
.btn-trash:hover { background: var(--danger-soft); color: var(--danger); }

/* ---------- 7. Tela Devices ---------- */
.toolbar {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.search-field { position: relative; flex: 1 1 420px; max-width: 660px; }
.search-field svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: none; stroke: var(--icon);
  stroke-width: 1.8; stroke-linecap: round; pointer-events: none;
}
.search-field input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
}
.search-field input::placeholder { color: #b6b4b1; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto; /* tabelas rolam dentro do próprio contêiner */
  box-shadow: var(--shadow-sm);
}
table.data { width: 100%; border-collapse: collapse; min-width: 900px; }
table.data th, table.data td { padding: 14px 16px; text-align: left; vertical-align: middle; }
table.data thead th {
  font-size: 13px; font-weight: 700; color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data tbody td { border-bottom: 1px solid var(--border); font-size: 13px; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fcfbfa; }

.th-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 13px; font-weight: 700; color: inherit;
}
.th-btn svg { width: 13px; height: 13px; fill: none; stroke: #c3c1be; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.th-btn.sorted svg { stroke: var(--accent); }

.empty-row td { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 13px; }

.table-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 14px 4px 0;
  font-size: 13px; color: var(--muted);
}
.table-foot select {
  border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 5px 8px; background: var(--card);
}
.pager { display: flex; align-items: center; gap: 6px; }
.pager button {
  border: 1px solid var(--border-strong); background: var(--card);
  border-radius: 6px; padding: 5px 11px; cursor: pointer; font-size: 13px;
}
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager button.is-current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.online { background: var(--st-online); }
.dot.offline { background: var(--st-offline); }
.dot.pending { background: var(--st-pending); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: #f0efed; color: #6b6b6b;
  border-radius: 20px; padding: 3px 11px;
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
  white-space: nowrap;
}
.chip-dark { background: #6b6b6b; color: #fff; }

.name-link { font-weight: 600; color: var(--text); }
.name-link:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 8. Menu dropdown (Actions) ---------- */
.menu-layer { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.menu {
  position: fixed;
  pointer-events: auto;
  min-width: 194px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
}
.menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px;
  background: none; border: 0; border-radius: 6px;
  font-size: 13px; color: var(--text); cursor: pointer; text-align: left;
}
.menu button:hover, .menu button:focus-visible { background: var(--accent-soft); color: var(--accent); }
.menu button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.menu button.danger { color: var(--danger); }
.menu button.danger:hover, .menu button.danger:focus-visible { background: var(--danger-soft); }
.menu-sep { height: 1px; background: var(--border); margin: 5px 4px; }

/* ---------- 9. Cards / banners ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.back-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.back-square {
  width: 34px; height: 34px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--card); color: var(--accent);
  display: grid; place-items: center; cursor: pointer;
}
.back-square svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-label { color: var(--accent); font-weight: 700; font-size: 13px; }

.banner {
  display: flex; align-items: flex-start; gap: 12px;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 13px;
}
.banner-warn { background: var(--accent-soft); border: 1px solid var(--accent-border); color: #6b4a22; }
.banner-ok { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); font-weight: 600; }
.banner p { margin: 0; }
.banner .close { margin-left: auto; }

.bang {
  flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; line-height: 1;
}
.bang-lg { width: 24px; height: 24px; font-size: 15px; }
.check-ico {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}

/* ---------- 10. Toggle switch ---------- */
.switch { position: relative; display: inline-flex; flex: none; }
.switch input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.switch .slider {
  width: 38px; height: 21px; border-radius: 20px;
  background: #d8d8d8; position: relative;
  transition: background .18s ease; pointer-events: none;
}
.switch .slider::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: transform .18s ease;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(17px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .slider { opacity: .75; }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 11. Grid de serviços ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 6px;
}
.svc {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-width: 0;
}
.svc-name { font-size: 13px; font-weight: 600; white-space: nowrap; }
.svc-suffix { color: var(--muted); font-size: 11px; display: block; font-weight: 400; }
.svc-port { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.svc-port label { font-size: 12px; color: var(--muted); }
.svc-port input {
  width: 72px; padding: 7px 8px;
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--card);
}
.svc-port input:disabled { background: #f6f5f3; color: var(--muted); }

/* ---------- 12. Trusted networks ---------- */
.net-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 18px; }
.net-row { display: flex; align-items: center; gap: 10px; }
.net-row input[type="text"] {
  flex: 1 1 auto; min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
}
.net-row input[readonly] { background: #f8f7f5; color: #575654; }
.net-row input.invalid { border-color: var(--danger); background: #fff8f7; }
.field-error { color: var(--danger); font-size: 12px; margin: -4px 0 0; }

.form-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select {
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
}
.field input.invalid { border-color: var(--danger); }
.field.wide { max-width: none; }

/* ---------- 13. Tela Script ---------- */
.script-cols {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.steps { position: relative; margin: 0; padding: 0; list-style: none; }
.steps::before {
  content: ""; position: absolute;
  left: 15px; top: 16px; bottom: 16px;
  width: 2px; background: #e2e0dd;
}
.step { position: relative; display: flex; gap: 14px; padding: 0 0 26px; }
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative; z-index: 1;
  flex: none; width: 32px; height: 32px;
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--card);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--text);
}
.step-text { font-size: 13px; color: #4a4a4a; padding-top: 6px; }

.script-head {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.script-head .field { flex-direction: row; align-items: center; gap: 10px; max-width: none; }
.script-head .field label { color: var(--text); font-weight: 600; font-size: 13px; white-space: nowrap; }
.script-head select { min-width: 190px; }
.quotas { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.quotas b { color: var(--accent); font-weight: 700; }

.code-box {
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}
.code-box pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #e8e8e8;
  white-space: pre;
}
.tok-comment { color: #9b9b9b; }
.tok-cmd { color: #6cb6ff; }
.tok-fn { color: #ff9d4d; }
.tok-attr { color: #7bd88f; }
.tok-str { color: #e8e8e8; }

.attention {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); padding: 18px 20px; margin: 22px 0;
  display: flex; gap: 12px;
}
.attention h3 { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; }
.attention ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.attention li { margin-bottom: 3px; }

/* ---------- 14. Tela de detalhe ---------- */
.dev-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.dev-head h1 { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.dev-sub { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.dev-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.dev-meta b { color: var(--text); font-weight: 600; }
.dev-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 26px;
}
.metric {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.metric-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.metric-value { font-size: 20px; font-weight: 700; margin-top: 6px; word-break: break-word; }

.block-title { font-size: 15px; font-weight: 700; margin: 26px 0 12px; }
.loading { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
  * { transition-duration: .01ms !important; }
}
.error-box {
  background: var(--danger-soft); border: 1px solid #f3c3bd; color: #a3352a;
  border-radius: var(--radius); padding: 12px 14px; font-size: 13px; margin-bottom: 18px;
}

/* ---------- 15. Modal ---------- */
.modal-root {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(30, 28, 26, .38);
  display: grid; place-items: center;
  padding: 20px;
}
.modal-root[hidden] { display: none; }
.modal {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 24px;
}
.modal h2 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.modal p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- 16. Toasts ---------- */
.toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--muted);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  font-size: 13px;
  animation: toast-in .18s ease;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 17. Responsivo ---------- */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .script-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .view { padding: 10px 18px 60px; }
  .topbar { padding: 14px 18px 4px; }
  .user-hello { font-size: 12px; }
  .toolbar-actions { margin-left: 0; width: 100%; }
  .search-field { flex-basis: 100%; }
  body.sidebar-open .shell { margin-left: var(--sidebar-w); }
}

@media (max-width: 560px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .dev-actions { margin-left: 0; width: 100%; }
  .user-text { display: none; }
}

/* Itens de menu ainda não implementados: visivelmente indisponíveis. */
.menu button.is-soon { opacity: .45; cursor: not-allowed; }
.menu button.is-soon .soon-tag {
  margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .4px;
  background: #ecebe9; color: #8c8c8c; border-radius: 99px; padding: 1px 6px;
}
/* Remoção de tag dentro do modal */
.chip-x {
  border: 0; background: transparent; cursor: pointer; margin-left: 6px;
  color: #8c8c8c; font-size: 14px; line-height: 1; padding: 0 2px;
}
.chip-x:hover { color: #e74c3c; }
/* Itens da barra lateral ainda não implementados */
.nav-item[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }

/* Em telas estreitas (e em dispositivos sem mouse) o hover não expande:
   ali o menu só abre pelo botão, evitando abrir com um toque acidental. */
@media (max-width: 900px), (hover: none) {
  .sidebar:hover { width: var(--sidebar-w); box-shadow: none; }
  .sidebar:hover .nav-label { opacity: 0; pointer-events: none; }
}
