.perm-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .perm-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.bit-table th,
.bit-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.bit-table th:first-child,
.bit-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.bit-table input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.mode-display {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0.25rem 0 0.75rem;
}

.mode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.access-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.access-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.access-list .yes { color: var(--ok); font-weight: 600; }
.access-list .no { color: var(--err); font-weight: 600; }

.umask-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.85rem;
}

.umask-row label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.umask-row input,
.umask-row select {
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  min-width: 5.5rem;
}

.result-box {
  font-family: var(--mono);
  background: var(--surface2);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
}
